Artificial intelligence technology offers an intelligent and efficient new pathway for bearing fault diagnosis, holding significant importance for ensuring the stable operation of industrial systems. However, bearing fault samples are scarce in industrial practice, and traditional data-driven methods exhibit a marked decline in diagnostic performance under conditions of small sample sizes. To address this, this paper proposes a few-shot bearing fault diagnosis method that integrates an Improved Generative Adversarial Network with a CNN-BiLSTM-Attention hybrid network. The method comprises three core stages: in the data augmentation stage, a class-center-constrained Least Squares Generative Adversarial Network (CCC-LSGAN) model featuring class center constraint and joint loss optimization is proposed to generate high-quality fault samples through frequency-domain feature constraints, effectively expanding the training data; in the feature learning stage, a one-dimensional Convolutional Neural Network, Bidirectional Long Short-Term Memory, and Attention hybrid network (1D-CNN-BiLSTM-Attention) hybrid base classifier is constructed, which combines multi-scale convolution, bidirectional temporal modeling, and attention mechanisms to fully extract the spatiotemporal features of vibration signals; in the inference stage, test-time noise augmentation and a multi-model weighted voting ensemble mechanism are introduced to enhance the robustness and generalization capability of the diagnosis. Experimental results based on the PU and CWRU public bearing datasets demonstrate that the proposed method significantly outperforms existing mainstream diagnostic approaches in core metrics, including accuracy, precision, recall, and F1 score. It achieves a diagnostic accuracy of 96.60% on the PU dataset and 98.58% on the CWRU dataset. This method verifies the feasibility of highly reliable diagnosis under few-shot conditions and provides an effective solution for the intelligent operation and maintenance of industrial equipment.
Artificial intelligence technology holds significant importance for building intelligent question-answering systems in the field of coal mine safety and enhancing safety management levels. Currently, there is a lack of specialized large language models and high-quality question-answering datasets in this field. To address this, this study proposes a two-stage fine-tuning method based on Low-Rank Adaptation (LoRA) and Group Sequence Policy Optimization (GSPO) for training a question-answering model tailored to the coal mine safety domain. The research begins by constructing a dedicated question-answering dataset based on domain-specific regulatory documents. Subsequently, using Qwen2.5-7B Instruct as the base model, the study fine-tunes the model through supervised learning with LoRA technology, followed by further optimization of the model’s performance using the GSPO reinforcement learning algorithm. Experiments show that the model trained with this method exhibits significant improvements in coal mine safety-related tasks, achieving superior results on multiple automated evaluation metrics compared to contrast models of similar scale. This study validates the effectiveness of the two-stage fine-tuning method in adapting large language models (LLMs) to specific domains, providing a new technical approach for the intelligentization of coal mine safety. It should be noted that due to the lack of external data, this study relies on a self-constructed dataset and has not yet undergone external independent validation, which constitutes the main limitation of the current work.