Power multi-vision task lightweight deployment method and system based on multi-modal compensation

By using a spatiotemporal prior prototype dictionary and a multi-head cross-attention mechanism for dynamic compensation, combined with dual-stream decoupled boundary-aware distillation and a hybrid expert module, the problem of modality loss and weak combination recognition in power line inspection of multimodal large models is solved, and lightweight models are able to achieve efficient multi-task adaptation and high-precision recognition in complex environments.

CN123140531APending Publication Date: 2026-11-20STATE GRID HEBEI ELECTRIC POWER CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611361684.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-03
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing multimodal large models have problems in power line inspection, such as a sharp drop in the recognition of missing modalities, easy forgetting of weak modal combinations, and inability to adapt to multiple inspection vision tasks, which leads to a decline in the recognition performance of edge devices in complex environments.

Method used

Dynamic modality compensation is achieved by using a spatiotemporal prior prototype dictionary and a multi-head cross-attention mechanism. A lightweight student network is constructed by combining a two-stream decoupled boundary-aware distillation and a hybrid expert module. Phantom feature representations are generated through the multi-head cross-attention mechanism, and feature decoupling and dynamic weight allocation are performed between the teacher and student models. An external memory module is introduced to cache weakly combined sample features.

Benefits of technology

Maintain stable multimodal representation in sensor modal failure scenarios, improve adaptability to complex environments, realize lightweight model adaptive scheduling and high-precision recognition of multiple tasks, and adapt to edge devices with limited computing power such as drones and inspection robots.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140531A_ABST
    Figure CN123140531A_ABST
Patent Text Reader

Abstract

The application discloses a power multi-vision task lightweight deployment method and system based on multi-modal compensation. The method aligns and normalizes multi-source sensor data to obtain standard multi-modal data, divides scenes into groups according to multi-dimensions, extracts deep semantic feature vectors and clusters to generate prototype feature embedding vectors, and constructs a space-time prior prototype dictionary. The available modal encoding features are used as query vectors to retrieve the dictionary, and the missing modal phantom features are generated through multi-head cross attention. The multi-modal joint feature representation is obtained through fusion. A teacher-student double-flow distillation framework is built, two types of feature flows are decoupled, a boundary perception distillation loss is obtained through fusion of multiple loss items, and a lightweight network backbone is updated. Access the mixed expert module to train the complete lightweight network. A global optimization objective function is generated to iteratively train the converged model, and the model is packaged and deployed after quantization and operator fusion optimization. The application solves the problem that the prior art cannot adapt to multi-inspection visual tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of artificial intelligence and intelligent inspection technology of power systems, specifically to a lightweight deployment method and system for power multi-vision tasks based on multimodal compensation. Background Technology

[0002] With the continuous advancement of my country's new power system construction and the ongoing expansion of power grid coverage, the workload of substation operation and maintenance and transmission line inspection has increased significantly. Traditional manual inspection methods suffer from drawbacks such as low efficiency, high safety risks in high-altitude field operations, and strong subjectivity in defect identification. Edge intelligent inspection solutions based on drones and inspection robots equipped with multiple sensors have become the mainstream development direction in the industry. Early power vision recognition relied on traditional image processing algorithms with manually designed operators and threshold matching, which had poor generalization ability and was difficult to adapt to complex field environments such as lighting, fog, and occlusion. After the popularization of deep learning technology, convolutional neural networks have been widely used for single-device defect identification tasks, but they can only independently complete fragmented tasks such as classification and detection. Multi-task parallel deployment will consume a large amount of computing power and storage resources of edge devices. Building upon this foundation, multimodal large-scale models integrating data from multiple sources, such as visible light, infrared, and lidar, are gradually being deployed in the power grid inspection field. These models leverage massive amounts of data to achieve unified processing of multiple tasks and high-precision fault diagnosis. To address the pain point that large-scale models cannot be directly deployed on edge terminals with limited computing power, the industry commonly employs model compression techniques such as knowledge distillation, quantization, and pruning to construct a cloud-edge collaborative architecture of "cloud-based large-scale model training + edge-based lightweight model inference." Through a teacher-student distillation framework, the knowledge of multimodal large-scale models is transferred to smaller networks, thereby supporting devices such as drones and edge gateways to complete real-time on-site defect identification. This technology has already been piloted on a large scale in power grid substations and overhead line inspection scenarios in multiple locations.

[0003] The existing lightweight deployment scheme combining multimodal large models with conventional knowledge distillation suffers from several unavoidable technical flaws in practical power inspection applications. First, conventional distillation only fits the soft labels output by the teacher model, ignoring the subtle classification decision boundary topology between normal samples and minor defects in the high-dimensional feature space. The lightweight student model cannot accurately inherit fine-grained discriminative knowledge, making it prone to missed or false alarms when faced with ambiguous or near-boundary fault samples. Second, existing schemes have stringent requirements for the completeness of multimodal inputs. On-site scenarios often involve modal missing features, such as infrared or visible light sensor malfunctions or fog obstruction. Industry-standard zero-padding and mean interpolation compensation methods sever the intrinsic semantic connections between modalities, causing a precipitous decline in edge model recognition performance. Furthermore, there is a lack of compensation mechanisms that dynamically generate missing modal features based on prior scene knowledge. Third, existing lightweight models lack any... The existing distillation framework lacks adaptive scheduling capabilities and cannot dynamically adapt to multiple visual tasks such as detection, segmentation, and classification based on inspection text instructions. Furthermore, power inspection data naturally exhibits a long-tail distribution, with a very low proportion of low-frequency faults and rare modal combination samples in the training process. Conventional training methods are prone to catastrophic forgetting, and the model's generalization ability to recognize weak combinations and rare fault samples is insufficient. Fourth, the existing distillation framework does not decouple and distinguish between modal common features and modal specific features. During the compression process, various modal specific semantic information is lost indiscriminately, making it impossible to simultaneously meet the requirements of multimodal fusion representation and single-modal feature preservation. It is difficult to achieve modal loss robustness, multi-task adaptive scheduling, and high-precision recognition of low-frequency faults under edge computing power constraints.

[0004] Therefore, there is an urgent need for a lightweight deployment method for power multi-vision tasks based on multimodal compensation to solve the problems of the sharp drop in modality loss recognition, easy forgetting of weak modality combinations, and inability to adapt to multiple inspection vision tasks in existing technologies. Summary of the Invention

[0005] To address these issues, this invention provides a lightweight deployment method and system for power multi-vision tasks based on multimodal compensation, which solves problems such as loss of fine-grained decision boundaries, sharp drop in modality recognition due to distillation, easy forgetting of weak modality combinations, and inability to adapt to multiple inspection vision tasks in existing lightweight multimodal power inspection schemes.

[0006] To achieve the above objectives, the present invention provides the following technical solution: a lightweight deployment method for power multi-vision tasks based on multimodal compensation, comprising:

[0007] Multi-source sensor data collected during substation and transmission line inspection scenarios are aligned and normalized to obtain standard multimodal data. This standard multimodal data is then divided into several scenario groups based on environmental state and time dimensions. A lightweight modal feature encoder is used to extract deep semantic feature vectors for each group of standard multimodal data. The deep semantic feature vectors within each scenario group are clustered to generate prototype feature embedding vectors. Based on these prototype feature embedding vectors, a spatiotemporal prior prototype dictionary is constructed using triples as indices.

[0008] Using the encoded features of the currently available modalities as query vectors and the prototype feature embedding vectors in the spatiotemporal prior prototype dictionary as key-value pairs, a multi-head cross-attention mechanism is used to dynamically retrieve and weighted aggregate in the hidden layer feature space to generate phantom feature representations corresponding to the missing modalities. The phantom feature representations are then concatenated and fused with the encoded features of the currently available modalities to generate multimodal joint feature representations.

[0009] A two-stream knowledge distillation framework is constructed using a multimodal large model as the teacher model and a lightweight network as the student model. Modal dual-stream decoupling is performed on the intermediate layer features of the teacher and student models to obtain modal shared features and modal-specific features. Cross-network alignment of similar features is then performed between the teacher and student models. Modal common feature streams and modal-specific feature streams are separated. Based on the classification logit output by the teacher model, the margin value of each training sample from the classification decision boundary is calculated. Distillation loss weights are dynamically allocated according to the margin value. These allocated weights are used as weighting coefficients, and feature alignment loss and soft-label distillation loss are introduced to calculate the common feature stream distillation loss. For the modal-specific feature stream, a specific feature alignment loss is constructed. The common feature stream distillation loss, the specific feature alignment loss, and orthogonal regularization constraints are weighted and summed to obtain the boundary-aware distillation loss. Based on the boundary-aware distillation loss, the lightweight student network is iteratively updated via backpropagation, outputting the optimized lightweight student network backbone.

[0010] A hybrid expert module is introduced into the lightweight student network backbone to map the text instructions corresponding to the inspection task into a gate control vector through a lightweight language encoder. The gate control vector is used as the input signal of the gated routing network to dynamically activate and weight and aggregate the expert feature processing branches corresponding to the current task type, obtain the load balancing regularization loss, and output the complete lightweight student network.

[0011] During the training of the complete lightweight student network, the training loss distribution of each modality combination input sample is statistically analyzed using an external memory module to identify and label weak combination sample sets with low training frequency; an external memory module is constructed to cache the feature distribution of the weak combination sample sets; a specific regularization loss is designed for the weak combination samples; the specific regularization loss, the boundary-aware distillation loss, and the load balancing regularization loss are weighted and summed to form a global joint optimization objective function; the complete lightweight student network is iteratively trained using the global joint optimization objective function to obtain the converged lightweight student network;

[0012] The converged lightweight student network is then subjected to quantization compression and operator fusion optimization, and encapsulated into a single unified model for deployment.

[0013] As a preferred embodiment of the lightweight deployment method for power multi-vision tasks based on multimodal compensation, the expression for the deep semantic feature vector is:

[0014]

[0015] In the formula, is the deep semantic feature vector; This is the feature encoder network corresponding to the m-th mode; Let be a d-dimensional real-valued vector space; d is the uniform feature embedding dimension; The m-th mode is the standard multimodal input sample after spatiotemporal alignment and normalization.

[0016] The objective function for clustering the deep semantic feature vectors within each scene group is:

[0017]

[0018] In the formula, The K-Means clustering loss for the m-th modality under the g-th scene group; K is the number of clusters; k is the k-th cluster. Let be the set of sample features corresponding to the k-th cluster of the m-th modality under the g-th scene group; and be the centroid vector of the corresponding cluster.

[0019] The expression for the spatiotemporal prior prototype dictionary is:

[0020]

[0021] In the formula, is the spatiotemporal prior prototype dictionary; M is the total number of sensor modes; , , and are the sets of integer indices for the corresponding dimensions.

[0022] As a preferred embodiment of the lightweight deployment method for power multi-vision tasks based on multimodal compensation, the expression for the phantom feature representation is:

[0023]

[0024] In the formula, represents the phantom feature; is the output projection matrix; H is the total number of heads for multi-head attention;

[0025] The expression for the multimodal joint feature representation is:

[0026]

[0027] In the formula, represents the joint feature representation of the multimodalities; is the linear fusion weight matrix, with row dimension and column dimension being the actual total dimension of the concatenated features; is the confidence score; and is the set of phantom feature vectors of all missing modalities after confidence weighting.

[0028] As a preferred embodiment of the lightweight deployment method for power multi-vision tasks based on multimodal compensation, the expressions for the modal common feature flow and the modal specific feature flow are as follows:

[0029]

[0030] In the formula, represents the modal common characteristic flow; The network represents the common features of all modalities; the network represents the intermediate feature vectors at the sample level. Then it is the feature projection network specific to the m-th mode; and it is the mode-specific feature flow.

[0031] The expression for the orthogonal regularization constraint is:

[0032]

[0033] In the formula, represents the orthogonal regularization constraint;

[0034] The expression for the common characteristic flow distillation loss is:

[0035]

[0036]

[0037] In the formula, is the common feature flow distillation loss; is the feature alignment loss; is the soft label distillation loss; N is the total number of samples in the batch; and are the common feature vectors of the i-th sample in the student model and the teacher model, respectively; is the adaptive distillation weight; is the knowledge distillation temperature coefficient; is the classification logit vector output by the student model for the i-th sample; is the KL divergence; is the classification logit vector output by the teacher model for the i-th sample;

[0038] The expression for the proprietary feature alignment loss is:

[0039]

[0040] In the formula, is the proprietary feature alignment loss; is the proprietary feature alignment loss of the m-th modality; M is the number of modalities; and and are the proprietary feature vectors of the i-th sample in the m-th modality in the student model and teacher model, respectively;

[0041] The expression for the boundary-aware distillation loss is:

[0042]

[0043] In the formula, represents the boundary-sensing distillation loss; and are both weighting coefficients.

[0044] As a preferred embodiment of the lightweight deployment method for power multi-vision tasks based on multimodal compensation, the expression for the gate control vector is:

[0045]

[0046] In the formula, g is the gate control vector; is the projection weight matrix; is the bias vector; and e is the instruction embedding vector.

[0047] The expression for the load balancing regularization loss is:

[0048]

[0049] In the formula, is the load balancing regularization loss; is the average activation weight of all samples in the batch to the e-th expert; N is the total number of samples in the batch; is the proportion of samples in the current training batch that are routed to the e-th expert; E is the number of expert networks; is the load balancing regularization loss; and is the weighting coefficient.

[0050] As a preferred embodiment of the lightweight deployment method for power multi-vision tasks based on multimodal compensation, the expression for the weakly combined sample set is:

[0051]

[0052] In the formula, represents the weak combination sample set; c represents the combination type; represents the average task loss within the training batch; represents the batch occurrence frequency; represents the loss threshold; and represents the frequency threshold.

[0053] The expression for the global joint optimization objective function is:

[0054]

[0055] In the formula, is the global joint optimization objective function; is the specific regularization loss; is the total number of types of weak combinatorial sets; is the set of sample indices belonging to combination type c within the current batch; is the number of samples in this set; Let be the intermediate layer feature vector of the i-th sample in the student model; For each memory entry; for each weighting coefficient.

[0056] This invention also provides a lightweight deployment system for power multi-vision tasks based on multimodal compensation, employing the above-mentioned lightweight deployment method for power multi-vision tasks based on multimodal compensation, including:

[0057] A spatiotemporal prior prototype dictionary construction unit is used to align and normalize multi-source sensor data collected in substation and transmission line inspection scenarios to obtain standard multimodal data. The standard multimodal data is divided into several scenario groups according to environmental state and time dimension, and a lightweight modal feature encoder is used to extract deep semantic feature vectors for each group of standard multimodal data. The deep semantic feature vectors in each scenario group are clustered to generate prototype feature embedding vectors. Based on the prototype feature embedding vectors, a spatiotemporal prior prototype dictionary is constructed using triples as indices.

[0058] The multimodal joint feature representation generation unit is used to take the encoded features of the currently available modalities as query vectors, and the prototype feature embedding vectors in the spatiotemporal prior prototype dictionary as key-value pairs. Through a multi-head cross-attention mechanism, it performs dynamic retrieval and weighted aggregation in the hidden layer feature space to generate phantom feature representations corresponding to the missing modalities. The phantom feature representations are then concatenated and fused with the encoded features of the currently available modalities to generate multimodal joint feature representations.

[0059] The lightweight student network backbone optimization unit is used to build a two-stream knowledge distillation framework using a multimodal large model as the teacher model and a lightweight network as the student model. It decouples the intermediate layer features of the teacher and student models into modal-shared and modality-specific features, and performs cross-network alignment of similar features between the teacher and student models. It separates the modality-shared feature stream and the modality-specific feature stream. Based on the classification logit output by the teacher model, it calculates the margin value of each training sample from the classification decision boundary. It dynamically allocates distillation loss weights based on the margin value. Using the allocated distillation loss weights as weighting coefficients, it introduces feature alignment loss and soft-label distillation loss to calculate the shared feature stream distillation loss. For the modality-specific feature stream, it constructs a specific feature alignment loss. It then performs a weighted sum of the shared feature stream distillation loss, the specific feature alignment loss, and orthogonal regularization constraints to obtain the boundary-aware distillation loss. Based on the boundary-aware distillation loss, it backpropagates and iteratively updates the lightweight student network, outputting the optimized lightweight student network backbone.

[0060] A complete lightweight student network training unit is used to introduce a hybrid expert module into the lightweight student network backbone, map the text instructions corresponding to the inspection task into a gate control vector through a lightweight language encoder; use the gate control vector as the input signal of the gated routing network, dynamically activate and weight aggregate the expert feature processing branches corresponding to the current task type, obtain the load balancing regularization loss, and output the complete lightweight student network.

[0061] The converged lightweight student network training unit is used to: statistically analyze the training loss distribution of each modality combination input sample through an external memory module during the training of the complete lightweight student network; identify and label the set of weak combination samples with low training frequency; cache the feature distribution of the weak combination sample set through an external memory module; design a specific regularization loss for the weak combination samples; weight and sum the specific regularization loss, the boundary-aware distillation loss, and the load balancing regularization loss to form a global joint optimization objective function; and iteratively train the complete lightweight student network using the global joint optimization objective function to obtain the converged lightweight student network.

[0062] The converged lightweight student network deployment unit is used to perform quantization compression and operator fusion optimization on the converged lightweight student network, and encapsulate it into a single unified model for deployment.

[0063] As a preferred solution for a lightweight deployment system for multi-vision tasks in the power industry based on multimodal compensation, the expression for the deep semantic feature vector in the spatiotemporal prior prototype dictionary construction unit is:

[0064]

[0065] In the formula, is the deep semantic feature vector; This is the feature encoder network corresponding to the m-th mode; Let be a d-dimensional real-valued vector space; d is the uniform feature embedding dimension; The m-th mode is the standard multimodal input sample after spatiotemporal alignment and normalization.

[0066] The objective function for clustering the deep semantic feature vectors within each scene group is:

[0067]

[0068] In the formula, The K-Means clustering loss for the m-th modality under the g-th scene group; K is the number of clusters; k is the k-th cluster. Let be the set of sample features corresponding to the k-th cluster of the m-th modality under the g-th scene group; and be the centroid vector of the corresponding cluster.

[0069] The expression for the spatiotemporal prior prototype dictionary is:

[0070]

[0071] In the formula, is the spatiotemporal prior prototype dictionary; M is the total number of sensor modes; , , and are the sets of integer indices for the corresponding dimensions.

[0072] As a preferred embodiment of a lightweight deployment system for power multi-vision tasks based on multimodal compensation, the expression for the phantom feature representation in the multimodal joint feature representation generation unit is as follows:

[0073]

[0074] In the formula, represents the phantom feature; is the output projection matrix; H is the total number of heads for multi-head attention;

[0075] The expression for the multimodal joint feature representation is:

[0076]

[0077] In the formula, represents the joint feature representation of the multimodalities; is the linear fusion weight matrix, with row dimension and column dimension being the actual total dimension of the concatenated features; is the confidence score; and is the set of phantom feature vectors of all missing modalities after confidence weighting.

[0078] As a preferred solution for a lightweight deployment system for multi-vision tasks in power systems based on multimodal compensation, the expressions for the modal common feature flow and modal specific feature flow in the lightweight student network backbone optimization unit are as follows:

[0079]

[0080] In the formula, represents the modal common characteristic flow; The network represents the common features of all modalities; the network represents the intermediate feature vectors at the sample level. Then it is the feature projection network specific to the m-th mode; and it is the mode-specific feature flow.

[0081] The expression for the orthogonal regularization constraint is:

[0082]

[0083] In the formula, represents the orthogonal regularization constraint;

[0084] The expression for the common characteristic flow distillation loss is:

[0085]

[0086]

[0087] In the formula, is the common feature flow distillation loss; is the feature alignment loss; is the soft label distillation loss; N is the total number of samples in the batch; and are the common feature vectors of the i-th sample in the student model and the teacher model, respectively; is the adaptive distillation weight; is the knowledge distillation temperature coefficient; is the classification logit vector output by the student model for the i-th sample; is the KL divergence; is the classification logit vector output by the teacher model for the i-th sample;

[0088] The expression for the proprietary feature alignment loss is:

[0089]

[0090] In the formula, is the proprietary feature alignment loss; is the proprietary feature alignment loss of the m-th modality; M is the number of modalities; and and are the proprietary feature vectors of the i-th sample in the m-th modality in the student model and teacher model, respectively;

[0091] The expression for the boundary-aware distillation loss is:

[0092]

[0093] In the formula, represents the boundary-sensing distillation loss; and are both weighting coefficients.

[0094] As a preferred embodiment of a lightweight deployment system for multi-vision tasks in power systems based on multimodal compensation, the expression for the gating control vector in the complete lightweight student network training unit is:

[0095]

[0096] In the formula, g is the gate control vector; is the projection weight matrix; is the bias vector; and e is the instruction embedding vector.

[0097] The expression for the load balancing regularization loss is:

[0098]

[0099] In the formula, is the load balancing regularization loss; is the average activation weight of all samples in the batch to the e-th expert; N is the total number of samples in the batch; is the proportion of samples in the current training batch that are routed to the e-th expert; E is the number of expert networks; is the load balancing regularization loss; and is the weighting coefficient.

[0100] As a preferred embodiment of a lightweight deployment system for multi-vision tasks in the power industry based on multimodal compensation, the expression for the weakly combined sample set in the converged lightweight student network training unit is:

[0101]

[0102] In the formula, represents the weak combination sample set; c represents the combination type; represents the average task loss within the training batch; represents the batch occurrence frequency; represents the loss threshold; and represents the frequency threshold.

[0103] The expression for the global joint optimization objective function is:

[0104]

[0105] In the formula, is the global joint optimization objective function; is the specific regularization loss; is the total number of types of weak combinatorial sets; is the set of sample indices belonging to combination type c within the current batch; is the number of samples in this set; Let be the intermediate layer feature vector of the i-th sample in the student model; For each memory entry; for each weighting coefficient.

[0106] The present invention has the following advantages:

[0107] First, dynamic modal phantom compensation is achieved by relying on a spatiotemporal prior prototype dictionary and cross-attention. Stable multimodal representation can still be maintained in sensor modal failure scenarios, thus improving the adaptability to complex inspection environments.

[0108] Second, a dual-stream decoupled boundary-aware distillation method is used to distinguish between modal common and proprietary features, and weights are allocated and optimized based on sample boundary margins, allowing the lightweight model to fully inherit the discriminative knowledge of the large model.

[0109] Third, a dynamic routing system driven by hybrid experts is set up, which adaptively schedules feature processing branches based on inspection text instructions. A single model can adapt to multiple power vision tasks, including detection, classification, and segmentation.

[0110] Fourth, a weak combination sample external memory regularization module is introduced to continuously maintain the feature representation of low-frequency fault samples, alleviate catastrophic forgetting during training, and improve the recognition effect of rare faults.

[0111] Fifth, the entire architecture completes end-to-end lightweight training and edge deployment. After quantization and operator fusion, it is adapted to edge devices with limited computing power, such as drones and inspection robots, making it more practical for deployment. Attached Figure Description

[0112] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely exemplary, and those skilled in the art can derive other embodiments based on the provided drawings without creative effort.

[0113] The structures, proportions, sizes, etc. illustrated in this specification are only for the purpose of assisting those skilled in the art in understanding and reading the content disclosed herein, and are not intended to limit the conditions under which the present invention can be implemented. Therefore, they have no substantial technical significance. Any modifications to the structure, changes in the proportions, or adjustments to the size, without affecting the effects and objectives that the present invention can produce, should still fall within the scope of the technical content disclosed in the present invention.

[0114] Figure 1 This is a flowchart illustrating the lightweight deployment method for power multi-vision tasks based on multimodal compensation provided in Embodiment 1 of the present invention.

[0115] Figure 2 This is a schematic diagram illustrating the specific implementation process of the lightweight deployment method for power multi-vision tasks based on multimodal compensation provided in Embodiment 1 of the present invention.

[0116] Figure 3 This is a schematic diagram of the architecture of the lightweight deployment system for power multi-vision tasks based on multimodal compensation provided in Embodiment 2 of the present invention. Detailed Implementation

[0117] The following specific embodiments illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0118] Example 1

[0119] See Figure 1 and Figure 2 Embodiment 1 of the present invention provides a lightweight deployment method for power multi-vision tasks based on multimodal compensation, comprising the following steps:

[0120] S1. Align and normalize the multi-source sensor data collected in substation and transmission line inspection scenarios to obtain standard multimodal data; divide the standard multimodal data into several scenario groups according to environmental state and time dimension, and extract the deep semantic feature vector of each group of standard multimodal data through a lightweight modal feature encoder; cluster the deep semantic feature vectors in each scenario group to generate prototype feature embedding vectors; construct a spatiotemporal prior prototype dictionary based on the prototype feature embedding vectors and using triples as indexes.

[0121] S2. Using the encoded features of the currently available modalities as query vectors, and the prototype feature embedding vectors in the spatiotemporal prior prototype dictionary as key-value pairs, a multi-head cross-attention mechanism is used to dynamically retrieve and weighted aggregate in the hidden layer feature space to generate phantom feature representations corresponding to the missing modalities; the phantom feature representations are then concatenated and fused with the encoded features of the currently available modalities to generate multimodal joint feature representations.

[0122] S3. A two-stream knowledge distillation framework is constructed using a multimodal large model as the teacher model and a lightweight network as the student model. Modal dual-stream decoupling is performed on the intermediate layer features of the teacher and student models to obtain modal shared features and modal-specific features. Cross-network alignment of similar features is performed between the teacher and student models. The modal common feature stream and modal-specific feature stream are separated. Based on the classification logit output by the teacher model, the margin value of each training sample from the classification decision boundary is calculated. Distillation loss weights are dynamically allocated according to the margin value. The allocated distillation loss weights are used as weighting coefficients, and feature alignment loss and soft label distillation loss are introduced to calculate the common feature stream distillation loss. For the modal-specific feature stream, a specific feature alignment loss is constructed. The common feature stream distillation loss, the specific feature alignment loss, and the orthogonal regularization constraint are weighted and summed to obtain the boundary-aware distillation loss. Based on the boundary-aware distillation loss, the lightweight student network is iteratively updated via backpropagation, and the optimized lightweight student network backbone is output.

[0123] S4. Introduce a hybrid expert module into the lightweight student network backbone, and map the text instructions corresponding to the inspection task into a gate control vector through a lightweight language encoder; use the gate control vector as the input signal of the gated routing network, dynamically activate and weighted aggregate the expert feature processing branches corresponding to the current task type, obtain the load balancing regularization loss, and output the complete lightweight student network.

[0124] S5. During the training of the complete lightweight student network, the training loss distribution of each modality combination input sample is statistically analyzed using an external memory module, and weak combination sample sets with low training frequency are identified and labeled; an external memory module is constructed to cache the feature distribution of the weak combination sample sets; a specific regularization loss is designed for the weak combination samples; the specific regularization loss, the boundary-aware distillation loss, and the load balancing regularization loss are weighted and summed to form a global joint optimization objective function; the complete lightweight student network is iteratively trained using the global joint optimization objective function to obtain the converged lightweight student network;

[0125] S6. The converged lightweight student network is subjected to quantization compression and operator fusion optimization, and then packaged into a single unified model for deployment.

[0126] In this embodiment, in step S1, the multi-source sensor data collected in the substation and transmission line inspection scenarios are aligned and normalized to obtain standard multimodal data; the standard multimodal data is divided into several scenario groups according to the environmental state and time dimension, and the deep semantic feature vector of each group of standard multimodal data is extracted by a lightweight modal feature encoder; the deep semantic feature vectors in each scenario group are clustered to generate prototype feature embedding vectors; based on the prototype feature embedding vectors, a spatiotemporal prior prototype dictionary is constructed using triples as indexes.

[0127] Specifically, visible light images, infrared images, and other multi-source sensor data collected by edge devices such as drones and inspection robots are acquired. A high-precision GPS clock signal is used as a unified time reference to synchronize and correct the original timestamps of each sensor. To address the issue of inconsistent sampling frequencies among different sensors, a linear interpolation method is used to resample the data for each modality, ensuring they correspond to a unified time step. This guarantees a strict time correspondence between different modal data at the same moment, providing a consistent time reference for subsequent cross-modal feature fusion. After time synchronization, the visible light image coordinate system is used as a unified reference coordinate system. Based on the intrinsic and extrinsic parameter matrices obtained from the calibration of each sensor, spatial coordinate transformation is performed on the other modal data to achieve spatial registration of the multi-source sensor data. The spatial mapping relationship can be expressed as:

[0128]

[0129] In the formula, is the pixel homogeneous coordinate vector in the sensor coordinate system of the mode; and are the intrinsic parameter matrices of the corresponding sensor and reference coordinate systems, respectively; is the rigid body transformation matrix composed of rotation matrix and translation vector.

[0130] After completing the coordinate mapping, bilinear interpolation is used to fill the pixel hole regions generated by the projection transformation, and spatially aligned multimodal pixel-level data is output uniformly.

[0131] After spatiotemporal registration is completed, normalization is performed on the pixel-level data output by each modality. The normalization parameters are statistically independent for each modality, that is, the mean and standard deviation of each modality are pre-calculated and stored on the training set of their respective modality, and directly called during the inference stage, so as to preserve the numerical distribution characteristics of each modality and avoid information distortion caused by mixing statistical parameters across modalities.

[0132] After normalization, the data from each modality are fed into the corresponding lightweight feature encoder to extract deep semantic feature vectors of a unified dimension. Each modality encoder is implemented using a parameter-independent lightweight convolutional backbone network with consistent network layer depth configuration. This ensures that features from different modalities are extracted at the same semantic level, avoiding alignment errors introduced by differences in network depth at different abstraction levels. After the encoder output, L2 normalization is uniformly performed on the feature vectors of each modality. This operation ensures that features from different modalities have comparable distribution scales in the metric space, guaranteeing the consistency of cross-modal distance metrics during subsequent dictionary retrieval. The parameters of each modality encoder are jointly optimized end-to-end with subsequent modules throughout the overall training process. This ensures that the feature representation output by the encoder is continuously constrained by downstream clustering and distillation objectives during training, thereby guaranteeing that the extracted features are semantically naturally adapted to subsequent prototype dictionary construction and phantom compensation processes.

[0133] The expression for the deep semantic feature vector is as follows:

[0134]

[0135] In the formula, is the deep semantic feature vector; This is the feature encoder network corresponding to the m-th mode; Let be a d-dimensional real-valued vector space; d is the uniform feature embedding dimension; The input sample is the standard multimodal sample of the m-th mode after spatiotemporal alignment and normalization.

[0136] After obtaining the normalized feature vectors for each modality, the complete multimodal samples in the training dataset are grouped and clustered according to scene semantics to construct a prototype feature set that is representative of each scene. The grouping is based on the metadata fields of the inspection task, including three dimensions: device type label, collection time period label, and lighting condition label. The three dimensions are jointly used to determine the scene group label to which the sample belongs, resulting in a total of non-overlapping scene groups. The grouping process does not require additional manual annotation and is automatically parsed from the inspection task scheduling record. Only samples with complete multimodal input are used for clustering to ensure that the centroid of each cluster reflects the true distribution of complete modal features.

[0137] K-Means clustering is performed on each modality feature within each scene group. The number of clusters is determined before training using silhouette coefficients, based on the sample size of each scene group, to strike a balance between clustering granularity and prototype stability. After clustering convergence, sparse clusters with fewer than a preset threshold are merged into the nearest neighbor clusters in the feature space by Euclidean distance, thus avoiding unstable prototype vectors generated by isolated sparse clusters. Finally, the effective number of clusters for each modality in each scene group is adaptively determined by the data distribution.

[0138] The objective function for clustering the deep semantic feature vectors within each scene group is:

[0139]

[0140] In the formula, The K-Means clustering loss for the m-th modality under the g-th scene group; K is the number of clusters; k is the k-th cluster. Let be the set of sample features corresponding to the k-th cluster of the m-th modality under the g-th scene group; and let be the centroid vector of the corresponding cluster.

[0141] Based on the cluster centroids of each modality in the aforementioned scenario groups, a spatiotemporal prior prototype dictionary is constructed, which is implemented using a hash mapping structure with triples as keys:

[0142]

[0143] In the formula, is the spatiotemporal prior prototype dictionary; M is the total number of sensor modes; , , and are the sets of integer indices for the corresponding dimensions.

[0144] In engineering implementation, the dictionary can be stored directly as a multi-level nested mapping or a three-dimensional tensor. After training, it is serialized to a file and written to the edge device along with the model, remaining resident in memory during the inference phase. During retrieval, the current scene group label is used as the key to return the set of prototype vectors for all modalities in that scene, serving as the source of key-value pairs for cross-attention calculation in the missing modality phantom compensation.

[0145] In this embodiment, to adapt to the feature distribution drift caused by seasonal changes and equipment aging in the inspection scenario, the dictionary is incrementally updated every fixed inference cycle using a moving average method after deployment. The update process is executed asynchronously in a background thread without interrupting the main inference process, thereby maintaining a balance between continuous dictionary updates and stable edge inference latency.

[0146] In this embodiment, in step S2, the encoded features of the currently available modality are used as the query vector, and the prototype feature embedding vector in the spatiotemporal prior prototype dictionary is used as the key-value pair. Dynamic retrieval and weighted aggregation are performed in the hidden layer feature space through a multi-head cross-attention mechanism to generate the phantom feature representation corresponding to the missing modality. The phantom feature representation is then concatenated and fused with the encoded features of the currently available modality to generate a multimodal joint feature representation.

[0147] Specifically, the data stream status of each sensor is monitored in real time. Assuming the system contains a total of *n* sensor modalities, a modality availability mask vector is defined, where represents a vector space composed of *n* binary elements. Simultaneously, the current scene grouping label is automatically parsed based on the current inspection task metadata, and and are used together as control signals for subsequent dictionary lookup and phantom compensation processes. For available modalities, the corresponding feature encoder is directly invoked to extract the actual semantic feature vector, which serves as the query signal input for the subsequent cross-attention module; for missing modalities, the encoder is skipped, and the dictionary lookup and phantom feature generation processes are directly executed.

[0148] For each missing modality, the current scene group label will be used as the retrieval key to retrieve the prototype feature vectors of all clusters under that modality from the spatiotemporal prior prototype dictionary, and these vectors will be arranged in rows to construct a key matrix and a value matrix:

[0149]

[0150] In the formula, represents the prototype feature vectors corresponding to scenes, modalities, and clusters in the dictionary; represents the real-valued matrix space of rows and columns.

[0151] The key matrix and value matrix share the same dictionary prototype vector, which serves as both a similarity anchor for semantic retrieval in the feature space and directly provides semantic content for weighted aggregation. This allows the dictionary prototype to simultaneously assume the roles of "retrieval index" and "content provider" in the same attention calculation, reducing the introduction of additional parameters and resulting in lower additional storage overhead on resource-constrained edge computing devices.

[0152] In this embodiment, for available modalities, all extracted actual feature vectors need to be concatenated, and then processed by a linear mapping layer to obtain the query vector for the i-th missing modality. Subsequently, based on the input vector constructed in the previous step, head-to-head cross-attention calculation is performed. For the i-th attention head, the attention weight vector and the single-head output are... They can be expressed as:

[0153]

[0154]

[0155] In the formula, represents the query, key, and value projection matrix of the i-th attention head; represents the real-valued matrix space of rows and columns; represents the feature dimension of each attention head; represents the row vector space containing n attention weights; and represents the row vector space of a single head output.

[0156] By concatenating the outputs of all attention heads and then mapping them through the output projection matrix, the phantom feature vector of the missing modality can be obtained:

[0157]

[0158] In the formula, represents the phantom feature; is the output projection matrix; and H is the total number of heads for multi-head attention.

[0159] The final generated feature representation is the phantom feature representation, whose semantic quality will directly depend on the coverage completeness of the dictionary prototype and the representational ability of the query vector.

[0160] To ensure the semantic quality of phantom features, the framework further introduces a confidence evaluation mechanism to dynamically weight them, controlling their contribution to the final fused representation. Specifically, the query vector and the phantom feature representation are concatenated, and then mapped to a confidence score through a learnable linear layer.

[0161]

[0162] In the formula, is the Sigmoid activation function; is the learnable confidence evaluation parameter vector. The confidence-weighted phantom features are concatenated with the actual feature vectors of all available modalities, and after processing by a linear fusion layer, the final complete multimodal joint representation vector is obtained:

[0163]

[0164] In the formula, represents the joint feature representation of the multimodalities; is the linear fusion weight matrix, with row dimension and column dimension being the actual total dimension of the concatenated features; is the confidence score; and is the set of phantom feature vectors of all missing modalities after confidence weighting.

[0165] The resulting joint representation vector will serve as the feature input for the subsequent boundary-aware distillation module.

[0166] In this embodiment, in step S3, a two-stream knowledge distillation framework is built using a multimodal large model as the teacher model and a lightweight network as the student model. Modal dual-stream decoupling is performed on the intermediate layer features of the teacher and student models respectively to obtain modal shared features and modal-specific features. Cross-network alignment of similar features is then performed between the two models. Modal common feature streams and modal-specific feature streams are separated. Based on the classification logit output by the teacher model, the margin value of each training sample from the classification decision boundary is calculated. Distillation loss weights are dynamically allocated according to the margin value. The allocated distillation loss weights are used as weighting coefficients, and feature alignment loss and soft-label distillation loss are introduced to calculate the common feature stream distillation loss. For the modal-specific feature stream, a specific feature alignment loss is constructed. The common feature stream distillation loss, the specific feature alignment loss, and the orthogonal regularization constraint are weighted and summed to obtain the boundary-aware distillation loss. Based on the boundary-aware distillation loss, the lightweight student network is iteratively updated via backpropagation, and the optimized lightweight student network backbone is output.

[0167] Specifically, a knowledge distillation training framework is constructed based on multimodal joint representation vectors. Using the large multimodal model as the teacher model and the lightweight model containing the phantom compensation network as the student model, with fixed parameters for the teacher model, the intermediate layer feature tensor of the teacher model's layer is extracted. Global average pooling is then performed along the spatial dimension to obtain sample-level intermediate layer feature vectors. Subsequently, two independent linear projection networks are used for two-stream decoupling.

[0168]

[0169] In the formula, represents the modal common characteristic flow; The network represents the common features of all modalities; the network represents the intermediate feature vectors at the sample level. Then it is the feature projection network specific to the m-th mode; and it is the mode-specific feature flow. Let be a dimensional real-valued vector space.

[0170] Furthermore, to ensure effective semantic separation of the two types of feature streams, orthogonal regularization constraints need to be introduced:

[0171]

[0172] In the formula, represents the orthogonal regularization constraint.

[0173] This constraint drives the two types of feature flows to maintain an orthogonal relationship in the feature space by minimizing the inner product between the shared feature vector and the modality-specific feature vectors. This ensures that shared knowledge and specific knowledge are transmitted along their respective independent paths without interfering with each other during the subsequent distillation process.

[0174] Based on the above two-stream projection operation and orthogonal regularization constraint, the common features of the student side and the modality-specific features can be obtained.

[0175] After completing the two-stream decoupling, the margin value at the classification decision boundary of the teacher model can be calculated for each training sample to quantify how close the sample is to the classification boundary. Specifically, let the classification logit vector output by the teacher model for the i-th sample be , then the decision margin of this sample is the difference between the logit value corresponding to the true class and the logit value corresponding to the highest competing class. The smaller the margin, the closer the sample is to the classification decision boundary, indicating that a stronger alignment constraint should be imposed on the student model during distillation. Therefore, based on the margin value, the adaptive distillation weights for each sample can be calculated using a negative exponential mapping:

[0176]

[0177] In the formula, represents the margin sensitivity, which controls the decay rate of the weight as the margin changes. This weight dynamically allocates distillation optimization pressure at the sample level, driving the student model to focus on fitting the feature distribution structure of the teacher model in the fine-grained discrimination region.

[0178] The adaptive weights obtained from the above steps are introduced as weighting coefficients into the feature alignment loss and soft label distillation loss, so that the optimization pressure is dynamically distributed according to the distance of the sample from the decision boundary. Specifically, the feature alignment loss can be defined as:

[0179]

[0180] In the formula, N is the total number of samples in the batch; and and are the common feature vectors of the i-th sample in the student model and the teacher model, respectively.

[0181] The distillation loss of the soft label is defined as:

[0182]

[0183] In the formula, is the knowledge distillation temperature coefficient; is the classification logit vector output by the student model for the i-th sample; is the KL divergence; and is the classification logit vector output by the teacher model for the i-th sample.

[0184] The above two losses are combined to obtain the common feature flow distillation loss, which drives the student model to perform feature alignment optimization near the decision boundary.

[0185] The expression for the common characteristic flow distillation loss is:

[0186] In the formula, is the common feature flow distillation loss; is the feature alignment loss; and is the soft label distillation loss.

[0187] In this embodiment, a separate alignment loss needs to be constructed for each modality-specific feature stream to guide the student model to selectively inherit the unique semantic information of each modality. Specifically, the alignment loss for the specific features of the i-th modality... It can be defined as:

[0188]

[0189] In the formula, is the proprietary feature alignment loss of the m-th modality; and are the proprietary feature vectors of the i-th sample in the m-th modality in the student model and the teacher model, respectively.

[0190] Furthermore, by directly summing the feature alignment losses of all modalities, the total loss of the feature flow can be obtained:

[0191] In the formula, represents the proprietary feature alignment loss; M represents the number of modes.

[0192] Finally, by weighting and summing the common feature flow loss, the unique feature flow loss, and the orthogonal regularization constraint, the objective function for global distillation optimization can be obtained:

[0193]

[0194] In the formula, represents the boundary-sensing distillation loss; and are both weighting coefficients.

[0195] The global optimization objective drives the dual-stream projection network of the student model and the backbone encoder to update collaboratively through end-to-end backpropagation. This enables the student model to significantly compress the parameter size while inheriting the fine-grained discriminative structure of the teacher model near the decision boundary in the common feature space, and retaining the teacher model's exclusive representation ability for different sensor semantics in each modality-specific feature space.

[0196] In this embodiment, in step S4, a hybrid expert module is introduced into the lightweight student network backbone to map the text instructions corresponding to the inspection task into a gate control vector through a lightweight language encoder; the gate control vector is used as the input signal of the gated routing network to dynamically activate and weight and aggregate the expert feature processing branches corresponding to the current task type to obtain the load balancing regularization loss, and output the complete lightweight student network.

[0197] Specifically, a text instruction encoding module is introduced into the lightweight student network backbone to map the natural language description instructions of the current inspection task into gate control vectors. Specifically, assuming the text instruction corresponding to the current inspection task is , it is encoded using a lightweight text encoder to obtain an instruction embedding vector. To ensure that the dimension of the instruction embedding vector is aligned with the feature space of the student model, it needs to be compressed into a gate control vector using a linear projection layer.

[0198]

[0199] In the formula, g is the gate control vector; is the projection weight matrix; is the bias vector; and e is the instruction embedding vector.

[0200] The resulting gating control vector encodes the semantic type information of the current inspection task in the form of a low-dimensional dense vector, serving as the task-aware control signal for the hybrid expert routing network. Furthermore, the text encoder employs a lightweight Transformer structure with limited parameters, whose parameters are jointly optimized with the student backbone network during the training phase to meet the computational constraints of edge computing devices.

[0201] Based on gated control vectors, a hybrid expert module can be constructed in the model's feature processing layer. This module consists of several structurally identical but parameter-independent expert networks and a gated routing network. Each expert network is a lightweight feedforward network that receives a multimodal joint representation vector as input and outputs a corresponding task-specific feature vector. The gated routing network takes this as input and calculates the activation weight vectors of each expert through linear transformation and Softmax normalization.

[0202]

[0203] In the formula, is the gated routing weight matrix; is the bias vector. The i-th component represents the activation weight of the i-th expert under the current task instruction. The weight distribution is adaptively determined by the instruction semantics, so that the routing activation mode under different task scenarios produces a differentiated distribution.

[0204] After obtaining the activation weight vector and the output feature vectors of each expert, the final task feature output of the hybrid expert module can be obtained by weighted summation. To prevent the routing network from degenerating into an imbalanced mode that only continuously activates a few fixed experts during training, a load balancing regularization loss needs to be introduced.

[0205]

[0206] In the formula, is the average activation weight of all samples in the batch to the e-th expert; N is the total number of samples in the batch; is the proportion of samples in the current training batch that are routed to the e-th expert; E is the number of expert networks; and is the load balancing regularization loss.

[0207] The global distillation optimization objective will also be incorporated, namely:

[0208] In the formula, represents the load balancing regularization loss; represents the weighting coefficient. The resulting task feature vector is then mapped to the final visual task prediction result via the task output head, achieving unified adaptive inference for multiple types of inspection visual tasks using the same lightweight model.

[0209] In this embodiment, in step S5, during the training of the complete lightweight student network, the training loss distribution of each modality combination input sample is statistically analyzed through an external memory module, and a set of weak combination samples with low training frequency is identified and marked; an external memory module is constructed to cache the feature distribution of the weak combination sample set; a specific regularization loss is designed for the weak combination samples; the specific regularization loss, the boundary-aware distillation loss, and the load balancing regularization loss are weighted and summed to form a global joint optimization objective function; the complete lightweight student network is iteratively trained through the global joint optimization objective function to obtain the converged lightweight student network.

[0210] Specifically, during training, the modality availability mask vector will be used as a unique identifier for the modality combination type. Continuous statistical monitoring of the loss distribution and frequency of occurrence will be performed on each of the different modality combination types appearing in the dataset. Specifically, for each combination type, its average task loss and batch frequency in the most recent training batches will be statistically analyzed. Combination types that simultaneously meet the conditions of high loss and low frequency will be marked as weak combinations, forming a set of weak combinations.

[0211]

[0212] In the formula, is the set of weakly combined samples; c is the combination type; is the average task loss within the training batch; is the batch occurrence frequency; is the loss threshold; is the frequency threshold.

[0213] As training progresses, the model's loss for some combination types may converge to a normal level. To remove the types that have recovered to normal and to include newly emerging high-loss, low-frequency combinations, the weak combination set should be dynamically updated every fixed training period to ensure that subsequent memory regularization always works on the combination types that truly need to be constrained in the current training phase.

[0214] Based on the identified weak combination set, an external memory module is constructed, using the combination type identifier as the index key, to store the prototype feature vector of the corresponding weak combination sample in the intermediate layer of the student model. During subsequent training, whenever a sample belonging to the weak combination set appears in a batch, the corresponding memory entry is updated using a moving average method.

[0215]

[0216] In the formula, is the memory entry; is the mean of the intermediate layer features of the student model for the combined type samples in the current batch; is the memory update momentum coefficient.

[0217] This update mechanism addresses the lag between the memory prototype and the model's current representation. By updating with a moving average, the memory prototype always reflects the student model's latest representation of weak combination samples in the current training state, ensuring that regularization constraints only correct deviations in the current batch.

[0218] In this embodiment, based on the constructed external memory module, a weak combinatorial specific regularization loss is designed to constrain the intermediate layer feature output of the student model to remain consistent with the corresponding memory prototype when processing weak combinatorial inputs. Specifically, it is defined as the mean of the feature deviation distances of all weak combinatorial type samples in the current batch:

[0219]

[0220] In the formula, represents the total number of types in the weak combination set; is the set of sample indices belonging to combination type c within the current batch; is the number of samples in this set; Let be the intermediate layer feature vector of the i-th sample in the student model.

[0221] This will be added to the global loss to form the final global joint optimization objective function:

[0222] In the formula, is the global joint optimization objective function; is the specific regularization loss; and is the weighting coefficient, which is determined by grid search on the validation set.

[0223] The complete lightweight student network is iteratively trained by globally jointly optimizing the objective function to obtain a converged lightweight student network that combines dynamic modality compensation, boundary-aware knowledge transfer, task adaptive routing, and weak combinatorial sample representation capabilities.

[0224] In this embodiment, in step S6, the converged lightweight student network is subjected to quantization compression and operator fusion optimization, and then encapsulated into a single unified model for deployment.

[0225] Specifically, the lightweight student network that has completed the above training will be quantized, compressed, and optimized by operator fusion to meet the computing power and memory constraints of edge computing devices such as drones and inspection robots. Finally, the multi-vision task edge inference deployment for substation operation and maintenance and transmission line inspection will be completed in the form of a single unified model.

[0226] In one possible implementation, a verification example is provided as follows:

[0227] To verify the effectiveness of the proposed lightweight deployment method, an experimental environment was constructed on the publicly available power inspection dataset InsPLAD. Training and validation sets were established for five typical types of power equipment: glass insulators, surge arrester suspensions, polymer insulator mounts, vibration dampers, and suspension clamps. Infrared and LiDAR-assisted modes were constructed based on the original visible light images to form a three-modal inspection dataset. The experiment used class-balanced accuracy as the evaluation metric to reduce the impact of class imbalance on the evaluation results.

[0228] First, the model compression effect was verified. As shown in Table 1, using the test model as a benchmark, after boundary-aware knowledge distillation and lightweight network training, the parameter size of the student model was significantly reduced. While maintaining the ability to process multiple visual tasks, a high model compression ratio was achieved, indicating that the proposed training framework can effectively complete the transfer of knowledge from large models to lightweight models, providing a foundation for deployment on edge devices.

[0229] Model Number of parameters (M) Test Model (Teacher) 4.871 Student Model 1.150

[0230] Table 1 Model compression effect

[0231] Secondly, to verify the overall performance of the proposed method, a comparative experiment was conducted on a fault discrimination and identification task, and the results are shown in Table 2:

[0232] Scene Baseline This framework Absolute improvement Complete mode 72.09 74.59 +2.50 pp RGB missing (visible light camera malfunction) 64.65 68.56 +3.91 pp Missing IR (infrared camera malfunction) 71.46 74.34 +2.88 pp LiDAR missing (LiDAR malfunction) 74.13 76.89 +2.76 pp Average of four scenarios 70.58 73.60 +3.02 pp

[0233] Table 2 Fault Identification Results

[0234] Compared with the baseline model, the proposed method achieves better recognition results in both complete modalities and scenarios with missing modalities, indicating that the constructed key mechanisms such as dynamic modal phantom compensation and boundary-aware distillation can effectively improve the multimodal feature representation capability of the lightweight model. Experimental results show that the proposed method has good environmental adaptability and cross-modal robustness, and can meet the recognition requirements of multi-vision tasks in complex power line inspection scenarios.

[0235] Further testing and verification were conducted on the equipment classification task, and the results are shown in Table 3:

[0236] method Full Modal Accuracy Missing RGB accuracy Missing IR accuracy Missing LiDAR accuracy Baseline 78.05 75.84 76.07 74.81 Boundary-sensing distillation 73.11 66.46 67.10 70.48 Boundary-aware distillation + dynamic modal phantom compensation 80.83 78.18 77.08 74.04

[0237] Table 3 Device Type Identification Performance

[0238] Boundary-aware distillation facilitates the transfer of discriminative knowledge from the teacher model to the student model during model lightweighting, maintaining strong fault identification capabilities while significantly reducing model size. Furthermore, the introduction of dynamic modal phantom compensation improves fault identification performance in both complete and missing modal scenarios, demonstrating that this module effectively compensates for missing modal features using available modal information, enhancing the completeness of multimodal feature representation. The combination of these two techniques enables the lightweight model to maintain stable fault identification capabilities even in complex inspection environments, validating the effectiveness of this method in edge deployment scenarios.

[0239] The application scenarios of this invention are as follows:

[0240] In the daily operation and maintenance inspection of substations, this invention can be deployed in the station inspection robot, relying on multi-sensor data to synchronously complete multiple visual tasks such as equipment defect detection, status classification, and area segmentation.

[0241] In the scenario of drone inspection of overhead power transmission lines, this invention can be adapted to airborne edge computing equipment to cope with modal loss conditions such as heavy fog and sensor failure, and stably identify abnormalities of various components of the line.

[0242] In outdoor multi-device synchronous joint inspection scenarios, this invention can receive multi-source modal data from visible light, infrared, and lidar, and adaptively schedule corresponding feature processing branches according to different inspection text commands.

[0243] In routine field troubleshooting scenarios involving low-frequency faults, this invention can rely on an external memory regularization module to maintain the characterization of rare defect samples, thereby reducing the chance of missing the identification of rare line faults and equipment defects.

[0244] In edge terminal deployment scenarios where computing power and memory resources are limited, this invention achieves real-time inference operations for multiple vision tasks with a single model through distillation lightweighting and model quantization optimization.

[0245] It should be noted that the method of this disclosure embodiment can be executed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method of this disclosure embodiment, and the multiple devices will interact with each other to complete the method described.

[0246] It should be noted that the above description describes some embodiments of this disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0247] Example 2

[0248] See Figure 3 Embodiment 2 of the present invention also provides a lightweight deployment system for power multi-vision tasks based on multimodal compensation, including:

[0249] The spatiotemporal prior prototype dictionary construction unit 001 is used to align and normalize multi-source sensor data collected in substation and transmission line inspection scenarios to obtain standard multimodal data; the standard multimodal data is divided into several scenario groups according to environmental state and time dimension, and a lightweight modal feature encoder is used to extract deep semantic feature vectors for each group of standard multimodal data; the deep semantic feature vectors in each scenario group are clustered to generate prototype feature embedding vectors; based on the prototype feature embedding vectors, a spatiotemporal prior prototype dictionary is constructed using triples as indices.

[0250] The multimodal joint feature representation generation unit 002 is used to take the encoded features of the currently available modalities as query vectors, and the prototype feature embedding vectors in the spatiotemporal prior prototype dictionary as key-value pairs. Through a multi-head cross-attention mechanism, it performs dynamic retrieval and weighted aggregation in the hidden layer feature space to generate phantom feature representations corresponding to the missing modalities. The phantom feature representations are then concatenated and fused with the encoded features of the currently available modalities to generate multimodal joint feature representations.

[0251] The lightweight student network backbone optimization unit 003 is used to build a two-stream knowledge distillation framework using a multimodal large model as the teacher model and a lightweight network as the student model. It decouples the intermediate layer features of the teacher and student models into modal-shared and modality-specific features, and performs cross-network alignment of similar features between the teacher and student models. It separates the modality-shared feature stream and the modality-specific feature stream. Based on the classification logit output by the teacher model, it calculates the margin value of each training sample from the classification decision boundary. It dynamically allocates distillation loss weights according to the margin value. Using the allocated distillation loss weights as weighting coefficients, it introduces feature alignment loss and soft-label distillation loss to calculate the shared feature stream distillation loss. For the modality-specific feature stream, it constructs a specific feature alignment loss. It weights and sums the shared feature stream distillation loss, the specific feature alignment loss, and orthogonal regularization constraints to obtain the boundary-aware distillation loss. Based on the boundary-aware distillation loss, it backpropagates and iteratively updates the lightweight student network, outputting the optimized lightweight student network backbone.

[0252] The complete lightweight student network training unit 004 is used to introduce a hybrid expert module into the lightweight student network backbone, map the text instructions corresponding to the inspection task into a gate control vector through a lightweight language encoder; use the gate control vector as the input signal of the gated routing network, dynamically activate and weight aggregate the expert feature processing branches corresponding to the current task type, obtain the load balancing regularization loss, and output the complete lightweight student network.

[0253] The converged lightweight student network training unit 005 is used to: statistically analyze the training loss distribution of each modality combination input sample through an external memory module during the training process of the complete lightweight student network; identify and label the set of weak combination samples with low training frequency; construct an external memory module to cache the feature distribution of the weak combination sample set; design a specific regularization loss for the weak combination samples; perform a weighted summation of the specific regularization loss, the boundary-aware distillation loss, and the load balancing regularization loss to form a global joint optimization objective function; and iteratively train the complete lightweight student network using the global joint optimization objective function to obtain the converged lightweight student network.

[0254] The converged lightweight student network deployment unit 006 is used to perform quantization compression and operator fusion optimization on the converged lightweight student network, and encapsulate it into a single unified model for deployment.

[0255] In this embodiment, in the spatiotemporal prior prototype dictionary construction unit 001, the expression of the deep semantic feature vector is:

[0256]

[0257] In the formula, is the deep semantic feature vector; This is the feature encoder network corresponding to the m-th mode; Let be a d-dimensional real-valued vector space; d is the uniform feature embedding dimension; The m-th mode is the standard multimodal input sample after spatiotemporal alignment and normalization.

[0258] The objective function for clustering the deep semantic feature vectors within each scene group is:

[0259]

[0260] In the formula, The K-Means clustering loss for the m-th modality under the g-th scene group; K is the number of clusters; k is the k-th cluster. Let be the set of sample features corresponding to the k-th cluster of the m-th modality under the g-th scene group; and be the centroid vector of the corresponding cluster.

[0261] The expression for the spatiotemporal prior prototype dictionary is:

[0262]

[0263] In the formula, is the spatiotemporal prior prototype dictionary; M is the total number of sensor modes; , , and are the sets of integer indices for the corresponding dimensions.

[0264] In this embodiment, in the multimodal joint feature representation generation unit 002, the expression for the phantom feature representation is:

[0265]

[0266] In the formula, represents the phantom feature; is the output projection matrix; H is the total number of heads for multi-head attention;

[0267] The expression for the multimodal joint feature representation is:

[0268]

[0269] In the formula, represents the joint feature representation of the multimodalities; is the linear fusion weight matrix, with row dimension and column dimension being the actual total dimension of the concatenated features; is the confidence score; and is the set of phantom feature vectors of all missing modalities after confidence weighting.

[0270] In this embodiment, the expressions for the modal common feature flow and modal specific feature flow in the lightweight student network backbone basic optimization unit 003 are as follows:

[0271]

[0272] In the formula, represents the modal common characteristic flow; The network represents the common features of all modalities; the network represents the intermediate feature vectors at the sample level. Let be the feature projection network specific to the m-th mode; be the mode-specific feature flow.

[0273] The expression for the orthogonal regularization constraint is:

[0274]

[0275] In the formula, represents the orthogonal regularization constraint;

[0276] The expression for the common characteristic flow distillation loss is:

[0277]

[0278]

[0279] In the formula, is the common feature flow distillation loss; is the feature alignment loss; is the soft label distillation loss; N is the total number of samples in the batch; and are the common feature vectors of the i-th sample in the student model and the teacher model, respectively; is the adaptive distillation weight; is the knowledge distillation temperature coefficient; is the classification logit vector output by the student model for the i-th sample; is the KL divergence; is the classification logit vector output by the teacher model for the i-th sample;

[0280] The expression for the proprietary feature alignment loss is:

[0281]

[0282] In the formula, is the proprietary feature alignment loss; is the proprietary feature alignment loss of the m-th modality; M is the number of modalities; and and are the proprietary feature vectors of the i-th sample in the m-th modality in the student model and teacher model, respectively;

[0283] The expression for the boundary-aware distillation loss is:

[0284]

[0285] In the formula, represents the boundary-sensing distillation loss; and are both weighting coefficients.

[0286] In this embodiment, the expression for the gating control vector in the complete lightweight student network training unit 004 is:

[0287]

[0288] In the formula, g is the gate control vector; is the projection weight matrix; is the bias vector; and e is the instruction embedding vector.

[0289] The expression for the load balancing regularization loss is:

[0290]

[0291] In the formula, is the load balancing regularization loss; is the average activation weight of all samples in the batch to the e-th expert; N is the total number of samples in the batch; is the proportion of samples in the current training batch that are routed to the e-th expert; E is the number of expert networks; is the load balancing regularization loss; and is the weighting coefficient.

[0292] In this embodiment, the expression for the weak combinatorial sample set in the converged lightweight student network training unit 005 is:

[0293]

[0294] In the formula, represents the weak combination sample set; c represents the combination type; represents the average task loss within the training batch; represents the batch occurrence frequency; represents the loss threshold; and represents the frequency threshold.

[0295] The expression for the global joint optimization objective function is:

[0296]

[0297] In the formula, is the global joint optimization objective function; is the specific regularization loss; is the total number of types of weak combinatorial sets; is the set of sample indices belonging to combination type c within the current batch; is the number of samples in this set; Let be the intermediate layer feature vector of the i-th sample in the student model; For each memory entry; for each weighting coefficient.

[0298] It should be noted that the information interaction and execution process between the modules of the above system are based on the same concept as the method embodiment in Embodiment 1 of this application, and the resulting technical effects are the same as those in the method embodiment of this application. For details, please refer to the description in the method embodiment shown above in this application, and it will not be repeated here.

[0299] Example 3

[0300] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium storing program code of a lightweight deployment method for power multi-vision tasks based on multimodal compensation. The program code includes instructions for executing the lightweight deployment method for power multi-vision tasks based on multimodal compensation of Embodiment 1 or any possible implementation thereof.

[0301] Computer-readable storage media can be any available medium that a computer can access, or a data storage device such as a server or data center that integrates one or more available media. The available medium can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).

[0302] Example 4

[0303] Embodiment 4 of the present invention provides an electronic device, including: a memory and a processor;

[0304] The processor and the memory communicate with each other via a bus; the memory stores program instructions that can be executed by the processor, and the processor can call the program instructions to execute the lightweight deployment method for power multi-vision tasks based on multimodal compensation in Embodiment 1 or any possible implementation thereof.

[0305] Specifically, a processor can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor that reads software code stored in memory. This memory can be integrated into the processor or located outside the processor and exist independently.

[0306] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable system. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.

[0307] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing systems. They can be centralized on a single computing system or distributed across a network of multiple computing systems. Optionally, they can be implemented using program code executable by a computing system, thereby storing them in a storage system for execution by the computing system. In some cases, the steps shown or described can be performed in a different order than those presented herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0308] Although the present invention has been described in detail above with general descriptions and specific embodiments, modifications or improvements can be made to it, which will be obvious to those skilled in the art. Therefore, all such modifications or improvements made without departing from the spirit of the present invention fall within the scope of protection claimed by the present invention.

Claims

1. A lightweight deployment method for power multi-vision tasks based on multimodal compensation, characterized in that, include: Alignment and normalization processing are performed on multi-source sensor data collected in substation and transmission line inspection scenarios to obtain standard multimodal data; The standard multimodal data is divided into several scene groups according to environmental state and time dimension, and a deep semantic feature vector is extracted for each group of standard multimodal data through a lightweight modal feature encoder; the deep semantic feature vectors in each scene group are clustered to generate prototype feature embedding vectors; based on the prototype feature embedding vectors, a spatiotemporal prior prototype dictionary is constructed using triples as indexes; Using the encoded features of the currently available modalities as query vectors and the prototype feature embedding vectors in the spatiotemporal prior prototype dictionary as key-value pairs, a multi-head cross-attention mechanism is used to dynamically retrieve and weighted aggregate in the hidden layer feature space to generate phantom feature representations corresponding to the missing modalities. The phantom feature representations are then concatenated and fused with the encoded features of the currently available modalities to generate multimodal joint feature representations. A two-stream knowledge distillation framework is constructed using a multimodal large model as the teacher model and a lightweight network as the student model. Modal dual-stream decoupling is performed on the intermediate layer features of the teacher and student models to obtain modal shared features and modal-specific features. Cross-network alignment of similar features is then performed between the teacher and student models. Modal common feature streams and modal-specific feature streams are separated. Based on the classification logit output by the teacher model, the margin value of each training sample from the classification decision boundary is calculated. Distillation loss weights are dynamically allocated according to the margin value. These allocated weights are used as weighting coefficients, and feature alignment loss and soft-label distillation loss are introduced to calculate the common feature stream distillation loss. For the modal-specific feature stream, a specific feature alignment loss is constructed. The common feature stream distillation loss, the specific feature alignment loss, and orthogonal regularization constraints are weighted and summed to obtain the boundary-aware distillation loss. Based on the boundary-aware distillation loss, the lightweight student network is iteratively updated via backpropagation, outputting the optimized lightweight student network backbone. A hybrid expert module is introduced into the lightweight student network backbone to map the text instructions corresponding to the inspection task into a gate control vector through a lightweight language encoder. The gate control vector is used as the input signal of the gated routing network to dynamically activate and weight and aggregate the expert feature processing branches corresponding to the current task type, obtain the load balancing regularization loss, and output the complete lightweight student network. During the training of the complete lightweight student network, the training loss distribution of each modality combination input sample is statistically analyzed using an external memory module to identify and label weak combination sample sets with low training frequency; an external memory module is constructed to cache the feature distribution of the weak combination sample sets; a specific regularization loss is designed for the weak combination samples; the specific regularization loss, the boundary-aware distillation loss, and the load balancing regularization loss are weighted and summed to form a global joint optimization objective function; the complete lightweight student network is iteratively trained using the global joint optimization objective function to obtain the converged lightweight student network; The converged lightweight student network is then subjected to quantization compression and operator fusion optimization, and encapsulated into a single unified model for deployment.

2. The lightweight deployment method for power multi-vision tasks based on multimodal compensation according to claim 1, characterized in that, The expression for the deep semantic feature vector is: In the formula, is the deep semantic feature vector; This is the feature encoder network corresponding to the m-th mode; Let be a d-dimensional real-valued vector space; d is the uniform feature embedding dimension; The m-th mode is the standard multimodal input sample after spatiotemporal alignment and normalization. The objective function for clustering the deep semantic feature vectors within each scene group is: In the formula, The K-Means clustering loss for the m-th modality under the g-th scene group; K is the number of clusters; k is the k-th cluster. Let be the set of sample features corresponding to the k-th cluster of the m-th modality under the g-th scene group; and be the centroid vector of the corresponding cluster. The expression for the spatiotemporal prior prototype dictionary is: In the formula, is the spatiotemporal prior prototype dictionary; M is the total number of sensor modes; , , and are the sets of integer indices for the corresponding dimensions.

3. The lightweight deployment method for power multi-vision tasks based on multimodal compensation according to claim 2, characterized in that, The expression representing the phantom feature is: In the formula, represents the characteristics of the illusion; The output projection matrix is ​​H; H represents the total number of heads for multi-head attention. The expression for the multimodal joint feature representation is: In the formula, represents the joint feature representation of the multimodalities; is the linear fusion weight matrix, with row dimension and column dimension being the actual total dimension of the concatenated features; is the confidence score; and is the set of phantom feature vectors of all missing modalities after confidence weighting.

4. The lightweight deployment method for power multi-vision tasks based on multimodal compensation according to claim 3, characterized in that, The expressions for the modal common feature flow and the modal specific feature flow are as follows: In the formula, represents the modal common characteristic flow; A projection network of features common to all modes; These are the feature vectors of the intermediate layer at the sample level; Let be the feature projection network specific to the m-th mode; be the mode-specific feature flow. The expression for the orthogonal regularization constraint is: In the formula, represents the orthogonal regularization constraint; The expression for the common characteristic flow distillation loss is: In the formula, represents the common characteristic flow distillation loss; is the feature alignment loss; is the soft label distillation loss; N is the total number of samples in the batch; and are the common feature vectors of the i-th sample in the student model and the teacher model, respectively; is the adaptive distillation weight; is the knowledge distillation temperature coefficient; is the classification logit vector output by the student model for the i-th sample; is the KL divergence; is the classification logit vector output by the teacher model for the i-th sample; The expression for the proprietary feature alignment loss is: In the formula, represents the proprietary feature alignment loss; The specific feature alignment loss for the m-th mode; M represents the number of modalities; and and are the specific feature vectors of the i-th sample in the m-th modality in the student model and teacher model, respectively. The expression for the boundary-aware distillation loss is: In the formula, represents the boundary-sensing distillation loss; and are both weighting coefficients.

5. The lightweight deployment method for power multi-vision tasks based on multimodal compensation according to claim 4, characterized in that, The expression for the gate control vector is: In the formula, g is the gate control vector; is the projection weight matrix; is the bias vector; and e is the instruction embedding vector. The expression for the load balancing regularization loss is: In the formula, is the load balancing regularization loss; is the average activation weight of all samples in the batch to the e-th expert; N is the total number of samples in the batch; is the proportion of samples in the current training batch that are routed to the e-th expert; E is the number of expert networks; is the load balancing regularization loss; and is the weighting coefficient.

6. The lightweight deployment method for power multi-vision tasks based on multimodal compensation according to claim 5, characterized in that, The expression for the weakly combined sample set is: In the formula, represents the weak combination sample set; c represents the combination type; represents the average task loss within the training batch; represents the batch occurrence frequency; represents the loss threshold; and represents the frequency threshold. The expression for the global joint optimization objective function is: In the formula, is the global joint optimization objective function; is the specific regularization loss; is the total number of types of weak combinatorial sets; This represents the set of sample indices belonging to combination type c within the current batch; represents the number of samples in this set. Let be the intermediate layer feature vector of the i-th sample in the student model; For each memory entry; for each weighting coefficient.

7. A lightweight deployment system for power multi-vision tasks based on multimodal compensation, employing the lightweight deployment method for power multi-vision tasks based on multimodal compensation as described in any one of claims 1-6, characterized in that, include: A spatiotemporal prior prototype dictionary construction unit is used to align and normalize multi-source sensor data collected in substation and transmission line inspection scenarios to obtain standard multimodal data. The standard multimodal data is divided into several scenario groups according to environmental state and time dimension, and a lightweight modal feature encoder is used to extract deep semantic feature vectors for each group of standard multimodal data. The deep semantic feature vectors in each scenario group are clustered to generate prototype feature embedding vectors. Based on the prototype feature embedding vectors, a spatiotemporal prior prototype dictionary is constructed using triples as indices. The multimodal joint feature representation generation unit is used to take the encoded features of the currently available modalities as query vectors, and the prototype feature embedding vectors in the spatiotemporal prior prototype dictionary as key-value pairs. Through a multi-head cross-attention mechanism, it performs dynamic retrieval and weighted aggregation in the hidden layer feature space to generate phantom feature representations corresponding to the missing modalities. The phantom feature representations are then concatenated and fused with the encoded features of the currently available modalities to generate multimodal joint feature representations. The lightweight student network backbone optimization unit is used to build a two-stream knowledge distillation framework using a multimodal large model as the teacher model and a lightweight network as the student model. It decouples the intermediate layer features of the teacher and student models into modal-shared and modality-specific features, and performs cross-network alignment of similar features between the teacher and student models. It separates the modality-shared feature stream and the modality-specific feature stream. Based on the classification logit output by the teacher model, it calculates the margin value of each training sample from the classification decision boundary. It dynamically allocates distillation loss weights based on the margin value. Using the allocated distillation loss weights as weighting coefficients, it introduces feature alignment loss and soft-label distillation loss to calculate the shared feature stream distillation loss. For the modality-specific feature stream, it constructs a specific feature alignment loss. It then performs a weighted sum of the shared feature stream distillation loss, the specific feature alignment loss, and orthogonal regularization constraints to obtain the boundary-aware distillation loss. Based on the boundary-aware distillation loss, it backpropagates and iteratively updates the lightweight student network, outputting the optimized lightweight student network backbone. A complete lightweight student network training unit is used to introduce a hybrid expert module into the lightweight student network backbone, map the text instructions corresponding to the inspection task into a gate control vector through a lightweight language encoder; use the gate control vector as the input signal of the gated routing network, dynamically activate and weight aggregate the expert feature processing branches corresponding to the current task type, obtain the load balancing regularization loss, and output the complete lightweight student network. The converged lightweight student network training unit is used to: statistically analyze the training loss distribution of each modality combination input sample through an external memory module during the training of the complete lightweight student network; identify and label the set of weak combination samples with low training frequency; cache the feature distribution of the weak combination sample set through an external memory module; design a specific regularization loss for the weak combination samples; weight and sum the specific regularization loss, the boundary-aware distillation loss, and the load balancing regularization loss to form a global joint optimization objective function; and iteratively train the complete lightweight student network using the global joint optimization objective function to obtain the converged lightweight student network. The converged lightweight student network deployment unit is used to perform quantization compression and operator fusion optimization on the converged lightweight student network, and encapsulate it into a single unified model for deployment.

8. The lightweight deployment system for power multi-vision tasks based on multimodal compensation according to claim 7, characterized in that, In the spatiotemporal prior prototype dictionary construction unit, the expression for the deep semantic feature vector is: In the formula, is the deep semantic feature vector; This is the feature encoder network corresponding to the m-th mode; Let be a d-dimensional real-valued vector space; d is the uniform feature embedding dimension; The m-th mode is the standard multimodal input sample after spatiotemporal alignment and normalization. The objective function for clustering the deep semantic feature vectors within each scene group is: In the formula, The K-Means clustering loss for the m-th modality under the g-th scene group; K is the number of clusters; k is the k-th cluster. Let be the set of sample features corresponding to the k-th cluster of the m-th modality under the g-th scene group; and be the centroid vector of the corresponding cluster. The expression for the spatiotemporal prior prototype dictionary is: In the formula, is the spatiotemporal prior prototype dictionary; M is the total number of sensor modes; , , and are the sets of integer indices for the corresponding dimensions.

9. The lightweight deployment system for power multi-vision tasks based on multimodal compensation according to claim 8, characterized in that, In the multimodal joint feature representation generation unit, the expression for the phantom feature representation is: In the formula, represents the characteristics of the illusion; The output projection matrix is ​​H; H represents the total number of heads for multi-head attention. The expression for the multimodal joint feature representation is: In the formula, represents the joint feature representation of the multimodalities; is the linear fusion weight matrix, with row dimension and column dimension being the actual total dimension of the concatenated features; is the confidence score; and is the set of phantom feature vectors of all missing modalities after confidence weighting.

10. The lightweight deployment system for power multi-vision tasks based on multimodal compensation according to claim 9, characterized in that, In the lightweight student network backbone basic optimization unit, the expressions for the modal common feature flow and the modal specific feature flow are as follows: In the formula, represents the modal common characteristic flow; A projection network of features common to all modes; These are the feature vectors of the intermediate layer at the sample level; Then it is the feature projection network specific to the m-th mode; and it is the mode-specific feature flow. The expression for the orthogonal regularization constraint is: In the formula, represents the orthogonal regularization constraint; The expression for the common characteristic flow distillation loss is: In the formula, represents the common characteristic flow distillation loss; is the feature alignment loss; is the soft label distillation loss; N is the total number of samples in the batch; and are the common feature vectors of the i-th sample in the student model and the teacher model, respectively; is the adaptive distillation weight; is the knowledge distillation temperature coefficient; is the classification logit vector output by the student model for the i-th sample; is the KL divergence; is the classification logit vector output by the teacher model for the i-th sample; The expression for the proprietary feature alignment loss is: In the formula, represents the proprietary feature alignment loss; The specific feature alignment loss for the m-th mode; M represents the number of modalities; and and are the specific feature vectors of the i-th sample in the m-th modality in the student model and teacher model, respectively. The expression for the boundary-aware distillation loss is: In the formula, The boundary-sensing distillation loss is defined; both and are weighting coefficients. In the complete lightweight student network training unit, the expression for the gating control vector is: In the formula, g is the gate control vector; is the projection weight matrix; is the bias vector; and e is the instruction embedding vector. The expression for the load balancing regularization loss is: In the formula, is the load balancing regularization loss; is the average activation weight of all samples in the batch to the e-th expert; N is the total number of samples in the batch; is the proportion of samples in the current training batch that are routed to the e-th expert; E is the number of expert networks; is the load balancing regularization loss; is the weighting coefficient; In the converged lightweight student network training unit, the expression for the weak combinatorial sample set is: In the formula, represents the weak combination sample set; c represents the combination type; represents the average task loss within the training batch; represents the batch occurrence frequency; represents the loss threshold; and represents the frequency threshold. The expression for the global joint optimization objective function is: In the formula, is the global joint optimization objective function; is the specific regularization loss; is the total number of types of weak combinatorial sets; This represents the set of sample indices belonging to combination type c within the current batch; represents the number of samples in this set. Let be the intermediate layer feature vector of the i-th sample in the student model; For each memory entry; for each weighting coefficient.