Method for training a soft magnetic material iron loss prediction model and electronic device

By combining a multi-scale causal convolutional model and a causal temporal pooling layer, and dynamically adjusting the feature weights, the problem of insufficient accuracy of existing soft magnetic material iron loss prediction models at high frequencies is solved, and high-precision iron loss prediction is achieved.

CN123138809APending Publication Date: 2026-11-20ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing iron loss prediction models for soft magnetic materials lack accuracy at high frequencies, cannot accurately reflect the interaction between harmonics, and lack physical interpretation and engineering applicability.

Method used

A multi-scale causal convolution model is adopted, which extracts hysteresis loss, eddy current loss and abnormal loss features through three parallel causal convolution branches, and dynamically adjusts the feature weights according to the frequency. It is combined with a causal temporal pooling layer and an output layer to predict iron loss.

Benefits of technology

It improves the accuracy and adaptability of iron loss prediction for soft magnetic materials, can accurately predict iron loss in any frequency range, is applicable to different materials and waveforms, and reduces computational complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138809A_ABST
    Figure CN123138809A_ABST
Patent Text Reader

Abstract

The application discloses a training method of a soft magnetic material iron loss prediction model and electronic equipment, obtains a plurality of magnetic flux density waveform samples of a soft magnetic material at different frequencies and magnetic flux density amplitudes; splices each sample with a corresponding frequency to obtain a magnetic flux density feature vector sample; inputs the magnetic flux density feature vector sample into a to-be-trained iron loss prediction model, and respectively outputs hysteresis, eddy current and abnormal loss features through three parallel causal convolution branches in a multi-scale causal convolution module; a weight adjustment module determines the branch weights according to the frequencies; a fusion module performs weighted fusion on the features to obtain a loss feature fusion vector; an output layer outputs prediction values of total iron loss, hysteresis loss, eddy current loss and abnormal loss; and model parameters are adjusted by using a total loss function in combination with the prediction values of the samples to obtain a trained iron loss prediction model. The application can improve the accuracy of iron loss prediction under a wide frequency band.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of iron loss prediction technology, and in particular to a training method and electronic device for an iron loss prediction model of soft magnetic materials. Background Technology

[0002] With the rapid development of third-generation wide-bandgap semiconductor technology, power electronic conversion systems and motor drives are accelerating their evolution towards higher frequencies, higher power densities, and higher efficiency. To achieve high efficiency and high power density, accurate prediction of the losses of magnetic components is crucial. The core loss of magnetic components is the power loss generated by the magnetic material under the action of high-frequency alternating magnetic flux. Soft magnetic materials are essential foundational materials in power electronic conversion, motor drives, and electromagnetic energy transmission systems; their magnetic properties and loss characteristics directly determine the energy efficiency limit, power density, and operational reliability of electrical equipment. Therefore, accurate modeling of the core magnetic losses of soft magnetic materials is indispensable for optimizing the performance of magnetic components.

[0003] In related technologies, modeling techniques for core losses of soft magnetic materials are mainly divided into classical empirical formulas, physical models based on hysteresis loops, equivalent circuits, and data-driven models.

[0004] Modeling methods based on classical empirical formulas rely on constants fitted under specific operating conditions as core parameters. However, hysteresis, eddy current, and abnormal loss coefficients vary significantly with factors such as frequency and magnetic flux density. When the operating frequency exceeds a certain value, the skin effect causes the frequency exponent of eddy current loss to no longer be constant at 2, and the frequency exponent of abnormal loss also deviates from 1.5, resulting in a model prediction error of over 30%. For PWM power supply waveforms, even the improved iGSE model cannot accurately reflect the interaction between harmonics, and the prediction error can still reach over 40% at high carrier frequencies.

[0005] While physical modeling methods based on hysteresis loops address the fundamental nature of magnetic domain motion, they present a trade-off between computational complexity and engineering practicality. The Preisach model is computationally intensive and difficult to embed in finite element simulations; the Jiles-Atherton model exhibits significant accuracy degradation at high frequencies. Furthermore, the physical nature of anomalous losses remains controversial, and the mainstream Bertotteti statistical loss theory cannot explain the loss behavior of novel materials such as amorphous and nanocrystalline materials.

[0006] The modeling method based on equivalent circuits simplifies iron loss to a combination of resistance and inductance. This oversimplification sacrifices accuracy and versatility, fails to distinguish between the three loss components of hysteresis, eddy current, and abnormality, and the parameters change significantly with operating conditions, requiring frequent recalibration.

[0007] While data-driven modeling methods can achieve high accuracy under complex conditions, pure data-driven models lack physical interpretability and heavily rely on high-quality experimental data. However, broadband testing is costly and time-consuming, resulting in limited model generalization ability. Summary of the Invention

[0008] The purpose of this application is to provide a training method and electronic device for predicting iron loss of soft magnetic materials, which can achieve high-precision iron loss prediction of soft magnetic materials.

[0009] Firstly, this application provides a training method for an iron loss prediction model of soft magnetic materials, including: Multiple magnetic flux density waveform samples of soft magnetic materials at different frequencies and different magnetic flux density amplitudes are obtained, and each magnetic flux density waveform sample is obtained by sampling at equal intervals. For each magnetic flux density waveform sample, the magnetic flux density waveform sample is concatenated with the corresponding frequency to obtain the corresponding magnetic flux density feature vector sample. The magnetic flux density feature vector sample is input into the iron loss prediction model to be trained. The iron loss prediction model includes a multi-scale causal convolution model, a weight adjustment module, a fusion module and an output layer. The corresponding hysteresis loss features, eddy current loss features and abnormal loss features are output through three parallel causal convolution branches in the multi-scale causal convolution model. The convolution kernel sizes of the three causal convolution branches are different. Based on the frequency corresponding to the magnetic flux density waveform sample, the weight adjustment module determines the hysteresis loss characteristic weight, eddy current loss characteristic weight, and abnormal loss characteristic weight. Based on the hysteresis loss feature weight, eddy current loss feature weight, and abnormal loss feature weight, the fusion module performs weighted fusion of the hysteresis loss feature, eddy current loss feature, and abnormal loss feature to obtain a loss feature fusion vector. The loss feature fusion vector is input into the output layer, and the iron loss prediction value corresponding to the magnetic flux density waveform sample is output. The iron loss prediction value includes the total iron loss prediction value, the hysteresis loss prediction value, the eddy current loss prediction value, and the abnormal loss prediction value. By combining the predicted iron loss values ​​corresponding to each magnetic flux density waveform sample, the network parameters of the iron loss prediction model to be trained are iteratively adjusted using the total loss function to obtain the trained iron loss prediction model.

[0010] In one embodiment, based on the frequency corresponding to the magnetic flux density waveform sample, the weight adjustment module determines the hysteresis loss characteristic weight, eddy current loss characteristic weight, and abnormal loss characteristic weight, including: If the frequency is much less than or equal to the frequency boundary point, the hysteresis loss feature weight is greater than the eddy current loss feature weight, and the eddy current loss feature weight is greater than the abnormal loss feature weight. The frequency boundary point is obtained based on pre-training. If the frequency is much greater than the frequency boundary point, the weight of the eddy current loss characteristic is greater than the weight of the abnormal loss characteristic, and the weight of the abnormal loss characteristic is greater than the weight of the hysteresis loss characteristic.

[0011] In one embodiment, based on the frequency corresponding to the magnetic flux density waveform sample, the weight adjustment module further determines the hysteresis loss characteristic weight, eddy current loss characteristic weight, and abnormal loss characteristic weight by including: The characteristic weights of hysteresis loss are determined using the following formula. Eddy current loss characteristic weight and abnormal loss feature weights ; ; ; ; in, The frequency corresponding to the magnetic flux density waveform sample. As the frequency boundary point, This is the adjustment coefficient.

[0012] In one embodiment, based on the predicted iron loss values ​​corresponding to each magnetic flux density waveform sample, the network parameters of the iron loss prediction model to be trained are iteratively adjusted using the total loss function, including: For each magnetic flux density waveform sample, the data fitting loss function is determined based on the deviation between the actual value of total iron loss and the predicted value of total iron loss corresponding to that magnetic flux density waveform sample. For each magnetic flux density waveform sample, a non-negativity constraint loss function is determined based on the predicted values ​​of hysteresis loss, eddy current loss, and abnormal loss corresponding to that magnetic flux density waveform sample. For each magnetic flux density waveform sample, a monotonic constraint loss function is determined based on the monotonicity functions of the predicted hysteresis loss, the predicted eddy current loss, and the predicted abnormal loss corresponding to that magnetic flux density waveform sample. For each magnetic flux density waveform sample, the energy conservation loss function is determined by summing the predicted values ​​of hysteresis loss, eddy current loss, and abnormal loss corresponding to that magnetic flux density waveform sample, and combining the sum of the three with the corresponding total iron loss prediction value. The total loss function is determined based on the data fitting loss function, the non-negativity constraint loss function, the monotonicity constraint loss function, and the energy conservation loss function.

[0013] In one embodiment, based on the monotonicity functions of the predicted hysteresis loss, the predicted eddy current loss, and the predicted abnormal loss corresponding to the magnetic flux density waveform sample, a monotonic constraint loss function is determined, including: The monotonicity function of the predicted hysteresis loss is a function that the predicted hysteresis loss increases monotonically with the magnitude of the magnetic flux density. The monotonicity function of the predicted eddy current loss is a function that monotonically increases the predicted eddy current loss with the square of the frequency. The monotonicity function of the abnormal loss prediction value is a function that monotonically increases with the 1.5th power of the frequency.

[0014] In one embodiment, the iron loss prediction model further includes a causal temporal pooling layer. The loss feature fusion vector is input into the causal temporal pooling layer. The causal temporal pooling layer performs global average pooling and global max pooling on the loss feature fusion vector, and concatenates the results of global average pooling and global max pooling to output a loss feature fusion vector of fixed length. A fixed-length loss feature fusion vector is input into the output layer, and the output layer outputs the predicted iron loss value corresponding to the magnetic flux density waveform sample.

[0015] In one embodiment, the multi-scale causal convolution model includes a first causal convolution branch, a second causal convolution branch, and a third causal convolution branch. The kernel size of the first causal convolution branch is 1*16, the kernel size of the second causal convolution branch is 1*8, and the kernel size of the third causal convolution branch is 1*4.

[0016] In one embodiment, the training method for the iron loss prediction model of soft magnetic materials further includes: Define the hyperparameter set of the iron loss prediction model. The hyperparameter set includes the number of output channels of each causal convolution branch in the multi-scale causal convolution model, the frequency boundary point and adjustment coefficient in the weight adjustment module, the number of neurons in the output layer, the weight coefficients in the total loss function, and the learning rate. Among them, the weight coefficients in the total loss function are the weight coefficients corresponding to the data fitting loss function, the non-negativity constraint loss function, the monotonicity constraint loss function, and the energy conservation loss function, respectively. A verification set is constructed from multiple magnetic flux density feature vector samples obtained. N initial hyperparameter sets are generated using a uniform random sampling method. For each initial hyperparameter set, the iron loss prediction model is trained. This training includes: Input the validation set into the iron loss prediction model and output the corresponding total iron loss prediction values. Use the average relative error between the actual total iron loss value and the corresponding total iron loss prediction value for each magnetic flux density feature vector sample as the basic fitness of the initial hyperparameter set. The initial observation set is constructed by using the basic fitness values ​​corresponding to the obtained initial hyperparameter sets. The steps for training a Gaussian process regression surrogate model include: taking N sets of initial hyperparameters as input, taking the initial observation set as output, and training the Gaussian process regression surrogate model with the initial power-law kernel parameters to obtain the trained Gaussian process regression surrogate model. The steps of executing the particle swarm optimization algorithm include: generating M sets of initial hyperparameters using uniform random sampling, using each set of initial hyperparameters as the position of each particle in the particle swarm, with each particle's position corresponding to a set of initial hyperparameters, optimizing the position of each particle using the particle swarm optimization algorithm, and recording the individual historical best position and the global best position of each particle. Input the positions of M particles into the trained Gaussian process regression surrogate model, and calculate the posterior mean and posterior variance of the prediction error for the M particles. Based on the posterior mean and posterior variance of the prediction errors of M particles, the expected improvement value corresponding to the M particles is determined by the expected improvement acquisition function, and the 3 particles with the largest expected improvement value are selected as the true evaluation points from the expected improvement values ​​corresponding to the M particles. The initial hyperparameter set corresponding to the real evaluation points is used as the model parameters of the iron loss prediction model. The model is trained on the validation set, and the total iron loss prediction value corresponding to the validation set is output. The average relative error between the actual total iron loss value and the total iron loss prediction value corresponding to each value in the validation set is used as a new sample and added to the initial observation set to obtain a new observation set. Perform the steps of training the Gaussian process regression surrogate model with the new observation set, and update the power-law kernel parameters of the Gaussian process regression surrogate model; The steps of the particle swarm optimization algorithm are executed with the new observation set, updating the individual historical best position and the global best position of each particle. Perform iterative training of the particle swarm optimization algorithm and the Gaussian process regression surrogate model until the number of iterations meets the preset number or the preset iteration condition, then stop iterative training and output the global optimal set of hyperparameters. The globally optimal set of hyperparameters is used as the hyperparameter set for the iron loss prediction model to be trained.

[0017] Secondly, this application also provides a method for predicting iron loss in soft magnetic materials, including: The current magnetic flux density waveform data of the soft magnetic material is obtained at the current frequency and current magnetic flux density amplitude. The current magnetic flux density waveform data is obtained by sampling at equal intervals. The current magnetic flux density waveform data is concatenated with the corresponding current frequency to obtain the corresponding current magnetic flux density feature vector; The current magnetic flux density feature vector is input into the pre-trained iron loss prediction model. The pre-trained iron loss prediction model is trained based on the training method of the iron loss prediction model for soft magnetic materials in the first aspect. The iron loss prediction model includes a multi-scale causal convolution model, a weight adjustment module, a fusion module, and an output layer. The corresponding hysteresis loss features, eddy current loss features, and abnormal loss features are output through three parallel causal convolution branches in the multi-scale causal convolution model. The convolution kernel sizes of the three causal convolution branches are different. Based on the current frequency, the weighting adjustment module determines the hysteresis loss characteristic weight, eddy current loss characteristic weight, and abnormal loss characteristic weight; Based on the hysteresis loss feature weight, eddy current loss feature weight, and abnormal loss feature weight, the fusion module performs weighted fusion of the hysteresis loss feature, eddy current loss feature, and abnormal loss feature to obtain a loss feature fusion vector. The loss characteristics are fused into a vector input-output layer to determine the iron loss prediction value corresponding to the current magnetic flux density waveform data. The iron loss prediction value includes the total iron loss prediction value, the hysteresis loss prediction value, the eddy current loss prediction value, and the abnormal loss prediction value.

[0018] Thirdly, this application also provides an electronic device, characterized in that it includes: a memory for storing program instructions; and a processor coupled to the memory for executing the program instructions to implement a training method for a soft magnetic material iron loss prediction model as described in the first aspect, or to implement a soft magnetic material iron loss prediction method as described above.

[0019] This application extracts features from the input magnetic flux density feature vector sample using three parallel causal convolution branches with different kernel sizes, outputting hysteresis loss features, eddy current loss features, and anomalous loss features respectively. Each causal convolution branch extracts features within its own scale range, capturing feature information across different time scales, consistent with the physical causality of iron loss in soft magnetic materials, and improving the accuracy of iron loss prediction values ​​for soft magnetic materials. Dynamically adjusting the weights of each loss feature according to frequency enhances the adaptability of the iron loss prediction model to different frequency conditions, improving the model's prediction accuracy. The physical laws of basic iron loss constrain the total loss function, enabling the iron loss prediction model to be applicable to waveform data of any material, any waveform, and any frequency range. Attached Figure Description

[0020] Figure 1 A flowchart illustrating the training method for the iron loss prediction model of soft magnetic materials provided in the embodiments of this application; Figure 2 A flowchart illustrating the iterative adjustment of network parameters of the iron loss prediction model to be trained using the total loss function, as provided in an embodiment of this application. Figure 3This is a flowchart of a method for predicting iron loss in soft magnetic materials in one embodiment; Figure 4 A schematic diagram illustrating the core loss prediction results of a pure amorphous core transformer provided in this application embodiment; Figure 5 A schematic diagram illustrating the core loss prediction results of a pure silicon steel core transformer provided in an embodiment of this application; Figure 6 A schematic diagram illustrating the core loss prediction results of a 1:1 radially overlapping core transformer provided in this application embodiment; Figure 7 A schematic diagram of the core loss prediction results for a 1:1 radially overlapping core provided in an embodiment of this application; Figure 8 A schematic diagram of the core loss prediction results for a 1:1 axially overlapping core provided in the embodiments of this application; Figure 9 A schematic diagram illustrating the core loss prediction results of a biaxially overlapping core provided in this application embodiment; Figure 10 A schematic diagram of the core loss prediction results for a 17:19 radially overlapping core provided in an embodiment of this application; Figure 11 A schematic diagram showing the core loss prediction results of the 18:19 radially overlapping core provided in the embodiments of this application. Detailed Implementation

[0021] The present application will be described in detail below with reference to the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present application. Any structural, methodological, or functional modifications made by those skilled in the art based on these embodiments are included within the protection scope of the present application.

[0022] It should be understood that the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. A and B can be singular or plural. Additionally, the character " / " in this article generally indicates an "or" relationship between the preceding and following related objects, but it can also represent an "and / or" relationship. Please refer to the context for a more accurate understanding.

[0023] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.

[0024] like Figure 1 As shown in the embodiment of this application, a training method for an iron loss prediction model of soft magnetic materials is provided. The method includes the following steps: Step 101: Obtain multiple magnetic flux density waveform samples of the soft magnetic material at different frequencies and different magnetic flux density amplitudes. Each magnetic flux density waveform sample is obtained by sampling at equal intervals.

[0025] Specifically, soft magnetic materials are important basic materials in power electronic conversion, motor drive and electromagnetic energy transmission systems. The magnetic properties and loss characteristics of soft magnetic materials can determine the energy efficiency limit, power density and operational reliability of electrical equipment.

[0026] For example, a power analyzer combined with an arbitrary waveform generator can be used to apply sinusoidal or PWM waves of different frequencies (e.g., 50Hz to 20kHz) and different magnetic flux density amplitudes (e.g., 0.05T to 1.0T) to a soft magnetic material (e.g., an amorphous or nanocrystalline magnetic ring sample). Magnetic flux density waveform samples can be acquired at various combinations of frequencies and magnetic flux density amplitudes. For instance, a first magnetic flux density waveform sample can be acquired at a frequency of 100Hz and a magnetic flux density amplitude of 0.5T, a second at 100Hz and a magnetic flux density amplitude of 1.0T, a third at 500Hz and a magnetic flux density amplitude of 1.5T, and so on, to obtain multiple magnetic flux density waveform samples. Each magnetic flux density waveform sample is obtained through equally spaced sampling, and each sample contains 1024 equally spaced sampling points. The value corresponding to each sampling point is the instantaneous magnetic flux density value at that sampling time, where the maximum value of the instantaneous magnetic flux density is the magnetic flux density amplitude. Even at the same frequency, different magnetic flux density amplitudes result in completely different iron losses due to the nonlinear increase in iron loss with magnetic flux density amplitude. This embodiment acquires multiple magnetic flux density waveform samples at different frequencies and amplitudes, and trains these samples using an iron loss prediction model. This allows the model to learn the characteristics of the influence of samples on iron loss under wide bandwidth and different magnetic flux density amplitude conditions, thereby improving the accuracy of iron loss prediction.

[0027] Step 102: For each magnetic flux density waveform sample, concatenate the magnetic flux density waveform sample with the corresponding frequency to obtain the corresponding magnetic flux density feature vector sample; For example, a magnetic flux density waveform sample includes 1024 equally spaced sampling points, each corresponding to the instantaneous value of the magnetic flux density at that sampling point. This constitutes a magnetic flux density waveform sequence of length 1024, serving as the feature information for the first channel of the magnetic flux density feature vector sample, i.e., as the information of the magnetic flux density feature vector sample in the time dimension. The frequency at which the magnetic flux density waveform sample was acquired is copied along the time dimension to 1024 identical values, serving as the feature information for the second channel of the magnetic flux density feature vector sample. The magnetic flux density waveform sequence and the corresponding frequencies are concatenated along the feature dimension to obtain the magnetic flux density feature vector sample. For example, the shape of the magnetic flux density feature vector sample can be (1024, 2).

[0028] Under the same magnetic flux density waveform sequence, the iron loss corresponding to different frequencies varies greatly. Therefore, in this embodiment, the frequency is used as the feature information of the second channel of the magnetic flux density feature vector sample, which can further improve the prediction accuracy of the iron loss prediction model.

[0029] Step 103: Input the magnetic flux density feature vector sample into the iron loss prediction model to be trained. The iron loss prediction model includes a multi-scale causal convolution model, a weight adjustment module, a fusion module, and an output layer. The corresponding hysteresis loss features, eddy current loss features, and abnormal loss features are output through three parallel causal convolution branches in the multi-scale causal convolution model. The kernel sizes of the three causal convolution branches are different.

[0030] For example, magnetic flux density feature vector samples are input into the iron loss prediction model to be trained. The iron loss prediction model includes a multi-scale causal convolution module, a weight adjustment module, a fusion module, and an output layer. The multi-scale causal convolution module includes three parallel causal convolution branches, each with a different kernel size and a stride of 1. Causal zero-padding is used to ensure that the output length is consistent with the input. Magnetic flux density feature vector samples are input into the three parallel causal convolution branches respectively. Each branch extracts features and outputs the corresponding hysteresis loss features, eddy current loss features, and anomalous loss features.

[0031] For example, the multi-scale causal convolution model includes a first causal convolution branch, a second causal convolution branch, and a third causal convolution branch. The kernel size of the first causal convolution branch is 1*16. Due to the large kernel size, the first causal convolution branch can cover and slide through 16 consecutive sampling points, with a large time span and a wide receptive field, enabling it to extract global shape features. Therefore, the first causal convolution branch can capture the overall morphological features over a long period from the magnetic flux density waveform, extracting the complete curved shape of the hysteresis loop, the overall contours of the rising and falling edges, and the enclosed area features. Since the physical essence of hysteresis loss is the irreversibility of domain flipping throughout the entire magnetization cycle, the loss magnitude is equal to the area enclosed by the entire hysteresis loop, which is a large-scale (slowly changing) macroscopic result. Therefore, the first causal convolution branch can extract the hysteresis loss features of the magnetic flux density feature vector samples.

[0032] The second causal convolution branch has a 1*8 kernel size and covers 8 sampling points with a moderate time span. This branch can focus on local slope changes in the waveform, capturing the instantaneous rate of change of magnetic flux density (dB / dt) within a local time period. Since eddy current loss is generated by eddy currents induced by alternating magnetic flux, and its magnitude is proportional to the square of the instantaneous rate of change of magnetic flux density, its time-scale feature is a mesoscale (instantaneous change) feature. Therefore, the second causal convolution can extract the eddy current loss characteristics of the magnetic flux density feature vector samples.

[0033] The third causal convolution branch has a 1*4 kernel size and covers four sampling points. Its short time span and confined receptive field limit it to a very short local area. This branch can sensitively capture minute jitters, local abrupt changes, and high-frequency glitches in the magnetic flux density waveform. Since the physical nature of abnormal loss is a microscopic dynamic process involving local pinning, unpinning, and Barkhausen jumps of domain walls—a microscale (fast fluctuation) microscopic result—the third causal convolution branch can extract abnormal loss features from the magnetic flux density feature vector samples.

[0034] In this embodiment, feature extraction is performed on the magnetic flux density feature vector sample by three parallel causal convolution branches with different kernel sizes. Each causal convolution branch extracts features within its own scale range, which can capture feature information within different time scale ranges. That is, feature information is extracted from macroscopic, local and microscopic perspectives, which is consistent with the physical decomposition mechanism of iron loss of soft magnetic materials and improves the accuracy of the model's iron loss prediction value.

[0035] Step 104: Based on the frequency corresponding to the magnetic flux density waveform sample, the weight adjustment module determines the hysteresis loss characteristic weight, eddy current loss characteristic weight, and abnormal loss characteristic weight.

[0036] For example, the weight adjustment module can adopt an adaptive attention gate mechanism, using the frequency corresponding to the magnetic flux density waveform sample as the control variable, and calculate the hysteresis loss feature weight, eddy current loss feature weight, and abnormal loss feature weight through the Sigmoid gate function.

[0037] For example, the weight adjustment module can also employ a learnable attention mechanism, a multi-feature fusion attention mechanism, or a dynamic weight attention mechanism. Among these, the learnable attention mechanism requires no preset parameters and automatically adapts to unknown materials; the multi-feature fusion attention mechanism can combine frequency and magnetic flux density amplitude, making it more adaptable to different operating conditions; and the dynamic weight attention mechanism is suitable for non-sinusoidal PWM waveforms.

[0038] In this embodiment, the weight adjustment module can automatically adjust the hysteresis loss characteristic weight, eddy current loss characteristic weight, and abnormal loss characteristic weight according to different frequencies, thereby enhancing the adaptability of the iron loss prediction model to different frequency operating conditions and further improving the accuracy of model prediction.

[0039] Step 105: Based on the hysteresis loss feature weight, eddy current loss feature weight, and abnormal loss feature weight, the fusion module performs weighted fusion of the hysteresis loss feature, eddy current loss feature, and abnormal loss feature to obtain the loss feature fusion vector.

[0040] For example, the hysteresis loss feature is multiplied by the hysteresis loss feature weight, the eddy current loss feature is multiplied by the eddy current loss feature weight, and the abnormal loss feature is multiplied by the abnormal loss feature weight to obtain three weighted feature tensors. For example, the shape of the three tensors is (1024, 32).

[0041] The three weighted feature tensors are concatenated along the channel dimension to obtain a concatenated tensor of shape (1024, 96). A 1×1 convolutional layer then performs cross-channel feature interaction and fusion on this concatenated tensor, outputting a loss feature fusion vector with shape (1024, C). fuse ), where C fuse This is the number of output channels for a 1×1 convolutional layer. This number of output channels is a network hyperparameter and can be set according to actual needs.

[0042] Step 106: Input the loss feature fusion vector into the output layer and output the iron loss prediction value corresponding to the magnetic flux density waveform sample. The iron loss prediction value includes the total iron loss prediction value, the hysteresis loss prediction value, the eddy current loss prediction value, and the abnormal loss prediction value.

[0043] For example, the loss feature fusion vector is input into the output layer, and the output layer performs feature processing on the input loss feature fusion vector to output the predicted values ​​of total iron loss, hysteresis loss, eddy current loss, and abnormal loss.

[0044] Step 107: Combine the predicted iron loss values ​​corresponding to each magnetic flux density waveform sample, and use the total loss function to iteratively adjust the network parameters of the iron loss prediction model to be trained, so as to obtain the trained iron loss prediction model.

[0045] For example, the gradient of the total loss function with respect to each network parameter is calculated using the backpropagation algorithm based on the predicted iron loss values ​​corresponding to each magnetic flux density waveform sample. Then, an optimizer (e.g., Adam optimizer) is used to iteratively update the network parameters of the iron loss prediction model to be trained until the conditions for iterative convergence are met (e.g., the total loss function meets a preset condition or reaches the maximum number of iterations), thus obtaining the trained iron loss prediction model.

[0046] In this embodiment, three parallel causal convolutional branches with different kernel sizes are used to extract features from the input magnetic flux density feature vector sample, outputting hysteresis loss features, eddy current loss features, and abnormal loss features respectively. Each causal convolutional branch extracts features within its own scale range, abandoning the traditional "magnetic flux density-frequency" two-branch feature division method. This solves the problems of existing structures severing physical correlations and poor causality in time-series models, and can capture feature information within different time scale ranges, conforming to the physical causality of iron loss in soft magnetic materials, thus improving the accuracy of iron loss prediction values ​​for soft magnetic materials. The weights of each loss feature are dynamically adjusted according to the frequency, which can enhance the adaptability of the iron loss prediction model to different frequency conditions and improve the accuracy of model prediction. The physical laws of basic iron loss constrain the total loss function, making the iron loss prediction model applicable to waveform data of any material, any waveform, and any frequency range.

[0047] In one embodiment, based on the frequency corresponding to the magnetic flux density waveform sample, the weight adjustment module determines the hysteresis loss characteristic weight, eddy current loss characteristic weight, and abnormal loss characteristic weight, including: If the frequency is much less than or equal to the frequency boundary point, the hysteresis loss feature weight is greater than the eddy current loss feature weight, and the eddy current loss feature weight is greater than the abnormal loss feature weight. The frequency boundary point is obtained based on pre-training. If the frequency is much greater than the frequency boundary point, the weight of the eddy current loss characteristic is greater than the weight of the abnormal loss characteristic, and the weight of the abnormal loss characteristic is greater than the weight of the hysteresis loss characteristic.

[0048] In this embodiment, when the frequency is in the low-frequency range, hysteresis loss dominates, so the hysteresis loss characteristic weight approaches 1, while the eddy current loss characteristic weight and abnormal loss characteristic weight are relatively small. When the frequency is in the high-frequency range, the proportion of eddy current loss and abnormal loss increases significantly, so the eddy current loss characteristic weight and abnormal loss characteristic weight increase, while the hysteresis loss characteristic weight decreases. This embodiment can automatically adjust the hysteresis loss characteristic weight, eddy current loss characteristic weight, and abnormal loss characteristic weight according to different frequencies of different magnetic flux density waveform samples, enhancing the adaptability of the iron loss prediction model to different frequency conditions and improving the prediction accuracy of the iron loss prediction model.

[0049] Furthermore, the hysteresis loss characteristic weight Eddy current loss characteristic weight and abnormal loss feature weights It is calculated using the following formula: ; ; .

[0050] in, The frequency corresponding to the magnetic flux density waveform sample; This is the frequency boundary point, representing the transition frequency from hysteresis-dominated to eddy current-dominated, for example, a value of 5kHz. This is an adjustment coefficient used to control the steepness of the weight transition; its value ranges from 0.001 to 0.01. .

[0051] From the above formula, it can be seen that when the frequency Much smaller than the frequency boundary point At that time, the characteristic weight of hysteresis loss Approaching 1, the characteristic weight of eddy current loss Approaching 0, abnormal loss feature weight Approaching 0, hysteresis loss characteristic weight Much larger than the characteristic weight of eddy current loss and abnormal loss feature weights When the frequency f is much greater than the frequency boundary point At that time, the characteristic weight of hysteresis loss Approaching 0, eddy current loss characteristic weight Approaching 1, abnormal loss feature weight Approaching 0.2, the characteristic weight of eddy current loss Greater than the abnormal loss feature weight Both are greater than the characteristic weight of hysteresis loss. .

[0052] The hysteresis loss characteristic weight, eddy current loss characteristic weight, and abnormal loss characteristic weight are calculated based on the above formulas. Since the hysteresis loss characteristic weight varies with frequency, multiplying the hysteresis loss characteristic by its weight can amplify or weaken the hysteresis loss characteristic. Similarly, the eddy current loss characteristic weight varies with frequency, and multiplying the eddy current loss characteristic by its weight can amplify or weaken the eddy current loss characteristic. Likewise, the abnormal loss characteristic weight varies with frequency, and multiplying the abnormal loss characteristic by its weight can amplify or weaken the abnormal loss characteristic.

[0053] In one embodiment, the loss feature fusion vector is input into a causal temporal pooling layer. The causal temporal pooling layer performs global average pooling and global max pooling on the loss feature fusion vector, and concatenates the results of global average pooling and global max pooling to output a loss feature fusion vector of fixed length. A fixed-length loss feature fusion vector is input into the output layer, and the output layer outputs the predicted iron loss value corresponding to the magnetic flux density waveform sample.

[0054] For example, the shape of the loss feature fusion vector output by the fusion module is (1024, C).fuse ), where C fuse This represents the number of output channels of a 1×1 convolutional layer in the fusion module.

[0055] The causal temporal pooling layer performs two aggregation operations on the loss feature fusion vector in the time dimension: global average pooling and global max pooling. Global average pooling averages the 1024 temporal sampling points for each channel to extract the overall steady-state level information of each channel's features, resulting in a length C. fuse The average pooling vector; global max pooling takes the maximum value of 1024 temporal sampling points for each channel, extracts the peak transient intensity information of each channel's features, and obtains a vector of length C. fuse The max-pooling vector.

[0056] The average pooling vector and the max pooling vector are concatenated along the channel dimension to obtain a fixed length of 2×C. fuse The loss feature fusion vector. For example, when C fuse When the value is 32, the spliced ​​result is a loss feature fusion vector with a fixed length of 64.

[0057] The fixed-length loss feature fusion vector output by the causal temporal pooling layer is input to the output layer. The output layer is a two-layer fully connected network. The first layer of the output layer contains 128 neurons and uses the ReLU activation function to perform linear transformation and nonlinear mapping on the fixed-length loss feature fusion vector to obtain 128-dimensional intermediate features.

[0058] The second layer of the output layer contains 4 neurons and has no activation function. A linear transformation is performed on the intermediate feature to output a 4-dimensional vector. The first element of the 4-dimensional vector is the total iron loss prediction value, the second element is the hysteresis loss prediction value, the third element is the eddy current loss prediction value, and the fourth element is the abnormal loss prediction value.

[0059] In this embodiment, a causal temporal pooling layer is used to replace the traditional recurrent neural network structure. While fully preserving physical causality, the computational complexity of the model is reduced by more than 60%, solving the problems of slow inference speed and difficulty in engineering application of recurrent networks. The iron loss prediction model can output the predicted values ​​of total iron loss, hysteresis loss, eddy current loss, and abnormal loss in the output layer, improving the prediction accuracy of total iron loss. Furthermore, through multi-task learning and mutual constraint enhancement, no additional loss separation algorithm is required, solving the problem that existing methods can only predict total iron loss and lack physical interpretability.

[0060] In one embodiment, such as Figure 2 As shown, based on the predicted iron loss values ​​corresponding to each magnetic flux density waveform sample, the network parameters of the iron loss prediction model to be trained are iteratively adjusted using the total loss function, including the following steps: Step 201: For each magnetic flux density waveform sample, determine the data fitting loss function based on the deviation between the actual value of the total iron loss corresponding to the magnetic flux density waveform sample and the corresponding predicted value of the total iron loss; Step 202: For each magnetic flux density waveform sample, determine the non-negativity constraint loss function based on the predicted values ​​of hysteresis loss, eddy current loss, and abnormal loss corresponding to that magnetic flux density waveform sample. Step 203: For each magnetic flux density waveform sample, determine the monotonicity constraint loss function based on the monotonicity function of the predicted hysteresis loss, the monotonicity function of the predicted eddy current loss, and the monotonicity function of the predicted abnormal loss corresponding to the magnetic flux density waveform sample. Step 204: For each magnetic flux density waveform sample, based on the sum of the predicted values ​​of hysteresis loss, eddy current loss, and abnormal loss corresponding to that magnetic flux density waveform sample, the sum of the three values ​​and the corresponding total iron loss prediction value are used to determine the energy conservation loss function. Step 205: Determine the total loss function based on the data fitting loss function, non-negativity constraint loss function, monotonicity constraint loss function, and energy conservation loss function.

[0061] Based on Bertsekas's nonlinear dynamic system decomposition theory, a physical consistency loss function is constructed that does not rely on any traditional empirical formulas for iron loss, and the loss function is fitted with data. Non-negativity constraint loss function Monotonicity-constrained loss function and energy conservation constraint loss function The sum is determined, and the total loss function is... , is represented as: ; in, These represent the weighting coefficients of the nonnegativity constraint loss function. The weight coefficients represent the monotonicity constraint loss function. The weighting coefficients of the loss function representing the energy conservation constraint are... , , Maintain fixed values ​​during model training, for example: =1.0, =0.5, =2.0.

[0062] Data fitting loss function To ensure that the predicted total iron loss output of the iron loss prediction model is consistent with the actual total iron loss, a data fitting loss function is constructed using the mean square error between the predicted and actual total iron loss values. : ; in, This represents the predicted total iron loss value for the magnetic flux density waveform sample. This represents the actual value of total iron loss obtained through measurement.

[0063] Since iron loss values ​​cannot be negative, a non-negativity constraint loss function is used to constrain the non-negativity of the predicted hysteresis loss, eddy current loss, and abnormal loss values. Represented as: ; in , , These are the predicted values ​​of hysteresis loss, eddy current loss, and abnormal loss corresponding to the magnetic flux density waveform sample, respectively. A penalty is directly generated when any one of the loss prediction values ​​is negative, and the penalty is 0 when all loss prediction values ​​are non-negative.

[0064] The monotonicity-constrained loss function is used to ensure that the predicted values ​​of hysteresis loss, eddy current loss, and abnormal loss vary with influencing factors in a way that aligns with the fundamental physical laws of iron loss. Monotonicity-constrained loss function Based on the fundamental physical laws of iron loss, the three loss components are constrained to satisfy a strictly monotonic relationship with their corresponding influencing factors.

[0065] For example, the monotonicity function of the predicted hysteresis loss is a function that monotonically increases with the magnitude of the magnetic flux density; the monotonicity function of the predicted eddy current loss is a function that increases with frequency. square ( The monotonicity function of the abnormal loss prediction value is the abnormal loss prediction value as a function of frequency. 1.5 ( A function that is monotonically increasing.

[0066] The energy conservation constraint loss function is used to ensure that the sum of the predicted values ​​of hysteresis loss, eddy current loss, and abnormal loss equals the predicted value of total iron loss. Energy conservation loss. Represented as: + + .

[0067] In this embodiment, the total loss function is constructed based on the three fundamental physical laws of iron loss: nonnegativity, monotonicity, and energy conservation. It does not rely on any traditional empirical formulas such as Steinmetz, thus solving the problem of the limited applicability of traditional empirical formulas. It can be applied to the training of iron loss prediction models under any material, waveform, and frequency conditions, ensuring the physical consistency and interpretability of the prediction results.

[0068] In one embodiment, the training method for the iron loss prediction model of soft magnetic materials further includes: Define the hyperparameter set of the iron loss prediction model. The hyperparameter set includes the number of output channels of each causal convolution branch in the multi-scale causal convolution model, the frequency boundary point and adjustment coefficient in the weight adjustment module, the number of neurons in the output layer, the weight coefficients in the total loss function, and the learning rate. Among them, the weight coefficients in the total loss function are the weight coefficients corresponding to the data fitting loss function, the non-negativity constraint loss function, the monotonicity constraint loss function, and the energy conservation loss function, respectively. A verification set is constructed from multiple magnetic flux density feature vector samples obtained. N initial hyperparameter sets are generated using a uniform random sampling method. For each initial hyperparameter set, the iron loss prediction model is trained. This training includes: Input the validation set into the iron loss prediction model and output the corresponding total iron loss prediction values. Use the average relative error between the actual total iron loss value and the corresponding total iron loss prediction value for each magnetic flux density feature vector sample as the basic fitness of the initial hyperparameter set. The initial observation set is constructed by using the basic fitness values ​​corresponding to the obtained initial hyperparameter sets. The steps for training a Gaussian process regression surrogate model include: taking N sets of initial hyperparameters as input, taking the initial observation set as output, and training the Gaussian process regression surrogate model with the initial power-law kernel parameters to obtain the trained Gaussian process regression surrogate model. The steps of executing the particle swarm optimization algorithm include: generating M sets of initial hyperparameters using uniform random sampling, using each set of initial hyperparameters as the position of each particle in the particle swarm, with each particle's position corresponding to a set of initial hyperparameters, optimizing the position of each particle using the particle swarm optimization algorithm, and recording the individual historical best position and the global best position of each particle. Input the positions of M particles into the trained Gaussian process regression surrogate model, and calculate the posterior mean and posterior variance of the prediction error for the M particles. Based on the posterior mean and posterior variance of the prediction errors of M particles, the expected improvement value corresponding to the M particles is determined by the expected improvement acquisition function, and the 3 particles with the largest expected improvement value are selected as the true evaluation points from the expected improvement values ​​corresponding to the M particles. The initial hyperparameter set corresponding to the real evaluation points is used as the model parameters of the iron loss prediction model. The model is trained on the validation set, and the total iron loss prediction value corresponding to the validation set is output. The average relative error between the actual total iron loss value and the total iron loss prediction value corresponding to each value in the validation set is used as a new sample and added to the initial observation set to obtain a new observation set. Perform the steps of training the Gaussian process regression surrogate model with the new observation set, and update the power-law kernel parameters of the Gaussian process regression surrogate model; The steps of the particle swarm optimization algorithm are executed with the new observation set, updating the individual historical best position and the global best position of each particle. Perform iterative training of the particle swarm optimization algorithm and the Gaussian process regression surrogate model until the number of iterations meets the preset number or the preset iteration condition, then stop iterative training and output the global optimal set of hyperparameters. The globally optimal set of hyperparameters is used as the hyperparameter set for the iron loss prediction model to be trained.

[0069] Specifically, the hyperparameter set of the iron loss prediction model is first defined. This hyperparameter set includes the number of output channels of each causal convolution branch in the multi-scale causal convolution model and the frequency boundary points in the weight adjustment module. and adjustment coefficient The factors considered include the number of neurons in the output layer, the weight coefficients in the total loss function, and the learning rate. The weight coefficients in the total loss function include the weight coefficients of the data fitting loss function. Weighting coefficients of the nonnegativity constraint loss function Weighting coefficients of the monotonicity constraint loss function .

[0070] A validation set is constructed using multiple magnetic flux density feature vector samples. N initial hyperparameter sets are generated using a uniform random sampling method, with N exemplarily set to 10. For each initial hyperparameter set, it is used as the model parameters for the iron loss prediction model. The validation set is then input into the corresponding iron loss prediction model, which outputs the predicted total iron loss values. The average relative error between the actual total iron loss values ​​and the predicted total iron loss values ​​for each magnetic flux density feature vector sample is used as the baseline fitness for that initial hyperparameter set. The baseline fitness values ​​for each initial hyperparameter set are used to construct the initial observation set. .

[0071] The steps for training a Gaussian process regression surrogate model include: taking N sets of initial hyperparameters as input and initial observation sets as input. For output, the Gaussian process regression surrogate model is trained using the initial power-law kernel parameters, resulting in the trained Gaussian process regression surrogate model. The Gaussian process regression surrogate model uses a power-law kernel function, which has the following form: ; in, For amplitude parameters, Let be the power law degree.

[0072] The steps of executing the particle swarm optimization algorithm include: generating M sets of initial hyperparameters using uniform random sampling (M is exemplarily set to 30); using each set of initial hyperparameters as the initial position of each particle in the particle swarm; and optimizing the position of each particle using the particle swarm optimization algorithm. In the particle swarm optimization algorithm, the velocity of each particle is initialized to zero, and inertia weights are set. The cognitive coefficient decreased linearly from 0.9 to 0.4. social coefficient Keeping them unchanged, record the individual historical best position pbest and the population global best position gbest for each particle.

[0073] The positions of M particles are input into the trained Gaussian process regression surrogate model, and the posterior mean of the prediction error for the M particles is calculated. and posterior variance Based on the posterior mean and posterior variance of the prediction errors for M particles, the expected improvement value corresponding to the M particles is determined using the expected improvement acquisition function. The formula for calculating the expected improvement acquisition function is as follows: ; in, The optimal true error in the current observation set. The cumulative distribution function of the standard normal distribution. Let be the probability density function of a standard normal distribution. From the expected improvement values ​​corresponding to M particles, select the three particles with the largest expected improvement values ​​as the true evaluation points.

[0074] The initial hyperparameter set corresponding to the actual evaluation points is used as the model parameters for the iron loss prediction model. The model is trained on the validation set, and the predicted total iron loss value corresponding to the validation set is output. During validation, not only the prediction error is calculated, but also the degree of violation of the nonnegativity constraint loss function, monotonicity constraint loss function, and energy conservation constraint loss function is included in the validation error. The average relative error between each actual total iron loss value and the predicted total iron loss value corresponding to the validation set is used as a new sample and added to the initial observation set. A new set of observations was obtained. .

[0075] With a new set of observations The steps for training the Gaussian process regression surrogate model include updating the power-law kernel parameters of the Gaussian process regression surrogate model, i.e., refitting. and With a new set of observations The steps for executing the particle swarm optimization algorithm are as follows: Update the formula according to the speed of the particle swarm optimization algorithm based on the updated surrogate model: Update the velocity and position of all particles, and update the individual historical best position and the population global best position for each particle.

[0076] Iterative training of the particle swarm optimization algorithm and the Gaussian process regression surrogate model is performed until the number of iterations meets a preset number (exemplarily a maximum of 50 iterations) or the fitness corresponding to the global optimum position of the population no longer improves after 10 consecutive iterations. At this point, iterative training stops, and the globally optimal hyperparameter set is output. This globally optimal hyperparameter set is used as the hyperparameter set for the iron loss prediction model to be trained, and is used for the final model training and iron loss prediction.

[0077] In this embodiment, the key hyperparameters of the model are globally optimized using the particle swarm optimization algorithm and the Gaussian process regression surrogate model. The optimal hyperparameter combination is automatically output with the goal of minimizing the prediction error on the validation set. This method can efficiently search for the optimal set of hyperparameters with fewer real training iterations, avoiding the drawbacks of traditional grid search or random search that require a lot of trial and error, and improving the efficiency and quality of hyperparameter tuning.

[0078] Based on the same concept, such as Figure 3 As shown, this application also provides a method for predicting iron loss in soft magnetic materials, the method comprising the following steps: Step 301: Obtain the current magnetic flux density waveform data of the soft magnetic material at the current frequency and current magnetic flux density amplitude. The current magnetic flux density waveform data is obtained by sampling at equal intervals. Step 302: Concatenate the current magnetic flux density waveform data with the corresponding current frequency to obtain the corresponding current magnetic flux density feature vector; Step 303: Input the current magnetic flux density feature vector into the pre-trained iron loss prediction model. The pre-trained iron loss prediction model is trained using the training method of the iron loss prediction model for soft magnetic materials described above. The iron loss prediction model includes a multi-scale causal convolution model, a weight adjustment module, a fusion module, and an output layer. The corresponding hysteresis loss features, eddy current loss features, and abnormal loss features are output through three parallel causal convolution branches in the multi-scale causal convolution model. The kernel sizes of the three causal convolution branches are different. Step 304: Based on the current frequency, the weight adjustment module determines the hysteresis loss characteristic weight, eddy current loss characteristic weight, and abnormal loss characteristic weight; Step 305: Based on the hysteresis loss feature weight, eddy current loss feature weight, and abnormal loss feature weight, the fusion module performs weighted fusion of the hysteresis loss feature, eddy current loss feature, and abnormal loss feature to obtain the loss feature fusion vector. Step 306: Input the loss feature fusion vector into the output layer to determine the iron loss prediction value corresponding to the current magnetic flux density waveform data. The iron loss prediction value includes the total iron loss prediction value, the hysteresis loss prediction value, the eddy current loss prediction value, and the abnormal loss prediction value.

[0079] Specifically, the current magnetic flux density waveform data of the soft magnetic material at the current frequency and current magnetic flux density amplitude is obtained. This current magnetic flux density waveform data is obtained by sampling at equal intervals, with 1024 sampling points collected evenly per cycle.

[0080] The current magnetic flux density feature vector is obtained by concatenating the sequence of 1024 sampling points of the current magnetic flux density waveform data with the current frequency. The first channel is the sequence of instantaneous magnetic flux density values, and the second channel is the sequence of the current frequency value copied along the time dimension.

[0081] The current magnetic flux density feature vector is input into the pre-trained iron loss prediction model, which is trained by the above training method. The multi-scale causal convolution module contains three parallel causal convolution branches with convolution kernel sizes of 1*16, 1*8 and 1*4, respectively, which are used to extract hysteresis loss features, eddy current loss features and abnormal loss features.

[0082] The weight adjustment module determines the hysteresis loss feature weight, eddy current loss feature weight, and abnormal loss feature weight based on the current frequency through an adaptive attention gate mechanism. When the frequency is much lower than the frequency boundary (e.g., 5kHz), the hysteresis loss feature weight approaches 1. When the frequency is much higher than the frequency boundary, the eddy current and abnormal loss feature weights increase.

[0083] The fusion module performs weighted fusion of hysteresis loss features, eddy current loss features, and abnormal loss features, and then performs global average pooling and global max pooling through a causal temporal pooling layer before concatenating the results to obtain a loss feature fusion vector.

[0084] The loss feature fusion vector input-output layer is a two-layer fully connected network. The first layer has 128 neurons that use the ReLU activation function, and the second layer has 4 neurons without an activation function. The output is a 4-dimensional vector, and each element in the 4-dimensional vector corresponds to the predicted value of total iron loss, predicted value of hysteresis loss, predicted value of eddy current loss, and predicted value of abnormal loss, respectively.

[0085] It should be noted that the iron loss prediction method provided in this application is not only applicable to typical soft magnetic materials such as amorphous alloys, nanocrystalline alloys, and silicon steel sheets, but also applicable to the research and verification of iron loss characteristics of various new and special soft magnetic materials such as ferrites, permalloys, soft magnetic composite materials (SMC), amorphous and nanocrystalline composite strips, and high silicon steel.

[0086] In one specific embodiment of this application, an iron loss prediction model trained using the aforementioned training method for soft magnetic material iron loss prediction models was used to predict the iron loss of the core of transformers made of different soft magnetic materials. (See [link to relevant documentation]). Figures 4-11 .

[0087] Figure 4 The graph shows the predicted core loss results for pure amorphous iron cores. Figure 5 The graph shows the predicted core loss results for pure silicon steel cores. Figure 6 The figure shows the predicted core loss results for a 0.5 axially overlapping core. Figure 7 The figure shows the core loss prediction results for a 1:1 radially overlapping core. Figure 8 The figure shows the core loss prediction results for 1:1 axially overlapping iron cores. Figure 9 The figure shows the predicted core loss results for biaxially overlapping iron cores. Figure 10 The figure shows the core loss prediction results for a 17:19 radially overlapping core. Figure 11 The diagram shows the core loss prediction results for a 18:19 radially overlapping core.

[0088] from Figures 4-11 As can be seen from the above, the iron loss prediction model trained by the training scheme provided in this application can accurately characterize the broadband iron loss physical laws of soft magnetic materials with different materials and structures. Figures 4-11 The 3D surface plots on the left side of the image all use magnetic flux density amplitude (horizontal axis, unit B (T)) and frequency (horizontal axis, unit f (Hz)) as independent variables and iron loss value (vertical axis, Ps (W / kg)) as dependent variable. The surface color changes from blue to yellow and then to red to indicate that the iron loss increases from small to large, showing the macroscopic trend of iron loss with magnetic flux density and frequency under sinusoidal excitation.

[0089] Among them, pure amorphous iron core ( Figure 4 The 3D curved surface of the amorphous material rapidly turns red in the high-frequency region (above 10kHz), and the iron loss increases sharply, demonstrating the high-frequency loss sensitivity of amorphous materials; pure silicon steel core ( Figure 5 The 3D curved surface of the silicon steel exhibits a higher starting point for iron loss in the low-frequency region (such as below 1kHz) (the bottom of the curved surface is greenish), but the slope of the rise in the high-frequency region is relatively gentle, reflecting the characteristics of silicon steel having higher power frequency losses but controlled high-frequency eddy currents; while the 0.5 axially overlapping iron core ( Figure 6 The 3D curved surface of the 1:1 radially overlapped core exhibits a distinct blue concave region in the 5kHz to 20kHz frequency band, with significantly lower iron loss than pure silicon steel under the same conditions. This demonstrates the effectiveness of the axially overlapped structure in reducing losses caused by air gap eddy currents through optimized magnetic circuitry. Figure 7 The 3D curved surface concave area of ​​the core is wider and darker (lower iron loss), indicating that radial overlap has a stronger effect on homogenizing the magnetic flux distribution; 1:1 axially overlapped cores ( Figure 8 The upper frequency limit of the 3D curved concave region of the double-axially overlapped iron core extends to 20kHz, and the iron loss is less than 1:1 radial overlap, indicating that axial overlap optimizes the high-frequency eddy current path more thoroughly; Figure 9 The 3D curved surface has the deepest indentation and the widest frequency coverage (500Hz to 20kHz), with a predominantly dark blue color, reflecting the ultimate multi-dimensional suppression of eddy currents by the biaxial magnetic circuit; 17:19 radially overlapping iron core ( Figure 10 The 3D curved surface of the 18:19 radially overlapped core exhibits slightly higher iron loss than pure silicon steel in the low-frequency range (below 1kHz) (the bottom of the curved surface is greenish), but still shows a significant concavity in the high-frequency range, reflecting the trade-off between low-frequency cogging effect and high-frequency optimization in the asymmetric radial overlap. Figure 11 The 3D curved surface has a low-frequency iron loss of less than 17:19 (the indentation starts earlier), and the indentation depth in the high-frequency region is close to 17:19, which reflects the improvement of low-frequency magnetic circuit uniformity by the near-symmetrical structure.

[0090] Figures 4-11 The 2D line graph on the right side of the figure shows the prediction verification results under non-sinusoidal excitation. The upper and lower graphs correspond to the operating conditions with fundamental frequencies of 100Hz and 200Hz, respectively. The horizontal axis represents the magnetic flux density amplitude B (T), and the vertical axis represents the iron loss Ps (W / kg). The curves of different colors in the figure represent different combinations of harmonic parameters (such as amplitude n=20% or 50%, phase φ=0° or 90°). It can be seen that under all operating conditions, the prediction line (usually represented by a solid line) of the iron loss prediction model almost completely coincides with the measured line (usually represented by a dashed line or marked points), which intuitively proves the global prediction accuracy of the iron loss prediction model under non-sinusoidal excitation.

[0091] also, Figures 4-11 The upper left corner of each 2D line graph features a magnified view (Inset), which locks the horizontal axis magnetic flux density within an extremely narrow range of 0.995T to 1.005T, and correspondingly reduces the range of iron loss on the vertical axis. In this magnified view, curves that previously appeared to overlap in the main graph show a visible separation. For example, in a pure amorphous iron core (… Figure 4 Under 100Hz operating conditions, the iron loss corresponding to the harmonic with amplitude n=20% and phase φ=90° is about 0.02W / kg higher than that of the harmonic with n=20% and φ=0°. The prediction line of the iron loss prediction model follows this small difference; in biaxially overlapping iron cores ( Figure 9 In the magnified image, the curves corresponding to different harmonic parameters almost completely overlap, with a difference of less than 0.005 W / kg, indicating that the iron loss prediction model still achieves high-precision matching. This detail verifies that the iron loss prediction model has extremely strong sensitivity and predictive ability to millimeter-level loss fluctuations caused by changes in harmonic phase and amplitude.

[0092] The above Figures 4-11Together, it is demonstrated that the iron loss prediction model provided in this application can not only accurately reproduce the intrinsic loss surface of different materials and structures at the macroscopic level, but also capture the fine loss changes under harmonic interference at the microscopic level. It has the advantages of material universality, structural insight and microscopic precision, and can provide reliable physical data support for the selection of soft magnetic materials and the optimization of iron core structure.

[0093] Based on the same concept, this application also provides an electronic device, including: a memory for storing program instructions; and a processor coupled to the memory for executing the program instructions to implement the above-described training method for the iron loss prediction model of soft magnetic materials or to implement the above-described method for predicting iron loss of soft magnetic materials.

[0094] Electronic devices can be servers, desktop computers, laptops, tablets, or embedded devices. Memory includes, but is not limited to, random access memory (RAM), read-only memory (ROM), flash memory, or solid-state drives (SSDs). Processors include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), field-programmable gate arrays (FPGAs), or application-specific integrated circuits (ASICs).

[0095] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the apparatus embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0096] The above are merely preferred embodiments of this application and are not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.

Claims

1. A training method for an iron loss prediction model of soft magnetic materials, characterized in that, The method includes: Multiple magnetic flux density waveform samples of soft magnetic materials at different frequencies and different magnetic flux density amplitudes are obtained, and each magnetic flux density waveform sample is obtained by sampling at equal intervals. For each magnetic flux density waveform sample, the magnetic flux density waveform sample is concatenated with the corresponding frequency to obtain the corresponding magnetic flux density feature vector sample. The magnetic flux density feature vector sample is input into the iron loss prediction model to be trained. The iron loss prediction model includes a multi-scale causal convolution model, a weight adjustment module, a fusion module and an output layer. Through three parallel causal convolution branches in the multi-scale causal convolution model, the corresponding hysteresis loss features, eddy current loss features and abnormal loss features are output respectively. The convolution kernel sizes of the three causal convolution branches are all different. Based on the frequency corresponding to the magnetic flux density waveform sample, the weight adjustment module determines the hysteresis loss characteristic weight, eddy current loss characteristic weight, and abnormal loss characteristic weight. Based on the hysteresis loss feature weight, eddy current loss feature weight, and abnormal loss feature weight, the fusion module performs weighted fusion of the hysteresis loss feature, eddy current loss feature, and abnormal loss feature to obtain a loss feature fusion vector. The loss feature fusion vector is input into the output layer, and the iron loss prediction value corresponding to the magnetic flux density waveform sample is output. The iron loss prediction value includes the total iron loss prediction value, the hysteresis loss prediction value, the eddy current loss prediction value, and the abnormal loss prediction value. By combining the predicted iron loss values ​​corresponding to each magnetic flux density waveform sample, the network parameters of the iron loss prediction model to be trained are iteratively adjusted using the total loss function to obtain the trained iron loss prediction model.

2. The training method for the iron loss prediction model of soft magnetic materials according to claim 1, characterized in that, Based on the frequency corresponding to the magnetic flux density waveform sample, the weight adjustment module determines the hysteresis loss characteristic weight, eddy current loss characteristic weight, and abnormal loss characteristic weight, including: If the frequency is much less than or equal to the frequency boundary point, the hysteresis loss feature weight is greater than the eddy current loss feature weight, and the eddy current loss feature weight is greater than the abnormal loss feature weight, wherein the frequency boundary point is obtained based on pre-training. If the frequency is much greater than the frequency boundary point, the weight of the eddy current loss characteristic is greater than the weight of the abnormal loss characteristic, and the weight of the abnormal loss characteristic is greater than the weight of the hysteresis loss characteristic.

3. The training method for the iron loss prediction model of soft magnetic materials according to claim 2, characterized in that, Based on the frequency corresponding to the magnetic flux density waveform sample, the weight adjustment module further determines the hysteresis loss characteristic weight, eddy current loss characteristic weight, and abnormal loss characteristic weight by including: The characteristic weights of hysteresis loss are determined using the following formula. Eddy current loss characteristic weight and abnormal loss feature weights ; ; ; ; in, The frequency corresponding to the magnetic flux density waveform sample. As the frequency boundary point, This is the adjustment coefficient.

4. The training method for the iron loss prediction model of soft magnetic materials according to claim 2, characterized in that, Based on the predicted iron loss values ​​corresponding to each magnetic flux density waveform sample, the network parameters of the iron loss prediction model to be trained are iteratively adjusted using the total loss function, including: For each magnetic flux density waveform sample, the data fitting loss function is determined based on the deviation between the actual value of total iron loss and the predicted value of total iron loss corresponding to that magnetic flux density waveform sample. For each magnetic flux density waveform sample, a non-negativity constraint loss function is determined based on the predicted values ​​of hysteresis loss, eddy current loss, and abnormal loss corresponding to that magnetic flux density waveform sample. For each magnetic flux density waveform sample, a monotonic constraint loss function is determined based on the monotonicity functions of the predicted hysteresis loss, the predicted eddy current loss, and the predicted abnormal loss corresponding to that magnetic flux density waveform sample. For each magnetic flux density waveform sample, the energy conservation loss function is determined by summing the predicted values ​​of hysteresis loss, eddy current loss, and abnormal loss corresponding to that magnetic flux density waveform sample, and combining the sum of the three with the corresponding total iron loss prediction value. The total loss function is determined based on the data fitting loss function, the non-negativity constraint loss function, the monotonicity constraint loss function, and the energy conservation loss function.

5. The training method for the iron loss prediction model of soft magnetic materials according to claim 4, characterized in that, Based on the monotonicity functions of the predicted hysteresis loss, eddy current loss, and abnormal loss corresponding to the magnetic flux density waveform sample, the monotonic constraint loss function is determined, including: The monotonicity function of the predicted hysteresis loss is a function that the predicted hysteresis loss increases monotonically with the magnitude of the magnetic flux density. The monotonicity function of the predicted eddy current loss value is a function that monotonically increases the predicted eddy current loss value with the square of the frequency. The monotonicity function of the abnormal loss prediction value is a function that monotonically increases with the 1.5th power of the frequency.

6. The training method for the iron loss prediction model of soft magnetic materials according to claim 1, characterized in that, The iron loss prediction model further includes a causal temporal pooling layer. The loss feature fusion vector is input into the causal temporal pooling layer. The causal temporal pooling layer performs global average pooling and global max pooling on the loss feature fusion vector, and concatenates the results of global average pooling and global max pooling to output a loss feature fusion vector of fixed length. The fixed-length loss feature fusion vector is input into the output layer, and the output layer outputs the iron loss prediction value corresponding to the magnetic flux density waveform sample.

7. The training method for the iron loss prediction model of soft magnetic materials according to claim 1, characterized in that, The multi-scale causal convolution model includes a first causal convolution branch, a second causal convolution branch, and a third causal convolution branch. The kernel size of the first causal convolution branch is 1*16, the kernel size of the second causal convolution branch is 1*8, and the kernel size of the third causal convolution branch is 1*4.

8. The training method for the iron loss prediction model of soft magnetic materials according to claim 1, characterized in that, The method further includes: Define a set of hyperparameters for the iron loss prediction model. The set of hyperparameters includes the number of output channels of each causal convolution branch in the multi-scale causal convolution model, the frequency boundary point and the adjustment coefficient in the weight adjustment module, the number of neurons in the output layer, the weight coefficients in the total loss function, and the learning rate. The weight coefficients in the total loss function are the weight coefficients corresponding to the data fitting loss function, the non-negativity constraint loss function, the monotonicity constraint loss function, and the energy conservation loss function, respectively. A verification set is constructed from multiple magnetic flux density feature vector samples obtained. N initial hyperparameter sets are generated using a uniform random sampling method. For each initial hyperparameter set, the iron loss prediction model is trained. This training includes: The validation set is input into the iron loss prediction model, and the corresponding total iron loss prediction values ​​are output. The average relative error between the actual total iron loss value and the corresponding total iron loss prediction value corresponding to each magnetic flux density feature vector sample is used as the basic fitness of the initial hyperparameter set. The initial observation set is constructed by using the basic fitness values ​​corresponding to the obtained initial hyperparameter sets. The steps for training the Gaussian process regression surrogate model include: using the N initial hyperparameter sets as input and the initial observation set as output, training the Gaussian process regression surrogate model with the initial power-law kernel parameters to obtain the trained Gaussian process regression surrogate model; The steps of executing the particle swarm optimization algorithm include: generating M sets of initial hyperparameters using uniform random sampling, using each set of initial hyperparameters as the position of each particle in the particle swarm, with each particle's position corresponding to a set of initial hyperparameters, optimizing the position of each particle using the particle swarm optimization algorithm, and recording the individual historical best position and the global best position of each particle. Input the positions of M particles into the trained Gaussian process regression surrogate model to calculate the posterior mean and posterior variance of the prediction error for the M particles. Based on the posterior mean and posterior variance of the prediction errors of M particles, the expected improvement value corresponding to the M particles is determined by the expected improvement acquisition function, and the 3 particles with the largest expected improvement value are selected as the true evaluation points from the expected improvement values ​​corresponding to the M particles. The initial hyperparameter set corresponding to the real evaluation points is used as the model parameters of the iron loss prediction model. The validation set is trained, and the total iron loss prediction value corresponding to the validation set is output. The average relative error between each total iron loss real value and the total iron loss prediction value corresponding to the validation set is used as a new sample and added to the initial observation set to obtain a new observation set. The steps of training the Gaussian process regression surrogate model are performed using the new observation set, and the power-law kernel parameters of the Gaussian process regression surrogate model are updated. The particle swarm optimization algorithm is executed on the new observation set to update the individual historical best position and the global best position of each particle. Perform iterative training of the particle swarm optimization algorithm and the Gaussian process regression surrogate model until the number of iterations meets the preset number or the preset iteration condition, then stop iterative training and output the global optimal set of hyperparameters. The globally optimal set of hyperparameters is used as the hyperparameter set of the iron loss prediction model to be trained.

9. A method for predicting iron loss in soft magnetic materials, characterized in that, The method includes: The current magnetic flux density waveform data of the soft magnetic material is obtained at the current frequency and current magnetic flux density amplitude. The current magnetic flux density waveform data is obtained by sampling at equal intervals. The current magnetic flux density waveform data is concatenated with the corresponding current frequency to obtain the corresponding current magnetic flux density feature vector; The current magnetic flux density feature vector is input into a pre-trained iron loss prediction model, wherein the pre-trained iron loss prediction model is trained based on the training method of the iron loss prediction model of soft magnetic materials according to any one of claims 1-8. The iron loss prediction model includes a multi-scale causal convolution model, a weight adjustment module, a fusion module and an output layer. The corresponding hysteresis loss features, eddy current loss features and abnormal loss features are output through three parallel causal convolution branches in the multi-scale causal convolution model, wherein the convolution kernel size of the three causal convolution branches is different. Based on the current frequency, the weight adjustment module determines the hysteresis loss characteristic weight, eddy current loss characteristic weight, and abnormal loss characteristic weight. Based on the hysteresis loss feature weight, eddy current loss feature weight, and abnormal loss feature weight, the fusion module performs weighted fusion of the hysteresis loss feature, eddy current loss feature, and abnormal loss feature to obtain a loss feature fusion vector. The loss feature fusion vector is input into the output layer, and the iron loss prediction value corresponding to the current magnetic flux density waveform data is output. The iron loss prediction value includes the total iron loss prediction value, the hysteresis loss prediction value, the eddy current loss prediction value, and the abnormal loss prediction value.

10. An electronic device, characterized in that, include: Memory, used to store program instructions; A processor, coupled to the memory, is configured to execute the program instructions to implement the training method for the iron loss prediction model of soft magnetic materials as described in any one of claims 1 to 8, or to implement the iron loss prediction method for soft magnetic materials as described in claim 9.