Abstract:To address the issues of strong background interference, complex texture scales, difficulty in distinguishing mineral types, and limited inference speed in existing algorithms, a lightweight rapid rare earth mineral identification algorithm (REMamba) is proposed. The algorithm adopts a collaborative structure combining dual lightweight feature extraction modules and efficient multi-scale context aggregation modules: The former is applied to shallow layers of networks, replacing raw deep convolution, reducing feature redundancy, and improving the efficiency of shallow feature extraction; The latter is embedded deep into the network, parallelly integrating multi-scale contextual information and global attention features to enhance multi-scale feature perception of minerals. Experiments were conducted on a dedicated dataset for constructing 14 categories of rare earth minerals based on the MinDat dataset. The results show that compared to the baseline algorithm MambaOut-Femto, the accuracy and F1 value of the proposed algorithm improve by 1.52% and 1.51%, respectively, inference speed increases by 22.7%, and inference delay is only 7.4 ms. Ablation experiments verified the effectiveness of module co-optimization, which balances high precision and low latency, making it suitable for rapid identification of edge equipment in mining areas.