A production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning

By fusing multi-source heterogeneous data and federated reinforcement learning, and utilizing directional self-attention mechanism and distributed learning to optimize parameters, the problem of difficulty in associating data with different sampling frequencies and spatial locations was solved, achieving efficient and reliable production line parameter optimization.

CN123138701APending Publication Date: 2026-11-20QILU INST OF TECH +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611657202.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, data from different sampling frequencies and spatial locations are difficult to accurately correlate with the same workpiece entity, resulting in low fusion efficiency and insufficient reliability, which makes it difficult to optimize industrial production line parameters.

Method used

We employ a multi-source heterogeneous data fusion and federated reinforcement learning approach. We extract fusion features through a Transformer model with directional self-attention mechanism, calculate mutual information weights, optimize parameters using distributed federated learning, and achieve incremental updates of action vectors through reinforcement learning.

Benefits of technology

It improves the accuracy and reliability of data fusion, reduces the amount of computation and computation time, enhances the globality and accuracy of production line parameter optimization, and reduces defect rate and downtime.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138701A_ABST
    Figure CN123138701A_ABST
Patent Text Reader

Abstract

A production line parameter optimization method based on multi-source heterogeneous data fusion and federal reinforcement learning relates to the technical fields of industrial big data analysis and deep learning, and comprises: preprocessing multi-source heterogeneous data to obtain preprocessed data; extracting fusion features and inputting the fusion features into a Transformer model of fusion direction self-attention mechanism to obtain a feature set; calculating a comprehensive quality score; slicing the feature set according to channels to obtain data source feature components, calculating mutual information between the data source feature components and indexes, and converting the mutual information into attention weights; taking the attention weights, the comprehensive quality score and real-time production line parameters as local data to generate global optimization parameters; and outputting an action vector increment by using a multi-objective Soft Actor-Critic algorithm, updating the real-time production line parameters by using the action vector increment, and obtaining optimal production line parameters. The application realizes more comprehensive production line parameter optimization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of industrial big data analysis and deep learning technology, specifically to a production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning. Background Technology

[0002] With the development of industrial intelligence, traditional industrial production lines are gradually transforming towards digitalization, networking, and intelligence, and the reliance on data for production line operation and maintenance monitoring is increasing. In modern industrial production processes, a large number of sensors and industrial vision devices are deployed at key nodes of the production line to collect multi-dimensional data in real time during processing, including product image data, vibration signal data, temperature and pressure data, geometric dimension data, environmental data, and RFID data. This data can provide a more comprehensive and accurate basis for equipment health status assessment, fault prediction, and operation and maintenance decisions. However, the sampling frequencies of different sensors vary significantly, and there are serious spatiotemporal misalignments between different data sources. Existing production line parameter optimization schemes often ignore long-term temporal dependencies between data, and the sample size of a single production line is insufficient, making it difficult for models to cope with fluctuations under complex operating conditions.

[0003] Chinese invention patent application publication number CN121722070A, with an application publication date of March 24, 2026, discloses a production process control method and system based on multi-source data fusion and intelligent algorithms. It collects multi-source heterogeneous data such as equipment status, material flow, and production progress, preprocesses the data using data fusion technology, unifies it into a formatted dataset, extracts multi-dimensional production status features using principal component analysis (PCA), predicts material flow trends and calculates production efficiency indicators using time series analysis methods, calculates control parameters using a multi-objective optimization algorithm, and distributes the control parameters to each execution unit using a distributed control protocol. At the same time, it triggers anomaly detection when equipment status parameters exceed thresholds.

[0004] However, the aforementioned patents use a unified format dataset for fusion, which only achieves format-level uniformity. In industrial production lines, the sampling frequencies of data sources such as images, vibrations, geometric dimensions, and environment differ significantly, and data collected from different spatial locations are spatiotemporally misaligned. The aforementioned patents lack a time alignment mechanism based on a unified master clock and an entity mapping mechanism based on the unique identifier of the workpiece, making it difficult to accurately associate data with the same workpiece entity at different sampling frequencies and spatial locations. This results in low fusion efficiency and insufficient reliability. Summary of the Invention

[0005] In view of this, this application provides a production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning, which helps to solve the problem in the prior art that data with different sampling frequencies and different spatial locations are difficult to accurately associate with the same workpiece entity, resulting in low fusion efficiency and insufficient reliability.

[0006] In a first aspect, embodiments of this application provide a method for optimizing production line parameters based on multi-source heterogeneous data fusion and federated reinforcement learning, including: Collect heterogeneous data from multiple sources and preprocess it to obtain preprocessed data; Based on the preprocessed data, fusion features are extracted and then input into the Transformer model with a fusion direction self-attention mechanism to obtain the feature set. A comprehensive quality score is calculated using multi-source heterogeneous data. The state degradation trend in the future period is predicted based on the comprehensive quality score, and an early warning signal is issued when the state degradation reaches the preset condition. The feature set is sliced ​​by channel to obtain the feature components of each data source. The mutual information between the feature components of each data source and the target quality index is calculated, and the mutual information is normalized into attention weights. Based on the federated learning algorithm, attention weights, comprehensive quality scores and real-time production line parameters are used as local data to generate global optimization parameters; Using the global optimization parameters as initial values, the multi-objective Soft Actor-Critic algorithm is used to output the action vector increment, and the real-time production line parameters are updated using the action vector increment to obtain the optimal production line parameters.

[0007] In one possible implementation, the step of extracting fusion features based on preprocessed data and inputting the fusion features into a Transformer model with a fusion direction self-attention mechanism yields a feature set, including: The preprocessed data is normalized and denoised using wavelet to obtain the first data. The first data is then mapped to the same feature space through a linear projection layer to obtain the fused features. A directional self-attention layer is used to extract spatial features from the fused features to obtain the output features; The output features are input into a deep convolutional feedforward network for feature transformation and enhancement to obtain intermediate features; The intermediate features are input into a multi-layered stacked directional attention layer and a deep convolutional feedforward network for alternating processing to obtain a feature set.

[0008] In one possible implementation, the step of normalizing and wavelet denoising the preprocessed data to obtain first data, and mapping the first data to the same feature space through a linear projection layer to obtain fused features, includes: A convolutional neural network is used to extract the spatial features of the image data in the preprocessed data to obtain the image feature tensor; Wavelet denoising and fast Fourier transform are performed on the vibration signal data in the preprocessed data to obtain the frequency domain features of the vibration signal data. The frequency domain features are then encoded using a one-dimensional convolutional short sequence to obtain a fixed-length feature vector. Construct a first numerical vector based on the geometric dimensions in the preprocessed data; A second numerical vector is constructed based on the environmental data in the preprocessed data; A third numerical vector is constructed based on the RFID identification information in the preprocessed data; The dimensions of the unified image feature tensor, fixed-length feature vector, first numerical vector, second numerical vector, and third numerical vector; The unified multi-channel feature tensor, fixed-length feature vector, first numerical vector, second numerical vector and third numerical vector are concatenated according to the channel dimension to obtain a unified multi-channel feature tensor. By using a linear projection layer, the number of channels in a unified multi-channel feature tensor is compressed to a preset dimension to obtain fused features.

[0009] In one possible implementation, slicing the feature set by channel to obtain feature components from each data source includes: Obtain the predefined index range of each data source in the channel dimension; The feature set is mapped to a predefined feature index space to obtain the mapped feature set; Based on the predefined index range, the feature set after mapping is sliced ​​by channel to obtain the feature components of each data source.

[0010] In one possible implementation, obtaining the predefined index range of each data source on the channel dimension includes: Based on the arrangement order of the image feature tensor, fixed-length feature vector, first numerical vector, second numerical vector and third numerical vector when concatenating in the channel dimension, the channel position of each data source in the unified multi-channel feature tensor is determined. The channel interval corresponding to the image feature tensor is used as the predefined index range of the image data source, the channel interval corresponding to the fixed-length feature vector is used as the predefined index range of the vibration data source, the channel interval corresponding to the first numerical vector is used as the predefined index range of the geometric dimension data source, the channel interval corresponding to the second numerical vector is used as the predefined index range of the environmental parameter data source, and the channel interval corresponding to the third numerical vector is used as the predefined index range of the RFID data source. The predefined index ranges of each data source are arranged sequentially along the channel dimension and do not overlap with each other. Furthermore, the predefined index ranges of each data source remain fixed during the processing of the feature set through the directional self-attention layer and the deep convolutional feedforward network.

[0011] In one possible implementation, the calculation of mutual information between the feature components of each data source and the target quality index, and the normalization of the mutual information into attention weights, includes: Using the comprehensive quality score and early warning signal as the target quality indicators, the mutual information between the feature components of each data source and the target quality indicators is calculated, and the attention weights of each data source are adjusted based on the mutual information. : in, For each data source feature component With target quality indicators Mutual information; This represents the number of data sources.

[0012] In one possible implementation, the step of using a directional self-attention layer to extract spatial features from the fused features to obtain output features includes: A fully connected layer is used to generate a query matrix, a key matrix, and a value matrix. Corresponding query matrices and key matrices are generated for the height and width directions, respectively. The query matrix is ​​input into the Softmax activation function to obtain the directional weights. The directional weights are multiplied by the key matrices of the corresponding directions to obtain the contextual relevance in the height and width directions. The contextual relevance in the height and width directions is multiplied by the value matrices, respectively, to obtain the directional attention feature maps in the height and width directions. The directional attention feature maps in the height and width directions are added together to obtain the output features.

[0013] In one possible implementation, a comprehensive quality score is calculated using multi-source heterogeneous data. Based on this score, the trend of state degradation over future periods is predicted. An early warning signal is issued when the degree of state degradation reaches a preset condition, including: Image defect score, size deviation score, vibration anomaly score, stability score, and compliance score are calculated using multi-source heterogeneous data. The weighted harmonic averaging method is used to calculate the comprehensive quality score based on image defect score, size deviation score, vibration anomaly score, stability score, and compliance score. A scoring sequence is constructed using the comprehensive quality score within a dynamic sliding window. The scoring sequence is then input into an LSTM network to obtain a predicted value for a predetermined future duration. The predicted decline rate is calculated using the predicted value. When the predicted decline rate exceeds a preset prediction rate threshold, an early warning signal is generated. The early warning signal includes an early warning state and a normal state.

[0014] In one possible implementation, the federated learning algorithm uses attention weights, overall quality scores, and real-time production line parameters as local data to generate global optimization parameters, including: The attention weights, comprehensive quality scores, and real-time production line parameters of each production line node are used as local data to train the model independently on the local machine to obtain local parameters. The central node asynchronously collects local parameters and corresponding sample sizes from each production line node in the background, and aggregates them to generate global optimization parameters. : in, These are the local parameters for the k-th production line node; Let be the sample size of the k-th production line node; This represents the total sample size across all production line nodes. Global optimization parameters are distributed to each production line node.

[0015] In one possible implementation, the step of using global optimization parameters as initial values, employing a multi-objective SoftActor-Critic algorithm to output action vector increments, and using these action vector increments to update real-time production line parameters to obtain optimal production line parameters includes: The state space of the multi-objective Soft Actor-Critic algorithm is set as a combination of global optimization parameters, comprehensive quality score, early warning signal and real-time production line parameters, and the action space is a continuous action vector, including the fine adjustment amplitude and direction of each process parameter and the execution sequence. The multi-objective Soft Actor-Critic algorithm outputs an action vector based on the current state, generates action values ​​through a policy network, applies the action values ​​to the real-time operating environment of the production line, incrementally updates the corresponding production line parameters, and obtains the state and multi-objective reward at the next moment. The reward function is a weighted sum of production efficiency, cost, stability and defect rate after normalization and according to a preset balance coefficient. When the warning signal is in a warning state, the stability weight is increased by a preset step size. The multi-objective Soft Actor-Critic algorithm learns interactively with the actual operating conditions of the production line, maximizes the accumulated expected reward, and outputs the optimal production line parameters after convergence.

[0016] The beneficial effects of this application are as follows: This application introduces a lightweight Transformer with Directional Self-Attention (DSA) to enhance multimodal fusion features. The DSA layer performs directional attention extraction along the data dimension, directly preserving the original positional information without additional positional encoding, significantly reducing the number of parameters and computational cost. It also effectively captures long-term temporal dependencies between data, generating a more robust unified feature set. This application decouples the spatial dimension into height and width directions, simplifying the computation process to vector mapping along rows and columns. For an input sequence of length g, the single-layer complexity is O(g). For L layers of iterative stacking, the overall complexity is O(L•g). Since L is a constant, the overall complexity is linearly related to the length of the input sequence.

[0017] This application introduces a distributed federated learning framework, using the attention weights, comprehensive quality scores, and real-time production line parameters of each node as local data. The model is trained locally on multiple computing nodes, aggregating parameter updates only, thus reducing the number of times raw data is transmitted. Compared to traditional distributed task scheduling, this application improves overall computational efficiency while ensuring production line data privacy, supports cross-factory collaborative optimization, and provides an initial model for reinforcement learning through globally optimized parameters, making parameter optimization more global. Therefore, it is suitable for industrial scenarios involving multi-production line collaboration.

[0018] This application's reinforcement learning-based hierarchical decision-making achieves hierarchical control based on early warning signals. Under normal conditions, it performs gradual fine-tuning; under early warning conditions, it provides emergency correction and partial shutdown. This effectively avoids single or absolute control methods, reduces unnecessary downtime losses, and improves control accuracy. Simultaneously, through feedback iteration, it updates the model and prediction parameters based on instruction execution data, forming a complete process optimization. Compared to existing passive compensation or fixed threshold adjustments, this application reduces response latency, decreases downtime, and lowers the defect rate, enabling the production line to shift from passive monitoring to proactive optimization. Attached Figure Description

[0019] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 A flowchart illustrating a production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning, provided for embodiments of this application; Figure 2 A schematic diagram of a lightweight Transformer model architecture incorporating DSA provided in an embodiment of this application; Figure 3A flowchart illustrating the sub-steps of step S102 provided in this application embodiment; Figure 4 A flowchart illustrating the sub-steps of step S103 provided in this application embodiment; Figure 5 A flowchart illustrating the method of a sub-step of step S105 provided in an embodiment of this application. Detailed Implementation

[0021] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0022] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0023] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0024] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0025] like Figure 1As shown, this embodiment provides a production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning. The method first acquires multi-source data, including product images, sensor data, and RFID data, through data acquisition and spatiotemporal resampling alignment. After normalization and linear projection, this data is mapped to a unified feature space. Then, spatial feature extraction and depthwise convolution enhancement are performed through directional self-attention feature enhancement to generate a unified high-dimensional feature set. A lightweight Transformer incorporating directional self-attention is used to linearize the computational complexity. Next, a weighted harmonic averaging method is used to evaluate the overall production line quality score. A dynamic sliding window and LSTM network are combined to predict and warn of quality trends. The attention weights of each data source are dynamically adjusted based on mutual information metrics to suppress noise interference. Subsequently, a distributed federated learning algorithm is used to collaboratively update multi-node model parameters while ensuring data privacy. Reinforcement learning is used to adaptively optimize multi-objective process parameters. Finally, hierarchical control is executed based on warning signals, and the model is continuously optimized through feedback iteration.

[0026] S101: Collect multi-source heterogeneous data and preprocess it to obtain preprocessed data.

[0027] The multi-source heterogeneous data includes image data of the workpiece, vibration signal data during processing, geometric dimension data, environmental data, and RFID data.

[0028] In this embodiment, an industrial camera is used to acquire image data of the workpiece in real time at a frame rate of 15 frames per second (fps), and the resolution of the image data is 1024×1024. A laser rangefinder is used to measure the geometric dimensions of the workpiece, including multi-dimensional measurements such as length, width, and depth.

[0029] This embodiment uses a vibration sensor to collect vibration signal data at a sampling frequency of 2kHz. Temperature, humidity, and pressure sensors are used to collect environmental data such as temperature and pressure at a sampling frequency of 1Hz. A unique identifier and location information are also collected using an RFID reader.

[0030] This embodiment timestamps all acquired multi-source heterogeneous data using a unified master clock. For data with different sampling frequencies, this embodiment resamples using linear interpolation to unify all data to the same time resolution. in, and These are the two sampling times for low-frequency data; For high-frequency data sampling time, and ; For low-frequency data at the sampling time The sampled value at that time; For low-frequency data at the sampling time The sampled value at that time; For high-frequency data at sampling time The interpolation result at the location.

[0031] For multi-source heterogeneous data with different sampling frequencies, this embodiment designates the data with lower sampling frequencies as low-frequency data and the data with higher sampling frequencies as high-frequency data. After resampling the multi-source heterogeneous data, all data are sampled at 100ms intervals.

[0032] This embodiment achieves spatial entity alignment based on RFID unique identifiers. Specifically, it includes: when the RFID tag carried by the workpiece passes through data acquisition devices at different data acquisition points, recording the correspondence between the RFID unique identifier and the acquisition time in real time; and establishing a time window for image data, vibration signal data, geometric dimension data, environmental data, etc., scattered in different spatial locations on the production line using the same RFID code. Start time The end time is based on the moment the workpiece enters a certain workstation. Based on the time when the workpiece leaves the workstation, all data collected by sensors within that time window that have the same RFID code are uniformly associated with the same workpiece entity to avoid the problem of data fusion failure due to spatial misalignment.

[0033] The multi-source heterogeneous data that has undergone the above time alignment and spatial alignment processing is recorded as preprocessed data, which is transmitted to the edge computing node in real time through the Industrial Internet of Things.

[0034] S102: Extract fusion features based on preprocessed data, input the fusion features into the Transformer model with fusion direction self-attention mechanism, and obtain the feature set.

[0035] This embodiment utilizes a lightweight Transformer model incorporating Directed Self-Attention (DSA) to extract and enhance features from preprocessed data, generating a unified high-dimensional feature set. This model introduces a directed self-attention layer and depthwise separable convolutions on top of the traditional Transformer structure, enhancing its ability to model long-term temporal dependencies among multidimensional data in complex industrial scenarios, while simultaneously reducing computational complexity and improving feature extraction efficiency.

[0036] like Figure 2 As shown, the lightweight Transformer model that integrates DSA includes an input layer, a directional self-attention layer (DSALayer), a deep convolutional feedforward network (Depthwise Convolution FFN), a gated cross-modal attention layer, and an output layer.

[0037] The input layer receives a unified multichannel feature tensor of size c×H×W, where c is the number of channels, H is the height, and W is the width. The unified multichannel feature tensor is first preprocessed by a directional self-attention feature enhancement module to generate fused features, thereby improving the sensitivity of the subsequent attention mechanism to directional features.

[0038] The directional attention layer first performs a linear mapping on the fused features using a 1×1 convolution (Conv1×1). Then, the mapped fused features are decomposed into two independent directional branches: width (W) and height (H), and attention is calculated for each branch separately. Height (H) direction branch: Multiply the query matrix in the height direction element by element with the corresponding key matrix and normalize by Softmax to obtain the direction weight in the height direction. Then, sum the direction weight in the height direction with the value matrix in the height direction to generate the context feature vector in the height direction.

[0039] Width (W) direction branch: Multiply the query matrix in the width direction element by element with the corresponding key matrix and normalize by Softmax to obtain the directional weights in the width direction. Then, sum the directional weights in the width direction with the value matrix in the width direction to generate the context feature vector in the width direction.

[0040] Feature fusion: The context feature vectors generated in the height and width directions are added element by element to obtain the output features.

[0041] The output features are input into a deep convolutional feedforward network for nonlinear feature transformation. This network consists of: A 1×1 convolutional layer and ReLU activation function output intermediate features. ; A 3×3 depthwise separable convolutional layer (DWConv3×3), layer normalization (LN), and ReLU activation function are used to output intermediate features. ; A 1×1 convolutional layer outputs intermediate features. .

[0042] The directional self-attention layer, the first normalization layer, the deep convolutional feedforward network, and the second normalization layer are treated as a basic encoder unit. The feature set is obtained by iteratively stacking multiple layers of basic encoder units. In this embodiment, the number of stacked layers of the basic encoder unit is 3, and the output dimension of each layer is c×H×W (c=128 in this embodiment).

[0043] The gated cross-modal attention layer receives attention weights and dynamically adjusts each channel of the feature set accordingly.

[0044] The output layer is used to output a unified high-dimensional feature set. .

[0045] like Figure 3 As shown, this step specifically includes the following sub-steps.

[0046] S1021: Normalize and perform wavelet denoising on the preprocessed data to obtain the first data. Map the first data to the same feature space through a linear projection layer to obtain the fused features.

[0047] Based on the preprocessed data, feature extraction and encoding are performed on various types of multi-source heterogeneous data, specifically as follows: For image data, the lightweight convolutional neural network MobileNetV3 model is used to extract multi-scale spatial features, and the output shape is... The image feature tensor, where, H represents the number of channels, H represents the height, and W represents the width.

[0048] First, wavelet denoising is performed on the vibration signal data. Then, a fast Fourier transform is applied to the denoised vibration signal data to obtain its frequency domain features. Subsequently, through one-dimensional convolutional coding and dimensionality expansion operations, the frequency domain features are converted into a two-dimensional feature tensor with the same dimensions as the image feature tensor space, resulting in a fixed-length feature vector. And by repeating the operation, the fixed-length feature vector Expand to The characteristic tensor of the form, where, H is the number of channels, H is the height, and W is the width; For geometric dimension data, after mapping through two fully connected layers, it is expanded to the same height H and width W as the image feature tensor through a broadcast mechanism. After mapping through fully connected layers, it is further expanded to the same spatial dimension as the image feature tensor. The characteristic tensor of the form, where, H is the number of channels, H is the height, and W is the width; The environmental data is processed similarly to the geometric dimension data. The environmental data is constructed into a low-dimensional numerical vector, mapped through a fully connected layer, and then expanded through a broadcast mechanism to have the same dimension as the image feature tensor space. The characteristic tensor of the form, where, H is the number of channels, H is the height, and W is the width; The RFID tagging information is converted into a low-dimensional embedding vector and broadcast to a space with the same dimension as the image feature tensor space. The characteristic tensor of the form, where, H represents the number of channels, H represents the height, and W represents the width.

[0049] After completing the above feature extraction and encoding processes, the features are concatenated along the channel dimension to obtain a unified multi-channel feature tensor. ,in, In the above formula, To unify the total number of channels in a multi-channel feature tensor.

[0050] Subsequently, a 1×1 convolutional linear projection layer is used to uniformly adjust the total number of channels of the unified multi-channel feature tensor to c dimensions, resulting in a shape of Fusion characteristics Where c is the number of channels (i.e., dimension), H is the height, and W is the width, to eliminate dimensional differences between different modalities.

[0051] S1022: A directional self-attention layer is used to extract spatial features from the fused features to obtain the output features.

[0052] A fully connected layer implemented with 1×1 convolutions generates a base query matrix (query), a base key matrix (key), and a base value matrix (value). These are then aggregated along the height and width directions to obtain the query matrices in the height and width directions, respectively. and the key matrix Sum matrix : in, To fuse features, the dimension is ; This is a query matrix in the height direction, used to extract spatial information in the height direction; This is a query matrix in the width direction, used to extract spatial information in the width direction; The bond matrix is ​​located in the height direction; The key matrix is ​​located in the width direction; It is a value matrix.

[0053] First, using 1×1 convolution (i.e. In the attention mechanism, it is equivalent to a fully connected layer, used for linear mapping of the channel dimension, without changing the spatial size. The input features are mapped to generate a basic query matrix (query), a basic key matrix (key), and a basic value matrix (value).

[0054] Subsequently, to capture spatial orientation features, the basic query matrix (query) and basic key matrix (key) are aggregated along the height and width directions respectively, resulting in query matrices along the height and width directions (i.e., query matrices along the height and width directions). ) and the key matrix (i.e., the key matrix) The query matrix has 1 channel, the key matrix retains c channels, and subsequent broadcasting is used for dimension alignment to calculate attention.

[0055] Query matrices for the height direction respectively and the query matrix in the width direction conduct Activation yields attention weights in two directions; these weights are then broadcast to the c-dimensional dimension via a broadcasting mechanism and compared with their corresponding key matrices. Element-wise multiplication yields the context vectors in the height and width directions: ; ; in, This is the context vector along the height direction; This is the context vector in the width direction.

[0056] In the above formula, The summation symbol in the diagram represents summation along the width direction. It aggregates the attention-weighted features horizontally, ultimately eliminating the W dimension and generating... The context vector of the shape; The summation symbol in the figure represents summation along the height direction. It aggregates features in the vertical direction, eliminates the H dimension, and generates The context vector of the shape.

[0057] Multiplying the context vectors in the height and width directions by the value matrix yields the directional attention feature map: in, This is a height-oriented attention feature map; This is the attention feature map in the width direction; Represents the logarithmic matrix conduct activation.

[0058] In the above element-wise multiplication process, the context vector in the height direction It expands along the width dimension using a broadcast mechanism to achieve row-level feature enhancement; the context vector in the width direction... It extends the height dimension through a broadcast mechanism to achieve column-level feature enhancement.

[0059] The attention feature maps from both directions are added and fused to obtain the output features of the DSA layer: in, This represents the output feature, with dimension 1. .

[0060] S1023: Input the output features into a deep convolutional feedforward network for feature transformation and enhancement to obtain intermediate features.

[0061] in, This represents depthwise separable convolution; The LayerNorm operation represents the layer normalization operation. The output features of the DSA layer are processed by 1×1 convolution and Intermediate features obtained after activation; intermediate features After depthwise separable convolution, layer normalization and Intermediate features obtained after activation; intermediate features The intermediate features obtained after 1×1 convolution.

[0062] In this embodiment, layer normalization operations are inserted after the directional self-attention layer and the deep convolutional feedforward network. At the same time, residual connections are added to the two sub-layers of the directional self-attention layer and the deep convolutional feedforward network to alleviate the gradient vanishing problem of deep networks and improve the model training stability.

[0063] S1024: Input the intermediate features into a multi-layered stacked directional attention layer and a deep convolutional feedforward network for alternating processing to obtain the feature set.

[0064] In this embodiment, the directional self-attention layer, the first layer normalization, the deep convolutional feedforward network, and the second layer normalization are combined into a basic encoder unit. Through the iterative stacking of multiple basic encoder units, the features are deeply abstracted and spatiotemporally dependently modeled to obtain the feature set.

[0065] In this embodiment, the number of stacked layers of the basic encoder units is 3, and the input of the first layer of basic encoder units is the fused feature. The output shape of each basic encoder unit is the same as its input shape. Where c=128, the feature set output by the third-layer basic encoder unit is denoted as .

[0066] S1025: Gated cross-modal attention layer based on attention weights For feature set The weight matrix is ​​dynamically adjusted to generate a unified high-dimensional feature set. Adjusting the weight ratio of each data source in feature fusion and enhancement suppresses the influence of data sources with low contribution or high noise, thereby enhancing the sensitivity to key process features. The formula is as follows: in, This represents the attention weights of each data source. Given a diagonal matrix consisting of diagonal elements, the attention weights are... It operates on the feature channels of the corresponding data source, thereby achieving a weighted effect of assigning high weights to data sources with high contributions and low weights to data sources with low contributions.

[0067] This is the Sigmoid activation function, used to map the output to the [0,1] interval to normalize the feature weights.

[0068] It is the feature set The gating weight matrix generated after mapping to the gating space is used to dynamically adjust the weight ratio of each data source in feature fusion and enhancement, suppress the influence of noisy data sources with low contribution, and enhance the perception sensitivity of key process features.

[0069] Gated weight matrix The calculation method is as follows: for the feature set Global average pooling is performed to obtain the channel description vector, which is then mapped through two fully connected network layers. The first fully connected network layer compresses the dimension to [value missing]. (Where r is the compression ratio, which is 16 by default;) The first layer (c) uses the ReLU activation function, and the second fully connected network restores the dimension to c, then uses the Sigmoid activation function to output the gated weight matrix. : in, This is a global average pooling operation; It is the first fully connected layer; It is the second fully connected layer; Output channel weight vector, The channel weight vector is converted into a diagonal matrix.

[0070] S103: Calculate the comprehensive quality score using multi-source heterogeneous data, predict the state degradation trend in the future period based on the comprehensive quality score, determine the state degradation degree based on the state degradation trend, and issue an early warning signal when the state degradation degree reaches the preset condition.

[0071] Based on the weighted harmonic average quality score and early warning, a multi-dimensional quality score is calculated from the original multi-source heterogeneous data, including image defect score, size deviation score, vibration anomaly score, stability score and compliance score, and a comprehensive quality score is calculated accordingly.

[0072] like Figure 4 As shown, this step specifically includes the following sub-steps.

[0073] S1031: Calculate image defect score, size deviation score, vibration anomaly score, stability score and compliance score using multi-source heterogeneous data.

[0074] in, Image defects are scored; B is the full score constant, with a value of 100, that is, the image defects are quantitatively scored using a percentage system. Number of defect categories; For the first The weighting coefficient of each defect; For the first The projected area of ​​each defect; This represents the total surface area.

[0075] The dimensional deviation score is calculated based on the relative error between the actual dimensional measurement and the standard dimensional value: in, Scoring for dimensional deviations; These are the actual measured dimensions. These are standard size values.

[0076] Vibration anomaly score is calculated based on the ratio of the signal standard deviation to the mean: in, Scoring for vibration anomalies; For exponential operations with the natural constant as the base; The standard deviation of the vibration signal data; This represents the mean value of the vibration signal data.

[0077] Stability scores are used to calculate the offset of environmental data such as temperature and pressure, and are scored using a Gaussian membership function.

[0078] in, Assess stability score; For exponential operations with the natural constant as the base; The allowable standard deviation of fluctuation ranges from 0.05 to 0.20. These are real-time environmental data measurements. This is the standard value for environmental data. When the environmental data offset is too large, the stability score... It will drop rapidly.

[0079] The compliance score is used to check whether the processing time is within the allowable deviation range; the greater the deviation, the more points are deducted. in, For compliance scoring; This is for calculating the maximum value. The actual processing time recorded by RFID; Standard beat time; In this embodiment, the maximum tolerance deviation threshold is used. According to the process cycle time specification, its value is the standard cycle time. 20% of .

[0080] When the actual processing time Relative to standard beat time The deviation reached At that time, compliance scoring It dropped to 0 points.

[0081] S1032: The weighted harmonic averaging method is used to calculate the comprehensive quality score based on image defect score, size deviation score, vibration anomaly score, stability score and compliance score.

[0082] Where S represents the overall quality score; The number of data sources; Attention weights; For the first The rating of each dimension, when hour, These represent image defect score, size deviation score, vibration anomaly score, stability score, and compliance score, respectively.

[0083] The harmonic averaging method can amplify the impact of a significant decline in any dimension index on the overall quality score, thereby improving sensitivity to local defects. If the overall quality score S is lower than a preset threshold, preliminary parameter correction suggestions are output.

[0084] In this embodiment, the preset threshold value is 80. In other embodiments, the preset threshold can be set according to specific needs.

[0085] The preliminary parameter correction suggestion is a parameter adjustment prompt corresponding to the quality dimension with the lowest current score. For example, when the image defect score is low... At its lowest setting, the output provides correction suggestions such as reducing machining speed, changing tools, or adjusting the machining path; when the dimensional deviation score is... At its lowest setting, the output provides correction suggestions for tool compensation and feed rate fine-tuning; when vibration anomaly is scored... At its lowest setting, the output spindle speed and depth of cut are adjusted with corrective suggestions; when the stability score is... At its lowest point, provide compensation and correction suggestions for environmental parameters such as output temperature and pressure; when compliance score... At the lowest level, provide suggestions for adjusting the output process cycle time and execution sequence.

[0086] S1033: Construct a scoring sequence using the comprehensive quality score within a dynamic sliding window, input the scoring sequence into a Long Short-Term Memory (LSTM) network, and obtain the predicted value within a preset time period in the future.

[0087] The time-series feature values ​​of the comprehensive quality score S are extracted by combining a dynamic sliding window mechanism. The size of the dynamic sliding window is dynamically scaled according to the ratio of the standard deviation to the mean of the recent comprehensive quality score series.

[0088] The size of the dynamic sliding window is defined as follows: in, The size of the dynamically sliding window; For the most recent The standard deviation of the overall quality score S at each time point; This is an adjustment factor, and its value range is... The default value is 1.0. The larger the K value, the larger the window adjustment range, the higher the monitoring sensitivity but the lower the robustness. The smaller the K value, the smoother the window adjustment. For the most recent The mean of the overall quality score S at each time point.

[0089] When the overall quality score fluctuates more, the standard deviation As it increases, its relationship with the mean... As the ratio increases, the dynamic sliding window automatically expands to incorporate more historical scoring data, smooth out the impact of random fluctuations, and enhance the robustness of trend prediction; when the overall quality score is stable, the standard deviation... with the mean As the ratio decreases, the dynamic sliding window automatically shrinks to improve the monitoring sensitivity of local quality fluctuations.

[0090] The temporal feature values ​​are input into the Long Short-Term Memory (LSTM) network in chronological order. The LSTM processes the scoring sequence through forward LSTM units to capture past information of the sequence.

[0091] To further improve stability, this embodiment introduces a Dropout layer between each LSTM layer to prevent overfitting. The LSTM hidden state update formula is: in, for A comprehensive quality score for each moment; for The network's hidden state at any given moment; for The network's hidden state at any given moment.

[0092] The LSTM network specifically adopts a two-layer bidirectional LSTM architecture: the input layer receives the comprehensive quality score sequence S within a dynamic sliding window, and expands it into dimensions over time steps. The input tensor, i.e., the feature dimension of each time step is 1, and the feature value is... Moment's overall quality score The default window base length is 32, and it is adaptively adjusted within the range of [16, 128] according to the dynamic sliding window formula.

[0093] The bidirectional LSTM layer is composed of a first bidirectional LSTM layer and a second bidirectional LSTM layer stacked in cascade. Each bidirectional LSTM layer contains two directions, forward and backward, with a hidden layer dimension of 64 in each direction. After the outputs of each bidirectional LSTM layer are concatenated along the feature dimension, the feature dimension of each time step is 128. Dropout layers are set between each layer with a dropout rate of 0.2.

[0094] The LSTM unit employs a standard gating structure, with the forget gate, input gate, and output gate all using the Sigmoid activation function, and the candidate memory state and hidden state using the tanh activation function. The attention layer receives the hidden state sequence output from the second bidirectional LSTM layer, and also receives the attention weights. As prior weights, the hidden states at each time step are weighted and summed after normalization using the Softmax function to generate a context vector with dimension 128. The output layer is a fully connected layer used to linearly map the context vector to the predicted value of the comprehensive quality score at the next T steps, where T ranges from [1, 10]. In this embodiment, T is set to 5.

[0095] S1034: Calculate the predicted decline rate using the predicted value. When the predicted decline rate exceeds a preset prediction rate threshold, generate an early warning signal. The early warning signal includes two status bits: early warning state and normal state.

[0096] When the predicted decline rate indicates that the overall quality score will continue to decline over a certain period of time in the future, and the decline rate exceeds the preset threshold of 5% / step, an early warning signal is immediately generated, i.e., the warning signal status bit Flag=1; otherwise, the warning signal status bit Flag=0.

[0097] The comprehensive quality score S, early warning signal and predicted decline rate are synchronously transmitted to the dynamic weight adaptive adjustment part of step S104, the distributed federated parameter aggregation of step S105 and the reinforcement learning hierarchical decision of step S106.

[0098] S104: Slice the feature set by channel to obtain the feature components of each data source, calculate the mutual information between the feature components of each data source and the target quality index, and normalize the mutual information into attention weights.

[0099] Dynamic weight adaptive adjustment calculates the correlation between different data sources and the target quality index using mutual information (MI), and dynamically allocates attention weights based on the MI value to automatically reduce the weight of abnormal data sources when sensor drift or local noise interference occurs. Specifically, it includes the following: Obtain the predefined index range of each data source on the channel dimension.

[0100] Unify high-dimensional feature sets Mapping to a predefined feature index space yields a unified high-dimensional feature set.

[0101] Based on the arrangement order of the image feature tensor, fixed-length feature vector, first numerical vector, second numerical vector, and third numerical vector during concatenation in the channel dimension in step S1021, the channel position of each data source in the unified multi-channel feature tensor is determined, and the predefined index range of each data source feature in the channel dimension is obtained, specifically: The channel interval corresponding to the image feature tensor is used as the predefined index range of the image data source, the channel interval corresponding to the fixed-length feature vector is used as the predefined index range of the vibration data source, the channel interval corresponding to the first numerical vector is used as the predefined index range of the geometric dimension data source, the channel interval corresponding to the second numerical vector is used as the predefined index range of the environmental parameter data source, and the channel interval corresponding to the third numerical vector is used as the predefined index range of the RFID data source.

[0102] Based on the predefined index range of each data source feature in the channel dimension, the mapped unified high-dimensional feature set is sliced ​​by channel to extract the feature components of each data source, so as to analyze and evaluate the independent contribution of each data source on the basis of the fused features.

[0103] The predefined index ranges of each data source are arranged sequentially along the channel dimension and do not overlap with each other, and remain fixed during the processing of the feature set through the directional self-attention layer and the depthwise convolutional feedforward network.

[0104] Using the comprehensive quality score S and the early warning signal as the target quality index t, the mutual information between the feature components of each data source and the target quality index is calculated. And adjust the attention weights of each data source based on mutual information, using the following formula: in, For each data source feature component With target quality indicators The mutual information is used to quantify the contribution of each data source to the current decision. The larger the mutual information value, the stronger the correlation between the data source and the target quality indicator. The value represents the number of data sources; in this embodiment, it is 5.

[0105] Feature components of each data source With target quality indicators mutual information The calculation process is as follows: Based on the feature components of each data source and target quality indicators joint probability distribution and marginal probability distribution and The mutual information value is calculated using the following formula: in, Indicates calculation Logarithmic operations with base 2.

[0106] The calculated attention weights Input to the gated cross-modal attention layer for linear direction self-attention feature enhancement in step S102, and adjust the weight ratio of each data source in the enhancement process.

[0107] During the system initialization phase, the attention weights of each data source are... Uniform initialization is used: In subsequent iterations, the attention weights of each data source are dynamically updated using mutual information metrics. .

[0108] Attention weights for each data source The data are input to the gated cross-modal attention layer in step S102 and the attention layer in the prediction step in step S103, respectively, so that the production line can automatically reduce the impact of noise data when the sensor drifts or is interfered with.

[0109] When production line conditions change, the contribution of each data source will change synchronously, and the attention weight of each data source will also change. It will automatically adjust. For example, when there is abnormal vibration during processing, the MI of the vibration data source is greatly increased, its attention weight is increased, and vibration features are enhanced during feature enhancement. When environmental noise increases, the MI of the environmental data source is decreased, its attention weight is reduced, and environmental noise is suppressed during feature enhancement.

[0110] In addition, this embodiment also assigns attention weights to each data source. The data is transferred to the distributed federated parameter aggregation in step S105 as local training data.

[0111] S105: Based on the federated learning algorithm, attention weights, comprehensive quality scores and real-time production line parameters are used as local data to generate global optimization parameters.

[0112] Distributed federated parameter aggregation enables collaborative model training through federated learning, achieving cross-production line collaborative optimization. This embodiment adopts an asynchronous federated architecture with cloud-edge collaboration, specifically: the edge side is responsible for feature extraction and local model training, where feature extraction is accelerated to achieve millisecond-level inference through TensorRT; the central node on the cloud side is responsible for parameter aggregation for federated learning, which is performed asynchronously in the background and does not occupy the real-time control cycle of the foreground; only model parameters are transmitted between the edge side and the cloud side, without transmitting raw data, to ensure production line data privacy.

[0113] TensorRT is a deep learning inference optimizer and runtime engine provided by NVIDIA.

[0114] like Figure 5 As shown, this step includes the following sub-steps.

[0115] S1051: Use the attention weights, comprehensive quality scores, and real-time production line parameters of each production line node as local data to train the model independently on the local machine and obtain local parameters.

[0116] The large-scale optimization task is decomposed into local sub-tasks. Each production line node uses data such as attention weights, comprehensive quality scores, and real-time production line parameters in the edge computing unit to train the production line optimization model, obtain local model parameters, and upload the local model parameters or gradient information to the central node to ensure data privacy.

[0117] S1052: The central node asynchronously collects the local parameters and corresponding sample sizes of each production line node in the background, and aggregates them through a federated averaging algorithm to generate global optimization parameters.

[0118] in, Parameters are optimized globally; These are the local parameters for the k-th production line node; Let be the sample size of the k-th production line node; This represents the total sample size across all production line nodes.

[0119] In this embodiment, the aggregation frequency is set to perform global synchronization once every 50 local iteration cycles.

[0120] S1053: Distribute global optimization parameters to each production line node.

[0121] S106: Using the global optimization parameters as initial values, the multi-objective Soft Actor-Critic algorithm is used to output the action vector increment, and the real-time production line parameters are updated using the action vector increment to obtain the optimal production line parameters.

[0122] The reinforcement learning hierarchical decision-making system achieves automated parameter optimization through an improved multi-objective Soft Actor-Critic algorithm.

[0123] The improved multi-objective Soft Actor-Critic algorithm's network structure includes a policy network (Actor network), a first evaluation network (Critic network Q1), a second evaluation network (Critic network Q2), a target policy network, and a target evaluation network. Both the policy network and the target policy network employ a 4-layer fully connected structure with hidden layer dimensions of [256, 128] and ReLU activation function. The policy network's input is a state vector, and its output layer uses the tanh activation function to output continuous action vectors. The first evaluation network and the second evaluation network form a dual evaluation network, also employing a 4-layer fully connected structure with hidden layer dimensions of [256, 128] and ReLU activation function. Both take the concatenation of the state vector and the continuous action vector as input and output Q-value estimates for each optimization objective: production efficiency, cost, stability, and defect rate. The smaller of the two estimates is taken as the conservative Q-value estimate to alleviate the Q-value overestimation problem. The target policy network and the target evaluation network track the parameters of the policy network and evaluation network using a soft update method, with a soft update coefficient of 0.005.

[0124] This step specifically includes the following: The state space of the multi-objective Soft Actor-Critic algorithm is defined as a combination of global optimization parameters, comprehensive quality scores, early warning signals, and real-time production line parameters; the action space is a continuous action vector, including the fine-tuning amplitude and direction of each process parameter and the execution sequence.

[0125] At any given moment, data is collected via edge sensors, and real-time features are obtained using a TensorRT-accelerated feature extraction network. Subsequently, the four types of information are concatenated to construct the state vector for that moment. This state vector serves as the input to the Actor Network, used to determine the agent's continuous action vectors (i.e., the fine-tuning amplitude, direction, and execution timing of each process parameter).

[0126] Actions in the action space are defined as continuous action vectors. ,in, This represents the fine-tuning amount of the j-th process parameter, including the fine-tuning amplitude and direction of processing speed, processing temperature, vibration frequency, feeding speed, etc. Each dimension corresponds to a fine-tuning value of a process parameter to be optimized. The positive and negative signs indicate the adjustment direction, and the absolute value represents the adjustment amplitude. This represents the number of process parameters to be optimized. The action vector also includes the execution timing. It is used to determine when an action takes effect in the production line control cycle.

[0127] Using the multi-objective Soft Actor-Critic algorithm, the agent outputs a continuous action vector based on the current state. The policy network directly generates action values ​​and explores by adding noise. Continuous action vectors It directly affects the real-time operating environment of the production line, incrementally updates the corresponding process parameters, and obtains the status and multi-objective rewards for the next moment.

[0128] The reward function is defined as a weighted sum of efficiency per unit time, cost per unit product, stability, and defect rate.

[0129] Before calculating the reward function R, production efficiency, cost, stability, and defect rate need to be Min-Max normalized and mapped to the [0,1] interval. The stability term is associated with the overall quality score. ,pass Achieve dimensional uniformity.

[0130] The calculation model for the reward function is as follows: in, The preset balance coefficients represent the degree of preference for different objectives, and the initial values ​​of each weight coefficient are as follows: .

[0131] in, The initial stability weight is set to 0.25 in this embodiment; This is the warning status bit. When the warning signal is in the warning status bit... (When an early warning is issued), a preset step size is used. The stability weight is increased, forcing the agent to prioritize conservative risk-avoidance process parameters. In this embodiment, the preset step size... The value of is 0.1, and the remaining weights are normalized proportionally to ensure that the sum is 1.

[0132] By continuously interacting and learning from the actual operating conditions of the production line, the reinforcement learning agent gradually converges to the optimal parameter configuration strategy, maximizes the accumulated expected reward, and outputs the optimal production line parameter P, including the optimal values ​​of core process parameters such as processing speed, temperature, vibration frequency, and feeding speed.

[0133] The optimal production line parameter P and the warning status bit Flag of the warning signal are used for hierarchical instruction conversion: If Flag=0, the optimal production line parameter P is converted into a regular fine-tuning instruction to achieve incremental process optimization. If Flag=1, the optimal production line parameter P is converted into an emergency correction instruction, which simultaneously triggers a partial shutdown of the production line for inspection to quickly suppress the trend of quality decline.

[0134] The virtual programmable logic controller (vPLC) connected to the production line converts control commands into executable signals adapted to the production line equipment, including adjusting the feeding speed, optimizing the processing temperature profile, fine-tuning the vibration frequency, and adjusting the path.

[0135] The Industrial Internet of Things (IIoT) sends control commands to machine tools, conveying devices, and other equipment execution units to adjust process parameters and collect production line parameters and quality data after command execution. The production line parameters after command execution are fed back to feature enhancement in step S102 and quality scoring and early warning in step S103, updating the gating weight matrix and encoder parameters in step S102, and updating the LSTM layer parameters and attention layer weights for trend prediction in step S103, thus achieving iterative optimization of the system.

[0136] Through the above technical solution, this embodiment provides a production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning. The method works collaboratively through data acquisition and spatiotemporal resampling alignment, linear directional self-attention feature enhancement, quality scoring and early warning, dynamic weight adaptive adjustment, distributed federated parameter aggregation, and hierarchical decision-making execution steps in reinforcement learning. This method enhances the features of multi-source data by introducing a lightweight Transformer model with a directional self-attention mechanism, generating a unified feature representation, and calculates a comprehensive quality score based on a multi-dimensional quality evaluation model. A dynamic sliding window mechanism is constructed, and quality fluctuation prediction and early warning are achieved through a time-series prediction network. In a multi-node environment, federated learning is used for collaborative parameter updates, and multi-objective reinforcement learning algorithms are combined to optimize and make decisions on production line process parameters, achieving cyclical control. This embodiment can achieve deep fusion and real-time optimization adjustment of multi-source data, effectively solving problems such as insufficient efficiency of multi-source heterogeneous data fusion, insufficient spatiotemporal correlation modeling, data privacy risks in cross-node collaboration, and lack of adaptive adjustment mechanisms in existing industrial production lines, and improving the stability of production line operation and the accuracy of quality control.

[0137] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.

Claims

1. A method for optimizing production line parameters based on multi-source heterogeneous data fusion and federated reinforcement learning, characterized in that, include: Collect heterogeneous data from multiple sources and preprocess it to obtain preprocessed data; Based on the preprocessed data, fusion features are extracted and then input into the Transformer model with a fusion direction self-attention mechanism to obtain the feature set. A comprehensive quality score is calculated using multi-source heterogeneous data. The state degradation trend in the future period is predicted based on the comprehensive quality score, and an early warning signal is issued when the state degradation reaches the preset condition. The feature set is sliced ​​by channel to obtain the feature components of each data source. The mutual information between the feature components of each data source and the target quality index is calculated, and the mutual information is normalized into attention weights. Based on the federated learning algorithm, attention weights, comprehensive quality scores and real-time production line parameters are used as local data to generate global optimization parameters; Using the global optimization parameters as initial values, the multi-objective Soft Actor-Critic algorithm is used to output the action vector increment, and the real-time production line parameters are updated using the action vector increment to obtain the optimal production line parameters.

2. The production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning according to claim 1, characterized in that, The process involves extracting fusion features from preprocessed data, inputting these features into a Transformer model with a fusion direction self-attention mechanism, and obtaining a feature set, including: The preprocessed data is normalized and denoised using wavelet to obtain the first data. The first data is then mapped to the same feature space through a linear projection layer to obtain the fused features. A directional self-attention layer is used to extract spatial features from the fused features to obtain the output features; The output features are input into a deep convolutional feedforward network for feature transformation and enhancement to obtain intermediate features; The intermediate features are input into a multi-layered stacked directional attention layer and a deep convolutional feedforward network for alternating processing to obtain a feature set.

3. The production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning according to claim 2, characterized in that, The preprocessed data is normalized and subjected to wavelet denoising to obtain first data. The first data is then mapped to the same feature space through a linear projection layer to obtain fused features, including: A convolutional neural network is used to extract the spatial features of the image data in the preprocessed data to obtain the image feature tensor; Wavelet denoising and fast Fourier transform are performed on the vibration signal data in the preprocessed data to obtain the frequency domain features of the vibration signal data. The frequency domain features are then encoded using a one-dimensional convolutional short sequence to obtain a fixed-length feature vector. Construct a first numerical vector based on the geometric dimensions in the preprocessed data; A second numerical vector is constructed based on the environmental data in the preprocessed data; A third numerical vector is constructed based on the RFID identification information in the preprocessed data; The dimensions of the unified image feature tensor, fixed-length feature vector, first numerical vector, second numerical vector, and third numerical vector; The unified multi-channel feature tensor, fixed-length feature vector, first numerical vector, second numerical vector and third numerical vector are concatenated according to the channel dimension to obtain a unified multi-channel feature tensor. By using a linear projection layer, the number of channels in a unified multi-channel feature tensor is compressed to a preset dimension to obtain fused features.

4. The production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning according to claim 3, characterized in that, The feature set is sliced ​​by channel to obtain feature components from each data source, including: Obtain the predefined index range of each data source in the channel dimension; The feature set is mapped to a predefined feature index space to obtain the mapped feature set; Based on the predefined index range, the feature set after mapping is sliced ​​by channel to obtain the feature components of each data source.

5. The production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning according to claim 4, characterized in that, The step of obtaining the predefined index range of each data source in the channel dimension includes: Based on the arrangement order of the image feature tensor, fixed-length feature vector, first numerical vector, second numerical vector and third numerical vector when concatenating in the channel dimension, the channel position of each data source in the unified multi-channel feature tensor is determined. The channel interval corresponding to the image feature tensor is used as the predefined index range of the image data source, the channel interval corresponding to the fixed-length feature vector is used as the predefined index range of the vibration data source, the channel interval corresponding to the first numerical vector is used as the predefined index range of the geometric dimension data source, the channel interval corresponding to the second numerical vector is used as the predefined index range of the environmental parameter data source, and the channel interval corresponding to the third numerical vector is used as the predefined index range of the RFID data source. The predefined index ranges of each data source are arranged sequentially along the channel dimension and do not overlap with each other. Furthermore, the predefined index ranges of each data source remain fixed during the processing of the feature set through the directional self-attention layer and the deep convolutional feedforward network.

6. The production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning according to claim 5, characterized in that, The calculation of mutual information between the feature components of each data source and the target quality index, and the normalization of mutual information into attention weights, includes: Using the comprehensive quality score and early warning signal as the target quality indicators, the mutual information between the feature components of each data source and the target quality indicators is calculated, and the attention weights of each data source are adjusted based on the mutual information. : in, For each data source feature component With target quality indicators Mutual information; This represents the number of data sources.

7. The production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning according to claim 2, characterized in that, The method employs a directional self-attention layer to extract spatial features from the fused features, resulting in output features, including: A fully connected layer is used to generate a query matrix, a key matrix, and a value matrix. Corresponding query matrices and key matrices are generated for the height and width directions, respectively. The query matrix is ​​input into the Softmax activation function to obtain the directional weights. The directional weights are multiplied by the key matrices of the corresponding directions to obtain the contextual relevance in the height and width directions. The contextual relevance in the height and width directions is multiplied by the value matrices, respectively, to obtain the directional attention feature maps in the height and width directions. The directional attention feature maps in the height and width directions are added together to obtain the output features.

8. The production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning according to claim 1, characterized in that, A comprehensive quality score is calculated using multi-source heterogeneous data. Based on this score, the trend of state degradation in future periods is predicted. An early warning signal is issued when the degree of state degradation reaches a preset condition, including: Image defect score, size deviation score, vibration anomaly score, stability score, and compliance score are calculated using multi-source heterogeneous data. The weighted harmonic averaging method is used to calculate the comprehensive quality score based on image defect score, size deviation score, vibration anomaly score, stability score, and compliance score. A scoring sequence is constructed using the comprehensive quality score within a dynamic sliding window. The scoring sequence is then input into an LSTM network to obtain the predicted value within a preset time period. The predicted decline rate is calculated using the predicted value. When the predicted decline rate exceeds a preset prediction rate threshold, an early warning signal is generated. The early warning signal includes an early warning state and a normal state.

9. The production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning according to claim 1, characterized in that, The federated learning algorithm uses attention weights, overall quality scores, and real-time production line parameters as local data to generate global optimization parameters, including: The attention weights, comprehensive quality scores, and real-time production line parameters of each production line node are used as local data to train the model independently on the local machine to obtain local parameters. The central node asynchronously collects local parameters and corresponding sample sizes from each production line node in the background, and aggregates them to generate global optimization parameters. : in, These are the local parameters for the k-th production line node; Let be the sample size of the k-th production line node; This represents the total sample size across all production line nodes. Global optimization parameters are distributed to each production line node.

10. The production line parameter optimization method based on multi-source heterogeneous data fusion and federated reinforcement learning according to claim 1, characterized in that, The process of using global optimization parameters as initial values, employing a multi-objective Soft Actor-Critic algorithm to output action vector increments, and using these increments to update real-time production line parameters to obtain optimal production line parameters includes: The state space of the multi-objective Soft Actor-Critic algorithm is set as a combination of global optimization parameters, comprehensive quality score, early warning signal and real-time production line parameters, and the action space is a continuous action vector, including the fine adjustment amplitude and direction of each process parameter and the execution sequence. The multi-objective Soft Actor-Critic algorithm outputs an action vector based on the current state, generates action values ​​through a policy network, applies the action values ​​to the real-time operating environment of the production line, incrementally updates the corresponding production line parameters, and obtains the state and multi-objective reward at the next moment. The reward function is a weighted sum of production efficiency, cost, stability and defect rate after normalization and according to a preset balance coefficient. When the warning signal is in a warning state, the stability weight is increased by a preset step size. The multi-objective Soft Actor-Critic algorithm learns interactively with the actual operating conditions of the production line, maximizes the accumulated expected reward, and outputs the optimal production line parameters after convergence.

Citation Information

Patent Citations

  • Production process control method and system based on multi-source data fusion and intelligent algorithm

    CN121722070A