NLP-based Method and System for Tracing the Root Cause of Abnormalities in Wheat Germ Production
Through the NLP-based method, the wheat germ production data is subjected to semantic analysis and feature fusion, and combined with the abnormal root cause analysis of multi-layer perception network models, accurate traceability and optimization of production anomalies are achieved, and the shortcomings of data integration and deep mining in the existing technology are solved, and production efficiency and product quality are improved.
Patent Information
- Application Number
- CN202510533924.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-27
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2045-04-27
AI Technical Summary
The existing wheat germ production abnormal diagnosis and root traceability technology lacks effective integration and deep mining of multi-source heterogeneous data, and cannot accurately analyze the semantics of production processes and extract their deep features, making it difficult to capture the dynamic fluctuation characteristics of environmental factors and their potential impact on the production process.
Using an NLP-based method, multiple batches of wheat germ production record data were obtained, including production process text data, environmental monitoring timing data and raw material quality index data. Through semantic feature analysis, dynamic fluctuation feature extraction and cross-modal feature fusion, a fusion production feature set is generated. Then, the pre-trained multi-layer perceptual network model is called for the exception root cause weight allocation, and an exception correlation score set is generated. Based on this, joint root cause traceability processing is carried out to generate abnormal root cause traceability results, and dynamic optimization strategy for production line parameters is generated based on the results.
It significantly improves the accuracy and efficiency of traceability of production abnormal root causes, and can accurately map from data correlation to actual production links and raw material defect types, forming a closed-loop control mechanism, effectively solving the current production abnormal problems and preventing potential risks.
Smart Images

Figure CN120067601B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence technology. Specifically, it relates to a method and system for tracing the root cause of abnormal wheat germ production based on NLP. Background Art
[0002] In the field of wheat germ production, the existing production anomaly diagnosis and root cause tracing technologies face many challenges, seriously restricting the improvement of production efficiency and product quality. Currently, the production anomaly analysis methods commonly used in the industry mainly rely on single data sources or simple data statistical analysis, lacking effective integration and in-depth mining of multi-source heterogeneous data. Specifically, when processing production process text data, most of the existing technologies only perform keyword matching or simple text classification, unable to accurately parse the process semantics and extract its deep features, resulting in a superficial understanding of the production process. At the same time, for environmental monitoring time series data, the existing methods usually only perform basic statistical descriptions or trend analysis, making it difficult to capture the dynamic fluctuation characteristics of environmental factors and their potential impact on the production process. Summary of the Invention
[0003] In view of the above-mentioned problems, in combination with the first aspect of this application, embodiments of this application provide a method for tracing the root cause of abnormal wheat germ production based on NLP. The method includes:
[0004] Obtain a multi-batch wheat germ production record data set corresponding to the target production line, where the production record data set includes production process text data, environmental monitoring time series data, and raw material quality index data for each production batch;
[0005] Perform semantic feature parsing processing on the production process text data to obtain process semantic feature vectors, perform dynamic fluctuation feature extraction processing on the environmental monitoring time series data to obtain environmental fluctuation feature vectors, and perform cross-modal feature fusion processing on the process semantic feature vectors and the environmental fluctuation feature vectors to generate a fused production feature set;
[0006] Call a pre-trained multi-layer perceptron network model to perform abnormal root cause weight distribution processing on the fused production feature set to generate an abnormal correlation score set corresponding to the production batch, where the abnormal correlation score set includes the abnormal correlation distribution between the raw material quality index data and each production process;
[0007] Perform joint root cause tracing processing on the raw material quality index data and the production process text data based on the abnormal correlation distribution to generate an abnormal root cause tracing result for the production batch, where the abnormal root cause tracing result is used to indicate the production link and raw material defect type of the abnormal source;
[0008] Generate a dynamic optimization strategy for production line parameters based on the abnormal root cause tracing result, and feedback the dynamic optimization strategy to the production control system to trigger parameter calibration operations.
[0009] In another aspect, an embodiment of the present application further provides a production service system, including a processor and a machine-readable storage medium. The machine-readable storage medium is connected to the processor. The machine-readable storage medium is used to store programs, instructions or codes, and the processor is used to run the programs, instructions or codes in the machine-readable storage medium to implement the above method.
[0010] Based on the above aspects, the embodiment of the present application deeply integrates the semantic parsing of production process text data, the dynamic feature extraction of environmental monitoring time series data, and the quantitative analysis of raw material quality index data. Through cross-modal feature fusion processing, a set of fusion production features that comprehensively reflect the internal relationships of the production process is generated. On this basis, the pre-trained multi-layer perceptron network model not only reveals the complex interaction mechanism between raw material quality indicators and each production process through accurate abnormal root cause weight allocation, but also quantifies the contribution degree of each factor to production anomalies. Further, based on the joint root cause tracing process of abnormal correlation distribution, the accurate mapping from data association to actual production links and raw material defect types is realized, significantly improving the accuracy and efficiency of root cause tracing. Finally, by generating a dynamic optimization strategy for production line parameters and feeding it back to the production control system, a closed-loop control mechanism is formed, which can not only effectively solve the current production anomaly problem, but also prevent potential risks. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a schematic execution flowchart of the method for tracing the root cause of production anomalies in wheat germ production based on NLP provided by an embodiment of the present application.
[0012] Figure 2 is a schematic hardware architecture diagram of the production service system provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0013] The present application will be specifically described below with reference to the accompanying drawings of the specification. Figure 1 is a schematic flowchart of the method for tracing the root cause of production anomalies in wheat germ production based on NLP provided by an embodiment of the present application. The method for tracing the root cause of production anomalies in wheat germ production based on NLP will be introduced in detail below.
[0014] Step S110, obtain a set of production record data corresponding to the target production line for multiple batches of wheat germ production. The production record data set includes production process text data, environmental monitoring time series data, and raw material quality index data for each production batch.
[0015] For example, in a wheat germ production factory, there is a target production line for producing wheat germ. To comprehensively monitor and optimize the production process, it is necessary to obtain the multi-batch production record data set corresponding to this production line.
[0016] Each production batch has detailed production process text data records. For example, in a certain batch, the production process text data details multiple steps starting from the screening of raw wheat, followed by cleaning, crushing, separation, drying, etc. In the screening step, it is recorded that "a vibrating screen is used to screen the wheat, and the screen aperture is 5 millimeters to remove impurities and stones larger than 5 millimeters"; the cleaning step records "the screened wheat is put into the cleaning pool and rinsed for 15 minutes at a water flow rate of 10 liters per minute", etc., with detailed operation descriptions.
[0017] In terms of environmental monitoring time-series data, the factory has installed multiple sensors in the production workshop to continuously monitor environmental parameters such as temperature, humidity, and air pressure. Taking a day of production as an example, starting production at 8 am, the temperature sensor records data every 10 minutes. For example, the temperature is 22 degrees Celsius at 8 am and 22.5 degrees Celsius at 8:10 am; the humidity sensor also records every 10 minutes, with the humidity being 50% at 8 am and 51% at 8:10 am; the air pressure sensor records at the same frequency, with the air pressure being 101.3 kPa at 8 am and 101.2 kPa at 8:10 am. These data form a time-varying environmental monitoring time-series data sequence.
[0018] The raw material quality index data covers multiple aspects of wheat. For example, the moisture content of wheat is 12%, the protein content is 15%, and the impurity content is 1%, etc. For each batch of raw wheat, comprehensive quality inspections are carried out and these index data are recorded. By collecting these data for multiple batches, a multi-batch wheat germ production record data set corresponding to the target production line is formed.
[0019] Step S120: Perform semantic feature parsing processing on the production process text data to obtain a process semantic feature vector, perform dynamic fluctuation feature extraction processing on the environmental monitoring time-series data to obtain an environmental fluctuation feature vector, and perform cross-modal feature fusion processing on the process semantic feature vector and the environmental fluctuation feature vector to generate a fused production feature set.
[0020] In this embodiment, for the production process text data, the process step segmentation process is first performed. Taking the production process text data of a certain batch mentioned before as an example, it is segmented into multiple process step description text fragments according to different operation steps. For example, "Use a vibrating screen to screen wheat, the screen aperture is 5 mm, to remove impurities and stones larger than 5 mm" becomes an independent fragment, and "Put the screened wheat into the cleaning pool and rinse it for 15 minutes at a water flow rate of 10 liters per minute" also becomes a fragment, etc.
[0021] Next, call the pre-trained language representation model to perform context semantic encoding processing on each process step description text fragment. For example, for the fragment "Use a vibrating screen to screen wheat, the screen aperture is 5 mm, to remove impurities and stones larger than 5 mm", the language representation model can analyze the meaning of each word in the entire text context and encode it into an initial semantic feature vector. Suppose the initial semantic feature vector is represented by a set of numbers as [0.2, 0.3, …, 0.5], which contains the semantic information of this process step description.
[0022] Then, perform process domain feature enhancement processing. For example, match the set of domain entities associated with the current process step description text fragment from the preset wheat germ production knowledge base. For the screening process, the set of domain entities matched in the knowledge base may include "vibrating screen", "screen specification", "impurity type", etc. Input these sets of domain entities into the language representation model for entity semantic encoding processing to generate a set of entity feature vectors. For example, "vibrating screen" is encoded into the vector [0.1, 0.4, …, 0.6], "screen specification" is encoded into the vector [0.3, 0.5, …, 0.7], etc. Perform attention mechanism weighted fusion on this set of entity feature vectors and the initial semantic feature vector. For example, according to the attention mechanism, the weights of entities such as "vibrating screen", "screen specification", and "impurity type" are calculated as 0.4, 0.3, and 0.3 respectively, and an enhanced semantic feature vector is generated through weighted calculation.
[0023] Finally, perform temporal position encoding splicing processing on the enhanced semantic feature vectors of each process step description text fragment to generate a process semantic feature vector. Suppose that after the above processing, enhanced semantic feature vectors of 5 process steps are obtained, namely vector A, vector B, vector C, vector D, and vector E. According to the chronological order of the production process, splice them together in sequence to form a complete process semantic feature vector.
[0024] For time-series environmental monitoring data, anomaly fluctuation range detection and processing are first performed. By analyzing the temperature, humidity, and air pressure monitoring data over a period of time, the anomaly fluctuation time windows are identified. For example, during a continuous week of production, it is found that between 2 pm and 4 pm on a certain day, the temperature rapidly rises from the normal 22 degrees Celsius to 28 degrees Celsius, the humidity also drops from 50% to 40%, and the air pressure fluctuates from 101.3 kPa to 101.8 kPa. This time period is identified as an anomaly fluctuation time window.
[0025] Multi-scale sliding window sampling processing is performed on the original monitoring data within this anomaly fluctuation time window. For example, with a 10-minute small window, starting from 2 pm, multiple local time-series data segments such as from 2 pm to 2:10 pm, from 2:10 pm to 2:20 pm, etc. are sequentially collected. Each segment contains the change data of temperature, humidity, and air pressure within these 10 minutes.
[0026] The pre-trained time-series convolutional network model is called to perform local fluctuation feature extraction processing on each local time-series data segment, generating local fluctuation feature vectors. For example, for the local time-series data segment from 2 pm to 2:10 pm, after being processed by the time-series convolutional network model, a local fluctuation feature vector [0.3, 0.4, …, 0.6] is generated, which reflects the fluctuation characteristics of the environmental parameters within this time period.
[0027] Global time-series attention aggregation processing is performed on the local fluctuation feature vectors of each local time-series data segment. First, the similarity scores between each local fluctuation feature vector and a preset global fluctuation pattern template are calculated. Suppose the preset global fluctuation pattern template vector is [0.2, 0.5, …, 0.7]. For a certain local fluctuation feature vector, by calculating the similarity algorithm between them, the similarity score is 0.6. Based on these similarity scores, dynamic weighted summation is performed on each local fluctuation feature vector. For example, there are 5 local fluctuation feature vectors with similarity scores of 0.6, 0.5, 0.7, 0.4, 0.8 respectively. According to these scores, the dynamic weights are calculated, and then these local fluctuation feature vectors are weighted and summed to obtain a weighted fluctuation feature vector. Finally, the weighted fluctuation feature vector and the global fluctuation pattern template are subjected to feature difference processing to generate an environmental fluctuation feature vector.
[0028] Cross-modal feature fusion processing is performed on the process semantic feature vector and the environmental fluctuation feature vector. First, time dimension alignment processing is performed on the process semantic feature vector to map it to the same time granularity as the environmental fluctuation feature vector. For example, the environmental fluctuation feature vector is in a 10-minute time granularity, and the process semantic feature vector was originally in units of each process step. Through appropriate interpolation or aggregation operations, the process semantic feature vector is also converted to a 10-minute time granularity.
[0029] Construct a process-environment cross-attention mechanism to calculate the cross-modal correlation matrix between the semantic features of each time step in the process semantic feature vector and the fluctuation features of the corresponding time step in the environmental fluctuation feature vector. For example, within a certain 10-minute time step, the process semantic feature vector represents the relevant semantics of the cleaning process, and the environmental fluctuation feature vector represents the temperature, humidity, and air pressure fluctuations during this period. By calculating the correlation values between them, a correlation matrix is formed.
[0030] Based on this cross-modal correlation matrix, perform two-way feature interaction processing on the process semantic feature vector and the environmental fluctuation feature vector to generate an interaction semantic feature vector and an interaction fluctuation feature vector. For example, according to the correlation matrix, transfer some information in the process semantic feature vector that is strongly correlated with the environmental fluctuation features to the environmental fluctuation feature vector, and at the same time transfer relevant information in the environmental fluctuation feature vector to the process semantic feature vector, thereby generating new interaction semantic feature vectors and interaction fluctuation feature vectors.
[0031] Finally, perform gated mechanism fusion processing on the interaction semantic feature vector and the interaction fluctuation feature vector. First, calculate the feature complementarity score between the interaction semantic feature vector and the interaction fluctuation feature vector. For example, through a certain calculation method, the feature complementarity score between them is obtained as 0.7. Based on this score, generate a dynamic fusion weight vector. Assume that according to the score, the weight of the interaction semantic feature vector is calculated as 0.4, and the weight of the interaction fluctuation feature vector is 0.6. Use this dynamic fusion weight vector to perform weighted splicing on the interaction semantic feature vector and the interaction fluctuation feature vector to generate a fused production feature set.
[0032] Step S130: Invoke a pre-trained multi-layer perceptron network model to perform abnormal root cause weight allocation processing on the fused production feature set, and generate an abnormal correlation score set corresponding to the production batch, where the abnormal correlation score set includes the abnormal correlation distribution between the raw material quality index data and each production process.
[0033] In this embodiment, the fused production feature set can be input into the sparse feature screening layer of the multi-layer perceptron network model for redundant feature filtering processing. The fused production feature set contains feature information after fusing multiple aspects such as processes and environments. For example, it has 100 feature dimensions. The sparse feature screening layer will analyze the correlation and redundancy between these features. For example, it is found that among two feature dimensions, one is the operation speed of a certain process at a specific time, and the other is the operation force of the same process at a similar time. After analysis, the correlation between them is as high as 0.9. Then, one of the more representative features will be retained, and the redundant feature will be removed. After this processing, a key production feature set after screening is obtained. Assume that it is reduced from the original 100 feature dimensions to 60.
[0034] Call the cross - feature generation layer of the multi - layer perceptron network model to perform high - order feature combination processing on the key production feature set. For example, for the 60 key production features after screening, the cross - feature generation layer combines different features. For instance, it combines feature A (operation time of a certain process) and feature B (ambient temperature) to form a new high - order feature, "the associated feature of the operation time of a certain process and the ambient temperature". Through such a combination method, a cross - production feature matrix is generated. Assuming the size of the cross - production feature matrix is 60×60, each element represents a different high - order feature combination.
[0035] Call the attention - allocation layer of the multi - layer perceptron network model to perform abnormal sensitivity weight calculation processing on the cross - production feature matrix. The attention - allocation layer analyzes the sensitivity of each high - order feature combination to abnormal situations based on historical data and model training. For example, after analysis, it is found that "the associated feature of the operation time of a certain process and the ambient temperature" often shows large changes in previous abnormal production situations. Then, a relatively high abnormal sensitivity weight, such as 0.8, is assigned to this cross - production feature. For some feature combinations that do not change significantly in abnormal situations, a lower weight, such as 0.2, is assigned. In this way, the abnormal sensitivity distribution of each production feature dimension is generated.
[0036] Perform feature - weighted aggregation processing on the cross - production feature matrix based on the abnormal sensitivity distribution. For example, for each row or column in the cross - production feature matrix, weighted summation is performed according to the corresponding abnormal sensitivity weights. Assume that a row has 60 elements (representing different high - order feature combinations), and the corresponding abnormal sensitivity weights are 0.2, 0.3, …, 0.8, etc. Through weighted calculation, the elements in this row are aggregated into a value, and finally an abnormal correlation score set is generated. In this abnormal correlation score set, each abnormal correlation score corresponds to the correlation strength between the raw material quality index and a specific production process. For example, a relatively high - scoring item may indicate a strong abnormal correlation between the moisture content of raw material wheat and the drying process.
[0037] Step S140, perform joint root - cause tracing processing on the raw material quality index data and the production process text data based on the abnormal correlation distribution, and generate the abnormal root - cause tracing result of the production batch. The abnormal root - cause tracing result is used to indicate the production link where the abnormality source is located and the type of raw material defect.
[0038] In this embodiment, abnormal correlation items exceeding a preset threshold can be screened out according to the abnormal correlation degree distribution to generate a candidate root cause feature set. For example, the preset threshold is 0.6. In the abnormal correlation degree scoring set, it is found that 10 scoring items exceed 0.6. One item indicates that the abnormal correlation degree between the protein content of raw wheat and the crushing process is 0.7, and another item indicates that the abnormal correlation degree between the environmental humidity and the separation process is 0.8, etc. These items exceeding the threshold constitute the candidate root cause feature set.
[0039] Perform reverse semantic parsing processing on each abnormal correlation item in the candidate root cause feature set to determine its corresponding raw material quality defect description and production process abnormality description. For the item "the abnormal correlation degree between the protein content of raw wheat and the crushing process is 0.7", through reverse semantic parsing, it is found that the protein content of raw wheat may be too low, resulting in uneven particles in the crushing process; for the item "the abnormal correlation degree between the environmental humidity and the separation process is 0.8", descriptions such as too high environmental humidity, reducing the efficiency of the separation process and poor separation effect are parsed.
[0040] Call the pre-trained root cause inference model to perform joint causal inference processing on the raw material quality defect description and the production process abnormality description. Input the raw material quality defect description into the raw material defect encoder of the root cause inference model for defect type encoding processing. For example, for "the protein content of raw wheat is too low", a defect type feature vector [0.3, 0.5,..., 0.7] is encoded, which represents the characteristics of this raw material quality defect. Input the production process abnormality description into the process abnormality encoder of the root cause inference model for abnormal mode encoding processing. For example, for "uneven particles in the crushing process", an abnormal mode feature vector [0.4, 0.6,..., 0.8] is encoded.
[0041] Construct a defect-abnormality causal graph network, and input the defect type feature vector and the abnormal mode feature vector as node features into the causal graph network for multi-hop causal inference processing. In the causal graph network, multi-hop inference is performed by analyzing the connection relationships and weights between different nodes. For example, starting from the node of too low protein content of raw wheat, through the connection relationships in the network, it is found that it may affect the subsequent grinding process, and further affect the extraction quality of wheat germ. Output the causal association path between the defect type feature vector and each abnormal mode feature vector through the path generation layer of the causal graph network to generate a root cause inference path set.
[0042] The confidence evaluation process is performed on the root cause reasoning path set, and the top k reasoning paths with the highest confidence are selected as the abnormal root cause tracing results. For example, there are 20 reasoning paths in the root cause reasoning path set. The confidence of each path is calculated through a certain confidence evaluation algorithm. Assume that the top three reasoning paths with the highest confidence are: the first path indicates that the protein content of the raw wheat is too low, resulting in uneven particles in the crushing process, which in turn affects the subsequent processes; the second path indicates that the environmental humidity is too high, which affects the efficiency of the separation process and causes the product purity to decrease; the third path indicates that the impurity content of the raw material is too high, which is not completely removed in the screening process, affecting the subsequent processing quality. These first three reasoning paths are used as the abnormal root cause tracing results to indicate the production links and raw material defect types of the abnormal source.
[0043] Step S150, generating a dynamic optimization strategy for production line parameters according to the abnormal root cause tracing result, and feeding back the dynamic optimization strategy to the production control system to trigger a parameter calibration operation.
[0044] In this embodiment, the abnormal source production links and raw material defect types in the abnormal root cause tracing results can be analyzed. For example, from the above abnormal root cause tracing results, it is clear that the abnormal source production links include crushing process, separation process, screening process, etc., and the raw material defect types include too low protein content, too high humidity, too high impurity content, etc.
[0045] Match the set of historical parameter adjustment records associated with the production link of the abnormal source from the historical optimization strategy library. The historical optimization strategy library stores the parameter adjustment records for different production links and problems in the past. For the crushing process, some historical records were found, such as adjusting the speed of the crushing equipment from 1000 rpm to 1200 rpm to improve the uniformity of particles; for the separation process, there are records of extending the separation time from 30 minutes to 40 minutes to improve the separation effect; for the screening process, there are records of changing the mesh aperture from 5 mm to 4 mm to better remove impurities, etc.
[0046] The effectiveness filtering of the historical parameter adjustment record set is performed based on the raw material defect type. For example, when the raw material protein content is too low, the historical records of the adjustment of the raw material moisture content are filtered out. After filtering, a set of effective adjustment strategies is obtained. Assume that for the case of too low protein content, the strategies of adjusting the speed of the crushing equipment and adjusting the raw material ratio are retained; for the case of too high humidity, the strategies of increasing the power of the dehumidification equipment and adjusting the temperature of the separation process are retained; for the case of too high impurity content, the strategies of changing the mesh aperture and increasing the screening process time are retained, etc.
[0047] Perform multi-objective optimization on the set of effective adjustment strategies to generate dynamic optimization strategies that meet the current production constraint conditions. First, construct a three-dimensional optimization objective space that includes production efficiency, raw material loss rate, and abnormal recurrence rate. Map each effective adjustment strategy to the corresponding coordinate point in the three-dimensional optimization objective space. For example, for the strategy of "adjusting the rotation speed of the crushing equipment", after evaluation, the production efficiency has increased by 10%, the raw material loss rate has decreased by 5%, and the abnormal recurrence rate is expected to decrease by 30%. Map it to a coordinate point (0.1, -0.05, -0.3) in the three-dimensional space.
[0048] Use the Pareto front analysis algorithm to screen out the set of candidate optimization strategies located on the Pareto optimal front. The Pareto front analysis algorithm will analyze the performance of each strategy on the three objectives and find those strategies that cannot further improve a certain objective without reducing other objectives. For example, after analysis, 5 strategies are located on the Pareto optimal front, namely Strategy A, Strategy B, Strategy C, Strategy D, and Strategy E.
[0049] Call the strategy recommendation model to perform an adaptability scoring process on the set of candidate optimization strategies based on the real-time load status of the current production line. Assume that the real-time load status of the current production line shows that the equipment is running relatively stably, but the raw material supply is slightly tight. The strategy recommendation model can score the 5 candidate strategies according to this status. For example, although Strategy A can significantly improve production efficiency, it has a large demand for raw materials, and its adaptability score is 0.4 under the current tight raw material supply situation; Strategy B has a relatively small demand for raw materials while improving production efficiency, and its adaptability score is 0.7.
[0050] Finally, select the candidate optimization strategy with the highest adaptability score as the dynamic optimization strategy. In the above example, Strategy B has the highest adaptability score, so Strategy B is used as the dynamic optimization strategy and fed back to the production control system to trigger parameter calibration operations. For example, after receiving Strategy B, the production control system will automatically adjust the parameters of relevant equipment, such as adjusting the rotation speed and temperature of the crushing equipment, to achieve the optimized operation of the production line, improve production quality and efficiency, and reduce the probability of raw material loss and abnormal occurrences.
[0051] Based on the above steps, the embodiments of the present application deeply integrate the semantic parsing of production process text data, the dynamic feature extraction of environmental monitoring time-series data, and the quantitative analysis of raw material quality index data. Through cross-modal feature fusion processing, a set of integrated production features that comprehensively reflect the internal relationships of the production process is generated. On this basis, the pre-trained multi-layer perceptron network model not only reveals the complex interaction mechanism between raw material quality indicators and each production process through accurate abnormal root cause weight allocation, but also quantifies the contribution degree of each factor to production anomalies. Further, based on the joint root cause tracing process of the abnormal correlation degree distribution, the accurate mapping from data correlation to actual production links and raw material defect types is realized, significantly improving the accuracy and efficiency of root cause tracing. Finally, by generating a dynamic optimization strategy for production line parameters and feeding it back to the production control system, a closed-loop control mechanism is formed, which can not only effectively solve the current production anomaly problems, but also prevent potential risks.
[0052] In a possible implementation manner, the performing semantic feature parsing processing on the production process text data to obtain a process semantic feature vector includes:
[0053] Step S121, performing process step segmentation processing on the production process text data to obtain multiple process step description text segments.
[0054] Taking a batch of complete production process text data as an example, this production process text data details the entire process from the input of raw material wheat to the output of the final wheat germ product. The entire production process includes large stages such as raw material preparation, pre-treatment, core processing, and post-treatment. In the raw material preparation stage, it can be further divided into process steps such as wheat procurement and acceptance, wheat storage, etc.; the pre-treatment stage can be divided into wheat screening, wheat cleaning, etc.; the core processing stage includes crushing, separation, extraction, etc.; the post-treatment stage includes drying, packaging, etc. Each subdivided process step forms an independent process step description text segment. For example, the process step description text segment of the wheat screening process is "Use a vibrating screen to screen the purchased wheat. The model of the vibrating screen is XYZ-50, the screen aperture is set to 4 mm, and the screening time lasts for 30 minutes. The purpose is to remove large particle impurities such as stones and straws in the wheat."
[0055] Step S122, calling a pre-trained language representation model to perform context semantic encoding processing on each of the process step description text segments to generate an initial semantic feature vector.
[0056] Taking the text fragment describing the steps of the wheat screening process just now as an example, the language representation model will deeply analyze each word and sentence structure in the text. It will understand that the "vibrating screen" is a tool for screening, "XYZ-50" is the specific model of this tool, "4 mm" specifies the key parameter of the sieve mesh, "30 minutes" stipulates the duration of the screening operation, and "removing large particle impurities" elaborates the purpose of the operation. Based on the understanding of the entire text context, these semantic information are encoded into an initial semantic feature vector. This initial semantic feature vector can be understood as an information packet containing various semantic information. For example, a certain dimension represents tool-related information, and a certain dimension represents operation duration information, etc. Suppose the generated initial semantic feature vector is [0.1, 0.3, 0.4, 0.2, 0.5, 0.1, 0.3], and each value represents the feature intensity of different semantic dimensions.
[0057] Step S123, perform process domain feature enhancement processing on the initial semantic feature vector to obtain an enhanced semantic feature vector. The process domain feature enhancement processing includes the following steps: Match the set of domain entities associated with the current process step description text fragment from the preset wheat germ production knowledge base. Input the set of domain entities into the language representation model for entity semantic encoding processing to generate a set of entity feature vectors. Perform attention mechanism weighted fusion on the set of entity feature vectors and the initial semantic feature vector to generate the enhanced semantic feature vector.
[0058] In this embodiment, the preset wheat germ production knowledge base stores a large amount of professional knowledge related to wheat germ production. After matching, the obtained set of domain entities includes "the working principle of the vibrating screen", "the influence of different sieve mesh apertures on the screening effect", "common impurity types and removal methods", etc. Input these sets of domain entities into the language representation model for entity semantic encoding processing. For example, "the working principle of the vibrating screen" is encoded into an entity feature vector [0.2, 0.4, 0.3, 0.1, 0.5], "the influence of different sieve mesh apertures on the screening effect" is encoded as [0.3, 0.5, 0.2, 0.4, 0.1], and "common impurity types and removal methods" is encoded as [0.4, 0.3, 0.2, 0.5, 0.1]. These vectors constitute the set of entity feature vectors.
[0059] The attention mechanism assigns weights according to the relevance of each entity to the current process step description. For example, after analysis and calculation, the weight of "the working principle of the vibrating screen" is 0.3, the weight of "the influence of different screen apertures on the screening effect" is 0.4, and the weight of "common impurity types and removal methods" is 0.3. Then, according to the weighted calculation rule, the initial semantic feature vector is fused with these entity feature vectors. Taking the first dimension as an example, calculate the value of the first dimension of the enhanced semantic feature vector: the value of the first dimension of the initial semantic feature vector is 0.1, the value of the first dimension of the entity feature vector of "the working principle of the vibrating screen" is 0.2, the value of the first dimension of the entity feature vector of "the influence of different screen apertures on the screening effect" is 0.3, the value of the first dimension of the entity feature vector of "common impurity types and removal methods" is 0.4, and the fused value of the first dimension is 0.1×0.3 + 0.2×0.4 + 0.3×0.3 = 0.2. By analogy, calculate each dimension, and finally generate the enhanced semantic feature vector.
[0060] Step S124, perform a temporal position encoding splicing process on the enhanced semantic feature vectors of the text segments of each process step description to generate the process semantic feature vector.
[0061] For example, according to the sequence of production processes, such as first performing wheat screening, then wheat cleaning, and then crushing, etc. Assume that the enhanced semantic feature vector of the wheat screening process is vector A, the one of the wheat cleaning process is vector B, the one of the crushing process is vector C, etc. Splice these vectors in sequence according to the temporal position. For example, first arrange all the dimension values of vector A in the front, then arrange all the dimension values of vector B, and then arrange all the dimension values of vector C. Finally, generate the process semantic feature vector.
[0062] In a possible implementation manner, the performing dynamic fluctuation feature extraction processing on the environmental monitoring time series data to obtain an environmental fluctuation feature vector includes:
[0063] Step S125, perform an abnormal fluctuation interval detection process on the environmental monitoring time series data to identify the abnormal fluctuation time windows in the temperature, humidity, and air pressure monitoring data.
[0064] In this embodiment, sensors installed in the production workshop continuously collect temperature, humidity, and air pressure monitoring data. The above data is recorded at regular time intervals, for example, once per minute. By analyzing the data over a period of time, such as analyzing the temperature data for a week, it is found that between 10 am and 11 am on a certain day, the temperature rapidly rises from the normal 23 degrees Celsius to 28 degrees Celsius, and then rapidly drops to 22 degrees Celsius between 11 am and 12 pm. This time period is identified as an abnormal fluctuation time window in the temperature monitoring data; at the same time, within this time period, the humidity drops from 55% to 45%, and the air pressure fluctuates from 101.2 kPa to 101.8 kPa, which also constitutes an abnormal fluctuation time window for humidity and air pressure monitoring data.
[0065] Step S126, perform multi-scale sliding window sampling processing on the original monitoring data within the abnormal fluctuation time window to obtain multiple local time series data segments.
[0066] For example, taking the temperature data as an example, set the small-scale sliding window to 5 minutes, the medium-scale sliding window to 10 minutes, and the large-scale sliding window to 15 minutes. Starting from 10 am, the small-scale sliding window collects the temperature data from 10 am to 10:05 am as a local time series data segment, and then collects the data from 10:05 am to 10:10 am as the next segment; the medium-scale sliding window collects the temperature data from 10 am to 10:10 am as a local time series data segment, and then collects the data from 10:10 am to 10:20 am as the next segment; the large-scale sliding window collects the temperature data from 10 am to 10:15 am as a local time series data segment, and then collects the data from 10:15 am to 10:30 am as the next segment. The same multi-scale sliding window sampling processing is also performed on the humidity and air pressure data, so as to obtain multiple local time series data segments.
[0067] Step S127, call the pre-trained temporal convolutional network model to perform local fluctuation feature extraction processing on each local time series data segment to generate local fluctuation feature vectors.
[0068] Taking a 5-minute local time series data segment of temperature as an example, this segment records the temperature values per minute from 10:00 to 10:05, which are 23 degrees Celsius, 24 degrees Celsius, 25 degrees Celsius, 26 degrees Celsius, and 27 degrees Celsius respectively. The temporal convolutional network model will analyze features such as the change trend and change amplitude of these data. For example, the temperature difference between adjacent time points can be calculated. The temperature increased by 1 degree Celsius from 10:00 to 10:01, and by 1 degree Celsius from 10:01 to 10:02, etc. Through a series of convolutional calculations and feature extraction operations, a local fluctuation feature vector is generated. Suppose the generated local fluctuation feature vector is [0.3, 0.4, 0.5, 0.2, 0.1], and this local fluctuation feature vector reflects the fluctuation characteristics of the temperature data within these 5 minutes. Such processing is performed on all local time series data segments, including temperature, humidity, and air pressure data segments collected by different-scale sliding windows, to generate their respective local fluctuation feature vectors.
[0069] Step S128, perform global temporal attention aggregation processing on the local fluctuation feature vectors of each of the local time series data segments to generate the environmental fluctuation feature vector, where the global temporal attention aggregation processing includes:
[0070] Step S1281, calculate the similarity score between each local fluctuation feature vector and a preset global fluctuation pattern template.
[0071] In this embodiment, the preset global fluctuation pattern template is determined based on a large amount of historical environmental data and experience, and represents normal and common environmental fluctuation patterns. Taking a local temperature fluctuation feature vector as an example, suppose the global fluctuation pattern template vector is [0.2, 0.5, 0.4, 0.3, 0.1]. When calculating the similarity score, a certain similarity calculation method is adopted, such as calculating the reciprocal of the sum of the squared differences of the corresponding dimension values of the two vectors. For the first dimension, the difference is 0.3 - 0.2 = 0.1, and the square is 0.01; for the second dimension, the difference is 0.4 - 0.5 = -0.1, and the square is 0.01; for the third dimension, the difference is 0.5 - 0.4 = 0.1, and the square is 0.01; for the fourth dimension, the difference is 0.2 - 0.3 = -0.1, and the square is 0.01; for the fifth dimension, the difference is 0.1 - 0.1 = 0, and the square is 0. The sum of the squared differences is 0.01 + 0.01 + 0.01 + 0.01 + 0 = 0.04, and the reciprocal is 25, that is, the similarity score between this local fluctuation feature vector and the global fluctuation pattern template is 25. Such similarity score calculations are performed on all local fluctuation feature vectors.
[0072] Step S1282, perform dynamic weighted summation on each local fluctuation feature vector based on the similarity score to obtain a weighted fluctuation feature vector.
[0073] Suppose that through similarity score calculation, the similarity scores of 10 local fluctuation feature vectors are 20, 30, 25, 15, 22, 28, 35, 18, 24, and 26 respectively. Calculate the dynamic weights based on these scores. The weight calculation method can be dividing each score by the sum of all scores. The sum of all scores is 20 + 30 + 25 + 15 + 22 + 28 + 35 + 18 + 24 + 26 = 243. The weight of the first local fluctuation feature vector is 20÷243≈0.082, the second weight is 30÷243≈0.123, and so on. Then, perform weighted summation on each local fluctuation feature vector according to the weights. Taking the first dimension as an example, assume that the first dimension values of 10 local fluctuation feature vectors are 0.1, 0.2, 0.3, 0.1, 0.2, 0.3, 0.4, 0.1, 0.2, 0.3 respectively. The weighted sum is 0.1×0.082 + 0.2×0.123 + 0.3×0.103 + 0.1×0.062 + 0.2×0.090 + 0.3×0.115 + 0.4×0.144 + 0.1×0.074 + 0.2×0.099 + 0.3×0.107≈0.23. Perform such calculations for each dimension to obtain the weighted fluctuation feature vector.
[0074] Step S1283: Perform feature difference processing on the weighted fluctuation feature vector and the global fluctuation pattern template to generate the environmental fluctuation feature vector.
[0075] In this embodiment, still taking the first dimension as an example, the first dimension value of the weighted fluctuation feature vector is 0.23, and the first dimension value of the global fluctuation pattern template is 0.2. The difference is 0.23 - 0.2 = 0.03. Calculate such differences for each dimension, and finally generate the environmental fluctuation feature vector. This vector comprehensively reflects the fluctuation characteristics of environmental monitoring data within the abnormal fluctuation time window and provides key information for subsequent production analysis and optimization.
[0076] In a possible implementation manner, the cross-modal feature fusion processing of the process semantic feature vector and the environmental fluctuation feature vector to generate the fused production feature set includes:
[0077] Step S129: Perform time dimension alignment processing on the process semantic feature vector to map it to the same time granularity as the environmental fluctuation feature vector.
[0078] In this embodiment, the process semantic feature vector is generated through a series of processes based on production process text data, while the environmental fluctuation feature vector is extracted from environmental monitoring time-series data. In this factory, the process semantic feature vector is based on each production process step, with a relatively coarse time granularity, while the environmental fluctuation feature vector is based on data collected at fixed short time intervals (such as every 10 minutes).
[0079] Taking a certain batch of production as an example, the process semantic feature vector was originally divided according to process steps such as raw material screening, cleaning, and crushing, and the time spans of each process step are different. For example, the raw material screening process lasts for 30 minutes, the cleaning process lasts for 20 minutes, etc. In order to align with the environmental fluctuation feature vector with a time step of every 10 minutes, the raw material screening process is divided according to a time granularity of 10 minutes, and semantic feature representations of 3 time steps are formed within these 30 minutes. By reorganizing and integrating the process operation content and time, each time step of the process semantic feature vector corresponds to the time step of the environmental fluctuation feature vector, completing the alignment in the time dimension.
[0080] Step S1210, construct a process-environment cross-attention mechanism, and calculate the cross-modal correlation matrix between the semantic features of each time step in the process semantic feature vector and the fluctuation features of the corresponding time step in the environmental fluctuation feature vector.
[0081] For example, within a certain 10-minute time step, the process semantic feature vector represents operation semantic information such as equipment rotation speed and pressure in the crushing process, and the environmental fluctuation feature vector represents the fluctuation information of temperature, humidity, and air pressure during this period. Through a specific calculation method, the degree of association between the operation semantics of the crushing process and the fluctuations of environmental factors is measured. When calculating the correlation between the equipment rotation speed and temperature, considering that an increase in temperature may affect the performance of the equipment and thus the crushing effect, the correlation value between them is determined by analyzing historical data and production knowledge. Such calculations are performed for the process semantic features and environmental fluctuation features of each time step, and finally a cross-modal correlation matrix is formed. Each element of this matrix represents the association strength between the process and environmental features at a specific time step.
[0082] Step S1211, perform two-way feature interaction processing on the process semantic feature vector and the environmental fluctuation feature vector based on the cross-modal correlation matrix to generate an interaction semantic feature vector and an interaction fluctuation feature vector.
[0083] Taking the crushing process and the environmental characteristics of the corresponding time steps mentioned above as an example, according to the correlation matrix, part of the information in the process semantic feature vector that is strongly correlated with environmental fluctuations is transmitted to the environmental fluctuation feature vector. For example, if the correlation shows a high correlation between the equipment rotation speed and the temperature, then the relevant semantic information of the equipment rotation speed is incorporated into the part of the environmental fluctuation feature vector related to temperature, so that the environmental fluctuation feature vector can better reflect this correlation. At the same time, the relevant information in the environmental fluctuation feature vector is transmitted to the process semantic feature vector, such as the potential impact information of temperature on the crushing effect is fed back to the process semantic feature vector, making it more comprehensive when representing the crushing process. Through this two-way transmission, an interactive semantic feature vector and an interactive fluctuation feature vector are generated.
[0084] Step S1212, perform a gating mechanism fusion process on the interactive semantic feature vector and the interactive fluctuation feature vector to generate the fused production feature set, where the gating mechanism fusion process includes:
[0085] Step S1212-1, calculate the feature complementarity score between the interactive semantic feature vector and the interactive fluctuation feature vector.
[0086] In this embodiment, by analyzing the information contained in the interactive semantic feature vector and the interactive fluctuation feature vector, for example, the interactive semantic feature vector contains detailed process operation procedures and technical parameter information, and the interactive fluctuation feature vector contains information on the dynamic impact of environmental factors on the production process. Calculate their complementarity in different dimensions. For a dimension, if the interactive semantic feature vector represents the operation intensity of the process in this dimension, and the interactive fluctuation feature vector represents the potential impact of environmental factors on the operation intensity in this dimension, then through a certain calculation method, measure the complementarity of the two in this dimension. Integrate the complementarity of all dimensions to obtain a feature complementarity score. For example, after calculation, the feature complementarity score is 0.7, indicating that they are complementary to a large extent.
[0087] Step S1212-2, generate a dynamic fusion weight vector based on the feature complementarity score.
[0088] In this embodiment, the weights of the interactive semantic feature vector and the interactive fluctuation feature vector in the fusion process are determined according to the feature complementarity score. Assuming a simple calculation method, the weight of the interactive semantic feature vector is the score value divided by 2 plus 0.1, and the weight of the interactive fluctuation feature vector is 1 minus the weight of the interactive semantic feature vector. For a score of 0.7, the weight of the interactive semantic feature vector is 0.7÷2 + 0.1 = 0.45, and the weight of the interactive fluctuation feature vector is 1 - 0.45 = 0.55, thus generating a dynamic fusion weight vector.
[0089] Step S1212-3, use the dynamic fusion weight vector to perform weighted splicing on the interactive semantic feature vector and the interactive fluctuation feature vector to generate the fusion production feature set.
[0090] In this embodiment, the interactive semantic feature vector and the interactive fluctuation feature vector are spliced according to their respective weights. For example, the interactive semantic feature vector is [0.2, 0.3, 0.4, 0.5], the interactive fluctuation feature vector is [0.6, 0.7, 0.8, 0.9], the weight of the interactive semantic feature vector is 0.45, and the weight of the interactive fluctuation feature vector is 0.55. When performing weighted splicing, the value of the first dimension is 0.2×0.45 + 0.6×0.55 = 0.42, the value of the second dimension is 0.3×0.45 + 0.7×0.55 = 0.53, the value of the third dimension is 0.4×0.45 + 0.8×0.55 = 0.62, and the value of the fourth dimension is 0.5×0.45 + 0.9×0.55 = 0.72. Finally, the fusion production feature set [0.42, 0.53, 0.62, 0.72] is obtained, and this fusion production feature set synthesizes the feature information of both the process and the environment.
[0091] In a possible implementation manner, step S130 includes:
[0092] Step S131, input the fusion production feature set into the sparse feature screening layer of the multi-layer perceptron network model for redundant feature filtering processing to obtain the screened key production feature set.
[0093] In this embodiment, the fusion production feature set contains rich information, but there may be some redundant features or features that contribute little to anomaly analysis. For example, in the fusion production feature set, there may be two features related to a certain temperature-related information in the production process. One is the real-time temperature monitored by the environment, and the other is the equivalent temperature based on the equipment feedback. After analysis, it is found that the correlation between them is extremely high and they almost provide the same information. The sparse feature screening layer will identify and remove one of the redundant features. Through the correlation analysis and importance evaluation of all features, the finally screened key production feature set is obtained, and this key production feature set retains the features that are more valuable for anomaly analysis.
[0094] Step S132, call the cross-feature generation layer of the multi-layer perceptron network model to perform high-order feature combination processing on the key production feature set to generate a cross-production feature matrix.
[0095] In this embodiment, for each feature in the filtered set of key production features, such as features including raw material protein content, pressure in the crushing process, environmental humidity, etc., the cross-feature generation layer combines these different features to form high-order features. For example, the raw material protein content and the pressure in the crushing process are combined into a new feature, indicating the influence of the raw material protein content on the pressure in the crushing process; the environmental humidity and the efficiency of the separation process are combined into another feature, indicating the effect of the environmental humidity on the efficiency of the separation process. Through various combination methods, a cross-production feature matrix is generated, and each element in the matrix is a different high-order feature combination.
[0096] Step S133, perform an abnormal sensitivity weight calculation process on the cross-production feature matrix through the attention allocation layer of the multi-layer perceptron network model to generate the abnormal sensitivity distribution of each production feature dimension.
[0097] In this embodiment, the attention allocation layer analyzes the performance of each high-order feature combination in past abnormal production situations based on historical data and model training. For example, in past production records, when the combined feature of the raw material protein content and the pressure in the crushing process appears at a specific value, product quality problems often occur, indicating that this feature combination is more sensitive to abnormal situations. Through the analysis of a large amount of historical data, an abnormal sensitivity weight is assigned to each high-order feature combination. For the combined feature of the raw material protein content and the pressure in the crushing process, a weight of 0.8 may be assigned, indicating a high sensitivity to abnormal situations; while for some feature combinations that do not change significantly in abnormal situations, a weight of 0.2 may be assigned. In this way, the abnormal sensitivity distribution of each production feature dimension is generated.
[0098] Step S134, perform a feature weighted aggregation process on the cross-production feature matrix based on the abnormal sensitivity distribution to generate the abnormal correlation score set, where each abnormal correlation score corresponds to the correlation strength between the raw material quality index and a specific production process.
[0099] For example, in a cross-production feature matrix, a row vector represents multiple high-order feature combinations related to raw material quality indicators and production processes, such as the combination feature of raw material protein content and crushing process pressure, the combination feature of environmental humidity and separation process efficiency, etc. The corresponding abnormal sensitivity weights are 0.8, 0.6, etc. Perform feature weighted aggregation processing on this row vector by multiplying the value of each feature combination by its corresponding weight and then summing them. Suppose the value of the combination feature of raw material protein content and crushing process pressure is 0.5, and the value of the combination feature of environmental humidity and separation process efficiency is 0.4. After weighted aggregation, the value is 0.5×0.8 + 0.4×0.6 = 0.64. Perform such calculations on each row of the cross-production feature matrix, and finally generate a set of abnormal correlation degree scores. Each abnormal correlation degree score in the set of abnormal correlation degree scores corresponds to the correlation strength between the raw material quality indicator and a specific production process. For example, the calculated 0.64 above may indicate a strong abnormal correlation strength between the raw material protein content and the crushing process, providing an important basis for subsequent abnormal root cause tracing and production optimization.
[0100] In a possible implementation manner, step S140 includes:
[0101] Step S141, screening out abnormal correlation degree items that exceed a preset threshold according to the abnormal correlation degree distribution, and generating a candidate root cause feature set.
[0102] During the production process of a certain batch of wheat germ, the abnormal correlation degree distribution has been obtained. The preset threshold is set to 0.6, and the abnormal correlation degree distribution is screened according to this preset threshold. For example, in the set of abnormal correlation degree scores, there is a correlation degree score of 0.7 for the raw material wheat moisture content and the drying process, a correlation degree score of 0.8 for the raw material wheat impurity content and the screening process, and a correlation degree score of 0.65 for the environmental temperature and the separation process, etc. These abnormal correlation degree items that exceed the preset threshold of 0.6 are selected to form a candidate root cause feature set. This candidate root cause feature set contains key factor combinations that may cause production abnormalities, such as the correlation between the raw material wheat moisture content and the drying process, the correlation between the raw material wheat impurity content and the screening process, and the correlation between the environmental temperature and the separation process, etc.
[0103] Step S142, performing reverse semantic parsing processing on each abnormal correlation degree item in the candidate root cause feature set to determine its corresponding raw material quality defect description and production process abnormality description.
[0104] For example, for the item where the correlation between the moisture content of raw wheat and the drying process is 0.7, through in-depth analysis of the production process text data and relevant knowledge, the description of raw material quality defects is determined to be that the moisture content of raw wheat is too high. Because the excessive moisture content exceeds the normal production requirement range, it may affect the drying effect. The description of production process anomalies is that the drying time is too long and the moisture content of the product after drying still does not meet the standard. This is because the high moisture content of the raw material causes the drying equipment to take longer to remove the moisture, but the moisture content of the final product still does not meet the quality standard. For the item where the correlation between the impurity content of raw wheat and the screening process is 0.8, the description of raw material quality defects is parsed as that the impurity content of raw wheat exceeds the standard, and the description of production process anomalies is that the screening process fails to effectively remove impurities, which may be caused by reasons such as improper selection of the sieve mesh or insufficient screening time, resulting in impurity residue. For the item where the correlation between the environmental temperature and the separation process is 0.65, the description of raw material quality defects is determined to be empty (because here the problem is mainly caused by environmental factors), and the description of production process anomalies is that the too high environmental temperature affects the separation effect, resulting in incomplete separation of wheat germ and other components.
[0105] Step S143, call the pre-trained root cause reasoning model to perform joint causal reasoning processing on the description of raw material quality defects and the description of production process anomalies, and generate a set of root cause reasoning paths.
[0106] In a possible implementation manner, step S143 includes:
[0107] Step S1431, input the description of raw material quality defects into the raw material defect encoder of the root cause reasoning model for defect type coding processing, and generate a defect type feature vector.
[0108] Taking the excessive moisture content of raw wheat, too long drying time and the moisture content of the product after drying still not meeting the standard as an example, input the description of raw material quality defects "the moisture content of raw wheat is too high" into the raw material defect encoder of the root cause reasoning model for defect type coding processing. The encoder can analyze this description and generate a defect type feature vector according to its influence and characteristics on the production process. For example, it can consider multiple dimensions such as the physical properties of the raw material and its influence on subsequent processes. Assuming that the dimension of the influence of raw material moisture on drying efficiency is assigned a value of 0.8, and the dimension of the potential influence on product quality is assigned a value of 0.7, etc., a defect type feature vector [0.8, 0.7,..., 0.5] is comprehensively generated.
[0109] Step S1432, input the description of production process anomalies into the process anomaly encoder of the root cause reasoning model for anomaly mode coding processing, and generate an anomaly mode feature vector.
[0110] For example, the abnormal description of the production process "the drying time is too long and the moisture content of the product after drying still does not meet the standard" is input into the process anomaly encoder of the root cause reasoning model for anomaly pattern encoding. The encoder will analyze factors such as the manifestation form and occurrence frequency of this abnormal situation. For example, a value of 0.9 is assigned from the dimension that the drying time exceeds the normal range, and a value of 0.8 is assigned from the dimension that the unqualified product moisture content affects the overall quality, etc., to generate an anomaly pattern feature vector [0.9, 0.8, …, 0.6].
[0111] Step S1433, construct a causal graph network of defect - anomaly, and input the defect type feature vector and the anomaly pattern feature vector as node features into the causal graph network for multi - hop causal reasoning processing.
[0112] In this causal graph network, the nodes are connected by various causal relationships. Taking the node of the excessive moisture content of raw wheat and the node of the drying time being too long and the moisture content of the product after drying still not meeting the standard as an example, the network will analyze the possible direct and indirect causal relationships between them. For example, the excessive moisture content of raw wheat directly leads to an increase in the heat required for drying, thus extending the drying time; although the drying time is extended, due to equipment performance limitations or process parameter setting problems, the moisture content of the final product still does not meet the standard. Through such multi - hop causal reasoning, the causal relationship chain is deeply explored.
[0113] Step S1434, output the causal association paths between the defect type feature vector and each anomaly pattern feature vector through the path generation layer of the causal graph network, and generate the set of root cause reasoning paths.
[0114] For example, for the group of the excessive moisture content of raw wheat and the drying time being too long and the moisture content of the product after drying still not meeting the standard, the path generation layer will generate a causal association path, describing how the abnormal situation of the drying process is caused step by step from the excessive raw material moisture. This path may be: excessive moisture content of raw wheat → increase in heat required for drying → extension of the continuous working time of the drying equipment → moisture content of the product after drying still does not meet the standard. For the group of the excessive impurity content of raw wheat and the screening process failing to effectively remove impurities, a corresponding causal association path will also be generated, such as excessive impurity content of raw wheat → increased screening difficulty → increased probability of screen blockage → insufficient screening time → screening process failing to effectively remove impurities. For the group of the excessively high environmental temperature and the incomplete separation effect, the causal association path may be excessively high environmental temperature → change in the physical properties of substances during separation → reduction in the working efficiency of the separation equipment → incomplete separation effect. These causal association paths together constitute the set of root cause reasoning paths.
[0115] Step S144, perform a confidence evaluation process on the set of root cause reasoning paths, and screen out the top k reasoning paths with the highest confidence as the abnormal root cause tracing result.
[0116] In this embodiment, various factors can be comprehensively considered in the evaluation process, such as the frequency of similar causal relationships in historical data, the similarity between current production conditions and past situations, etc. For each causal association path, there is a set of evaluation indicators and calculation methods. Taking the path that the excessive moisture content of raw wheat leads to drying problems as an example, by analyzing historical production records, it is found that when the moisture content of raw wheat exceeds a certain standard, in 80% of the cases, there will be problems such as extended drying time and unqualified product moisture content. At the same time, the source of raw material procurement and the status of drying equipment in the current production batch are highly similar to the historical situation. Considering these factors comprehensively, through a specific calculation method (such as weighted calculation of factors such as historical occurrence frequency and current similarity), the confidence level of this path is obtained as 0.8. Such confidence evaluation is performed on all paths in the root cause reasoning path set.
[0117] Assume that k is set to 3, and the top 3 inference paths with the highest confidence levels are selected from all the paths that have undergone confidence evaluation as the abnormal root cause tracing results. After comparison, the top 3 paths with the highest confidence levels are as follows: The first one is that the excessive impurity content of raw wheat causes the screening process to fail to effectively remove impurities, thereby affecting subsequent processes; the second one is that the excessive moisture content of raw wheat leads to too long drying time and the moisture content of the product after drying is still unqualified; the third one is that the too high environmental temperature causes incomplete separation effect. These 3 paths clearly point out the possible roots of abnormal situations in the production process, providing a strong basis for subsequent taking targeted measures to solve production abnormal problems.
[0118] For example, in a possible implementation manner, step S1433 includes:
[0119] Step S1433-1, taking the defect type feature vector and the abnormal mode feature vector as the initial defect type node feature and the initial abnormal mode node feature in the causal graph network respectively.
[0120] In this embodiment, taking the defect type feature vector [0.8, 0.7,..., 0.5] of the excessive moisture content of raw wheat and the abnormal mode feature vector [0.9, 0.8,..., 0.6] of too long drying time and the unqualified moisture content of the product after drying obtained from the previous analysis as examples, these two vectors are taken as the initial defect type node feature and the initial abnormal mode node feature in the causal graph network respectively. These two nodes become the starting points of the causal graph network reasoning, representing two key factors in the production process where problems occur.
[0121] Step S1433-2: Calculate the node association weight matrix according to the semantic similarity between the initial defect type node features and the initial abnormal pattern node features. The node association weight matrix contains the association strength values between each pair of defect type nodes and abnormal pattern nodes.
[0122] In this embodiment, the calculation of semantic similarity comprehensively considers factors from multiple dimensions. For example, in the scenario where the moisture content of raw wheat is too high and the drying is abnormal, from the dimension of the impact on drying efficiency, the corresponding dimension value in the defect type node feature vector is 0.8, and the corresponding dimension value in the abnormal pattern node feature vector is 0.9, indicating a high similarity between the two in terms of the impact on drying efficiency; from the dimension of the potential impact on product quality, the defect type node feature vector value is 0.7, and the abnormal pattern node feature vector value is 0.8, also showing a certain similarity. Calculate the absolute value of the difference between each pair of dimension values. The absolute value of the difference in the dimension of the impact on drying efficiency is |0.8 - 0.9| = 0.1, and the absolute value of the difference in the dimension of the potential impact on product quality is |0.7 - 0.8| = 0.1, etc. Add up the absolute values of the differences in all dimensions. Assuming there are a total of 5 dimensions, and the absolute values of the differences in other dimensions are 0.2, 0.1, 0.1 respectively, the sum is 0.1 + 0.1 + 0.2 + 0.1 + 0.1 = 0.6. Then subtract this sum from 1 to get the semantic similarity of 1 - 0.6 = 0.4. This semantic similarity is the association strength value between this pair of defect type nodes and abnormal pattern nodes. By analogy, calculate the association strength values between all possible defect type nodes and abnormal pattern nodes to form the node association weight matrix. This matrix comprehensively records the degree of association tightness between different nodes.
[0123] Step S1433-3: Generate the node relationship topological structure of the causal graph network based on the node association weight matrix. The node relationship topological structure contains the directed connection edges between defect type nodes and abnormal pattern nodes and their corresponding association strength values.
[0124] In the node relationship topological structure, taking the defect type node of too high moisture content of raw wheat and the abnormal pattern node of too long drying time and the moisture content of the product still not meeting the standard after drying as an example, according to the association strength value of 0.4 between them, a directed connection edge will be generated from the node of too high moisture content of raw wheat to the drying abnormal node, and the association strength value of 0.4 is marked on the edge. The relationships between other defect type nodes and abnormal pattern nodes are also constructed in a similar way in the topological structure. Finally, a node relationship topological structure containing all the directed connection edges between defect type nodes and abnormal pattern nodes and their corresponding association strength values is formed. This node relationship topological structure intuitively shows the potential connections between different problem factors in the production process.
[0125] Step S1433-4: Perform edge weight enhancement processing on each directed connection edge in the node relationship topology structure. The edge weight enhancement processing includes: extracting the defect type node features and abnormal pattern node features corresponding to the directed connection edge. Input the defect type node features and abnormal pattern node features into the edge weight enhancement layer of the causal graph network for feature interaction processing to generate an enhanced edge weight value.
[0126] Taking the directed connection edge from the node of excessive moisture content of raw wheat to the node of too long drying time and still unqualified moisture content of the product after drying as an example, first extract the defect type node features [0.8, 0.7, …, 0.5] and abnormal pattern node features [0.9, 0.8, …, 0.6] corresponding to this directed connection edge. Input these two feature vectors into the edge weight enhancement layer of the causal graph network for feature interaction processing. In the edge weight enhancement layer, perform weighted multiplication and summation on the corresponding dimensions of the two vectors. For example, for the first dimension, the weighted multiplication is 0.8×0.9×0.3 (assuming the weighting coefficient of the first dimension is 0.3) = 0.216; for the second dimension, the weighted multiplication is 0.7×0.8×0.2 (assuming the weighting coefficient of the second dimension is 0.2) = 0.112, etc. Add up the calculation results of all dimensions. Assuming there are a total of 5 dimensions, and the calculation results of other dimensions are 0.15, 0.08, 0.06 respectively, the sum is 0.216 + 0.112 + 0.15 + 0.08 + 0.06 = 0.618, and this value is the enhanced edge weight value.
[0127] Step S1433-5: Update the weights of the directed connection edges in the node relationship topology structure based on the enhanced edge weight values to generate an updated node relationship topology structure.
[0128] For example, for the directed connection edge from the node of excessive moisture content of raw wheat to the node of too long drying time and still unqualified moisture content of the product after drying, update the original association strength value of 0.4 to the enhanced edge weight value of 0.618 to generate an updated node relationship topology structure, and this updated topology structure more accurately reflects the causal association degree between the nodes.
[0129] Step S1433-6: Perform multi-hop path traversal processing in the updated node relationship topology structure. The multi-hop path traversal processing includes: starting from each defect type node, perform path expansion with the maximum edge weight first along the directed connection edge, record the passed node sequence and the cumulative weight value, and generate a candidate multi-hop causal path set.
[0130] For example, starting from the defect type node of excessive moisture content in raw wheat, the path is extended along the directed connection edges with the maximum edge weight prioritized. Since the edge weight between the node of excessive moisture content in raw wheat and the node of excessive drying time and still unqualified moisture content of the product after drying is 0.618, which is the largest among the currently connected edges to this node, the drying anomaly node is first expanded, and the recorded node sequence passed through is the node of excessive moisture content in raw wheat and the node of excessive drying time and still unqualified moisture content of the product after drying, with the cumulative weight value being 0.618. Then, continue to expand from the drying anomaly node. Assume that there is a directed connection edge with an edge weight of 0.5 between the drying anomaly node and the node of unqualified product quality. This is the largest among the connected edges to the drying anomaly node, so continue to expand to the node of unqualified product quality. At this time, the updated node sequence passed through is the node of excessive moisture content in raw wheat, the node of excessive drying time and still unqualified moisture content of the product after drying, and the node of unqualified product quality, with the cumulative weight value being 0.618 + 0.5 = 1.118. In this way, starting from each defect type node for expansion, record all the passed node sequences and cumulative weight values to generate a candidate multi-hop causal path set. This candidate multi-hop causal path set contains various paths that may lead to production anomalies starting from different defect type nodes through multi-hop connections.
[0131] Step S1433 - 7, perform path validity verification processing on the candidate multi-hop causal path set. The path validity verification processing includes: extracting the node sequence features and cumulative weight values of each candidate multi-hop causal path. Input the node sequence features into the path verification layer of the causal graph network for logical consistency detection to generate a path confidence score.
[0132] Taking the candidate path of the node of excessive moisture content in raw wheat, the node of excessive drying time and still unqualified moisture content of the product after drying, and the node of unqualified product quality as an example, first extract the node sequence features of this candidate multi-hop causal path, that is, the characteristic information represented by the three nodes of excessive moisture content in raw wheat, drying anomaly, and unqualified product quality, as well as the cumulative weight value of 1.118. Input the node sequence features into the path verification layer of the causal graph network for logical consistency detection. The path verification layer will make a judgment based on the knowledge and logical rules of the production process. For example, in this production process, excessive moisture content in raw wheat leads to drying anomaly, and the drying anomaly in turn affects the product quality. This logic is in line with the actual production situation. Through a series of rule matching and reasoning calculations, a path confidence score is generated. Assume that after complex verification calculations, the path confidence score of this path is obtained as 0.8.
[0133] Step S1433-8: Based on the path confidence score and the cumulative weight value, perform weighted sorting on the candidate multi-hop causal path set, and filter out the target multi-hop causal path set that meets the preset confidence threshold.
[0134] For each candidate path, set a weighted calculation method. For example, the comprehensive score of the path = path confidence score × 0.6 + cumulative weight value × 0.4. For the above path, the comprehensive score = 0.8 × 0.6 + 1.118 × 0.4 = 0.48 + 0.4472 = 0.9272. Perform such calculations on all paths in the candidate multi-hop causal path set, and sort them in descending order according to the comprehensive score. Assume that the preset confidence threshold is 0.7, and filter out the paths whose comprehensive scores meet this threshold from the sorted paths to form the target multi-hop causal path set.
[0135] Step S1433-9: Convert each target multi-hop causal path in the target multi-hop causal path set into a causal association node sequence to generate the root cause inference path set.
[0136] For example, there is a path in the target multi-hop causal path set that starts from the node of excessive impurity content in raw material wheat, passes through the node of ineffective impurity removal in the screening process, and then reaches the node of unqualified product purity. Convert this path into a causal association node sequence, that is, excessive impurity content in raw material wheat → ineffective impurity removal in the screening process → unqualified product purity. By analogy, perform such conversions on all target multi-hop causal paths, and finally generate the root cause inference path set. This root cause inference path set clearly shows the causal relationship chain from raw material quality defects to production process abnormalities and then to final product problems during the production process, providing a detailed and reliable basis for finding the root cause of production anomalies.
[0137] In a possible implementation manner, step S144 includes:
[0138] Step S1441: Extract the causal association node sequence in each root cause inference path.
[0139] For example, in the set of root cause inference paths generated previously, there is a path that starts from the node of excessive moisture content in raw wheat, and successively passes through the node of too long drying time and still unqualified moisture content of the product after drying, and finally reaches the node of unqualified product quality. The sequence of causally related nodes in this root cause inference path is excessive moisture content in raw wheat, too long drying time and still unqualified moisture content of the product after drying, and unqualified product quality. Another path is that the impurity content in raw wheat exceeds the standard, the screening process fails to effectively remove impurities, and the subsequent processing process is affected. The sequence of causally related nodes is the description of these three successively connected nodes. Such extraction operations are performed on each path in the set of root cause inference paths to clearly identify the causally related nodes involved in each path.
[0140] Step S1442, call the pre-trained path evaluation model to perform semantic coherence scoring and logical rationality scoring on each of the sequences of causally related nodes.
[0141] Taking the sequence of causally related nodes of excessive moisture content in raw wheat, too long drying time and still unqualified moisture content of the product after drying, and unqualified product quality as an example, when the path evaluation model performs semantic coherence scoring, it will analyze whether the semantic connection between nodes is natural and smooth. Semantically, if the moisture content of raw wheat is too high, according to normal production knowledge and logic, it is easy to understand that it will lead to the need for a longer drying time and may result in the situation that the moisture content of the product after drying is still unqualified, and poor drying effect will inevitably affect the product quality. The entire semantic chain is closely connected. The model will score according to the tightness of this semantics. Assuming a full score of 10 points, after detailed analysis and judgment by the model, it is considered that the semantic coherence of this sequence is very strong and 8 points are given.
[0142] When performing logical rationality scoring, the path evaluation model will judge in combination with the actual logic and historical data in the production process. In wheat germ production, an increase in the moisture content of raw materials will indeed increase the drying difficulty, and more time and energy are required to remove moisture, which is in line with physical principles and actual production experience; incomplete drying will directly affect the quality indicators of the product, such as too high moisture content may cause the product to deteriorate easily and affect the taste, etc. By analyzing these logical relationships and comparing them with similar situations in historical data, the model judges that this logic is reasonable. Assuming that the full score of logical rationality scoring is also 10 points, according to the evaluation criteria of the model, 9 points are given to this sequence.
[0143] For the causal association node sequence of excessive impurity content in raw wheat, the screening process failing to effectively remove impurities, and the subsequent processing process being affected, in terms of semantic coherence, excessive raw material impurities will pose greater challenges to the screening process, resulting in the failure to effectively remove impurities. Naturally, incomplete screening will have a negative impact on the subsequent processing process, and the semantic coherence degree is relatively high. The model gives it 7 points. In terms of logical rationality, from the actual production situation, excessive impurities will block the sieve mesh, reduce the screening efficiency, etc., and then affect the subsequent processing, which is consistent with the situation in historical production. The model gives it 8 points. Such semantic coherence scoring and logical rationality scoring are carried out for all causal association node sequences in the root cause reasoning path set.
[0144] Step S1443, based on the preset evaluation weights, perform weighted summation on the semantic coherence score and the logical rationality score to obtain the confidence score of each root cause reasoning path.
[0145] Suppose the preset semantic coherence score weight is 0.4 and the logical rationality score weight is 0.6. For the path of excessive moisture content in raw wheat, too long drying time and the moisture content of the product still not meeting the standard after drying, and the product quality not meeting the standard, its confidence score is calculated as follows: The semantic coherence score of 8 points is multiplied by the weight of 0.4, that is, 8×0.4 = 3.2; the logical rationality score of 9 points is multiplied by the weight of 0.6, that is, 9×0.6 = 5.4. Add the two together, 3.2 + 5.4 = 8.6 points, which is the confidence score of this root cause reasoning path. For the path of excessive impurity content in raw wheat, the screening process failing to effectively remove impurities, and the subsequent processing process being affected, the semantic coherence score of 7 points is multiplied by the weight of 0.4, that is, 7×0.4 = 2.8; the logical rationality score of 8 points is multiplied by the weight of 0.6, that is, 8×0.6 = 4.8. Add the two together, 2.8 + 4.8 = 7.6 points, to obtain the confidence score of this path. Each path in the root cause reasoning path set is calculated in this way to obtain their respective confidence scores.
[0146] Step S1444, sort the root cause reasoning path set according to the confidence score, and screen out the target reasoning paths whose confidence meets the preset conditions.
[0147] Assume that the preset condition is that the confidence score is greater than or equal to 7 points. Sort all the root cause reasoning paths in descending order of the confidence score. In the sorted path set, filter out the paths with a score greater than or equal to 7 points. For example, in addition to the above two paths, there are other paths with calculated confidence scores of 6.5 points, 7.2 points, 8.1 points, etc. Then, the paths with confidence scores of 7.2 points, 8.1 points, and the previously calculated 8.6 points and 7.6 points meet the preset conditions and are filtered out as the target reasoning paths. These target reasoning paths have higher reliability and credibility in tracing the root cause of production anomalies, and can provide strong evidence for the factory to take targeted measures to solve problems in the production process, helping the factory better optimize the production process and improve product quality.
[0148] In a possible implementation manner, step S150 includes:
[0149] Step S151, analyze the production link of the abnormal source and the type of raw material defect in the abnormal root cause tracing result.
[0150] For example, the previous abnormal root cause tracing result shows that the abnormality in a certain batch of production mainly stems from the excessive impurity content of the raw material wheat and the abnormality in the drying process. The type of raw material defect is clearly defined as the impurity content of the raw material wheat being higher than the standard range, which may be due to the lax control of raw materials in the procurement link, resulting in more impurities being mixed in. The production link of the abnormal source lies in the drying process, where the drying time is too long and the moisture content of the product after drying still does not meet the standard, which may be caused by factors such as unstable performance of the drying equipment and unreasonable drying parameter settings.
[0151] Step S152, match the set of historical parameter adjustment records associated with the production link of the abnormal source from the historical optimization strategy library.
[0152] In this embodiment, the historical optimization strategy library stores the parameter adjustment strategies and related records that the factory has tried and applied for various production process problems in past production. For the drying process, the historical records include various adjustment methods. For example, once to solve the problem of too long drying time, the temperature of the drying equipment was increased from 80 degrees Celsius to 90 degrees Celsius, and at the same time, the ventilation rate was adjusted, increased from 50 cubic meters per minute to 60 cubic meters per minute, and finally the drying time was shortened from the original 60 minutes to 50 minutes; another time, for the situation of too high moisture content of the product after drying, the drying time was extended by 10 minutes, and the humidity sensor parameters of the drying equipment were adjusted to make the detection of humidity more accurate, so as to better control the drying degree. In addition, in terms of raw material processing, when the impurity content of the raw material was too high, different pore size sieves were tried to be replaced, from the original 4-mm pore size sieve to a 3-mm pore size sieve to improve the screening effect, and at the same time, the screening times were increased, from one screening to two screenings, effectively reducing the impurity content in the raw material. These historical records constitute a set of historical parameter adjustment records related to the drying process and raw material impurity treatment.
[0153] Step S153, based on the raw material defect type, perform validity filtering processing on the set of historical parameter adjustment records to obtain a set of effective adjustment strategies.
[0154] For example, for the defect type of excessive impurity content in the raw material wheat this time, analyze each strategy in the set of historical parameter adjustment records. For those records that have nothing to do with raw material impurity removal, such as parameter adjustment records for equipment maintenance alone, they are excluded. Among the strategies related to raw material impurity removal, evaluate their feasibility and effectiveness in the current production situation. For example, the strategy of replacing the 3-mm pore size sieve and increasing the screening times, considering the current impurity types and distribution of the raw material, as well as the performance of the existing screening equipment in the factory, is considered to have high feasibility and effectiveness; while some overly complex or costly impurity removal strategies, such as using high-precision laser screening equipment, although theoretically can effectively remove impurities, but considering the factory's budget and actual production scale, do not have the implementation conditions for the time being and are filtered. After such screening, a set of effective adjustment strategies is obtained, including strategies such as replacing the 3-mm pore size sieve, increasing the screening times, optimizing the temperature and ventilation rate of the drying equipment, etc.
[0155] Step S154, perform multi-objective optimization processing on the set of effective adjustment strategies to generate a dynamic optimization strategy that meets the current production constraint conditions, and the multi-objective optimization processing includes production efficiency optimization, raw material loss rate reduction, and abnormal recurrence rate control.
[0156] Among them, step S154 includes:
[0157] Step S1541: Construct a three-dimensional optimization target space that includes production efficiency, raw material loss rate, and abnormal recurrence rate.
[0158] For example, in terms of production efficiency, it is measured by the number of qualified wheat germ products produced per hour; the raw material loss rate refers to the proportion of raw material losses caused by various reasons during the production process to the total input raw materials; the abnormal recurrence rate refers to the probability of the same abnormal situation occurring again after optimization measures are taken.
[0159] Step S1542: Map each effective adjustment strategy to the corresponding coordinate point in the three-dimensional optimization target space.
[0160] For example, for the strategy of replacing the 3-mm aperture sieve and increasing the screening times, after evaluation and simulation calculations, it is expected that the production efficiency will increase from 100 kg per hour to 110 kg, the raw material loss rate is expected to decrease from the current 8% to 6%, and according to historical experience and data analysis, the abnormal recurrence rate is expected to decrease from 20% to 10%. Taking these data as coordinate values, determine the coordinate point (110, 6, 10) corresponding to this strategy in the three-dimensional optimization target space. For the strategy of optimizing the temperature and ventilation rate of the drying equipment, also conduct evaluation calculations. Assuming that the production efficiency is increased to 105 kg per hour, the raw material loss rate is reduced to 7%, and the abnormal recurrence rate is reduced to 15%, then the coordinate point of this strategy in the three-dimensional optimization target space is (105, 7, 15). Map all the strategies in the set of effective adjustment strategies to the three-dimensional optimization target space in this way.
[0161] Step S1543: Screen out the set of candidate optimization strategies located on the Pareto optimal front surface through the Pareto front analysis algorithm.
[0162] In this embodiment, the Pareto front analysis algorithm will analyze and compare each coordinate point in the three-dimensional optimization target space. For example, for the coordinate points (110, 6, 10) and (105, 7, 15), in terms of production efficiency, the strategy corresponding to (110, 6, 10) is higher; in terms of raw material loss rate, the strategy corresponding to (110, 6, 10) is also lower; in terms of abnormal recurrence rate, the strategy corresponding to (110, 6, 10) is also better. Then the point (105, 7, 15) is considered a relatively inferior point. Through such comparisons and screenings, find those points that cannot further improve a certain target without reducing other targets, and the strategies corresponding to these points constitute the Pareto optimal front surface. For example, after algorithm analysis, finally determine the strategies corresponding to (110, 6, 10) and several other similar strategy points with better comprehensive performance in each target, and form the set of candidate optimization strategies.
[0163] Step S1544: Call the policy recommendation model to perform an adaptability scoring process on the candidate optimization policy set based on the real-time load status of the current production line.
[0164] In this embodiment, the real-time load status of the current production line includes factors such as the operating conditions of equipment, the supply of raw materials, and the urgency of orders. Suppose the equipment on the current production line is running relatively stably, but the supply of raw materials is slightly tight and the urgency of orders is relatively high. The policy recommendation model will evaluate each policy in the candidate optimization policy set according to these real-time situations. For the policy of replacing the 3-mm aperture sieve and increasing the screening times, although it can effectively reduce the raw material loss rate and the recurrence rate of abnormalities and improve production efficiency, it may cause a short-term shortage of raw material supply due to the increased screening times, affecting the order delivery speed. According to the evaluation rules of the model, the adaptability score of this policy is 70 points. For another policy of optimizing the temperature and ventilation rate of the drying equipment, although it is relatively weak in improving production efficiency, it has less impact on the raw material supply and can better control the recurrence rate of abnormalities. Under the current order urgency, it can better ensure the continuity of production. The model gives the adaptability score of this policy as 80 points. Such an adaptability scoring process is performed on all policies in the candidate optimization policy set.
[0165] Step S1545: Select the candidate optimization policy with the highest adaptability score as the dynamic optimization policy.
[0166] In the above example, the policy of optimizing the temperature and ventilation rate of the drying equipment has an adaptability score of 80 points, which is higher than the scores of other policies. Therefore, this policy is determined as the dynamic optimization policy. The factory will adjust the temperature and ventilation rate parameters of the drying equipment according to this dynamic optimization policy, and at the same time closely monitor the changes in various indicators during the production process to ensure that production can optimize production efficiency, reduce the raw material loss rate, and effectively control the recurrence rate of abnormalities while meeting the current production constraint conditions, ensuring the stable and efficient progress of wheat germ production.
[0167] Figure 2 Fig. shows the hardware structure diagram of the production service system 100 provided by the embodiment of the present application for implementing the above-mentioned NLP-based wheat germ production anomaly root cause tracing method, as Figure 2 shown, the production service system 100 may include a processor 110, a machine-readable storage medium 120, a bus 130, and a communication unit 140.
[0168] In one possible design, the production service system 100 can be a single server or a group of servers. The group of servers can be centralized or distributed (e.g., the production service system 100 can be a distributed system). In some embodiments, the production service system 100 can be local or remote. For example, the production service system 100 can access information and / or data stored in the machine-readable storage medium 120 via a network. As another example, the production service system 100 can be directly connected to the machine-readable storage medium 120 to access the stored information and / or data. In some embodiments, the production service system 100 can be implemented on a production service system. By way of example only, the production service system can include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-layer cloud, etc. or any aggregation thereof.
[0169] The machine-readable storage medium 120 can store data and / or instructions. In some embodiments, the machine-readable storage medium 120 can store data obtained from an external terminal. In some embodiments, the machine-readable storage medium 120 can store the data and / or instructions that the production service system 100 uses to execute or complete the exemplary methods described in this application.
[0170] In a specific implementation process, one or more processors 110 execute the computer-executable instructions stored in the machine-readable storage medium 120, so that the processors 110 can execute the NLP-based method for tracing the root cause of abnormal wheat germ production as described in the above method embodiments. The processors 110, the machine-readable storage medium 120, and the communication unit 140 are connected through a bus 130, and the processors 110 can be used to control the transceiver actions of the communication unit 140.
[0171] For the specific implementation process of the processors 110, reference can be made to the various method embodiments executed by the above production service system 100. Their implementation principles and technical effects are similar, and will not be elaborated here in this embodiment.
[0172] In addition, an embodiment of the present application also provides a readable storage medium, in which computer-executable instructions are set. When the processor runs the computer-executable instructions, the NLP-based method for tracing the root cause of abnormal wheat germ production as described above is implemented.
[0173] It should be noted that, in order to simplify the description of the present application disclosure and thus help the understanding of one or more invention embodiments, in the previous description of the embodiments of the present application, sometimes multiple features are merged into one embodiment, drawing, or description thereof. Similarly, it should be noted that, in order to simplify the description of the present application disclosure and thus help the understanding of one or more invention embodiments, in the previous description of the embodiments of the present application, sometimes multiple features are merged into one embodiment, drawing, or description thereof.
Claims
1. A method for tracing the root cause of abnormal wheat germ production based on NLP, characterized in that: The method comprises: Acquire a set of production record data of multiple batches of wheat germ corresponding to the target production line, wherein the production record data set includes production process text data, environmental monitoring time series data and raw material quality index data of each production batch; Performing semantic feature parsing processing on the production process text data to obtain a process semantic feature vector, performing dynamic fluctuation feature extraction processing on the environmental monitoring time series data to obtain an environmental fluctuation feature vector, performing cross-modal feature fusion processing on the process semantic feature vector and the environmental fluctuation feature vector to generate a fused production feature set; Calling a pre-trained multi-layer perception network model to perform abnormal root cause weight distribution processing on the fused production feature set, and generating an abnormal correlation score set corresponding to the production batch, wherein the abnormal correlation score set includes the abnormal correlation distribution between the raw material quality index data and each production process; Based on the abnormal correlation distribution, the raw material quality index data and the production process text data are jointly traced for root cause, and an abnormal root cause tracing result of the production batch is generated, where the abnormal root cause tracing result is used to indicate the production link and raw material defect type of the abnormal source; A dynamic optimization strategy for production line parameters is generated according to the abnormal root cause tracing result, and the dynamic optimization strategy is fed back to the production control system to trigger a parameter calibration operation.
2. The method for tracing the root cause of abnormal wheat germ production based on NLP according to claim 1, characterized in that: The performing semantic feature parsing processing on the production process text data to obtain a process semantic feature vector includes: Performing process step segmentation processing on the production process text data to obtain a plurality of process step description text segments; Calling a pre-trained language representation model to perform contextual semantic encoding processing on each process step description text segment to generate an initial semantic feature vector; The initial semantic feature vector is subjected to process domain feature enhancement processing to obtain an enhanced semantic feature vector, wherein the process domain feature enhancement processing comprises the following steps: matching a domain entity set associated with a current process step description text fragment from a preset wheat germ production knowledge base; inputting the domain entity set into the language representation model for entity semantic encoding processing to generate an entity feature vector set; performing attention mechanism weighted fusion on the entity feature vector set and the initial semantic feature vector to generate the enhanced semantic feature vector; The enhanced semantic feature vectors of the text segments describing each process step are subjected to temporal position coding and splicing processing to generate the process semantic feature vectors.
3. The method for tracing the root cause of abnormal wheat germ production based on NLP according to claim 1, characterized in that: The step of performing dynamic fluctuation feature extraction processing on the environmental monitoring time series data to obtain an environmental fluctuation feature vector includes: Performing abnormal fluctuation interval detection processing on the environmental monitoring time series data to identify abnormal fluctuation time windows in the temperature, humidity and air pressure monitoring data; Performing multi-scale sliding window sampling processing on the original monitoring data within the abnormal fluctuation time window to obtain multiple local time series data fragments; Calling a pre-trained time series convolutional network model to perform local fluctuation feature extraction processing on each of the local time series data segments to generate a local fluctuation feature vector; Performing global temporal attention aggregation processing on the local fluctuation feature vectors of each of the local temporal data segments to generate the environmental fluctuation feature vector, wherein the global temporal attention aggregation processing includes: Calculate the similarity score between each local fluctuation feature vector and the preset global fluctuation pattern template; Performing dynamic weighted summation on each local fluctuation feature vector based on the similarity score to obtain a weighted fluctuation feature vector; The weighted fluctuation feature vector and the global fluctuation pattern template are subjected to feature difference processing to generate the environmental fluctuation feature vector.
4. The method for tracing the root cause of abnormal wheat germ production based on NLP according to claim 1, characterized in that: The step of performing cross-modal feature fusion processing on the process semantic feature vector and the environment fluctuation feature vector to generate a fused production feature set includes: Performing time dimension alignment processing on the process semantic feature vector, mapping it to the same time granularity as the environment fluctuation feature vector; Constructing a process-environment cross attention mechanism, calculating a cross-modal correlation matrix between the semantic features of each time step in the process semantic feature vector and the fluctuation features of the corresponding time step in the environment fluctuation feature vector; Based on the cross-modal correlation matrix, bidirectional feature interaction processing is performed on the process semantic feature vector and the environment fluctuation feature vector to generate an interactive semantic feature vector and an interactive fluctuation feature vector; The interactive semantic feature vector and the interactive fluctuation feature vector are subjected to a gating mechanism fusion process to generate the fused production feature set, wherein the gating mechanism fusion process includes: Calculating a feature complementarity score between the interactive semantic feature vector and the interactive fluctuation feature vector; generating a dynamic fusion weight vector based on the feature complementarity score; The interactive semantic feature vector and the interactive fluctuation feature vector are weightedly concatenated using the dynamic fusion weight vector to generate the fused production feature set.
5. The method for tracing the root cause of abnormal wheat germ production based on NLP according to claim 1, characterized in that: The calling of the pre-trained multi-layer perception network model performs abnormal root cause weight distribution processing on the fused production feature set to generate an abnormal correlation score set corresponding to the production batch, including: Inputting the fused production feature set into the sparse feature screening layer of the multi-layer perception network model to perform redundant feature filtering processing to obtain a screened key production feature set; Calling the cross-feature generation layer of the multi-layer perception network model to perform high-order feature combination processing on the key production feature set to generate a cross-production feature matrix; Performing abnormal sensitivity weight calculation processing on the cross-production feature matrix through the attention allocation layer of the multi-layer perception network model to generate abnormal sensitivity distribution of each production feature dimension; The cross-production feature matrix is subjected to feature weighted aggregation processing based on the abnormal sensitivity distribution to generate the abnormal correlation score set, wherein each abnormal correlation score corresponds to the strength of correlation between the raw material quality index and a specific production process.
6. The method for tracing the root cause of abnormal wheat germ production based on NLP according to claim 1, characterized in that: The performing joint root cause tracing processing on the raw material quality index data and the production process text data based on the abnormal correlation distribution to generate the abnormal root cause tracing result of the production batch includes: According to the abnormal correlation distribution, abnormal correlation items exceeding a preset threshold are screened out to generate a candidate root cause feature set; Performing reverse semantic parsing processing on each abnormal correlation item in the candidate root cause feature set to determine its corresponding raw material quality defect description and production process abnormality description; Calling a pre-trained root cause reasoning model to perform joint causal reasoning processing on the raw material quality defect description and the production process abnormality description to generate a root cause reasoning path set; A confidence evaluation process is performed on the root cause reasoning path set, and top k reasoning paths with the highest confidence are screened out as the abnormal root cause tracing results.
7. The method for tracing the root cause of abnormal wheat germ production based on NLP according to claim 6, characterized in that: The calling of the pre-trained root cause reasoning model performs joint causal reasoning processing on the raw material quality defect description and the production process abnormality description to generate a root cause reasoning path set, including: Inputting the raw material quality defect description into the raw material defect encoder of the root cause reasoning model to perform defect type encoding processing to generate a defect type feature vector; Inputting the production process abnormality description into the process abnormality encoder of the root cause reasoning model to perform abnormal pattern encoding processing to generate an abnormal pattern feature vector; Constructing a defect-anomaly causal graph network, and inputting the defect type feature vector and the anomaly pattern feature vector as node features into the causal graph network for multi-hop causal reasoning processing; The causal association path between the defect type feature vector and each abnormal pattern feature vector is outputted through the path generation layer of the causal graph network to generate the root cause reasoning path set.
8. The method for tracing the root cause of abnormal wheat germ production based on NLP according to claim 6, characterized in that: The confidence evaluation process of the root cause reasoning path set includes: Extract the causal association node sequence in each root cause reasoning path; Calling a pre-trained path evaluation model to perform semantic coherence scoring and logical rationality scoring on each of the causal association node sequences; Performing weighted summation of the semantic coherence score and the logical rationality score based on preset evaluation weights to obtain a confidence score for each root cause reasoning path; The root cause reasoning path set is sorted according to the confidence score, and the target reasoning path whose confidence meets the preset condition is screened out.
9. The method for tracing the root cause of abnormal wheat germ production based on NLP according to claim 1, characterized in that: The generating of a dynamic optimization strategy for production line parameters according to the abnormal root cause tracing result includes: Analyze the abnormal source production links and raw material defect types in the abnormal root cause tracing results; Matching a set of historical parameter adjustment records associated with the abnormal source production link from a historical optimization strategy library; Performing validity filtering on the historical parameter adjustment record set based on the raw material defect type to obtain a valid adjustment strategy set; Performing multi-objective optimization processing on the effective adjustment strategy set to generate a dynamic optimization strategy that meets current production constraints, wherein the multi-objective optimization processing includes optimizing production efficiency, reducing raw material loss rate, and controlling abnormal recurrence rate; The multi-objective optimization process is performed on the effective adjustment strategy set to generate a dynamic optimization strategy that meets the current production constraints, including: Construct a three-dimensional optimization target space including production efficiency, raw material loss rate and abnormal recurrence rate; Mapping each effective adjustment strategy to a corresponding coordinate point in the three-dimensional optimization target space; The set of candidate optimization strategies located on the Pareto optimal frontier is screened out through the Pareto frontier analysis algorithm; The strategy recommendation model is called to perform adaptive scoring processing on the candidate optimization strategy set based on the real-time load status of the current production line; The candidate optimization strategy with the highest adaptability score is selected as the dynamic optimization strategy.
10. A production service system, characterized in that: The production service system includes a processor and a memory, the memory is connected to the processor, the memory is used to store programs, instructions or codes, and the processor is used to run the programs, instructions or codes in the memory to implement the NLP-based root cause tracing method for abnormal wheat germ production as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Tracing management method and system for lithium ion battery production
CN118014165A
Production traceability and transaction collaboration method and system of MES (Manufacturing Execution System)
CN119067689A