Electromagnetic detection multi-source data processing method and device, electronic equipment, and storage medium

Through the electromagnetic detection multi-source data processing method, knowledge distillation and loss regularization terms are used to solve the problem of insufficient multi-source data processing resources in the complex underground space environment, and achieve rapid and accurate analysis and risk detection of underground space situations.

CN118709143BActive Publication Date: 2024-10-29CHINA GEOLOGICAL SURVEY GEOPHYSICAL SURVEY CENT
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411177978.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-10-29
Estimated Expiration
2044-08-27

AI Technical Summary

Technical Problem

Existing multi-source data processing algorithm models have limited computing resources and are difficult to meet the actual needs of the complex underground space environment, and cannot achieve rapid and accurate analysis of the real-time situation of underground space.

Method used

Using the electromagnetic detection multi-source data processing method, by inputting the electromagnetic detection image data into the target teacher network model and student network model, using knowledge distillation and loss regularization terms, the student network model is adjusted to achieve efficient data processing and feature extraction, and fuse different data sources. information.

Benefits of technology

It improves the efficiency and accuracy of data processing, can achieve better performance with relatively less computing resources, enhances the robustness and adaptability of the model, quickly processes a large amount of multi-source data, and detects anomalies and potential risks in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709143B_ABST
    Figure CN118709143B_ABST
Patent Text Reader

Abstract

The present disclosure provides an electromagnetic detection multi-source data processing method and device, electronic equipment, and storage medium, which belongs to the field of data processing technology. The method includes: inputting electromagnetic detection image data into a target teacher network model to obtain multiple first feature representations; inputting electromagnetic detection image data and multiple first feature representations into a student network model to obtain multiple second feature representations; determining the target loss based on multiple first feature representations, multiple second feature representations, and a feature conversion function; adjusting the student network model based on the first target loss value and the second target loss value to obtain a target student network model; and processing the electromagnetic detection multi-source data to be processed based on the target student network model. The electromagnetic detection multi-source data processing method and device, electronic equipment, and storage medium provided by the present disclosure can solve the problem that the model computing resources are limited and it is difficult to meet actual needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the field of data processing technology, and more specifically, relates to a method and device for processing multi-source data of electromagnetic detection, an electronic device, and a storage medium. Background Art

[0002] With the acceleration of urbanization, the development and utilization of underground space is becoming increasingly important. Underground space facilities such as subway tunnels, underground parking lots, and underground integrated pipe galleries are increasing and becoming more complex. However, these underground spaces are complex and closed, with many safety hazards and management difficulties. For example, emergencies such as fires, floods, and gas leaks in underground spaces are difficult to detect and accurately judge in a timely manner. At the same time, the construction and operation of underground spaces require real-time monitoring and analysis of personnel flow, equipment operation, and environmental changes within them to improve management efficiency, ensure safety, and optimize resource allocation.

[0003] Traditional single-mode or single-source data monitoring methods often have limitations and cannot fully and accurately reflect the real-time situation of underground space. The emergence of multi-modal and multi-source data provides the possibility of a more comprehensive and in-depth understanding of the status of underground space. However, due to the complexity of underground space data, the existing multi-source data processing algorithm model has problems such as limited computing resources, insufficient device storage and computing power, and is difficult to meet actual needs. Summary of the invention

[0004] The purpose of the present disclosure is to provide an electromagnetic detection multi-source data processing method and device, an electronic device, and a storage medium to solve the problem that the existing multi-source data processing algorithm model has limited computing resources and is difficult to meet actual needs.

[0005] A first aspect of the embodiments of the present disclosure provides a method for processing electromagnetic detection multi-source data, comprising:

[0006] The electromagnetic detection image data is input into the target teacher network model to obtain multiple first feature representations.

[0007] The electromagnetic detection image data and a plurality of first feature representations are input into the student network model to obtain a plurality of second feature representations.

[0008] The target loss is determined based on a plurality of first feature representations, a plurality of second feature representations and a feature conversion function. The target loss includes a first target loss value and a second target loss value, the first target loss value is a knowledge distillation loss, and the second target loss value is a loss regularization term.

[0009] The student network model is adjusted based on the first target loss value and the second target loss value to obtain a target student network model.

[0010] The electromagnetic detection multi-source data to be processed are processed based on the target student network model.

[0011] A second aspect of the embodiments of the present disclosure provides an electromagnetic detection multi-source data processing device, comprising:

[0012] The first feature extraction module is used to input the electromagnetic detection image data into the target teacher network model to obtain multiple first feature representations.

[0013] The second feature extraction module is used to input the electromagnetic detection image data and multiple first feature representations into the student network model to obtain multiple second feature representations.

[0014] A loss module is used to determine a target loss based on a plurality of first feature representations, a plurality of second feature representations and a feature conversion function. The target loss includes a first target loss value and a second target loss value, the first target loss value is a knowledge distillation loss, and the second target loss value is a loss regularization term.

[0015] The model adjustment module is used to adjust the student network model based on the first target loss value and the second target loss value to obtain a target student network model.

[0016] The data processing module is used to process the electromagnetic detection multi-source data to be processed based on the target student network model.

[0017] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of the above-mentioned electromagnetic detection multi-source data processing method when executing the computer program.

[0018] According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned electromagnetic detection multi-source data processing method are implemented.

[0019] The beneficial effects of the electromagnetic detection multi-source data processing method and device, electronic device, and storage medium provided by the embodiments of the present disclosure are: through knowledge distillation, the student network model can learn the advanced knowledge and features of the teacher network model, which accelerates the training and optimization process of the model, and also enables the student network model to achieve better performance with relatively few computing resources, thereby improving the efficiency of data processing. The introduction of the loss regularization term can prevent the student network model from overfitting, so that it can be better generalized to new data, and improve the robustness and adaptability of the model. The embodiments of the present disclosure can effectively fuse electromagnetic detection multi-source data and make full use of information from different data sources, thereby improving the precision and accuracy of data processing.

[0020] Complex analytical models may face problems of limited computing resources, insufficient device storage and computing power in practical applications. Compared with directly using complex teacher network models, student network models can compress model size, reduce computing costs, run efficiently in resource-constrained environments, and facilitate deployment and use on various terminal devices.

[0021] Different types of sensors and data sources generate data in different formats, accuracies, frequencies, etc., which are difficult to directly integrate and analyze. The disclosed embodiment solves the problem of data heterogeneity through multi-modal and multi-source data fusion feature representation technology, and can convert data of different modalities into a unified, comparable and analyzable feature form.

[0022] The situation of underground space changes rapidly, and data needs to be acquired and analyzed in a timely manner to respond. The disclosed embodiment can quickly process a large amount of multi-source data, realize rapid and accurate analysis of the real-time situation of underground space, and timely discover anomalies and potential risks. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0024] Figure 1 A schematic diagram of a flow chart of a method for processing electromagnetic detection multi-source data provided by an embodiment of the present disclosure;

[0025] Figure 2 A structural block diagram of an electromagnetic detection multi-source data processing device provided by an embodiment of the present disclosure;

[0026] Figure 3 A schematic block diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] In the following description, specific details such as specific system structures and technologies are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present disclosure. However, it should be clear to those skilled in the art that the present disclosure may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obstructing the description of the present disclosure with unnecessary details.

[0028] In order to make the purpose, technical solutions and advantages of the present disclosure more clear, specific embodiments will be described below in conjunction with the accompanying drawings.

[0029] Please refer to Figure 1 , Figure 1 This is a flow chart of a method for processing electromagnetic detection multi-source data provided by an embodiment of the present disclosure. The method may include S101 to S105.

[0030] S101: Input the electromagnetic detection image data into the target teacher network model to obtain multiple first feature representations.

[0031] In this embodiment, the target teacher network model is a trained teacher network model. The electromagnetic detection image data is input into the target teacher network model for data processing and recognition. The target teacher network model includes multiple feature extraction layers, and each feature extraction layer can generate a first feature representation.

[0032] S102: Input the electromagnetic detection image data and the multiple first feature representations into the student network model to obtain multiple second feature representations.

[0033] In this embodiment, the student network model is an initialized and trained student network model. The electromagnetic detection image data is input into the student network model for data processing and recognition. The student network model includes multiple feature extraction layers, and each feature extraction layer can generate a second feature representation.

[0034] In this embodiment, the electromagnetic detection image data and the plurality of first feature representations may be input into the student network model for processing, including:

[0035] The electromagnetic detection image data and a plurality of first feature representations are input into the student network model and processed based on the first function.

[0036] The first function is:

[0037]

[0038] in, represents a composite function, Represents output data, represents electromagnetic detection image data, S represents the student network model, S includes , represents multiple intermediate layers, n represents the total number of intermediate layers, Represents a classifier.

[0039] In this embodiment, the second feature representation of each intermediate layer may be calculated based on the second function.

[0040] The second function is:

[0041]

[0042] in, represents the second feature representation of the i-th intermediate layer of the student network model, Represents the i-th intermediate layer of the student network model.

[0043] For example, in the detection of urban underground space, such as the layout detection of underground pipelines and cables, electromagnetic detection image data can be input into the target teacher network model to obtain multiple first feature representations. These first feature representations can contain preliminary feature information of pipelines and cables, such as approximate location, direction, etc.

[0044] The electromagnetic detection image data and these first feature representations are input into the initialized and trained student network model. The student network model processes the input data according to the first function and extracts features through multiple intermediate layers. The first intermediate layer generates a second feature representation of the edge and contour of the pipeline based on the input electromagnetic detection image data and the first feature representation. The second intermediate layer further extracts the second feature representation of the connection relationship and branching of the pipeline based on the feature map output by the previous layer. Subsequent intermediate layers continue to deepen the understanding of the pipeline layout and generate the final second feature representation.

[0045] S103: Determine a target loss based on the plurality of first feature representations, the plurality of second feature representations, and the feature conversion function. The target loss includes a first target loss value and a second target loss value, the first target loss value is a knowledge distillation loss, and the second target loss value is a loss regularization term.

[0046] In this embodiment, determining the target loss based on the plurality of first feature representations, the plurality of second feature representations and the feature conversion function includes:

[0047] A plurality of intermediate layer loss values ​​are calculated based on the plurality of first feature representations, the plurality of second feature representations and the feature conversion function. The intermediate layer is a feature extraction layer.

[0048] A first target loss value is calculated based on the plurality of intermediate layer loss values ​​and a first formula.

[0049] The first formula is:

[0050]

[0051] in, represents the first target loss value, ) represents the loss value of the i-th intermediate layer, D represents the distance function, represents the first feature representation of the i-th intermediate layer of the teacher network model, represents the feature conversion function of the i-th intermediate layer of the student network model, represents the feature conversion function of the i-th intermediate layer of the teacher network model, and I represents the index set of all intermediate layers.

[0052] For example, in the loss calculation of a layer of knowledge distillation, M is used as a feature transformation function, which transforms the feature maps of the student network model and the teacher network model into the same space or dimension so that the similarity or difference between them can be calculated and the distillation loss can be constructed accordingly.

[0053] Before feature conversion, the feature maps of the student network model and the teacher network model have different spatial resolutions (i.e., height and width) or different numbers of channels (i.e., depth). After conversion by the feature conversion function M, the feature map of the student network model is adjusted (such as through upsampling, downsampling, convolution, etc.) to the same spatial resolution and number of channels as the feature map of the teacher network model, thereby achieving spatial / dimensional alignment of the feature map.

[0054] During the conversion process, the key information in the feature graph of the student network model will be retained, and the expression of this information will be enhanced through some special conversion operations (such as attention mechanism, feature fusion, etc.).

[0055] After feature conversion, since the feature maps of the student network model and the teacher network model are in the same space / dimension, it is convenient to calculate the similarity or difference between them (such as using L1 loss, L2 loss, cross entropy loss, etc.), thereby constructing the knowledge distillation loss. The knowledge distillation loss will be used to guide the training of the student network model so that it can imitate the behavior of the teacher network model. L1 loss is also called absolute loss or Manhattan distance, and L2 loss is also called squared loss or Euclidean distance.

[0056] The feature conversion function M can convert the feature map (i.e., the second feature representation) of the student network model. It receives the feature map of a layer of the student network model as input and outputs the converted feature map. This conversion process can include the adjustment of spatial resolution (such as through upsampling or downsampling), the adjustment of the number of channels (such as changing the depth through the convolution layer), and feature enhancement or suppression operations (such as using the attention mechanism).

[0057] For example, in the loss formula of a layer of knowledge distillation, the feature conversion function transforms the feature map of the student network model to align with the feature map of the teacher network model in space / dimension, and enhances or retains key information through specific conversion operations. This conversion process provides the basis for the calculation of knowledge distillation loss and helps the student network model imitate the behavior of the teacher network model during training.

[0058] In this embodiment, determining the target loss based on the plurality of first feature representations, the plurality of second feature representations and the feature conversion function further includes:

[0059] A second target loss value is calculated based on the plurality of first feature representations, the plurality of second feature representations, the feature conversion function, and the second formula.

[0060] The second formula is:

[0061]

[0062] in, represents the second target loss value, D represents the distance function, represents the second feature representation of the i-th intermediate layer of the student network model, represents the first feature representation of the jth intermediate layer of the teacher network model, represents the feature conversion function of the student network model, Represents the feature transformation function of the teacher network model.

[0063] In this embodiment, the second target loss value is a loss regularization term. The loss regularization term is the loss generated by knowledge review. In the training phase of knowledge distillation, the loss generated by knowledge review plays a role similar to a regularization term. The regularization term can be used to constrain or regulate the model to prevent the model from being overly complex or overfitting. Here, the second target loss value can limit or adjust the training process to encourage the model to learn better knowledge representation.

[0064] The second target loss value can help optimize the learning process of the student network. It can encourage the student network model to learn the key knowledge and patterns in the target teacher network model, while preventing the student network from becoming too complex or overfitting the training data. Through this constraint, the student network model can reduce the number of parameters and calculations while maintaining a certain performance.

[0065] During testing, only the trained student network is used to predict or analyze new data. Since no additional operations or calculations are involved in the testing phase, no additional time loss is incurred.

[0066] S104: Adjust the student network model based on the first target loss value and the second target loss value to obtain a target student network model.

[0067] In this embodiment, the target student network model is a performance-optimized student network model after adjusting parameters.

[0068] Exemplarily, two key components can be set, namely, the AttentionBased Fusion (ABF) module and the Hierarchical Context Loss (HCL) module. The ABF module is a technology for feature fusion, especially in the context of knowledge distillation, which can use the attention mechanism to fuse features from the teacher network model and the student network model. Through the attention mechanism, the ABF module can focus on more important feature areas, thereby more effectively transferring the knowledge of the teacher network model to the student network model. This mechanism helps to improve the learning effect of the student network model during the distillation process.

[0069] The HCL module is a loss function used to evaluate the difference in feature representation between the student network model and the teacher network model during the knowledge distillation process. By hierarchically considering contextual information at different levels, the HCL function can more comprehensively measure the similarities and differences between the two models. The design of this loss function helps guide the student network model to gradually approach the feature representation of the teacher network model during training, thereby improving the distillation effect.

[0070] The features obtained from the next state transition of the target teacher network model and the features of the current state are considered as two branches, and then the spatial weights of the two branches are obtained by connection and convolution, and finally the weighted sum is added to obtain the fused features. The HCL module uses four scales of pooling layers (Pool) to pool the features of the teacher network model and the student network model respectively, and then calculate the loss.

[0071] Exemplarily, after calculating the pooling features of the student network model and the target teacher network model at each scale, the difference between the two can be calculated based on the loss function (the second formula, the third formula, etc.). For the pooling features of each scale, the loss between the student network model and the target teacher network model can be calculated separately. Then, these losses are weighted and summed to obtain the final target loss. The distribution of weights can be adjusted according to the importance of different scales.

[0072] After calculating the target loss, it is weighted and summed with other losses of the student network model (such as classification loss, regression loss, etc.) to obtain the total training loss. The parameters of the student network model are updated through the back-propagation algorithm to minimize the total training loss.

[0073] During the training process, the temperature parameter can be adjusted to control the smoothness of the soft target output by the teacher network model, thereby affecting the distillation effect. In addition, optimization strategies such as learning rate adjustment and gradient clipping can be used to accelerate the training process and improve the performance of the student network model.

[0074] S105: Processing the electromagnetic detection multi-source data to be processed based on the target student network model.

[0075] In this embodiment, the electromagnetic detection multi-source data may include geological exploration scene images, marine detection scene images, urban underground space detection scene images, archaeological detection scene images, and environmental monitoring scene images.

[0076] Exemplarily, geological exploration scene images may include imaging of underground rock structures, such as stratification, folds, and faults of strata. Inferred images of mineral resource distribution, showing the direction and range of possible mineral veins. Marine exploration scene images may include images of seabed topography, including trenches, seamounts, continental shelves, etc. Distribution images of seabed mineral resources, such as oil, natural gas, polymetallic nodules, etc. Urban underground space exploration scene images may include distribution images of underground pipelines, such as the location and direction of water supply, drainage, gas and other pipelines. Layout images of underground cables, including the paths of power, communication and other cables. Archaeological exploration scene images may include the general outline and distribution images of underground sites to help determine the location of ancient buildings, tombs, etc. Environmental monitoring scene images may include distribution images of electromagnetic pollution, showing areas where electromagnetic field strength exceeds the standard.

[0077] For example, in the detection of urban underground space, the distribution images of underground pipelines and cables can be processed. After the electromagnetic detection image data is input into the target student network model, the first feature representation of the location and direction of pipelines such as water supply, drainage, and gas, as well as the cable paths of electricity, communications, etc. can be obtained. And the data is classified, identified and predicted based on the first feature representation. This is of great significance for the planning, maintenance and updating of urban infrastructure. It can timely detect the aging, damage or potential safety hazards of pipelines and cables, and improve the safety and reliability of urban operations.

[0078] It can be concluded from the above that, through knowledge distillation, the student network model can learn the advanced knowledge and features of the teacher network model, which accelerates the training and optimization process of the model. At the same time, it also enables the student network model to achieve better performance with relatively fewer computing resources, thereby improving the efficiency of data processing. The introduction of the loss regularization term can prevent the student network model from overfitting, so that it can be better generalized to new data, and improve the robustness and adaptability of the model. The disclosed embodiment can effectively fuse electromagnetic detection multi-source data and make full use of information from different data sources, thereby improving the precision and accuracy of data processing.

[0079] Complex analytical models may face problems of limited computing resources, insufficient device storage and computing power in practical applications. Compared with directly using complex teacher network models, student network models can compress model size, reduce computing costs, run efficiently in resource-constrained environments, and facilitate deployment and use on various terminal devices.

[0080] Different types of sensors and data sources generate data in different formats, accuracies, frequencies, etc., which are difficult to directly integrate and analyze. The disclosed embodiment solves the problem of data heterogeneity through multi-modal and multi-source data fusion feature representation technology, and can convert data of different modalities into a unified, comparable and analyzable feature form.

[0081] The situation of underground space changes rapidly, and data needs to be acquired and analyzed in a timely manner to respond. The disclosed embodiment can quickly process a large amount of multi-source data, realize rapid and accurate analysis of the real-time situation of underground space, and timely discover anomalies and potential risks.

[0082] In some embodiments of the present application, the electromagnetic detection multi-source data processing method may further include:

[0083] If the first condition is met, the teacher network model is trained according to the first training set to obtain a target teacher network model, and the student network model is trained according to the first training set to obtain a target student network model.

[0084] If the second condition is met, the teacher network model is trained according to the first training set to obtain a target teacher network model, and the student network model is trained according to the first training set and the second training set to obtain a target student network model. The first training set and the second training set are different, and both the first training set and the second training set belong to the target training set.

[0085] The first condition includes at least one of the following:

[0086] The data amount of the target training set is smaller than the first data amount.

[0087] The data types of the target training set are less than the first number.

[0088] The second condition includes at least one of the following:

[0089] The correlation between the target teacher network model and the target student network model is greater than the first correlation, and the number of application scenarios of the target student network model is greater than the number of application scenarios of the target teacher network model.

[0090] The data volume of the target training set is greater than or equal to the first data volume, and the number of application scenarios of the target student network model is greater than the number of application scenarios of the target teacher network model.

[0091] The data type of the target training set is greater than or equal to the first quantity, and the number of application scenarios of the target student network model is greater than the number of application scenarios of the target teacher network model.

[0092] The comprehensive index of knowledge distillation between the target teacher network model and the target student network model is greater than the first value.

[0093] In this embodiment, the cosine similarity of the output results of the target teacher network model and the target student network model can be used as the correlation between the target teacher network model and the target student network model. Alternatively, the Jaccard coefficient of the output results of the target teacher network model and the target student network model can be used as the correlation between the target teacher network model and the target student network model. The calculation can be selected according to the actual situation.

[0094] In this embodiment, the data volume of the target training set is less than the first data volume, and / or the data types of the target training set are less than the first number, indicating that the training sample size is limited. In order to ensure the training effect of the student network model and the teacher network model, the target teacher network model and the target student network model can be trained simultaneously according to the target training set to improve the recognition accuracy.

[0095] Specifically, if the data amount of the target training set is less than the first data amount, and / or the data type of the target training set is less than the first quantity, the teacher network model and the student network model are trained separately according to the target training set to obtain the target teacher network model and the target student network model accordingly.

[0096] In this embodiment, the data volume of the target training set is greater than or equal to the first data volume, and / or the data type of the target training set is greater than or equal to the first quantity, indicating that the training sample scale is large and can meet the training requirements of the student network model and the teacher network model at the same time.

[0097] At this time, when the number of application scenarios of the target student network model is greater than the number of application scenarios of the target teacher network model, the teacher network model can be trained according to the first training set to obtain a target teacher network model that meets the requirements, and the student network model can be trained according to the first training set and the second training set to obtain a target student network model that meets the requirements.

[0098] Rationally, for the detection of small underground facilities, such as some small basements, underground storage rooms, etc., the spatial range is small, and the amount of relevant data may be relatively small. For underground spaces with specific functions, such as some single-function pipeline corridors (which only accommodate a small number of specific types of pipelines), the detection data is mainly concentrated on the location and status of the pipelines, and the amount of data is relatively limited. For the detection of underground spaces in local areas, such as the detection of local underground spaces under a building, the amount of data will be less than that of large-scale urban underground space surveys. In the above case, the target teacher network model and the target student network model can be trained simultaneously according to the target training set to improve the recognition accuracy.

[0099] For example, the teacher network model can be mainly used to handle some common underground space scenarios, such as the basic layout detection of urban underground pipelines, focusing on the location and direction of major pipelines such as water supply and drainage. The student network model can handle more types of scenarios. For example, in addition to the basic pipeline layout, it can also handle the detailed layout of underground cables, including the paths and connections of various cables such as electricity and communications. Detect and analyze the structure and parking space distribution of underground parking lots. Identify the location, size and internal structure of underground air-raid shelters. Analyze the spatial layout and channel distribution of underground shopping malls. Detect the specific direction, slope and geological conditions of underground tunnels. Monitor the storage conditions and cargo distribution of underground warehouses.

[0100] In these scenarios, the teacher network model is universal, while the details and types that the student network model needs to handle are richer and more refined. At this time, the teacher network model can be trained according to the first training set to obtain a target teacher network model that meets the requirements, and the student network model can be trained according to the first training set and the second training set to obtain a target student network model that meets the requirements.

[0101] In this embodiment, the comprehensive index of knowledge distillation between the target teacher network model and the target student network model can be calculated as follows:

[0102] score= (1-err)+ EKT+ MCR+ CE

[0103] Among them, score represents the comprehensive index of knowledge distillation. , represents the weight coefficient, It represents the prediction accuracy of the model, err represents the error rate, EKT represents the knowledge transfer efficiency, MCR represents the model compression ratio, and CE represents the computational efficiency. =1.

[0104] The training effect of the target student network model can be analyzed based on the comprehensive indicators of knowledge distillation.

[0105] This embodiment can flexibly train the teacher network model and the student network model according to different conditions, ensuring the adaptability and accuracy of the model. When the training sample size is limited, the teacher network model and the student network model are trained simultaneously to improve the recognition accuracy; when the sample size is large and the application scenarios are diverse, the student network model is trained with additional data to enhance its ability to handle complex scenarios. This embodiment evaluates the model performance through comprehensive indicators to ensure the comprehensiveness of the training effect. This embodiment realizes efficient processing and accurate analysis of electromagnetic detection data, helps to timely discover anomalies and potential risks, and provides strong support for underground space detection and management.

[0106] In one embodiment of the present disclosure, the electromagnetic detection multi-source data processing method further includes:

[0107] The fourth formula is obtained by simplifying the second formula.

[0108] The fourth formula is:

[0109]

[0110] The fifth formula is obtained based on the fourth formula.

[0111] The fifth formula is:

[0112]

[0113] The third formula is obtained based on the fifth formula and the fusion function.

[0114] In this embodiment, based on the second formula, ignoring the feature conversion function, exchanging the order of i and j, the fifth formula can be obtained. The bracketed part of the fifth formula can be approximated as the formula for calculating the distance by multi-layer feature fusion of the student network model (ie, the third formula).

[0115] The inner summation in the fourth formula is to calculate all the values ​​from j=1 to i for a fixed i. ) represents the sum of the distances between the features of the i-th layer of the student network model and the features of the teacher network model from the 1st layer to the i-th layer. The outer layer summation performs the above operation on all i and accumulates them.

[0116] After exchanging the order, the inner summation is to calculate all the sums from i=j to n for a fixed j. ). This can be roughly understood as the operation of calculating the distance between the features of the j-th layer to the n-th layer of the student network model and the features of the j-th layer of the teacher network model. Because as i increases, the features of the student network model gradually integrate more layers of information. Through such a summation operation, it can be regarded as calculating the distance between the result of the fusion of the multi-layer features of the student network model and the features of the corresponding layers of the teacher network model. The conversion of this step makes the formula more focused on reflecting the comparison between the overall effect of the fusion of the multi-layer features of the student network model and the features of the teacher network model, which provides convenience for subsequent optimization and analysis.

[0117] For example, in multi-layer knowledge distillation, each layer of the student network model needs to correspond and distill with multiple layers of the target teacher network model. This correspondence is not simply linear, that is, the i-th layer of the student network may be closer or more related to the j-th layer of the teacher network (j≠i) in terms of feature expression. Swapping the order of i and j can adjust this correspondence to better match the feature hierarchy between the student network and the teacher network.

[0118] Different level features have different roles and importance in the model. By swapping the order of i and j, different distillation strategies can be tried to find a method that can more effectively transfer the knowledge of the teacher network to the student network.

[0119] In some cases, directly distilling each layer of the student network model will cause the features of different layers to conflict or interfere with each other. By exchanging the order of i and j, the level and order of distillation can be adjusted to reduce such conflicts and interferences, making the distillation process more stable and optimized.

[0120] This embodiment can enable the student network to learn the key knowledge of the teacher network faster by simplifying the formula, integrating features, and optimizing the level and order of knowledge distillation, thereby improving the efficiency and effect of distillation. Exchanging the order of i and j may change the learning path and feature representation of the student network during training, which helps to improve the performance of the student network, such as improving accuracy and reducing loss. By adjusting the distillation strategy, the student network can learn more generalized and robust feature representations during training, thereby enhancing its generalization ability in practical applications.

[0121] In one embodiment of the present disclosure, a third formula is obtained based on the fifth formula and the fusion function, including:

[0122] The third formula is obtained based on the fifth formula, the fusion function and the sixth formula.

[0123] The sixth formula is:

[0124]

[0125] in, represents the fusion function, represents the second feature representation of the nth intermediate layer of the student network model, Represents the second feature representation of the jth intermediate layer of the student network model.

[0126] In this embodiment, the fusion The process can be seen as and ) fused, so U can be regarded as a recursive function, repeating the fusion operation, See arrive The third formula can be obtained by combining the sixth formula and the above recursive operation.

[0127] For example, in electromagnetic detection of geological exploration, the structure of underground rock formations is analyzed. First, different intermediate layers of the student network model extract different levels of features from the input electromagnetic detection image data. For example, the shallow intermediate layer extracts the basic texture and contour of the rock formation, and the deep intermediate layer extracts more complex features such as the stratification and folds of the rock formation. The sixth formula is used to calculate the differences or correlations between the feature representations of different intermediate layers. The fusion function integrates these differences and correlations to obtain a feature representation that more comprehensively reflects the structure of the rock formation.

[0128] This embodiment can optimize the feature fusion step and improve efficiency. Based on the third formula, the structure of the underground rock formation can be more accurately determined, the location and degree of the stratification and folds of the formation can be determined, and the possible distribution of mineral veins can be inferred.

[0129] In one embodiment of the present disclosure, the electromagnetic detection multi-source data processing method further includes:

[0130] Based on the fusion function, multiple second feature representations are fused to obtain a fused feature.

[0131] A second target loss value is calculated based on the fused feature and the first feature representation.

[0132] In this embodiment, calculating the second target loss value based on the fusion feature and the first feature representation includes:

[0133] A second target loss value is calculated based on the fused features, the first feature representation, and the third formula.

[0134] The third formula is

[0135]

[0136] in, represents the second target loss value, represents the second feature representation of the nth intermediate layer of the teacher network model, represents the fusion function, represents the fusion features from the j+1th intermediate layer to the nth intermediate layer of the student network model, Represents the first feature representation of the jth intermediate layer of the teacher network model.

[0137] In this embodiment, the feature representations of the teacher network model and the student network model at different intermediate layers can be compared to measure the similarity and difference between the features learned by the student network model and the teacher network model, thereby evaluating the learning effect of the student network model and optimizing the parameters of the student network model through feedback of the loss value.

[0138] This embodiment can accurately evaluate the learning effect of the student network model by comparing the feature representations of the teacher network model and the student network model, providing strong support for model optimization.

[0139] Corresponding to the electromagnetic detection multi-source data processing method of the above embodiment, Figure 2 This is a structural block diagram of an electromagnetic detection multi-source data processing device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 2 , the electromagnetic detection multi-source data processing device 20 comprises:

[0140] The first feature extraction module 21 is used to input the electromagnetic detection image data into the target teacher network model to obtain multiple first feature representations.

[0141] The second feature extraction module 22 is used to input the electromagnetic detection image data and the multiple first feature representations into the student network model to obtain multiple second feature representations.

[0142] The loss module 23 is used to determine the target loss based on the multiple first feature representations, the multiple second feature representations and the feature conversion function. The target loss includes a first target loss value and a second target loss value, the first target loss value is the knowledge distillation loss, and the second target loss value is the loss regularization term.

[0143] The model adjustment module 24 is used to adjust the student network model based on the first target loss value and the second target loss value to obtain a target student network model.

[0144] The data processing module 25 is used to process the electromagnetic detection multi-source data to be processed based on the target student network model.

[0145] In one embodiment of the present disclosure, the loss module 23 is specifically used to calculate multiple intermediate layer loss values ​​based on multiple first feature representations, multiple second feature representations and feature conversion functions. The intermediate layer is a feature extraction layer.

[0146] A first target loss value is calculated based on the plurality of intermediate layer loss values ​​and a first formula.

[0147] The first formula is:

[0148]

[0149] in, represents the first target loss value, ) represents the loss value of the i-th intermediate layer, D represents the distance function, represents the second feature representation of the i-th intermediate layer of the student network model, represents the first feature representation of the i-th intermediate layer of the teacher network model, represents the feature conversion function of the i-th intermediate layer of the student network model, represents the feature conversion function of the i-th intermediate layer of the teacher network model, and I represents the index set of all intermediate layers.

[0150] In one embodiment of the present disclosure, the loss module 23 is further configured to calculate a second target loss value based on a plurality of first feature representations, a plurality of second feature representations, a feature conversion function and a second formula.

[0151] The second formula is:

[0152]

[0153] in, represents the second target loss value, D represents the distance function, represents the second feature representation of the i-th intermediate layer of the student network model, represents the first feature representation of the jth intermediate layer of the teacher network model, represents the feature conversion function of the student network model, Represents the feature transformation function of the teacher network model.

[0154] In one embodiment of the present disclosure, the electromagnetic detection multi-source data processing device 20 further includes:

[0155] The first calculation module is used to simplify the second formula to obtain a fourth formula.

[0156] The fourth formula is:

[0157]

[0158] The fifth formula is obtained based on the fourth formula.

[0159] The fifth formula is:

[0160]

[0161] The third formula is obtained based on the fifth formula and the fusion function.

[0162] In one embodiment of the present disclosure, the first calculation module is specifically used to obtain the third formula based on the fifth formula, the fusion function and the sixth formula.

[0163] The sixth formula is:

[0164]

[0165] in, represents the fusion function, represents the second feature representation of the nth intermediate layer of the student network model, Represents the second feature representation of the jth intermediate layer of the student network model.

[0166] In one embodiment of the present disclosure, the electromagnetic detection multi-source data processing device 20 further includes:

[0167] The fusion loss module is used to fuse multiple second feature representations based on a fusion function to obtain a fusion feature.

[0168] A second target loss value is calculated based on the fused feature and the first feature representation.

[0169] In one embodiment of the present disclosure, the fusion loss module is specifically used to calculate the second target loss value based on the fusion feature, the first feature representation and the third formula.

[0170] The third formula is

[0171]

[0172] in, represents the second target loss value, represents the second feature representation of the nth intermediate layer of the teacher network model, represents the fusion function, represents the fusion features from the j+1th intermediate layer to the nth intermediate layer of the student network model, Represents the first feature representation of the jth intermediate layer of the teacher network model.

[0173] See also Figure 3 , Figure 3 A schematic block diagram of an electronic device provided by an embodiment of the present disclosure. Figure 3The electronic device 300 in the embodiment shown may include: one or more processors 301, one or more input devices 302, one or more output devices 303 and one or more memories 304. The processors 301, input devices 302, output devices 303 and memories 304 communicate with each other via a communication bus 305. The memory 304 is used to store computer programs, which include program instructions. The processor 301 is used to execute the program instructions stored in the memory 304. The processor 301 is configured to call the program instructions to execute the functions of each module / unit in the above-mentioned device embodiments, such as Figure 2 The functions of modules 21 to 25 are shown.

[0174] It should be understood that in the embodiment of the present disclosure, the processor 301 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0175] The input device 302 may include a touch panel, a fingerprint collection sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, etc., and the output device 303 may include a display (LCD, etc.), a speaker, etc.

[0176] The memory 304 may include a read-only memory and a random access memory, and provide instructions and data to the processor 301. A portion of the memory 304 may also include a non-volatile random access memory. For example, the memory 304 may also store information about the device type.

[0177] In a specific implementation, the processor 301, input device 302, and output device 303 described in the embodiments of the present disclosure can execute the implementation methods described in the first and second embodiments of the electromagnetic detection multi-source data processing method provided in the embodiments of the present disclosure, and can also execute the implementation methods of the electronic device 300 described in the embodiments of the present disclosure, which will not be repeated here.

[0178] In another embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by the processor, all or part of the processes in the above-mentioned embodiment method are implemented, and the computer program can also be completed by instructing the relevant hardware through the computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0179] The computer-readable storage medium may be an internal storage unit of the electronic device of any of the aforementioned embodiments, such as a hard disk or memory of the electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Furthermore, the computer-readable storage medium may also include both an internal storage unit of the electronic device and an external storage device. The computer-readable storage medium is used to store computer programs and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.

[0180] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.

[0181] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the electronic devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0182] In the several embodiments provided in the present application, it should be understood that the disclosed electronic devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces or units, or it can be an electrical, mechanical or other form of connection.

[0183] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present disclosure.

[0184] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0185] The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present disclosure, and these modifications or replacements should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for processing electromagnetic detection multi-source data, characterized in that: include: Inputting electromagnetic detection image data into a target teacher network model to obtain a plurality of first feature representations; Inputting the electromagnetic detection image data and the plurality of first feature representations into the student network model to obtain a plurality of second feature representations; Determine a target loss based on the multiple first feature representations, the multiple second feature representations and the feature conversion function; the target loss includes a first target loss value and a second target loss value, the first target loss value is a knowledge distillation loss, and the second target loss value is a loss regularization term; The determining the target loss based on the plurality of first feature representations, the plurality of second feature representations and the feature conversion function comprises: Calculate multiple intermediate layer loss values ​​based on the multiple first feature representations, the multiple second feature representations and the feature conversion function; the intermediate layer is a feature extraction layer; Calculating a first target loss value based on the plurality of intermediate layer loss values ​​and a first formula; The first formula is: in, represents the first target loss value, ) represents the loss value of the i-th intermediate layer, D represents the distance function, represents the second feature representation of the i-th intermediate layer of the student network model, represents the first feature representation of the i-th intermediate layer of the teacher network model, represents the feature conversion function of the i-th intermediate layer of the student network model, represents the feature conversion function of the i-th intermediate layer of the teacher network model, and I represents the index set of all intermediate layers; The determining the target loss based on the plurality of first feature representations, the plurality of second feature representations and the feature conversion function comprises: Calculate a second target loss value based on the plurality of first feature representations, the plurality of second feature representations, the feature conversion function, and the second formula; The second formula is: in, represents the second target loss value, D represents the distance function, represents the second feature representation of the i-th intermediate layer of the student network model, represents the first feature representation of the jth intermediate layer of the teacher network model, represents the feature conversion function of the student network model, represents the feature conversion function of the teacher network model; Adjusting the student network model based on the first target loss value and the second target loss value to obtain a target student network model; The electromagnetic detection multi-source data to be processed is processed based on the target student network model.

2. The electromagnetic detection multi-source data processing method according to claim 1, characterized in that: Also includes; Simplifying the second formula to obtain a fourth formula; The fourth formula is: A fifth formula is obtained based on the fourth formula; The fifth formula is: The third formula is obtained based on the fifth formula and the fusion function.

3. The electromagnetic detection multi-source data processing method according to claim 2, characterized in that: The step of obtaining the third formula based on the fifth formula and the fusion function includes: Obtain the third formula based on the fifth formula, the fusion function and the sixth formula; The sixth formula is: in, represents the fusion function, represents the second feature representation of the nth intermediate layer of the student network model, Represents the second feature representation of the jth intermediate layer of the student network model.

4. The electromagnetic detection multi-source data processing method according to claim 3, characterized in that: Also includes: Based on the fusion function, multiple second feature representations are fused to obtain a fused feature; A second target loss value is calculated based on the fused feature and the first feature representation.

5. The electromagnetic detection multi-source data processing method according to claim 4, characterized in that: The calculating the second target loss value based on the fused feature and the first feature representation includes: Calculate a second target loss value based on the fused feature, the first feature representation and the third formula; The third formula is in, represents the second target loss value, represents the second feature representation of the nth intermediate layer of the teacher network model, represents the fusion function, represents the fusion features from the j+1th intermediate layer to the nth intermediate layer of the student network model, Represents the first feature representation of the jth intermediate layer of the teacher network model.

6. An electromagnetic detection multi-source data processing device, characterized in that: include: A first feature extraction module is used to input the electromagnetic detection image data into the target teacher network model to obtain a plurality of first feature representations; A second feature extraction module is used to input the electromagnetic detection image data and the plurality of first feature representations into the student network model to obtain a plurality of second feature representations; A loss module, configured to determine a target loss based on the plurality of first feature representations, the plurality of second feature representations, and a feature conversion function; the target loss includes a first target loss value and a second target loss value, the first target loss value is a knowledge distillation loss, and the second target loss value is a loss regularization term; The loss module is specifically used to calculate multiple intermediate layer loss values ​​based on the multiple first feature representations, the multiple second feature representations and the feature conversion function; the intermediate layer is a feature extraction layer; Calculating a first target loss value based on the plurality of intermediate layer loss values ​​and a first formula; The first formula is: in, represents the first target loss value, ) represents the loss value of the i-th intermediate layer, D represents the distance function, represents the second feature representation of the i-th intermediate layer of the student network model, represents the first feature representation of the i-th intermediate layer of the teacher network model, represents the feature conversion function of the i-th intermediate layer of the student network model, represents the feature conversion function of the i-th intermediate layer of the teacher network model, and I represents the index set of all intermediate layers; The loss module is further specifically used to calculate a second target loss value based on the multiple first feature representations, the multiple second feature representations, the feature conversion function and the second formula; The second formula is: in, represents the second target loss value, D represents the distance function, represents the second feature representation of the i-th intermediate layer of the student network model, represents the first feature representation of the jth intermediate layer of the teacher network model, represents the feature conversion function of the student network model, represents the feature conversion function of the teacher network model; A model adjustment module, used to adjust the student network model based on the first target loss value and the second target loss value to obtain a target student network model; The data processing module is used to process the electromagnetic detection multi-source data to be processed based on the target student network model.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Student model training method and device, equipment and storage medium

    CN115147687A

  • SAR (Synthetic Aperture Radar) image nearshore ship target detection method based on semi-soft label

    CN116563697A

  • Knowledge distillation-based small target detection method and system, and storage medium

    CN116778300A

  • Method and apparatus for training image recognition model, and method and apparatus for recognizing image

    US20220129731A1

  • Regularizing targets in model distillation utilizing past state knowledge to improve teacher-student machine learning models

    US20240062057A1