A deep learning-based AI analysis model dynamic optimization method
By generating deep representation sequences and training inter-layer inverse representation recovery networks, abnormal changes within the AI analysis model are identified and local optimizations are performed. This solves the problem of inaccurate optimization range in existing technologies and achieves more stable model optimization results.
Patent Information
- Application Number
- CN202611429442.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-15
- Publication Date
- 2026-11-27
AI Technical Summary
Existing deep learning AI analysis models struggle to identify abnormal transmission relationships between deep representations within different layers of the network during the optimization process, leading to inaccurate determination of the optimization range and a lack of unified verification of the recovery of internal representations before and after local training, thus affecting the stability of the optimization results.
By acquiring historical and current operating data, a deep representation sequence is generated, an inter-layer inverse representation recovery network is trained, inter-layer closure differences are calculated, the location of the reversible break in representation is determined, local optimization is performed, a candidate optimization model is formed, and the optimization results are verified with current data to form a dynamic optimization closed loop.
It improves the accuracy and stability of AI analysis model optimization, can accurately identify the location of abnormal changes within the network, reduce the training of irrelevant parameters, reduce the impact on the original network structure, and improve the pertinence and reliability of local optimization.
Smart Images

Figure CN123180404A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of dynamic optimization technology for analytical models, and in particular to a method for dynamic optimization of AI analytical models based on deep learning. Background Technology
[0002] Existing deep learning AI analysis models typically assess their state during long-term operation by monitoring model output, training loss, or overall performance changes. When performance degrades, optimization is achieved through retraining, parameter fine-tuning, or partial network layer updates to restore the model's ability to analyze current data.
[0003] However, existing technologies mainly judge from the final output or overall performance of the model, making it difficult to identify when the transmission relationship between deep representations in each layer of the network begins to be abnormal, and also difficult to determine the specific network location where the abnormality first continues to expand along the forward propagation direction. This leads to inaccurate determination of the model optimization range, which can easily result in overall retraining or untargeted parameter adjustments. At the same time, there is a lack of a unified verification process for the recovery of internal representations before and after local training, making it difficult to guarantee the stability of the optimization results.
[0004] Therefore, how to provide a dynamic optimization method for AI analysis models based on deep learning is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] One objective of this invention is to propose a dynamic optimization method for AI analysis models based on deep learning. This invention utilizes deep learning to achieve anomaly localization and local optimization of AI analysis models, thereby improving optimization accuracy and stability.
[0006] A method for dynamically optimizing an AI analysis model based on deep learning according to an embodiment of the present invention includes the following steps:
[0007] The model running data of the AI analysis model is obtained, including historical running data and current running data. The AI analysis model is used to perform layer-by-layer forward processing to generate historical deep representation sequences and current deep representation sequences.
[0008] The interlayer reverse representation recovery network is trained based on the historical deep representation sequence. The historical deep representation sequence is reversed layer by layer, and the difference is calculated to generate the historical interlayer round-trip closed reference sequence.
[0009] An interlayer reverse representation recovery network is used to perform layer-by-layer reverse recovery of the current deep representation sequence, and the difference of the recovery results is calculated to generate the current interlayer round-trip closure error sequence.
[0010] The current inter-layer round-trip closure difference sequence is compared with the historical inter-layer round-trip closure benchmark sequence to determine the inter-layer closure deviation and the location of the reversible fracture.
[0011] The local optimization range is determined based on the location of the reversible fracture.
[0012] The network parameters within the local optimization range are locally trained using model running data, the inter-layer feature mapping relationship within the local optimization range is updated, and a candidate optimization AI analysis model is generated.
[0013] The candidate optimized AI analysis model is validated using the current running data, inter-layer closure recovery results are generated, local training results are retained or rolled back, and a dynamically optimized AI analysis model is generated.
[0014] Optionally, the generation of the historical deep representation sequence and the current deep representation sequence includes:
[0015] Obtain the model operation data of the AI analysis model, which includes historical operation data during the stable operation phase and current operation data during the current operation phase;
[0016] AI analysis models are used to process historical and current operating data layer by layer according to the network layer connection order, generating historical deep representations and current deep representations for each network layer.
[0017] Arrange the historical deep representations and the current deep representations according to the network layer connection order to generate the historical deep representation sequence and the current deep representation sequence.
[0018] Optionally, the generation of the historical inter-layer round-trip closure reference sequence includes:
[0019] According to the network layer connection order of the AI analysis model, the historical deep representations of adjacent network layers in the historical deep representation sequence are used as the input representation and target representation of the inter-layer reverse representation recovery network, respectively.
[0020] The interlayer inverse representation recovery network includes a representation adaptation layer, an inverse mapping layer, a cross-layer reconstruction layer, and a representation output layer. The representation adaptation layer transforms the input representation to the representation dimension corresponding to the target representation. The inverse mapping layer performs inverse feature mapping on the transformed input representation. Finally, the cross-layer reconstruction layer reconstructs the features from the inverse feature mapping result.
[0021] The feature reconstruction result is mapped to the representation space of the previous network layer through the representation output layer to generate the inverse recovery representation. The representation difference between the inverse recovery representation and the target representation is calculated. The network parameters of the inter-layer inverse representation recovery network are adjusted based on the representation difference to complete the training of the inter-layer inverse representation recovery network.
[0022] The interlayer reverse representation recovery network is used to recover the historical deep representation of each subsequent network layer in the historical deep representation sequence layer by layer according to the network layer connection order of the AI analysis model, so as to obtain the reverse recovery representation corresponding to each preceding network layer.
[0023] Align the reverse recovery representations corresponding to each preceding network layer with the corresponding target representations according to representation dimensions and representation positions. Calculate the representation component differences at corresponding positions and the overall representation direction differences between the reverse recovery representations and the target representations. Merge the representation component differences and the overall representation direction differences to generate historical inter-layer round-trip closure errors corresponding to each adjacent network layer. Summarize the historical inter-layer round-trip closure errors corresponding to the same network layer positions during the stable operation phase to determine the historical inter-layer round-trip closure benchmarks corresponding to each network layer position. Arrange these benchmarks according to the network layer connection order of the AI analysis model to generate a sequence of historical inter-layer round-trip closure benchmarks.
[0024] Optionally, the generation of the current inter-layer round-trip closure error sequence includes:
[0025] According to the network layer connection order of the AI analysis model, the current deep representations of adjacent network layers in the current deep representation sequence are used as the input representation and target representation of the inter-layer reverse representation recovery network, respectively. The current deep representation of the next network layer is used as the input representation, and the current deep representation of the previous network layer is used as the target representation.
[0026] An inter-layer reverse representation recovery network is used to process each input representation sequentially, and the input representation is reverse-mapped to the representation space of the previous network layer where the target representation is located according to the representation transfer relationship of the corresponding adjacent network layers, thus generating the reverse recovery representation corresponding to each adjacent network layer.
[0027] Align the reverse recovery representation with the target representation according to the representation dimension and representation position, calculate the representation component difference at the corresponding position and the overall representation direction difference between the reverse recovery representation and the target representation, and fuse the representation component difference and the overall representation direction difference to generate the current inter-layer round-trip closure error corresponding to each adjacent network layer.
[0028] According to the network layer connection order of the AI analysis model, the current inter-layer round-trip closure errors corresponding to each adjacent network layer are arranged sequentially to generate the current inter-layer round-trip closure error sequence.
[0029] Optionally, the determination of the location characterizing the reversible fracture includes:
[0030] According to the network layer connection order of the AI analysis model, the current inter-layer round-trip closure error in the current inter-layer round-trip closure error sequence is compared with the historical inter-layer round-trip closure benchmark at the same network layer position in the historical inter-layer round-trip closure benchmark sequence. The deviation direction and deviation magnitude of each current inter-layer round-trip closure error relative to the corresponding historical inter-layer round-trip closure benchmark are determined. Based on the deviation direction and deviation magnitude, the inter-layer closure deviation corresponding to each adjacent network layer is generated, and each inter-layer closure deviation is assigned to the next network layer in the corresponding adjacent network layer.
[0031] Along the forward propagation direction of the AI analysis model, the interlayer closure deviation of adjacent network layers is compared sequentially to determine the consistency of the deviation direction and the magnitude increment of the deviation of the subsequent network layer relative to the previous network layer, and the closure deviation transmission result corresponding to the adjacent network layers is generated.
[0032] The results of the closure deviation propagation are continuously analyzed according to the network layer connection order. Adjacent network layers with consistent deviation direction and continuously positive deviation magnitude increment are connected in sequence to generate continuous extension segments of closure deviation, and the starting network position corresponding to each continuous extension segment of closure deviation is determined.
[0033] By comparing the starting network positions corresponding to each continuous extension segment of the closure deviation along the forward propagation direction of the AI analysis model, the first starting network position is determined as the network position of the first continuous extension of the interlayer closure deviation, and the network position of the first continuous extension of the interlayer closure deviation is determined as the position representing the reversible fracture.
[0034] Optionally, determining the local optimization range includes:
[0035] According to the network layer connection order of the AI analysis model, the network position representing the reversible fracture location is matched with the network layer in the AI analysis model to determine the network layer corresponding to the reversible fracture location.
[0036] Based on the network layer corresponding to the location of reversible fracture, the connected network layers are searched along its input connection direction and output connection direction respectively. It is determined whether there are other network layers between the connected network layer and the network layer corresponding to the location of reversible fracture. The connected network layers that do not have other network layers are determined as directly connected network layers.
[0037] For network structures with branch connections, cross-layer connections, or parallel connections, direct connection judgment is performed along each connection path. Network layers that directly form input connections to the network layer corresponding to the location of reversible breakage or directly form output connections from the network layer corresponding to the location of reversible breakage are included in the directly connected network layers.
[0038] The network layer corresponding to the location of reversible breakage is combined with all directly connected network layers according to the network layer connection relationship in the AI analysis model to determine the local optimization range.
[0039] Optionally, the generation of the candidate optimized AI analysis model includes:
[0040] The network parameters of the AI analysis model are divided according to the local optimization range, while the network parameters outside the local optimization range remain unchanged. The network parameters of the inter-layer inverse representation recovery network are fixed, and local training is performed only on the network parameters within the local optimization range.
[0041] The AI analysis model is processed using model running data, the local training error is calculated according to the existing loss calculation method, and the local training error is passed to each network layer within the local optimization range;
[0042] The local training error is restricted to the local optimization range for backpropagation. The network parameters within the local optimization range are adjusted based on the local training error, and the feature transfer between adjacent network layers is performed again.
[0043] By iteratively adjusting the network parameters within the local optimization range, updating the inter-layer feature mapping relationship within the local optimization range, and keeping the network parameters outside the local optimization range and the network parameters of the inter-layer reverse representation recovery network unchanged;
[0044] The network parameters that have been trained locally and the updated inter-layer feature mapping relationships are retained to generate candidate optimized AI analysis models.
[0045] Optionally, the generation of the dynamically optimized AI analysis model includes:
[0046] The candidate optimized AI analysis model is processed layer by layer using the current running data to obtain the deep representations corresponding to each network layer and generate the optimized deep representation sequence.
[0047] The deep representation of the next network layer in the optimized deep representation sequence is used as the input representation, and the deep representation of the previous network layer is used as the target representation. The inter-layer reverse representation recovery network is used to perform layer-by-layer reverse recovery, and the differences in representation components and the overall representation direction are calculated to generate the optimized inter-layer round-trip closure error sequence.
[0048] The current inter-layer round-trip closure error sequence and the optimized inter-layer round-trip closure error sequence are compared with the historical inter-layer round-trip closure benchmark sequence to determine the local deviation amplitude before training and the local deviation amplitude after training, and generate the inter-layer closure recovery result.
[0049] Based on the interlayer closure recovery results, the local training results are retained when the deviation amplitude after local training is smaller than the deviation amplitude before local training. If the deviation amplitude after local training does not decrease, the corresponding network parameters are backed up to generate a dynamically optimized AI analysis model.
[0050] The beneficial effects of this invention are:
[0051] This invention acquires historical operational data from the stable operation phase and current operational data from the current operation phase, and performs layer-by-layer forward processing using an AI analysis model to form historical deep representation sequences and current deep representation sequences. Based on this, an inter-layer reverse representation recovery network is trained to restore the deep representation of the subsequent network layer to the representation space of the previous network layer. A historical inter-layer round-trip closed reference sequence is formed based on the stable operation phase. This ensures that the feature transfer states between adjacent network layers within the AI analysis model have a unified and comparable representation scale. Compared to methods that rely solely on the final output, training loss, or overall performance changes to determine the model's state, this invention further analyzes the operational state of the AI analysis model from the deep representation transfer relationships within the network, improving the ability to identify abnormal changes within the model.
[0052] This invention further compares the current inter-layer round-trip closure error sequence with the historical inter-layer round-trip closure benchmark sequence layer by layer to form the inter-layer closure deviation of each network layer. It then analyzes the continuous expansion of the inter-layer closure deviation along the forward propagation direction of the AI analysis model, thereby determining the location of the reversible break in the representation. This avoids directly determining the optimization position based solely on the abnormal amplitude of a single network layer, distinguishing between localized, occasional deviations and representational anomalies that continuously expand along the network propagation direction. This allows for a more accurate determination of the location where the inter-layer feature transfer within the AI analysis model begins to show continuous anomalies, and forms a local optimization range around this location and its directly connected network layers. This reduces the participation of irrelevant network parameters in training and minimizes the impact of overall retraining on the original network structure and stable feature transfer relationships.
[0053] Furthermore, this invention maintains the network parameters outside the local optimization range and the network parameters of the interlayer reverse representation recovery network unchanged during local training, only updating the interlayer feature mapping relationships within the local optimization range. This enables targeted optimization of abnormal network locations. After generating candidate optimized AI analysis models, the current running data and a fixed interlayer reverse representation recovery network are used to generate optimized interlayer round-trip closure difference sequences. Historical interlayer round-trip closure benchmark sequences are then used as a unified comparison basis to form interlayer closure recovery results. This allows for the retention or rollback of local training results, enabling model anomaly localization, local optimization, and optimization result verification to employ corresponding internal representation evaluation systems, forming a complete dynamic optimization closed loop. This improves the targeting, stability, and reliability of local optimization of the AI analysis model. Attached Figure Description
[0054] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:
[0055] Figure 1 This is an overall flowchart of a dynamic optimization method for AI analysis models based on deep learning proposed in this invention.
[0056] Figure 2 This is a comparison chart of the historical inter-layer round-trip closure benchmark and the current inter-layer round-trip closure difference in the dynamic optimization method of AI analysis model based on deep learning proposed in this invention. Detailed Implementation
[0057] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0058] refer to Figures 1-2 A dynamic optimization method for AI analysis models based on deep learning includes the following steps:
[0059] The model operation data of the AI analysis model is obtained. The model operation data includes historical operation data in the stable operation phase and current operation data in the current operation phase. The AI analysis model is used to process the historical operation data and the current operation data layer by layer to generate historical deep representation sequence and current deep representation sequence.
[0060] The interlayer reverse representation recovery network is trained based on the historical deep representation sequence. The interlayer reverse representation recovery network is used to recover the deep representation of the next network layer to the representation space of the previous network layer. The interlayer reverse representation recovery network is used to recover the historical deep representation sequence layer by layer and calculate the difference with the corresponding historical deep representation to generate the historical interlayer round-trip closed reference sequence.
[0061] An interlayer reverse representation recovery network is used to perform layer-by-layer reverse recovery of the current deep representation sequence, and the difference between the recovery result and the corresponding current deep representation is calculated to generate the current interlayer round-trip closure error sequence.
[0062] The current inter-layer round-trip closure error sequence is compared with the historical inter-layer round-trip closure benchmark sequence according to the network layer order to determine the inter-layer closure deviation of each network layer. The network position where the inter-layer closure deviation first continuously expands is determined along the forward propagation direction of the AI analysis model, and the network position is determined as the position representing the reversible fracture.
[0063] The local optimization range is determined based on the location of the reversible fracture. The local optimization range includes the network layer corresponding to the location of the reversible fracture and the network layer directly connected to that network layer.
[0064] Keep the network parameters outside the local optimization range in the AI analysis model unchanged, fix the network parameters of the inter-layer inverse representation recovery network, use the model running data to perform local training on the network parameters within the local optimization range, update the inter-layer feature mapping relationship within the local optimization range, and generate candidate optimization AI analysis models;
[0065] The candidate optimized AI analysis model is processed layer by layer using the current running data, and then layer by layer reverse recovery is performed using the inter-layer reverse representation recovery network to generate the optimized inter-layer round-trip closure difference sequence. The optimized inter-layer round-trip closure difference sequence is compared with the historical inter-layer round-trip closure benchmark sequence to generate the inter-layer closure recovery result. Based on the inter-layer closure recovery result, the local training results of the candidate optimized AI analysis model are retained or rolled back to generate the dynamically optimized AI analysis model.
[0066] In this embodiment, the generation of the historical deep representation sequence and the current deep representation sequence includes:
[0067] Obtain the model operation data of the AI analysis model, which includes historical operation data during the stable operation phase and current operation data during the current operation phase;
[0068] AI analysis models are used to process historical and current operating data layer by layer according to the network layer connection order, generating historical deep representations and current deep representations for each network layer.
[0069] Arrange the historical deep representations and the current deep representations according to the network layer connection order to generate the historical deep representation sequence and the current deep representation sequence.
[0070] In this embodiment, the generation of the historical inter-layer round-trip closure reference sequence includes:
[0071] According to the network layer connection order of the AI analysis model, the historical deep representations of adjacent network layers in the historical deep representation sequence are used as the input representation and target representation of the inter-layer reverse representation recovery network, respectively. The historical deep representation of the next network layer is used as the input representation, and the historical deep representation of the previous network layer is used as the target representation.
[0072] The interlayer inverse representation recovery network includes a representation adaptation layer, an inverse mapping layer, a cross-layer reconstruction layer, and a representation output layer. The representation adaptation layer transforms the input representation to the representation dimension corresponding to the target representation. The inverse mapping layer performs inverse feature mapping on the transformed input representation. Finally, the cross-layer reconstruction layer reconstructs the features from the inverse feature mapping result.
[0073] Specifically, the representation adaptation layer performs a linear mapping on the input representation according to the representation dimension of the target representation to generate an adaptation representation; the reverse mapping layer performs a reverse feature transformation on the adaptation representation to generate a reverse mapping representation; the cross-layer reconstruction layer performs feature reconstruction on the reverse mapping representation to generate a feature reconstruction result; and the representation output layer maps the feature reconstruction result to the representation space of the previous network layer according to the representation dimension and representation position of the target representation.
[0074] Specifically, the interlayer reverse representation recovery network consists of a representation adaptation layer, a reverse mapping layer, a cross-layer reconstruction layer, and a representation output layer connected in series. The output of the representation adaptation layer is connected to the reverse mapping layer, the output of the reverse mapping layer is connected to the cross-layer reconstruction layer, and the output of the cross-layer reconstruction layer is connected to the representation output layer. The input data adopts the historical deep representations corresponding to adjacent network layers in the historical deep representation sequence. The historical deep representation of the next network layer is used as the input representation, and the historical deep representation of the previous network layer is used as the target representation. The input representation and the target representation maintain the original feature vector or feature matrix format of the corresponding network layer. The representation adaptation layer converts the input representation into an adaptation representation that is consistent with the target representation dimension according to the representation dimension of the target representation.
[0075] The training data comes from the historical deep representation sequence obtained by the AI analysis model through the forward processing of historical running data during the stable operation phase. Instead of manual category labeling, the input representation and target representation are automatically paired according to the same historical running data and the position of adjacent network layers, and the target representation is used as the label data for reverse recovery.
[0076] The loss function is composed of the difference between the representation components at corresponding positions of the inverse recovery representation and the target representation, as well as the difference in their overall representation directions. The two differences are fused with the same weight. During training, a batch gradient update method is used, with 32 sets of input and target representations selected in each batch. The initial learning rate is set to 0.001. In each training round, the network parameters of the representation adaptation layer, the inverse mapping layer, the cross-layer reconstruction layer, and the representation output layer are updated sequentially. The representation differences in each round are recorded during continuous training. When the change in representation differences obtained in 10 consecutive training rounds does not exceed one percent of the representation difference in the previous round, convergence is achieved, and the network parameters at this time are used as the network parameters of the inter-layer inverse representation recovery network after training.
[0077] Using the historical deep representation correspondence between adjacent network layers during the stable operation phase of the AI analysis model as the basis for reverse recovery, the reverse representation of the inter-layer network learns the reverse representation mapping of the next network layer to the previous network layer. At the same time, the reverse recovery results are corrected by combining the differences in representation components and the overall representation direction differences, so that the obtained reverse recovery relationship can reflect the real inter-layer feature transfer characteristics under the stable operation state of the AI analysis model, and provide a unified calculation basis for the establishment of the historical inter-layer round-trip closure benchmark.
[0078] The feature reconstruction result is mapped to the representation space of the previous network layer through the representation output layer to generate the inverse recovery representation. The representation difference between the inverse recovery representation and the target representation is calculated. The network parameters of the inter-layer inverse representation recovery network are adjusted based on the representation difference to complete the training of the inter-layer inverse representation recovery network.
[0079] Specifically, the input representation and target representation corresponding to the same historical running data are combined into training sample pairs. The input representation is processed by the inter-layer reverse representation recovery network to generate the reverse recovery representation. The positional difference between the reverse recovery representation and the target representation is calculated, and the representation difference is formed by combining the difference in the overall representation direction of the two. The network parameters of the representation adaptation layer, the reverse mapping layer, the cross-layer reconstruction layer and the representation output layer are adjusted in reverse according to the representation difference to complete the training of the inter-layer reverse representation recovery network.
[0080] The interlayer reverse representation recovery network is used to recover the historical deep representation of each subsequent network layer in the historical deep representation sequence layer by layer according to the network layer connection order of the AI analysis model, so as to obtain the reverse recovery representation corresponding to each preceding network layer.
[0081] Align the back-recovery representations corresponding to each preceding network layer with the corresponding target representations according to the representation dimension and representation position. Calculate the representation component differences at the corresponding positions and the overall representation direction difference between the back-recovery representations and the target representations. Merge the representation component differences and the overall representation direction differences to generate the historical inter-layer round-trip closure difference for each adjacent network layer. Summarize the historical inter-layer round-trip closure differences corresponding to the same network layer position during the stable operation phase to determine the historical inter-layer round-trip closure benchmark for each network layer position. Arrange the benchmarks according to the network layer connection order of the AI analysis model to generate a sequence of historical inter-layer round-trip closure benchmarks.
[0082] Specifically, the sum of the absolute differences between the corresponding positions of the reversed representation and the target representation is divided by the sum of the absolute values of the corresponding positions of the target representation to obtain the representation component difference. The cosine similarity between the reversed representation and the target representation is subtracted by one to obtain the overall representation direction difference. The average of the representation component difference and the overall representation direction difference is taken to obtain the historical inter-layer round-trip closure difference. The median of multiple historical inter-layer round-trip closure differences corresponding to the same network layer position during the stable operation phase is taken to obtain the historical inter-layer round-trip closure benchmark corresponding to that network layer position.
[0083] In this embodiment, the generation of the current inter-layer round-trip closure error sequence includes:
[0084] According to the network layer connection order of the AI analysis model, the current deep representations of adjacent network layers in the current deep representation sequence are used as the input representation and target representation of the inter-layer reverse representation recovery network, respectively. The current deep representation of the next network layer is used as the input representation, and the current deep representation of the previous network layer is used as the target representation.
[0085] An inter-layer reverse representation recovery network is used to process each input representation sequentially, and the input representation is reverse-mapped to the representation space of the previous network layer where the target representation is located according to the representation transfer relationship of the corresponding adjacent network layers, thus generating the reverse recovery representation corresponding to each adjacent network layer.
[0086] Align the reverse recovery representation with the target representation according to the representation dimension and representation position, calculate the representation component difference at the corresponding position and the overall representation direction difference between the reverse recovery representation and the target representation, and fuse the representation component difference and the overall representation direction difference to generate the current inter-layer round-trip closure error corresponding to each adjacent network layer.
[0087] Specifically, the same calculation process as the historical inter-layer round-trip closure difference is used for the reverse recovery representation and the target representation. The sum of the absolute differences between the corresponding positions of the reverse recovery representation and the target representation is divided by the sum of the absolute values of the corresponding positions of the target representation to obtain the representation component difference. The cosine similarity between the reverse recovery representation and the target representation is subtracted to obtain the overall representation direction difference. The average of the representation component difference and the overall representation direction difference is taken to obtain the current inter-layer round-trip closure difference for each adjacent network layer.
[0088] According to the network layer connection order of the AI analysis model, the current inter-layer round-trip closure errors corresponding to each adjacent network layer are arranged sequentially to generate the current inter-layer round-trip closure error sequence.
[0089] In this embodiment, the determination of the location characterizing the reversible fracture includes:
[0090] According to the network layer connection order of the AI analysis model, the current inter-layer round-trip closure error in the current inter-layer round-trip closure error sequence is compared with the historical inter-layer round-trip closure benchmark at the same network layer position in the historical inter-layer round-trip closure benchmark sequence. The deviation direction and deviation magnitude of each current inter-layer round-trip closure error relative to the corresponding historical inter-layer round-trip closure benchmark are determined. Based on the deviation direction and deviation magnitude, the inter-layer closure deviation corresponding to each adjacent network layer is generated, and each inter-layer closure deviation is assigned to the next network layer in the corresponding adjacent network layer.
[0091] Specifically, the change in closure error is obtained by subtracting the historical inter-layer round-trip closure reference from the current inter-layer round-trip closure error corresponding to the same network layer position. The sign of the change in closure error indicates the direction of deviation, and the absolute value of the change in closure error indicates the magnitude of deviation. The direction of deviation and the magnitude of deviation are associated with the next network layer in the corresponding adjacent network layer to form the corresponding inter-layer closure deviation.
[0092] Along the forward propagation direction of the AI analysis model, the interlayer closure deviation of adjacent network layers is compared sequentially to determine the consistency of the deviation direction and the magnitude increment of the deviation of the subsequent network layer relative to the previous network layer, and the closure deviation transmission result corresponding to the adjacent network layers is generated.
[0093] Specifically, the interlayer closure deviation of adjacent network layers is obtained sequentially along the forward propagation direction of the AI analysis model. The deviation directions of adjacent network layers are compared to determine the consistency of the deviation directions. The deviation magnitude of the subsequent network layer is subtracted from the deviation magnitude of the previous network layer to obtain the deviation magnitude increment. The consistency of the deviation direction and the deviation magnitude increment are arranged according to the network layer connection order to generate the closure deviation propagation result.
[0094] The results of the closure deviation propagation are continuously analyzed according to the network layer connection order. Adjacent network layers with consistent deviation direction and continuously positive deviation magnitude increment are connected in sequence to generate continuous extension segments of closure deviation, and the starting network position corresponding to each continuous extension segment of closure deviation is determined.
[0095] Specifically, the closed deviation propagation results are read sequentially according to the network layer connection order. The adjacent network layer connections with continuous and consistent deviation directions and continuously positive deviation magnitude increments are sequentially connected in series. The series results with continuous network layer positions are merged to generate a continuous extended segment of closed deviation. The first network position in each continuous extended segment of closed deviation is read along the forward propagation direction to determine the corresponding starting network position.
[0096] By comparing the starting network positions corresponding to each continuous extension segment of the closure deviation along the forward propagation direction of the AI analysis model, the first starting network position is determined as the network position of the first continuous extension of the interlayer closure deviation, and the network position of the first continuous extension of the interlayer closure deviation is determined as the position representing the reversible fracture.
[0097] In this embodiment, the determination of the local optimization range includes:
[0098] According to the network layer connection order of the AI analysis model, the network position representing the reversible fracture location is matched with the network layer in the AI analysis model to determine the network layer corresponding to the reversible fracture location.
[0099] Based on the network layer corresponding to the location of reversible fracture, the connected network layers are searched along its input connection direction and output connection direction respectively. It is determined whether there are other network layers between the connected network layer and the network layer corresponding to the location of reversible fracture. The connected network layers that do not have other network layers are determined as directly connected network layers.
[0100] For network structures with branch connections, cross-layer connections, or parallel connections, direct connection judgment is performed along each connection path. Network layers that directly form input connections to the network layer corresponding to the location of reversible breakage or directly form output connections from the network layer corresponding to the location of reversible breakage are included in the directly connected network layers.
[0101] The network layer corresponding to the location of reversible breakage is combined with all directly connected network layers according to the network layer connection relationship in the AI analysis model to determine the local optimization range.
[0102] In this embodiment, the generation of candidate optimization AI analysis models includes:
[0103] The network parameters of the AI analysis model are divided according to the local optimization range, while the network parameters outside the local optimization range remain unchanged. The network parameters of the inter-layer inverse representation recovery network are fixed, and local training is performed only on the network parameters within the local optimization range.
[0104] The loss calculation method used in the training process of the AI analysis model is obtained. The model running data is used to perform forward processing on the AI analysis model, calculate the local training error according to the loss calculation method, and propagate the local training error to each network layer within the local optimization range along the back propagation direction.
[0105] The local training error is restricted to the local optimization range for backpropagation. Based on the local training error, the network parameters within the local optimization range are adjusted sequentially, and the adjusted network parameters are used to re-transfer features between adjacent network layers within the local optimization range.
[0106] Specifically, before local training begins, the network parameters within the local optimization range are saved to form the network parameters before local training. The local training error is propagated to the local optimization range along the backpropagation direction. Only the gradients corresponding to the network parameters within the local optimization range are retained to participate in the network parameter adjustment. The network parameters outside the local optimization range and the network parameters of the inter-layer inverse representation recovery network are kept unchanged. The network parameters within the local optimization range are adjusted using the retained gradients. The feature transfer between adjacent network layers within the local optimization range is re-executed using the adjusted network parameters.
[0107] By iteratively adjusting the network parameters within the local optimization range, the feature transfer between adjacent network layers changes synchronously with the adjustment of network parameters, updating the inter-layer feature mapping relationship within the local optimization range, and keeping the network parameters outside the local optimization range and the network parameters of the inter-layer reverse representation recovery network unchanged.
[0108] Specifically, after each adjustment of the network parameters within the local optimization range, the model running data is used to re-pass through the local optimization range. For each adjacent network layer within the local optimization range, the deep representation formed by the previous network layer is transferred through the adjusted network parameters to generate the deep representation of the next network layer. The network parameter adjustment and feature transfer between adjacent network layers are continuously executed, so that the correspondence between the deep representation of the previous network layer and the deep representation of the next network layer changes synchronously with the adjustment of the network parameters, and the inter-layer feature mapping relationship within the local optimization range is updated.
[0109] The network parameters within the local optimization range after local training are retained in the AI analysis model, so that the updated inter-layer feature mapping relationship is maintained within the local optimization range, while the network parameters outside the local optimization range remain unchanged, thus generating a candidate optimized AI analysis model.
[0110] In this embodiment, the generation of the dynamically optimized AI analysis model includes:
[0111] Using the current running data, the candidate optimized AI analysis model is processed layer by layer in the order of network layer connection to obtain the deep representations corresponding to each network layer. The deep representations are then arranged in the order of network layer connection to generate the optimized deep representation sequence.
[0112] According to the network layer connection order of the AI analysis model, the deep representation of the next network layer in the optimized deep representation sequence is taken as the input representation, and the deep representation of the corresponding previous network layer is taken as the target representation. The inter-layer reverse representation recovery network is used to perform reverse recovery of each input representation layer by layer to generate reverse recovery representations. The reverse recovery representations and target representations are aligned according to the representation dimension and representation position. The differences in representation components and the overall representation direction are calculated and fused. The fusion results are arranged according to the network layer connection order to generate the optimized inter-layer round-trip closure error sequence.
[0113] Specifically, an inter-layer reverse representation recovery network is used to restore the deep representation of the next network layer in the optimized deep representation sequence to the representation space of the corresponding previous network layer, generating a reverse recovery representation. The same calculation process as the historical inter-layer round-trip closure difference and the current inter-layer round-trip closure difference is used to calculate the difference in representation components and the difference in the overall representation direction, and then take the average to obtain the optimized inter-layer round-trip closure difference. The optimized inter-layer round-trip closure differences are arranged according to the network layer connection order to generate an optimized inter-layer round-trip closure difference sequence.
[0114] The current inter-layer round-trip closure error sequence and the optimized inter-layer round-trip closure error sequence are compared with the historical inter-layer round-trip closure benchmark sequence according to the same network layer position. The inter-layer closure deviation of each network layer in the local optimization range before and after local training is determined, and the deviation amplitude before and after local training for each network layer is determined. The deviation amplitude before and after local training are compared to generate the inter-layer closure recovery result.
[0115] Specifically, the inter-layer round-trip closure error is subtracted from the historical inter-layer round-trip closure benchmark corresponding to the same network layer position to obtain the inter-layer closure deviation before local training, and its absolute value is taken to obtain the deviation amplitude before local training. The optimized inter-layer round-trip closure error is subtracted from the same historical inter-layer round-trip closure benchmark to obtain the inter-layer closure deviation after local training, and its absolute value is taken to obtain the deviation amplitude after local training. The deviation amplitude before local training and the deviation amplitude after local training are compared according to the same network layer position. The deviation amplitude before local training, the deviation amplitude after local training, and the corresponding comparison results are associated according to the network layer connection order to generate the inter-layer closure recovery result.
[0116] Based on the interlayer closure recovery results, when the deviation amplitude of each network layer after local training within the local optimization range is less than the corresponding deviation amplitude before local training, the local training results of the candidate optimized AI analysis model are retained. When there is a deviation amplitude after local training that is not less than the corresponding deviation amplitude before local training, the network parameters that have been locally trained in the candidate optimized AI analysis model are backed to the corresponding network parameters in the AI analysis model to generate the dynamically optimized AI analysis model.
[0117] Specifically, the local pre-training deviation magnitude, local post-training deviation magnitude, and corresponding comparison results in the inter-layer closure recovery results are read according to the network layer connection order. The comparison results where the local post-training deviation magnitude of all network layers in the local optimization range is reduced are mapped to the local training results of the candidate optimized AI analysis model. All network parameters that have undergone local training in the local optimization range are retained. The comparison results where the local post-training deviation magnitude is not reduced are mapped to the local training back-off process. The local pre-training network parameters saved before the start of local training are used to cover all local trained network parameters in the local optimization range. The candidate optimized AI analysis model after the local training results are retained or the network parameters are backed up is used as the dynamically optimized AI analysis model.
[0118] Example 1: To verify the feasibility of this invention in practice, it was applied to an AI visual quality analysis scenario in a manufacturing enterprise. The AI analysis model used was employed to analyze continuously acquired product images during the production process. This AI analysis model had been trained and was running continuously, maintaining a stable analysis state in the initial stages. However, as the lighting conditions, product surface features, and equipment operating conditions of the acquired images changed, the deep representation transfer between some network layers within the AI analysis model gradually shifted. Although the final output of the model did not show any obvious overall anomalies, adjusting the model solely based on the final output results made it difficult to promptly identify the network locations where the internal feature transfer began to show persistent anomalies. Furthermore, the overall training process caused synchronous changes in the parameters of networks that had not yet experienced anomalies. Therefore, this invention was used to dynamically optimize the AI analysis model.
[0119] During implementation, 2400 sets of data were selected from the stable operation phase of the AI analysis model as historical operation data, and 600 sets of data were selected from the continuously collected data in the current operation phase as current operation data. Both historical and current operation data maintained the original data format of the AI analysis model. The AI analysis model was then used to perform layer-by-layer forward processing according to the network layer connection order to obtain the historical deep representations and current deep representations corresponding to each network layer. These were then arranged according to the network layer connection order to form historical deep representation sequences and current deep representation sequences, respectively. The AI analysis model used in this embodiment includes 18 network layers participating in layer-by-layer feature processing.
[0120] Based on historical deep representation sequences, the historical deep representation of the next network layer in adjacent network layers is used as the input representation, and the historical deep representation of the corresponding previous network layer is used as the target representation. This is used to train an inter-layer reverse representation recovery network. The inter-layer reverse representation recovery network adopts a structure consisting of a representation adaptation layer, a reverse mapping layer, a cross-layer reconstruction layer, and a representation output layer, sequentially connected in series. Through training, a reverse representation recovery relationship between the next network layer and the previous network layer is formed. After training, the network parameters of the inter-layer reverse representation recovery network are fixed, and this network is then used to perform layer-by-layer reverse recovery of historical deep representation sequences.
[0121] The reverse recovery representations corresponding to each network layer position are compared with the target representation. The differences in representation components and the overall representation direction are calculated and fused to obtain the historical inter-layer round-trip closure error. Then, the historical inter-layer round-trip closure errors corresponding to the same network layer position during the stable operation phase are summarized to form the historical inter-layer round-trip closure benchmark. The historical inter-layer round-trip closure benchmarks obtained at five consecutive network layer positions are 0.041, 0.043, 0.044, 0.046, and 0.045, respectively, and a historical inter-layer round-trip closure benchmark sequence is formed according to the network layer connection order.
[0122] A layer-by-layer reverse representation recovery network with fixed network parameters was used to recover the current deep representation sequence. The same calculation process for representation component differences and overall representation direction differences as in historical stages was employed. The current inter-layer round-trip closure errors for the same five network layer positions were found to be 0.045, 0.051, 0.063, 0.082, and 0.106, respectively. Comparing these current inter-layer round-trip closure errors with the corresponding historical inter-layer round-trip closure benchmarks yielded deviations of 0.004, 0.008, 0.019, 0.036, and 0.061, respectively.
[0123] Continuing to compare the interlayer closure deviations along the forward propagation direction of the AI analysis model, the deviation directions of the last three network layers remain consistent, with the deviation magnitude increasing from 0.019 to 0.036, and then to 0.061. The corresponding deviation magnitude increments are continuously positive. Therefore, the connection relationship of the aforementioned continuous network layers forms a continuous extension segment of the closure deviation. The starting network position of this continuous extension segment along the forward propagation direction is determined as the network position of the first continuous extension of the interlayer closure deviation, thus determining the location representing the reversibility break. This process avoids directly using the network layer with the largest current interlayer round-trip closure error as the starting position of the anomaly. Instead, it determines the position where the internal feature transmission begins to show a sustained anomaly based on the continuous extension process of the interlayer closure deviation along the network propagation direction.
[0124] After identifying the location of the reversible break, the corresponding network layer and the network layers directly connected to it are combined to form a local optimization range. In this run, the local optimization range involves a total of 3 network layers. The remaining 15 network layers of the AI analysis model are not included in the local training. Before the start of local training, the network parameters within the local optimization range are saved, while the network parameters outside the local optimization range remain unchanged. The network parameters of the inter-layer inverse representation recovery network are fixed. The local training error is formed using the model running data according to the loss calculation method corresponding to the existing training process of the AI analysis model. The parameters are adjusted only using the gradients corresponding to the network parameters within the local optimization range.
[0125] As network parameters are continuously adjusted within the local optimization range, the feature transfer between adjacent network layers changes synchronously, updating the inter-layer feature mapping relationship within the local optimization range. After local training is completed, a candidate optimized AI analysis model is generated. Throughout the training process, network parameters outside the local optimization range remain unchanged, thus avoiding irrelevant adjustments to network layers in the AI analysis model that do not exhibit persistent anomalies.
[0126] Subsequently, the candidate optimized AI analysis model is processed again layer by layer using the current running data to generate an optimized deep representation sequence. Then, a layer-by-layer backward representation recovery network with fixed network parameters is used for backward recovery, resulting in an optimized inter-layer round-trip closure error sequence. When comparing the three network layers within the local optimization range, the deviation amplitudes before local training are 0.019, 0.036, and 0.061, respectively, while the deviation amplitudes after local training are 0.010, 0.017, and 0.026, respectively. Since the deviation amplitudes after local training for all three network layers are smaller than those before local training, the local training results of the candidate optimized AI analysis model are retained, forming a dynamically optimized AI analysis model.
[0127] According to continuous operation records, the average deviation amplitude of the three network layers within the local optimization range decreased from 0.039 to 0.018, a reduction of approximately 53.8%. Simultaneously, the number of network layers involved in parameter adjustment decreased from 18 to 3. Under the same computing resources, the time for a single model parameter update decreased from approximately 45 minutes to approximately 17 minutes. Network parameters outside the local optimization range remained unchanged. This demonstrates that the present invention can identify current internal representation transmission changes using historical inter-layer round-trip closure benchmarks, determine the reversible break location of the representation through the first continuous expansion of inter-layer closure deviation, complete parameter adjustment for the corresponding local optimization range, and then verify the optimization results using the same inter-layer reverse representation recovery scale. This improves the targeting of anomaly localization and local optimization in AI analysis models and reduces the computational cost caused by irrelevant network parameters participating in training.
[0128] Table 1. Comparison of the overall performance of different AI analysis model optimization methods
[0129] Comparison Methods Full model global fine-tuning method End-layer fine-tuning method Fixed local network layer fine-tuning method Method of the present invention Participate in parameter adjustment of network layer number / layer 18 3 3 3 Time taken per parameter update (min) 45 16 17 17 Optimized average deviation amplitude 0.027 0.031 0.024 0.018 Average deviation amplitude decrease rate / % 30.8 20.5 38.5 53.8 Maximum deviation amplitude after optimization 0.040 0.046 0.035 0.026 Analysis accuracy / % 95.5 95.0 95.7 96.0 Peak memory usage per training session (GB) 9.6 5.1 5.3 5.5
[0130] As shown in Table 1, under the same AI analysis model, the same 600 sets of current running data, and the same computing resources, the overall fine-tuning method of the whole model requires adjusting 18 network layers, with a single parameter update taking 45 minutes and a peak memory usage of 9.6 GB. The average deviation after optimization is 0.027, and the reduction rate is 30.8%. This indicates that although overall fine-tuning can improve the running state of the AI analysis model, the participation of all network layers in backpropagation and parameter updates will lead to a large consumption of computing resources. Moreover, the training process cannot focus on the position where the internal representation anomaly begins to spread continuously.
[0131] Both the terminal network layer fine-tuning method and the fixed local network layer fine-tuning method only adjust 3 network layers, with single parameter update times of 16 min and 17 min, respectively, and peak memory usage of 5.1 GB and 5.3 GB, respectively. However, the average deviation amplitudes after optimization are 0.031 and 0.024, respectively, corresponding to a decrease rate of 20.5% and 38.5%, respectively. The terminal network layer fine-tuning method directly selects the terminal network layer of the model, and the training range may not be consistent with the actual location of the anomaly. Although the fixed local network layer fine-tuning method reduces the training range, the network layer position cannot be dynamically adjusted according to the inter-layer closure deviation changes corresponding to the current running data, so the coverage of the actual anomaly location is still limited.
[0132] The method of this invention also adjusts only 3 network layers, with a single parameter update taking 17 minutes and a peak memory usage of 5.5 GB. However, after optimization, the average deviation amplitude decreased from 0.039 to 0.018, a reduction rate of 53.8%, and the maximum deviation amplitude after optimization was only 0.026, with an analysis accuracy of 96.0%. Compared with the overall fine-tuning method of the entire model, the method of this invention reduces the single parameter update time by about 62.2% and the peak memory usage by about 42.7%. Compared with the fixed local network layer fine-tuning method, the method of this invention increases the average deviation amplitude reduction rate by 15.3 percentage points, and the average deviation amplitude after optimization is further reduced by 25.0%. This indicates that the method of this invention has a more sufficient recovery effect on the inter-layer feature transfer within the local optimization range while maintaining a low training cost.
[0133] The aforementioned performance improvement primarily stems from this invention's approach: first, it uses historical inter-layer round-trip closure benchmarks and current inter-layer round-trip closure differences to determine inter-layer closure deviations; then, it determines the network position where the inter-layer closure deviation first continuously expands along the forward propagation direction of the AI analysis model. This allows the local optimization scope to cover the position where the representation anomaly begins to propagate continuously and its directly connected network layers, thereby reducing the involvement of irrelevant network parameters in training. Simultaneously, during local training, the network parameters of the inter-layer reverse representation recovery network are fixed, and the same historical inter-layer round-trip closure benchmark is used to evaluate the optimized inter-layer closure state, ensuring consistency in the evaluation scale before and after optimization. Therefore, it can balance parameter update efficiency, the degree of internal representation recovery, and the targeted nature of dynamic optimization of the AI analysis model.
[0134] The above are merely preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A dynamic optimization method for AI analysis models based on deep learning, characterized in that, Includes the following steps: The model running data of the AI analysis model is obtained, including historical running data and current running data. The AI analysis model is used to perform layer-by-layer forward processing to generate historical deep representation sequences and current deep representation sequences. The interlayer reverse representation recovery network is trained based on the historical deep representation sequence. The historical deep representation sequence is reversed layer by layer, and the difference is calculated to generate the historical interlayer round-trip closed reference sequence. An interlayer reverse representation recovery network is used to perform layer-by-layer reverse recovery of the current deep representation sequence, and the difference of the recovery results is calculated to generate the current interlayer round-trip closure error sequence. The current inter-layer round-trip closure difference sequence is compared with the historical inter-layer round-trip closure benchmark sequence to determine the inter-layer closure deviation and the location of the reversible fracture. The local optimization range is determined based on the location of the reversible fracture. The network parameters within the local optimization range are locally trained using model running data, the inter-layer feature mapping relationship within the local optimization range is updated, and a candidate optimization AI analysis model is generated. The candidate optimized AI analysis model is validated using the current running data, inter-layer closure recovery results are generated, local training results are retained or rolled back, and a dynamically optimized AI analysis model is generated.
2. The method for dynamic optimization of an AI analysis model based on deep learning according to claim 1, characterized in that, The generation of the historical deep representation sequence and the current deep representation sequence includes: Obtain the model operation data of the AI analysis model, which includes historical operation data during the stable operation phase and current operation data during the current operation phase; AI analysis models are used to process historical and current operating data layer by layer according to the network layer connection order, generating historical deep representations and current deep representations for each network layer. Arrange the historical deep representations and the current deep representations according to the network layer connection order to generate the historical deep representation sequence and the current deep representation sequence.
3. The method for dynamic optimization of an AI analysis model based on deep learning according to claim 1, characterized in that, The generation of the historical inter-layer round-trip closure reference sequence includes: According to the network layer connection order of the AI analysis model, the historical deep representations of adjacent network layers in the historical deep representation sequence are used as the input representation and target representation of the inter-layer reverse representation recovery network, respectively. The interlayer inverse representation recovery network includes a representation adaptation layer, an inverse mapping layer, a cross-layer reconstruction layer, and a representation output layer. The representation adaptation layer transforms the input representation to the representation dimension corresponding to the target representation. The inverse mapping layer performs inverse feature mapping on the transformed input representation. Finally, the cross-layer reconstruction layer reconstructs the features from the inverse feature mapping result. The feature reconstruction result is mapped to the representation space of the previous network layer through the representation output layer to generate the inverse recovery representation. The representation difference between the inverse recovery representation and the target representation is calculated. The network parameters of the inter-layer inverse representation recovery network are adjusted based on the representation difference to complete the training of the inter-layer inverse representation recovery network. The interlayer reverse representation recovery network is used to recover the historical deep representation of each subsequent network layer in the historical deep representation sequence layer by layer according to the network layer connection order of the AI analysis model, so as to obtain the reverse recovery representation corresponding to each preceding network layer. Align the reverse recovery representations corresponding to each preceding network layer with the corresponding target representations according to representation dimensions and representation positions. Calculate the representation component differences at corresponding positions and the overall representation direction differences between the reverse recovery representations and the target representations. Merge the representation component differences and the overall representation direction differences to generate historical inter-layer round-trip closure errors corresponding to each adjacent network layer. Summarize the historical inter-layer round-trip closure errors corresponding to the same network layer positions during the stable operation phase to determine the historical inter-layer round-trip closure benchmarks corresponding to each network layer position. Arrange these benchmarks according to the network layer connection order of the AI analysis model to generate a sequence of historical inter-layer round-trip closure benchmarks.
4. The method for dynamic optimization of an AI analysis model based on deep learning according to claim 1, characterized in that, The generation of the current inter-layer round-trip closure error sequence includes: According to the network layer connection order of the AI analysis model, the current deep representations of adjacent network layers in the current deep representation sequence are used as the input representation and target representation of the inter-layer reverse representation recovery network, respectively. The current deep representation of the next network layer is used as the input representation, and the current deep representation of the previous network layer is used as the target representation. An inter-layer reverse representation recovery network is used to process each input representation sequentially, and the input representation is reverse-mapped to the representation space of the previous network layer where the target representation is located according to the representation transfer relationship of the corresponding adjacent network layers, thus generating the reverse recovery representation corresponding to each adjacent network layer. Align the reverse recovery representation with the target representation according to the representation dimension and representation position, calculate the representation component difference at the corresponding position and the overall representation direction difference between the reverse recovery representation and the target representation, and fuse the representation component difference and the overall representation direction difference to generate the current inter-layer round-trip closure error corresponding to each adjacent network layer. According to the network layer connection order of the AI analysis model, the current inter-layer round-trip closure errors corresponding to each adjacent network layer are arranged sequentially to generate the current inter-layer round-trip closure error sequence.
5. The method for dynamic optimization of an AI analysis model based on deep learning according to claim 1, characterized in that, The determination of the location characterizing the reversible fracture includes: According to the network layer connection order of the AI analysis model, the current inter-layer round-trip closure error in the current inter-layer round-trip closure error sequence is compared with the historical inter-layer round-trip closure benchmark at the same network layer position in the historical inter-layer round-trip closure benchmark sequence. The deviation direction and deviation magnitude of each current inter-layer round-trip closure error relative to the corresponding historical inter-layer round-trip closure benchmark are determined. Based on the deviation direction and deviation magnitude, the inter-layer closure deviation corresponding to each adjacent network layer is generated, and each inter-layer closure deviation is assigned to the next network layer in the corresponding adjacent network layer. Along the forward propagation direction of the AI analysis model, the interlayer closure deviation of adjacent network layers is compared sequentially to determine the consistency of the deviation direction and the magnitude increment of the deviation of the subsequent network layer relative to the previous network layer, and the closure deviation transmission result corresponding to the adjacent network layers is generated. The results of the closure deviation propagation are continuously analyzed according to the network layer connection order. Adjacent network layers with consistent deviation direction and continuously positive deviation magnitude increment are connected in sequence to generate continuous extension segments of closure deviation, and the starting network position corresponding to each continuous extension segment of closure deviation is determined. By comparing the starting network positions corresponding to each continuous extension segment of the closure deviation along the forward propagation direction of the AI analysis model, the first starting network position is determined as the network position of the first continuous extension of the interlayer closure deviation, and the network position of the first continuous extension of the interlayer closure deviation is determined as the position representing the reversible fracture.
6. The method for dynamic optimization of an AI analysis model based on deep learning according to claim 1, characterized in that, The determination of the local optimization range includes: According to the network layer connection order of the AI analysis model, the network position representing the reversible fracture location is matched with the network layer in the AI analysis model to determine the network layer corresponding to the reversible fracture location. Based on the network layer corresponding to the location of reversible fracture, the connected network layers are searched along its input connection direction and output connection direction respectively. It is determined whether there are other network layers between the connected network layer and the network layer corresponding to the location of reversible fracture. The connected network layers that do not have other network layers are determined as directly connected network layers. For network structures with branch connections, cross-layer connections, or parallel connections, direct connection judgment is performed along each connection path. Network layers that directly form input connections to the network layer corresponding to the location of reversible breakage or directly form output connections from the network layer corresponding to the location of reversible breakage are included in the directly connected network layers. The network layer corresponding to the location of reversible breakage is combined with all directly connected network layers according to the network layer connection relationship in the AI analysis model to determine the local optimization range.
7. The method for dynamic optimization of an AI analysis model based on deep learning according to claim 1, characterized in that, The generation of the candidate optimization AI analysis model includes: The network parameters of the AI analysis model are divided according to the local optimization range, while the network parameters outside the local optimization range remain unchanged. The network parameters of the inter-layer inverse representation recovery network are fixed, and local training is performed only on the network parameters within the local optimization range. The AI analysis model is processed using model running data, the local training error is calculated according to the existing loss calculation method, and the local training error is passed to each network layer within the local optimization range; The local training error is restricted to the local optimization range for backpropagation. The network parameters within the local optimization range are adjusted based on the local training error, and the feature transfer between adjacent network layers is performed again. By iteratively adjusting the network parameters within the local optimization range, updating the inter-layer feature mapping relationship within the local optimization range, and keeping the network parameters outside the local optimization range and the network parameters of the inter-layer reverse representation recovery network unchanged; The network parameters that have been trained locally and the updated inter-layer feature mapping relationships are retained to generate candidate optimized AI analysis models.
8. The method for dynamic optimization of an AI analysis model based on deep learning according to claim 1, characterized in that, The generation of the dynamically optimized AI analysis model includes: The candidate optimized AI analysis model is processed layer by layer using the current running data to obtain the deep representations corresponding to each network layer and generate the optimized deep representation sequence. The deep representation of the next network layer in the optimized deep representation sequence is used as the input representation, and the deep representation of the previous network layer is used as the target representation. The inter-layer reverse representation recovery network is used to perform layer-by-layer reverse recovery, and the differences in representation components and the overall representation direction are calculated to generate the optimized inter-layer round-trip closure error sequence. The current inter-layer round-trip closure error sequence and the optimized inter-layer round-trip closure error sequence are compared with the historical inter-layer round-trip closure benchmark sequence to determine the local deviation amplitude before training and the local deviation amplitude after training, and generate the inter-layer closure recovery result. Based on the interlayer closure recovery results, the local training results are retained when the deviation amplitude after local training is smaller than the deviation amplitude before local training. If the deviation amplitude after local training does not decrease, the corresponding network parameters are backed up to generate a dynamically optimized AI analysis model.
