This paper is devoted to the study of the asset allocation problem for a DC pension plan with minimum guarantee constraint in a hidden Markov regime-switching economy. Suppose that four types of assets are available in the financial market: a risk-free asset, a zero-coupon bond, an inflation-indexed bond and a stock. The expected return rate of the stock depends on unobservable economic states, and the change of states is described by a hidden Markov chain. In addition, the CIR process is used to describe the evolution of the nominal interest rate. The contribution rate is also assumed to be stochastic. The goal of investment management is to minimize the convex risk measure of the terminal wealth in excess of the minimum guarantee constraint. First, we transform the partially observable optimization problem into the one with complete information using the Wonham filtering technique and deal with the minimum guarantee constraint by constructing auxiliary processes. Furthermore, we derive the optimal investment strategy by the BSDE approach. Finally, some numerical results are presented to illustrate the impacts of some important parameters on investment behaviors.