Abstract Planetary gearbox has been widely applied in the mechanical transmission system, and the failure types of planetary gearbox are more and more diversified. The conventional fault diagnosis methods focus on identifying the faults in the fault library, but ignored the faults outside the fault library. However, it is impossible to build a fault library for all failure types. Targeting the problem of identifying the faults outside the fault library, a hierarchical fault diagnosis method for planetary gearbox with shift-invariant dictionary and orthogonal matching pursuit with adaptive noise (OMPAN) is proposed in this paper. By k-means singular value decomposition (K-SVD) dictionary learning method and shift-invariant strategy, a shift-invariant dictionary is constructed so that the normal modulation components of signals can be completed decomposed. OMPAN algorithm is proposed, which uses the white Gaussian noise to improve the solution method of the orthogonal matching pursuit (OMP) algorithm so that it can separate the modulation components in the signal more accurately. The fault feature extraction is developed via shift-invariant dictionary and OMPAN. A hierarchical classifier is proposed with 3 sub-classifiers so that both the faults in the fault library and the faults outside the fault library are identified. The effectiveness of the proposed hierarchical fault diagnosis method is validated by a planetary gearbox experiment. Result show that the proposed shift-invariant dictionary and OMPAN method has achieved a superior performance in highlighting fault features compared with other two sparse decomposition methods. The proposed hierarchical fault diagnosis approach has achieved a good performance both in classification of the faults in the fault library and identification of the faults outside the fault library.