基于Qwen3.5-Plus的柴油机智能故障诊断框架

Intelligent fault diagnosis framework for diesel engines based on Qwen3.5-Plus

  • 摘要: 【目的】针对传统船用柴油机故障诊断中存在的领域知识门槛高、算法开发周期长、数据隐私等问题,本文提出一种基于大语言模型(LLM)的船用柴油机智能故障诊断框架。【方法】以Qwen3.5-Plus为核心,构建结构化提示词构建—诊断任务代码生成—闭环迭代优化三阶段框架。通过角色锚定、情境感知等模块组织船用柴油机诊断任务提示词,并借助大模型将诊断需求自动映射为可执行的Python代码;进一步结合代码纠错反馈通道与性能优化反馈通道,实现诊断代码的修正与优化。【结果】实验基于8V396柴油机滑油系统开展,最终生成305行诊断代码,有效代码率为67.54%,平均圈复杂度为2.56,领域组件覆盖率达到100%,闭环优化后,模型收敛稳定性与分类性能进一步提升,误判现象明显减少。【结论】该方法有效打通了“知识—任务—代码—优化”的诊断链路,能够降低开发门槛、提升代码质量与诊断自动化水平,为船用柴油机故障诊断提供了一种安全、高效且可迭代的新路径。

     

    Abstract: Objectives To address the challenges in traditional fault diagnosis of marine diesel engines, such as high domain knowledge barriers, long algorithm development cycles, and data privacy concerns, this paper proposes an intelligent fault diagnosis framework for marine diesel engines based on large language models (LLMs). Methods Using Qwen3.5-Plus as the core model, a three-stage framework is constructed: structured prompt construction, diagnostic task code generation, and closed-loop iterative optimization. Through modules such as role anchoring and context sensing, the framework organizes diagnostic task prompts for marine diesel engines and leverages the large language model to automatically map diagnostic requirements into executable Python code. Furthermore, by incorporating a code error feedback channel and a performance optimization feedback channel, the diagnostic code is corrected and improved. Results Experiments are conducted on the lubrication oil system of an 8V396 diesel engine, generating a total of 305 lines of diagnostic code. The effective code rate reaches 67.54%, the average cyclomatic complexity is 2.56, and the domain component coverage achieves 100%. After closed-loop optimization, model convergence stability and classification performance are further enhanced, with a significant reduction in misjudgment. Conclusions The proposed method effectively establishes a diagnostic pipeline from knowledge to task, to code, and to optimization. It lowers the development barrier, improves code quality and diagnostic automation, offering a secure, efficient, and iterative new pathway for marine diesel engine fault diagnosis.

     

/

返回文章
返回