Moxa wool (MW), derived from the dried leaves of , plays a significant role in traditional Chinese medicine. However, the quality of MW varies with its storage period, impacting its therapeutic efficacy. Traditional methods for quality detection are limited and destructive. To address this, we propose a non-destructive detection method using hyperspectral imaging technology and machine learning algorithms to accurately identify the storage period of MW. Nevertheless, hyperspectral data poses challenges due to its high dimensionality and redundancy, leading to increased computational complexity. To overcome this, we employed principal component analysis (PCA), competitive adaptive reweighted sampling (CARS), and successive projection algorithm (SPA) for data dimensionality reduction and wavelength selection. The results demonstrate that these techniques significantly enhance the accuracy of MW storage year identification. For Nanyang MW, the CARS+SVM model achieved the highest accuracy rates of 99.8% in the visible-near-infrared (VNIR) range and 99.55% in the shortwave infrared (SWIR) range. Similarly, for Qichun MW, the SPA+SVM model achieved identification accuracies of 99.78% and 99.47% in the VNIR and SWIR ranges, respectively. This research provides valuable insights into the rapid detection of MW quality by indication of storage years and presents a novel approach for quality control of MW in the field of traditional Chinese medicine. The combination of hyperspectral imaging and machine learning offers a promising solution for efficient and accurate MW identification, contributing to the advancement of traditional medicine practices.