Lithium battery industry MES system production scheduling method based on deep learning
By applying deep learning technology in the MES system of the lithium battery industry, combining Siamese network, Transformer-XL model and neural Turing machine, the problems of slow production scheduling response, difficult resource coordination and lack of dynamic update capabilities in traditional MES systems are solved, and efficient and flexible production scheduling solutions are achieved, improving production efficiency and adaptability.
Patent Information
- Application Number
- CN202510585228.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2025-06-03
- Estimated Expiration
- 2045-05-08
AI Technical Summary
Traditional MES systems face problems in the lithium battery industry with slow production response, difficulty in resource coordination, and lack of dynamic update capabilities, especially in the face of fluctuations in customer demand, equipment failures and complex multi-process processes.
The production scheduling method based on deep learning is adopted, combined with the Siamese network, Transformer-XL model and neural Turing machine, a production scheduling instruction generation method that depends on multi-process, dynamic resources and cross-cycle tasks is constructed. This method generates efficient and flexible production schedule by extracting similarity characteristics between time steps, long-term dependence modeling and dynamic read and write operations.
It significantly improves the modeling accuracy, response speed and adaptability of the production scheduling model, enhances the decision-making efficiency and execution flexibility of the MES system when facing a complex production environment, and improves the capacity utilization rate and resource allocation efficiency.
Smart Images

Figure CN120087729A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lithium battery production, and particularly to a production scheduling method for a lithium battery industry MES system based on deep learning. Background Art
[0002] The Manufacturing Execution System (MES) has been widely applied in major industrial manufacturing industries. MES is mainly used to connect the planning layer and the control layer of an enterprise, and undertakes tasks such as the collection, monitoring, and command and dispatch of production process data. It is a key system for realizing workshop-level manufacturing management. In the lithium battery industry, due to its characteristics such as complex processes, numerous procedures, intensive equipment, and short product cycles, the importance of the MES system is particularly prominent. An efficient MES system can not only improve production capacity utilization, but also effectively reduce production bottlenecks and improve resource allocation efficiency. However, the production scheduling methods of traditional MES systems still face many challenges in practical applications.
[0003] Currently, the mainstream production scheduling methods still mainly rely on rule-based heuristic algorithms and traditional optimization algorithms. These methods usually rely on a large number of pre-set artificial rules and assume that the production environment is static and stable. Facing the frequently fluctuating customer demands, dynamically changing equipment states, and complex multi-process flows in the lithium battery industry, this static production scheduling model seems inadequate. For example, when the material supply is interrupted, the equipment suddenly fails, or the customer orders suddenly increase, the traditional methods often cannot respond quickly, resulting in a decrease in resource utilization rate and even the overall failure of the production scheduling plan. In addition, it is difficult for these methods to effectively model the non-linear patterns, periodic characteristics, and cross-time dependencies in production data, thereby limiting the accuracy and flexibility of the production scheduling strategy.
[0004] In recent years, with the development of deep learning technology, more and more research has begun to explore its application in intelligent manufacturing, especially showing strong modeling capabilities in the field of production scheduling optimization. Models such as Convolutional Neural Network (CNN), Recurrent Neural Network (RNN), and Long Short-Term Memory Network (LSTM) have been introduced into production prediction and scheduling tasks, and certain results have been achieved. However, these models still have problems such as insufficient long-term dependence capture ability, limited input data dimension, and imperfect model memory mechanism. For example, standard RNN and LSTM are prone to gradient disappearance or gradient explosion when facing long sequence data, and it is difficult to capture the production scheduling dependence information with a long time span; while the traditional attention mechanism alleviates this problem to a certain extent, but cannot completely solve the problems such as insufficient time information expression and long-term state forgetting.
[0005] In addition, most current deep learning models are still mainly applied in the production scheduling task in a single structure, failing to fully utilize the collaborative advantages of multiple models. For example, the Siamese network has natural advantages in extracting the similarity between time series, but it is usually independently applied to anomaly detection or sample matching tasks and has not been deeply integrated with the production scheduling decision-making process; although the Transformer-XL model performs excellently in long sequence modeling, it is mainly applied in the field of natural language processing and has not formed a structured adaptation mechanism for manufacturing scheduling data; the Neural Turing Machine (NTM) has the ability to simulate the read-write storage of a Turing machine and is very suitable for complex logic and state tracking tasks, but there is still a lack of systematic research on issues such as its coupling method with manufacturing data and input structure design.
[0006] Another core difficulty faced by current deep learning-based production scheduling methods lies in the lack of an effective data fusion mechanism. In the production process of lithium batteries, information sources such as equipment status, process switching, inventory data, and historical orders are diverse and have complex time series. How to achieve effective fusion, associated modeling, and dynamic feedback of data from different sources is the key to improving the accuracy of the production scheduling algorithm. The traditional splicing-based data integration method is difficult to capture the interaction relationships between multi-dimensional heterogeneous information and cannot adaptively adjust the information weights in a dynamic environment, resulting in the production scheduling plan lacking context relevance and timeliness.
[0007] In addition, there is also a lag in the execution feedback mechanism of existing production scheduling methods. Most models adopt the method of offline training and static deployment and lack the ability to interact with the production execution layer in real time. Once an abnormality occurs at the production site, the model parameters cannot be updated in a timely manner, and the production scheduling strategy cannot be adjusted quickly, thus affecting the stable operation of the entire production chain. Especially in an environment such as the lithium battery industry where high requirements are placed on response speed and flexible production scheduling, the low timeliness and weak adaptability of existing methods seriously restrict the improvement of the intelligent level.
[0008] Therefore, how to provide a production scheduling method for the MES system in the lithium battery industry based on deep learning is an urgent problem that needs to be solved by those skilled in the art. Summary of the Invention
[0009] An object of the present invention is to propose a production scheduling method for the MES system in the lithium battery industry based on deep learning. The present invention fully integrates the similarity feature extraction ability of the Siamese network, the long-term dependence modeling ability of the Transformer-XL model, and the read-write state reasoning mechanism of the Neural Turing Machine, and details a production scheduling instruction generation method for multi-processes, dynamic resources, and cross-cycle task dependencies in the lithium battery manufacturing scenario, having the advantages of high modeling accuracy, fast response speed, strong adaptability, and high production scheduling flexibility.
[0010] A scheduling method for a MES system in the lithium battery industry based on deep learning according to an embodiment of the present invention includes the following steps: S1. Collect lithium battery production data and perform preprocessing to obtain a standardized sequence; S2. Construct a Siamese network based on a two-tower structure, perform dual-branch encoding on the standardized sequence, extract similarity features of the standardized sequence through a shared-weight sub-network, and generate a similarity matrix; S3. Concatenate and fuse the similarity matrix with the standardized sequence to form a feature fusion sequence, and use the Transformer-XL model to perform long-term dependence modeling on the feature fusion sequence, and extract cross-period scheduling dependence relationships through relative position embedding and an extensible memory caching mechanism; S4. Convert the scheduling dependence relationship into a scheduling tensor containing associated weights, and input the scheduling tensor into a neural Turing machine. The neural Turing machine includes a readable and writable external storage matrix and a controller, and generates an original scheduling instruction stream through read and write operations on the scheduling tensor; S5. Based on the memory comparison mechanism inside the controller, perform conflict detection and dependence relationship rearrangement on the original scheduling instruction stream, and generate a candidate scheduling plan set by iteratively updating the state of the neural Turing machine; S6. Feed the candidate scheduling plan set back to the execution layer of the MES system for production plan execution, periodically collect feedback data, and iteratively update the parameters of the Siamese network and the Transformer-XL model.
[0011] Optionally, the production data includes equipment status, production requirements, material inventory, production progress, production processes, and historical production data.
[0012] Optionally, the preprocessing includes unified timestamp alignment, discrete value normalization, missing item interpolation and noise value elimination.
[0013] Optionally, the S2 specifically includes: S21. Denote the standardized sequence as , where represents the feature vector at time step t, t is the current time step index, satisfying , T is the total number of time steps, perform dual-channel input on the sequence X, and input it into the left tower encoder and the right tower encoder respectively; S22. Both the left tower encoder and the right tower encoder are composed of a convolutional sub-network and a fully connected layer with shared weights, extract features from the input sequence, and assume that the output of the left tower encoder is , and the output of the right tower encoder is , where , is the feature vector output by the left tower encoder and the right tower encoder after encoding. t is the index of the current time step, satisfying ; S23. Calculate the similarity between the feature output by the left tower and the feature output by the right tower to generate a similarity matrix S: ; where represents the similarity degree between time step i and time step j in the similarity matrix, represents the natural exponential function with base e, represents the inner product of the feature vectors of the left tower and the right tower, represents the square of the Euclidean distance. W represents the learnable bilinear mapping weight matrix, represents the bilinear similarity mapping under the learnable weight matrix, , are preset non - negative hyperparameters, and T is the total number of time steps.
[0014] Optionally, the Siamese network is designed with a two - tower structure, including two feature encoding sub - networks with shared parameters. Each sub - network consists of two one - dimensional convolutional layers, a batch normalization layer, and a ReLU activation function, which are used to perform parallel feature extraction on the input standardized production data sequence, and calculate the Euclidean distance, inner product, and weighted bilinear similarity between feature vectors at any time step in the output stage, and finally generate a two - dimensional similarity matrix for characterizing the similarity between different time steps.
[0015] Optionally, the specific steps of S3 are as follows: S31. Concatenate and fuse the standardized sequence X and the similarity matrix S to construct a feature fusion sequence , where T is the total number of time steps, and the feature fusion vector is expressed as , represents the feature vector at time step t, represents the similarity vector of the t - th row, represents the vector concatenation operation; S32. Use the Transformer - XL model to perform long - term dependence modeling on the feature fusion sequence. Input the fusion vector sequence F into the Transformer - XL model, and adopt relative position embedding and an expandable memory cache mechanism to model time correlation, and construct a cross - cycle state matrix Z: ; where represents the state at time step t, T is the total number of time steps, represents the query vector, Represents the key vector, Represents the value vector, Represents the relative position vector, , , Is a learnable projection matrix, Represents the fused historical state vector, b is the bias term, Represents the non-linear transformation function, Is the normalized attention weight of the t-th query and the i-th key, Is a very small constant to avoid division by zero error, Represents the Hadamard element-wise product, Represents the L2 norm, m represents the number of vectors stored in the historical memory cache, Represents the sine function, Represents the cosine function; S33. For each Perform non-linear combination with the corresponding dimension state in the historical state cache matrix To generate the scheduling dependency sequence D: ; Among them, Represents the scheduling dependency vector at time step t, Represents the activation function with residual connection, Represents the square of the Euclidean distance between the current state and the historical state, Represents the natural exponential function with base e, Represents the Sigmoid function, . Is the weight matrix, Is the bias term, Is the scaling coefficient, Represents the element-wise maximum operation.
[0016] Optionally, the feature fusion sequence F is formed by fusing the row vectors corresponding to each time step in the similarity matrix with the feature vectors at the corresponding time steps in the normalization sequence in a dimension-wise concatenation manner, forming a fusion vector sequence with a dimension equal to the sum of the original feature dimension and the similarity vector dimension, maintaining strict alignment in the time domain, and enabling each fusion vector to contain both the original production state at the current moment and the global similarity structure information, so as to enhance the Transformer-XL model's ability to jointly model local and global features when modeling cross-cycle scheduling dependencies.
[0017] Optionally, the specific steps of S4 include: S41. Convert the scheduling dependency sequence D into a scheduling tensor P containing association weights, and the construction method is as follows: Construct a corresponding dependency combination vector for any two time steps i and j , and stack all the dependency combination vectors after embedding mapping to form a third-order scheduling tensor , where represents a ternary relation combination function, represents the scheduling dependency vector at time step i, represents the scheduling dependency vector at time step j, , represents the time step distance, and T is the total number of time steps; S42. Input the scheduling tensor P into a neural Turing machine, which consists of an external storage matrix M and a set of controller state vectors H. Let the current time step controller state be , and generate a scheduling instruction stream Y through read and write operations: ; where represents the scheduling instruction at time step t, represents the controller state vector at time step t, , , represent trainable weight matrices, is a bias vector, represents the attention weight of the combination index (i, j) at the t-th moment in the scheduling tensor, represents the dependency combination vector in the scheduling tensor , is the read weight of the controller for the storage unit index k, N represents the number of storage units, represents the content of the k-th storage unit, represents the normalized activation mapping function; S43. Update the controller state vector internally according to the scheduling instruction at each moment, and perform an update on the external storage matrix M at time step t + 1, and the update process is jointly determined by the erasure vector , the addition vector and the write address weight : ; where represents the content of the k-th storage unit at time step t + 1, represents the content of the k-th storage unit at time step t, represents the Hadamard element-wise product, represents the tensor product, , represents the linear transformation matrix of the erasure vector and the addition vector, The interaction mapping matrix representing the controller state The bilateral attention coefficient function is the Sigmoid function is a non-zero constant for normalization
[0018] Optionally, the definition of the ternary relation combination function is as follows ; where , respectively represent the scheduling dependency vectors at time steps i and j represents the time step distance is a vector with all elements being 1 is the element-wise squared difference represents the Hadamard product represents the vector concatenation operation is the linear transformation matrix is the bias vector represents the mapping function with non-linear activation
[0019] Optionally, the specific S5 includes S51. Receive the scheduling instruction stream sequence , and compare each scheduling instruction with the controller state vector , and construct a memory difference vector set in combination with the state differences in the time series, where T is the total number of time steps, and each difference vector is obtained by the linear combination of the current instruction vector and the state difference, and is used to characterize the content offset degree between scheduling instructions S52. Perform a conflict detection operation on the scheduling instruction stream Y according to the memory difference vector set , and construct a scheduling conflict graph G=(V,E), where the vertex set V corresponds to the scheduling instructions at each moment, and the edges in the edge set E indicate that there are resource conflicts, timing conflicts, or material overlaps between any two instructions. By traversing each edge, extract the conflict path set C for dependency rearrangement processing S53. Based on the conflict path set C and the state difference vector set , adopt an iterative state evolution strategy to rearrange the dependency relationship of the positions of conflict instruction pairs in the execution order. In each round of iteration, reorder the instruction stream according to the resource priority, production process order, and task urgency. The updated state vector is used to reconstruct the internal memory content of the controller and complete a round of neural Turing machine state refresh S54. Generate a set of candidate production scheduling plans through iterative state evolution and conflict rearrangement operations, where each production scheduling plan represents a conflict-free production scheduling instruction sequence that satisfies the current resource constraints and production order, and upload the set of candidate production scheduling plans in real time for obtaining feedback from the execution layer of the MES system.
[0020] The beneficial effects of the present invention are as follows: First of all, by constructing a Siamese network based on a two-tower structure, the present invention effectively extracts the similarity features between time steps in lithium battery production data, solves the problem that traditional production scheduling methods cannot identify complex temporal patterns and periodic repetitive behaviors, realizes high-dimensional modeling and feature expression of the implicit similar structures in the production process, and provides a more discriminative input basis for subsequent production scheduling logic.
[0021] Secondly, the Transformer-XL model is used to model the long-term dependencies of the fused temporal features. Combining the relative position embedding and the scalable memory cache mechanism, the production scheduling relationships and evolution laws across cycles are successfully captured, significantly improving the expression ability of the production scheduling model for long-distance temporal dependencies, making up for the deficiencies of traditional RNNs and LSTMs such as memory decay and state loss when processing long sequence information, and enhancing the adaptability and robustness of the model in the face of complex situations such as sudden order changes and production capacity constraint adjustments.
[0022] Finally, with the help of the readable and writable external memory mechanism introduced by the neural Turing machine structure, dynamic read and write operations on the production scheduling tensor are completed under the drive of the controller, realizing the generation of production scheduling instruction streams under high complexity conditions, and conflict detection and dependency rearrangement are carried out through the controller memory comparison mechanism, effectively improving the logical consistency and scheduling accuracy of the instruction output. This mechanism, combined with the feedback link of the MES execution layer, realizes the dynamic update of the model, has strong real-time performance and closed-loop learning ability, and comprehensively enhances the decision-making efficiency and execution flexibility of the MES system in the intelligent production scheduling of the lithium battery industry. Description of the Drawings
[0023] The drawings are used to provide a further understanding of the present invention, and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation to the present invention. In the drawings: Figure 1 is a flowchart of a production scheduling method for an MES system in the lithium battery industry based on deep learning proposed by the present invention; Figure 2 is a schematic diagram of the overall structure of the Siamese network of a production scheduling method for an MES system in the lithium battery industry based on deep learning proposed by the present invention; Figure 3 is a schematic diagram of the production scheduling dependency and feature fusion process of a production scheduling method for an MES system in the lithium battery industry based on deep learning proposed by the present invention. Detailed implementation manners
[0024] Now, the present invention will be further described in detail with reference to the accompanying drawings. These drawings are all simplified schematic diagrams, only illustrating the basic structure of the present invention in a schematic manner, so they only show the components related to the present invention.
[0025] Reference Figures 1-3 , a scheduling method for a MES system in the lithium battery industry based on deep learning, comprising the following steps: S1. Collect lithium battery production data and perform preprocessing to obtain a standardized sequence; S2. Construct a Siamese network based on a double-tower structure, perform double-branch encoding on the standardized sequence, extract the similarity features of the standardized sequence through a shared-weight sub-network, and generate a similarity matrix; S3. Concatenate and fuse the similarity matrix with the standardized sequence to form a feature fusion sequence, and use the Transformer-XL model to perform long-term dependence modeling on the feature fusion sequence, and extract the cross-period scheduling dependence relationship through relative position embedding and an expandable memory caching mechanism; S4. Convert the scheduling dependence relationship into a scheduling tensor containing associated weights, and input the scheduling tensor into a neural Turing machine. The neural Turing machine includes a readable and writable external storage matrix and a controller, and generates an original scheduling instruction stream through read and write operations on the scheduling tensor; S5. Based on the memory comparison mechanism inside the controller, perform conflict detection and dependence relationship rearrangement on the original scheduling instruction stream, and generate a set of candidate scheduling schemes by iteratively updating the state of the neural Turing machine; S6. Feed the set of candidate scheduling schemes back to the execution layer of the MES system for production plan execution, periodically collect feedback data, and iteratively update the parameters of the Siamese network and the Transformer-XL model.
[0026] By constructing a complete scheduling process, the present invention integrates data preprocessing, similarity modeling, long-term dependence analysis, scheduling instruction generation and feedback iteration mechanisms, constituting a deep learning scheduling method for the lithium battery manufacturing scenario, solving the problems of slow scheduling response, difficult resource coordination and lack of dynamic update ability under complex process flows, and significantly improving the intelligent scheduling level of the MES system.
[0027] In this embodiment, the production data includes equipment status, production demand, material inventory, production progress, production processes and historical production data.
[0028] Through the integration of multi-source data such as equipment status, production requirements, material inventory, production progress, production processes, and historical records in lithium battery production data, the present invention ensures the integrity and timeliness of scheduling input, makes the scheduling decision closer to the actual on-site conditions, and enhances the usability and adaptability of the model.
[0029] In this embodiment, the preprocessing includes unified timestamp alignment, discrete value normalization, missing item interpolation and noise value elimination.
[0030] Through the preprocessing method of unified timestamp alignment, discrete value normalization, missing item interpolation and noise value elimination, the present invention effectively cleans the anomalies and inconsistencies in the original data, ensures the quality of the subsequent model input data, and improves the stability and accuracy of feature modeling and training.
[0031] In this embodiment, the specific steps of S2 are as follows: S21. Denote the standardized sequence as , where represents the feature vector at time step t, t is the current time step index, satisfying , T is the total number of time steps. The sequence X is input into the left tower encoder and the right tower encoder in a dual-path manner. S22. Both the left tower encoder and the right tower encoder are composed of a convolutional sub-network and a fully connected layer with shared weights, which extract features from the input sequence. Let the output of the left tower encoder be , and the output of the right tower encoder be , where , is the feature vector output by the left tower encoder and the right tower encoder after encoding, t is the current time step index, satisfying ; S23. Calculate the similarity between the left tower output feature and the right tower output feature to generate a similarity matrix S: ; where, represents the similarity degree between time step i and time step j in the similarity matrix, represents the natural exponential function with base e, represents the inner product of the left tower and right tower feature vectors, represents the square of the Euclidean distance, W represents the learnable bilinear mapping weight matrix, represents the bilinear similarity mapping under the learnable weight matrix, , are preset non-negative hyperparameters, and T is the total number of time steps.
[0032] The present invention constructs a Siamese network based on shared weights, extracts the similarity of standardized sequences using a two-tower structure, realizes dynamic matching modeling between time steps, generates a high-dimensional similarity matrix representing the global similarity structure, and provides an accurate basis for subsequent long-term dependence analysis.
[0033] In this embodiment, the Siamese network is designed with a two-tower structure, including two feature encoding sub-networks with shared parameters. Each sub-network consists of two one-dimensional convolutional layers, a batch normalization layer, and a ReLU activation function, and is used to perform parallel feature extraction on the input standardized production data sequence, and calculate the Euclidean distance, inner product, and weighted bilinear similarity between feature vectors at any time step at the output stage, and finally generate a two-dimensional similarity matrix for representing the similarity between different time steps.
[0034] The two-tower structure of the Siamese network proposed by the present invention combines convolutional encoding and non-linear activation, enhances the model's ability to extract fine-grained features in the input sequence, and at the same time combines the Euclidean distance, vector inner product, and bilinear mapping in the similarity calculation, improving the expression ability of time series similarity modeling.
[0035] In this embodiment, the specific steps of S3 are as follows: S31. Concatenate and fuse the standardized sequence X and the similarity matrix S to construct a feature fusion sequence , where T is the total number of time steps, and the feature fusion vector is expressed as , represents the feature vector at time step t, represents the similarity vector of the t-th row, represents the vector concatenation operation; S32. Use the Transformer-XL model to perform long-term dependence modeling on the feature fusion sequence, input the fusion vector sequence F into the Transformer-XL model, and adopt the relative position embedding and scalable memory cache mechanism to model the time correlation, and construct a cross-cycle state matrix Z: ; Among them, represents the state at time step t, T is the total number of time steps, represents the query vector, represents the key vector, represents the value vector, represents the relative position vector, , , is a learnable projection matrix, represents the fused historical state vector, b is the bias term, represents the nonlinear transformation function, is the normalized attention weight of the t-th query and the i-th key, is a very small constant to avoid division by zero errors, represents the Hadamard element-wise product, represents the L2 norm, m represents the number of vectors stored in the history memory cache, represents the sine function, represents the cosine function; S33, each With the history state cache matrix The corresponding dimension states are nonlinearly combined to generate the production scheduling dependency sequence D: ; in, represents the scheduling dependency vector at time step t, represents the activation function with residual connection, represents the square of the Euclidean distance between the current state and the historical state, represents the natural exponential function with base e, represents the Sigmoid function, , is the weight matrix, is the bias term, is the scaling factor, Represents the element-wise maximum value operation.
[0036] The present invention concatenates and fuses the similarity matrix with the standardized sequence, inputs it into the Transformer-XL model for long-term dependency modeling, and combines relative position embedding with historical caching mechanism to accurately characterize the implicit associations and remote dependencies between cross-cycle processes in lithium battery production, effectively improving the temporal rationality of the production schedule.
[0037] In this embodiment, the feature fusion sequence F is formed by fusing the row vector corresponding to each time step in the similarity matrix with the feature vector of the corresponding time step in the standardized sequence in a dimensional splicing manner to form a fused vector sequence whose dimension is the sum of the original feature dimension and the similarity vector dimension, while maintaining strict alignment in the time domain. Each fused vector also contains the original production status at the current moment and the global similarity structure information, so as to enhance the joint modeling capability of the Transformer-XL model for local and global features when modeling cross-cycle scheduling dependencies.
[0038] The feature fusion method designed by the present invention strictly aligns time steps, fuses the current production status with the global similarity structure, enables each moment of input to have the ability of local-global hybrid feature expression, and enhances the modeling ability and prediction accuracy of the Transformer-XL model for complex scheduling patterns.
[0039] In this embodiment, S4 specifically includes: S41. Convert the scheduling dependency sequence D into a scheduling tensor P containing association weights, and the construction method is as follows: Construct a corresponding dependency combination vector for any two time steps i and j , and stack all the dependency combination vectors after embedding mapping to form a third-order scheduling tensor , where represents a ternary relationship combination function, represents the scheduling dependency vector at time step i, represents the scheduling dependency vector at time step j, , represents the time step distance, and T is the total number of time steps; S42. Input the scheduling tensor P into a neural Turing machine, which is composed of an external storage matrix M and a set of controller state vectors H. Let the current time step controller state be , and generate a scheduling instruction stream Y through read and write operations: ; Among them, represents the scheduling instruction at time step t, represents the controller state vector at time step t, , , represent trainable weight matrices, is a bias vector, represents the attention weight of the combination index (i, j) at the t-th moment in the scheduling tensor, represents the dependency combination vector in the scheduling tensor , is the read weight of the controller for the storage unit index k, N represents the number of storage units, represents the content of the k-th storage unit, represents the normalized activation mapping function; S43. According to the scheduling instruction at each moment, perform internal update on the controller state vector , and perform the update of the external storage matrix M at time step t + 1, and the update process is jointly determined by the erasure vector , the addition vector and the write address weight : ; Among them, represents the content of the k-th storage unit at time step t + 1, represents the content of the k-th storage unit at time step t, represents the Hadamard element-wise product, represents the tensor product, , represents the linear transformation matrix of the erasure vector and the addition vector, represents the interaction mapping matrix of the controller state, represents the bilateral attention coefficient function, is the Sigmoid function, is a non-zero constant for normalization.
[0040] In this embodiment, the ternary relation combination function is defined as: ; Among them, , respectively represent the scheduling dependency vectors at time steps i and j, represents the time step distance, is a vector with all elements being 1, is the element-wise squared difference, represents the Hadamard product, represents the vector concatenation operation, is the linear transformation matrix, is the bias vector, represents the mapping function with non-linear activation.
[0041] The ternary relation combination function proposed by the present invention integrates the scheduling dependency vector, the time step difference, and the non-linear relationship between vectors, and improves the expressive ability of the scheduling tensor construction through a structured mapping method, ensuring the logical integrity and relevance of the input of the neural Turing machine, and further improving the context consistency of instruction generation.
[0042] In this embodiment, S5 specifically includes: S51. Receive the scheduling instruction stream sequence , and compare the scheduling instruction at each moment with the controller state vector , and combine the state differences in the time series to construct a memory difference vector set , where T is the total number of time steps, and each difference vector is obtained by the linear combination of the current instruction vector and the state difference, and is used to characterize the content offset degree between scheduling instructions; S52. According to the memory difference vector set Perform a conflict detection operation on the production scheduling instruction stream Y to construct a production scheduling conflict graph G=(V, E), where the vertex set V corresponds to the production scheduling instructions at each moment, and the edges in the edge set E indicate that there are resource conflicts, timing conflicts, or material overlaps between any two instructions. By traversing each edge, extract the conflict path set C for dependency rearrangement processing; S53. Based on the conflict path set C and the state difference vector set Adopt an iterative state evolution strategy to rearrange the dependencies of the positions of the conflicting instruction pairs in the execution order. In each round of iteration, reorder the instruction stream according to the resource priority, production process order, and task urgency. The updated state vector is used to reconstruct the internal memory content of the controller and complete a round of neural Turing machine state refresh; S54. Generate a candidate production scheduling plan set through iterative state evolution and conflict rearrangement operations. Each production scheduling plan represents a set of conflict-free production scheduling instruction sequences that meet the current resource constraints and production order, and upload the candidate production scheduling plan set in real time for obtaining feedback from the execution layer of the MES system.
[0043] By introducing a conflict detection method based on the controller memory comparison mechanism and combining the production scheduling conflict graph modeling and state evolution rearrangement strategy, the present invention realizes the automatic correction of resource conflicts and execution dependencies, and finally outputs a variety of candidate production scheduling plans that meet the process logic, resource limitations, and production rhythm, significantly improving the reliability, flexibility, and practicality of the production scheduling decision-making.
[0044] Example 1: To verify the feasibility of the present invention in implementation, the present invention is applied to a certain lithium battery intelligent manufacturing production line, and production scheduling optimization practice is carried out for the problems of lagging plan response, frequent equipment resource allocation conflicts, and inability to dynamically respond to process changes in its production scheduling link. The production line processes approximately 95 tons of raw materials per day, involving 19 types of raw materials, 7 major production sections, and 27 specific processes. The total number of equipment reaches 114. The production tasks highly depend on multi-process collaborative operations, and at the peak, it receives no less than 32 batches of order demands per day. The production rhythm is tight, and extremely high requirements are imposed on the response speed, accuracy, and flexible scheduling ability of the production scheduling system.
[0045] During the actual operation process, the rule-based scheduling method used by traditional MES systems shows significant limitations. Data monitoring reveals that, on average, the cumulative idle time of equipment caused by scheduling conflicts reaches 276 hours per month, the material waiting time exceeds 93 hours, and the production capacity utilization rate has long hovered below 82%. Especially in the case of sudden orders or temporary equipment maintenance, the original system is unable to perform rapid rescheduling based on the overall resource status, resulting in the delay of delivery of some high-priority orders and affecting the stability of the overall delivery schedule.
[0046] Based on the above problems, the method proposed in the present invention is embedded in the existing MES system. Using the original production data (equipment status, order requirements, inventory situation, etc.) as input, a Siamese network is used to construct a similarity structure between time steps, and then it is integrated into the Transformer-XL network to model long-term dependencies. Finally, the scheduling instruction generation is completed through the neural Turing machine module. In the initial stage of system deployment, 18,672 historical order data for 3 months are selected for pre-training. After standardization, each order corresponds to an average of 46 time step sequence points. After using GPU parallel acceleration for training, the model converges stably in the 18th round, and the training takes about 7 hours.
[0047] The actual online test cycle is set to 30 days. During this period, the system processes a total of 896 batches of orders, and the average daily order processing quantity is increased to 29.9 batches. The response time of the scheduling model for processing sudden orders (such as inserting an emergency process flow within 2 hours) is reduced from 21 minutes of the original method to 3.7 minutes, and the correct rate of automatic instruction generation is increased to 98.3%. When the system faces equipment maintenance interference, the average time to restore an executable scheduling plan is reduced from 12 minutes to 4.2 minutes. At the same time, the average idle time of equipment is reduced from the original 9.2 hours per day to 2.6 hours, the material waiting time is shortened to within 1.3 hours per day, and the production capacity utilization rate is steadily increased to 91.7%.
[0048] In addition, the introduction of the feedback mechanism enables the model to automatically complete weight fine-tuning according to the actual progress data returned by the MES execution layer, and perform model micro-updates at night every day. On average, each round of parameter correction involves 460,000 weight nodes. The dynamic nature of the model structure ensures that when facing changes in production conditions on different production days, it can still generate a reasonable set of candidate scheduling plans with process logic consistency, further improving the stability and generalization ability of the scheduling strategy.
[0049] The following table shows the comparison of the main scheduling performance before and after the deployment of the present invention: Table 1 Comparison of Core Indicators of Deep Learning Scheduling Method Before and After Deployment ; As can be seen from the above implementation, the method proposed by the present invention can effectively improve the scheduling intelligence level in the lithium battery MES production scheduling scenario and has significant optimization value. It shows strong adaptability in key links such as multi-process collaboration, resource conflict avoidance, and production plan reconstruction, not only improving the overall production efficiency of the factory but also providing a technical route for subsequent promotion and application in other complex manufacturing scenarios.
[0050] The above is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention, according to the technical solution and inventive concept of the present invention, makes equivalent substitutions or changes, and should be covered by the protection scope of the present invention.
Claims
1. A production scheduling method for the MES system in the lithium battery industry based on deep learning, characterized in that: The steps include: S1, collect lithium battery production data and preprocess it to obtain a standardized sequence; S2. Construct a Siamese network based on a dual-tower structure, perform dual-branch encoding on the standardized sequence, extract the similarity features of the standardized sequence through a shared weight sub-network, and generate a similarity matrix; S3. Concatenate and fuse the similarity matrix with the standardized sequence to form a feature fusion sequence, and use the Transformer-XL model to model the long-term dependency of the feature fusion sequence. Use relative position embedding and scalable memory cache mechanism to extract cross-cycle scheduling dependencies. S4, converting the scheduling dependency into a scheduling tensor containing an associated weight, and inputting the scheduling tensor into a neural Turing machine, wherein the neural Turing machine includes a readable and writable external storage matrix and a controller, and generates an original scheduling instruction stream by reading and writing operations on the scheduling tensor; S5. Based on the memory comparison mechanism inside the controller, the original production scheduling instruction stream is subjected to conflict detection and dependency rearrangement, and a set of candidate production scheduling plans is generated by iteratively updating the state of the neural Turing machine; S6. Feedback the candidate production scheduling plan set to the MES system execution layer for production plan execution, and periodically collect feedback data to iteratively update the Siamese network and Transformer-XL model parameters.
2. According to a deep learning-based lithium battery industry MES system production scheduling method according to claim 1, it is characterized in that: The production data includes equipment status, production requirements, material inventory, production schedule, production process and historical production data.
3. According to a deep learning-based lithium battery industry MES system production scheduling method according to claim 1, it is characterized in that: The preprocessing includes unified timestamp alignment, discrete value normalization, missing item interpolation completion and noise value removal.
4. According to a deep learning-based lithium battery industry MES system production scheduling method according to claim 1, it is characterized in that: The S2 specifically includes: S21, the standardized sequence is recorded as ,in Represents the feature vector at time step t, where t is the current time step index, satisfying , T is the total number of time steps, and the sequence X is input into two channels, which are input into the left tower encoder and the right tower encoder respectively; S22, the left tower encoder and the right tower encoder are composed of a convolutional subnetwork with shared weights and a fully connected layer. The input sequence is feature extracted. The output of the left tower encoder is , the right tower encoder output is ,in , is the feature vector output by the left-tower encoder and the right-tower encoder after encoding, t is the current time step index, satisfying ; S23, output features of the left tower With the right tower output characteristics Perform similarity calculation and generate a similarity matrix: ; in, Represents the similarity between time step i and time step j in the similarity matrix, represents the natural exponential function with base e, represents the inner product of the eigenvectors of the left tower and the right tower, represents the square of the Euclidean distance, W represents the learnable bilinear mapping weight matrix, represents the bilinear similarity mapping under the learnable weight matrix, , is a preset non-negative hyperparameter, and T is the total number of time steps.
5. According to claim 4, a lithium battery industry MES system production scheduling method based on deep learning is characterized in that: The Siamese network adopts a dual-tower structure design, which includes two feature encoding subnetworks with shared parameters. Each subnetwork consists of two one-dimensional convolutional layers, a batch normalization layer and a ReLU activation function, which is used to perform parallel feature extraction on the input standardized production data sequence and calculate the Euclidean distance, inner product and weighted bilinear similarity between feature vectors of any time step in the output stage, and finally generate a two-dimensional similarity matrix for characterizing the similarity between different time steps.
6. The method for scheduling production of a lithium battery industry MES system based on deep learning according to claim 1 is characterized in that: The S3 specifically includes: S31. Concatenate and fuse the standardized sequence X with the similarity matrix S to construct a feature fusion sequence , where T is the total number of time steps, and the feature fusion vector is expressed as , represents the feature vector at time step t, represents the similarity vector of the t-th row, Represents a vector concatenation operation; S32. Use the Transformer-XL model to model the long-term dependency of the feature fusion sequence, input the fusion vector sequence F into the Transformer-XL model, use relative position embedding and scalable memory cache mechanism to model the time correlation, and construct a cross-cycle state matrix Z: ; in, represents the state at time step t, T is the total number of time steps, represents the query vector, represents the key vector, represents a value vector, represents the relative position vector, , , is the learnable projection matrix, represents the fused historical state vector, b is the bias term, represents the nonlinear transformation function, is the normalized attention weight of the t-th query and the i-th key, is a very small constant to avoid division by zero errors, represents the Hadamard element-wise product, represents the L2 norm, m represents the number of vectors stored in the history memory cache, represents the sine function, represents the cosine function; S33, each With the history state cache matrix The corresponding dimension states are nonlinearly combined to generate the production scheduling dependency sequence D: ; in, represents the scheduling dependency vector at time step t, represents the activation function with residual connection, represents the square of the Euclidean distance between the current state and the historical state, represents the natural exponential function with base e, represents the Sigmoid function, , is the weight matrix, is the bias term, is the scaling factor, Represents the element-wise maximum value operation.
7. According to claim 6, a lithium battery industry MES system production scheduling method based on deep learning is characterized in that: The feature fusion sequence F is formed by fusing the row vector corresponding to each time step in the similarity matrix with the feature vector of the corresponding time step in the standardized sequence in a dimensional splicing manner to form a fused vector sequence whose dimension is the sum of the original feature dimension and the similarity vector dimension. It maintains strict alignment in the time domain and makes each fused vector contain both the original production status at the current moment and the global similarity structure information, so as to enhance the joint modeling capability of the Transformer-XL model for local and global features when modeling cross-cycle scheduling dependencies.
8. The method for scheduling production of a lithium battery industry MES system based on deep learning according to claim 1 is characterized in that: The S4 specifically includes: S41. Convert the production scheduling dependency sequence D into a production scheduling tensor P containing associated weights. The construction method is as follows: Construct the corresponding dependent combination vector for any two time steps i and j , and all dependent combinations of vectors After embedding and mapping, the stacking forms a third-order scheduling tensor ,in represents the ternary relation combination function, represents the scheduling dependency vector at time step i, represents the scheduling dependency vector at time step j, , represents the time step distance, T is the total number of time steps; S42, input the production scheduling tensor P into the neural Turing machine, which is composed of an external storage matrix M and a controller state vector set H. Let the controller state at the current time step be , through read and write operations to generate scheduling instruction stream Y: ; in, represents the scheduling instruction at time step t, represents the controller state vector at time step t, , , represents the trainable weight matrix, is the bias vector, represents the attention weight of the combination index (i, j) at the tth moment in the production scheduling tensor, Represents the dependent combination vector in the scheduling tensor , is the controller’s read weight for storage unit index k, N represents the number of storage units, represents the content of the kth storage unit, represents the normalized activation mapping function; S43, according to the production scheduling instructions at each moment The controller state vector Perform internal updates and perform updates to the external storage matrix M at time step t+1, and the update process is performed by erasing the vector , add vector and write address weight Joint decision: ; in, represents the content of the kth storage unit at time step t+1, represents the content of the kth storage unit at time step t, represents the Hadamard element-wise product, represents tensor product, , Represents the linear transformation matrix of the erase vector and the add vector, The interaction mapping matrix representing the controller state, represents the bilateral attention coefficient function, is the Sigmoid function, is a non-zero constant used for normalization.
9. The method for scheduling production of a lithium battery industry MES system based on deep learning according to claim 8, characterized in that: The ternary relationship combination function is defined as: ; in, , Represent the scheduling dependency vectors of time steps i and j respectively, represents the time step distance, is a vector whose elements are all 1, is the element-wise square difference, represents the Hadamard product, represents the vector concatenation operation, is the linear transformation matrix, is the bias vector, represents a mapping function with nonlinear activation.
10. The method for scheduling production of a lithium battery industry MES system based on deep learning according to claim 1, characterized in that: The S5 specifically includes: S51, receiving production scheduling instruction flow sequence , the production scheduling instructions at each moment With the controller state vector Compare and combine the state differences in the time series to construct a memory difference vector set , where T is the total number of time steps, and each difference vector It is obtained by the linear combination of the current instruction vector and the state difference, and is used to characterize the degree of content deviation between scheduling instructions; S52, based on the memory difference vector set Perform conflict detection operations on the scheduling instruction flow Y and construct a scheduling conflict graph G=(V,E), where the vertex set V corresponds to the scheduling instruction at each moment, and the edges in the edge set E represent the situation where there is a resource conflict, timing conflict or material overlap between any two instructions. By traversing each edge, the conflict path set C is extracted for dependency reordering. S53, based on the conflict path set C and the state differential vector set , an iterative state evolution strategy is used to rearrange the dependencies of conflicting instruction pairs in the execution order. In each round of iteration, the instruction stream is reordered according to resource priority, production process sequence, and task urgency. The updated state vector is used to reconstruct the controller's internal memory content and complete a round of neural Turing machine state refresh; S54. Generate a set of candidate production scheduling plans through iterative state evolution and conflict rescheduling operations, where each production scheduling plan represents a set of conflict-free production scheduling instruction sequences that meet the current resource constraints and production order, and upload the candidate production scheduling plan set in real time to obtain feedback from the MES system execution layer.
Citation Information
Patent Citations
Intelligent minimum inventory unit matching method
CN113704480A
Intelligent production scheduling method based on attention mechanism and deep reinforcement learning
CN118469744A
Chip production logistics optimization scheduling method and system based on deep reinforcement learning
CN119378953A
Virtual power plant collaborative optimization scheduling method and system based on deep reinforcement learning
CN119494521A
Tensor-based optimization method for memory management of a deep-learning GPU and system thereof
US20210142178A1
Cited By
Feed production equipment collaborative scheduling and operation optimization method based on deep learning
CN120355201A
Soft actuator viscoelastic behavior intelligent prediction method based on large language model
CN120877999A
Intelligent prediction method for soft actuator viscoelastic behavior based on large language model
CN120877999B
Intelligent control method and system based on state space
CN121091757A