• CN: 11-2187/TH
  • ISSN: 0577-6686

Journal of Mechanical Engineering ›› 2026, Vol. 62 ›› Issue (18): 186-202.doi: 10.3901/JME.260819

Previous Articles    

LLM Prompt Learning for Fault Diagnosis of Axial Piston Pumps under Data Imbalance

YUAN Keyan1,2,3, JIN Yaqiang4,5,6,7, RAO Meng7, LU Guoliang1,2,3, ZUO Mingjian4,5,6,7   

  1. 1. School of Mechanical Engineering, Shandong University, Jinan 250061;
    2. Key Laboratory of High-efficiency and Clean Mechanical Manufacture, Shandong University, Ministry of Education, Jinan 250061;
    3. National Key Laboratory of High-End Equipment and Advanced Technology for Metal Forming, Shandong University, Jinan 250061;
    4. School of Qilu Transportation, Shandong University, Jinan, 250002;
    5. Center for Intelligent Operation & Health Management of Advanced Equipment & Engineering Assets, Shandong University, Jinan 250002;
    6. State Key Laboratory of Intelligent Manufacturing of Advanced Construction Machinery, Shandong University, Jinan 250061;
    7. Qingdao Mingserve Technology Co., Ltd., Qingdao, 266041
  • Received:2025-10-31 Revised:2026-07-05 Published:2026-11-20

Abstract: Fault data for axial piston pumps in real-world industrial settings often exhibits significant class imbalance, characterized by an abundance of normal samples and a scarcity of fault samples. This imbalance poses a substantial challenge to traditional deep learning methods, which rely on balanced, large-scale datasets and consequently suffer from degraded generalization performance. While existing approaches often address this through data-level techniques like oversampling or undersampling, they fail to fundamentally enhance the model's ability to discern subtle features in minority classes. Recent advances in Large Language Models (LLMs) have demonstrated immense potential in learning universal feature representations from massive datasets, and their powerful in-context learning and feature extraction capabilities provide a new perspective for fault diagnosis with imbalanced samples. To this end, we propose a fault diagnosis framework for imbalanced samples based on LLMs. First, an autocorrelation attention mechanism combined with a Mixture-of-Experts (MoE) decomposition module adaptively deconstructs vibration signals to isolate their periodic and trend components. Subsequently, a probabilistic sampling sparse cross-attention mechanism reprograms the decomposed features into text-like sequences. These sequences, integrated with specifically designed prompts, guide the LLM to focus on discriminative fault characteristics. Finally, a fault mapping module achieves precise fault state classification. Experiments on a real-world dataset demonstrate that the proposed method achieves promising diagnostic performance for minority-class faults, providing an effective solution for fault diagnosis of axial piston pumps under imbalanced operating conditions.

Key words: axial piston pump, fault diagnosis, data imbalance, large language model, prompt learning, few-shot learning

CLC Number: