面向注塑缺陷诊断的知识增强型大语言模型智能系统

    A Knowledge-enhanced Large Language Model Intelligent System for Injection-molding Defect Diagnosis

    • 摘要: 注塑成型作为现代制造业的核心工艺之一,其制品质量受到熔体温度、保压时间等数十个工艺参数的综合影响,生产过程易发生飞边、短射和银纹等常见缺陷。然而,当前行业对注塑故障诊断高度依赖工程师的经验积累和专业文档的人工查询,这种方法不仅效率低下,而且专业技巧难以得到沉淀和传承。为解决这一痛点,本文融合大语言模型与检索增强生成(Retrieval-augmented Generation, RAG) 技术,面向注塑工艺领域构建了一个高效、可靠的注塑工艺缺陷智能诊断方法问答系统。首先,收集了多源领域语料构建高质量指令数据集,并采用低秩自适应(Low-rank Adaptation, LoRA) 参数高效微调Qwen3-8B模型,实现了模型对注塑专业知识的领域自适应。同时,本文对检索系统的关键模块进行了深度增强与定制,针对注塑领域常见的复杂文档,将解析策略改造为“布局优先结合区域字符识别”,显著提升了工业文档的解析准确性与检索引用质量。其次,系统引入了文本分类器作为检索的前置模块,智能识别用户提问领域,仅对专业问题触发知识库检索,有效提升了系统的响应效率。同时,系统新增了独立的知识图谱检索路线,实现了多源知识的融合召回。最后,通过忠实度、答案准确性、上下文召回率、面向召回的摘要评估指标(Recall-oriented Understudy for Gisting Evaluation, ROUGE) 和基于BERT的语义相似度评分(BERTScore) 等多维度指标对系统进行了详细的评估,实验结果验证了本文所提的“微调模型结合增强检索”完整系统在所有指标上均显著优于传统检索增强生成系统及其他对照组。本系统可为注塑缺陷诊断提供了高效且可靠的智能化解决方案,具备显著的实用价值和广阔的工业应用前景。

       

      Abstract: As one of the core processes in modern manufacturing, injection molding quality is critically dependent on dozens of process parameters, such as melt temperature and packing time. Common defects like flash, short shots, and silver streaks frequently arise during production. However, current industrial fault diagnosis heavily relies on the experiential knowledge of engineers and manual consultation of technical documentation. This approach is not only inefficient but also hinders the accumulation and transfer of specialized expertise. To address this issue, this paper integrates large language models and retrieval-augmented generation (RAG) technology to establish an efficient and reliable intelligent question-answering system for injection molding defect diagnosis for the first time. First, multi-source domain-specific corpora were collected to construct a high-quality instruction dataset, and the Qwen3-8B model was fine-tuned using low-rank adaptation (LoRA) for parameter efficiency, achieving domain adaptation for injection molding knowledge. Simultaneously, key modules were deeply enhanced and customized. To address the prevalence of complex documents in this field, the parsing strategy was transformed into a "layout-priority combined with regional optical character recognition" approach, significantly improving parsing accuracy and retrieval citation quality of industrial documents. Second, a text classifier was introduced as a pre-retrieval module to identify whether user queries pertain to the injection molding domain, thereby activating knowledge base retrieval only for professional inquiries and effectively boosting system response efficiency. Furthermore, an independent knowledge graph retrieval route was incorporated to achieve fused multi-source knowledge recall. Finally, the system was evaluated in detail using multi-dimensional metrics, including faithfulness, answer accuracy, context recall, recall-oriented understudy for gisting evaluation (ROUGE) , and BERTScore. Experimental results confirm that the proposed "fine-tuned model + enhanced retrieval" integrated system significantly outperforms traditional RAG systems and other baseline models across all evaluated metrics. This system offers an efficient and reliable intelligent solution for injection molding defect diagnosis, demonstrating substantial practical value and broad potential for industrial application.

       

    /

    返回文章
    返回