Axial flux motor flow guide manifold spray control method, device and equipment
By capturing the correlation of the temperature rise response of the stator surface of the axial flux motor through a multi-task variational inference model and calculating the optimal spray flow rate, the uncertainty of the temperature rise response of the axial flux motor under dynamic operating conditions is solved, and precise control of the temperature distribution and energy efficiency optimization of the entire domain are achieved.
Patent Information
- Application Number
- CN202611255013.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-11-20
AI Technical Summary
Under dynamically changing speed and torque conditions, the temperature rise response of different regions on the stator surface of the axial flux motor exhibits significant spatiotemporal coupling characteristics and uncertainties. Traditional control methods are unable to achieve optimal allocation of spray flow, resulting in the inability to simultaneously meet the temperature rise constraints of all monitoring areas.
A multi-task variational inference model is adopted. By acquiring the real-time temperature, speed and torque of multiple monitoring areas on the stator surface, a temperature distribution vector is constructed. The correlation between the temperature rise response of each area is captured by the shared latent variable space. The variational posterior distribution of the predicted temperature rise of each monitoring area is output. The optimal spray flow rate value is calculated according to the preset temperature rise threshold to control the opening of the solenoid valve of the guide manifold.
It improves the prediction accuracy of global temperature distribution and the reliability of thermal management, avoids local overheating or waste of cooling medium, achieves the global optimal allocation between cooling effect and energy consumption, and improves the thermal management efficiency and operational reliability of motors.
Smart Images

Figure CN123137138A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of motor manufacturing technology, and in particular to a method, apparatus and equipment for controlling the spraying of an axial flux motor manifold. Background Technology
[0002] Axial flux motors are increasingly widely used in electric vehicles, aerospace, and industrial robots due to their advantages such as high power density and compact axial dimensions. However, this flat configuration with a large diameter and short axial direction results in poor heat dissipation. Because the stator windings are sandwiched between the two rotors to form a "sandwich structure," the heat capacity is low and the thermal resistance path is long. Therefore, the higher the power density, the greater the heat generation per unit volume.
[0003] The stator structure is often designed as a sealed cavity, and a common heat dissipation solution is to immerse or spray the windings and stator teeth with coolant. Compared to indirect water cooling, direct spray cooling has higher heat exchange efficiency because the cooling medium can directly contact the surface of the heat source. Summary of the Invention
[0004] The purpose of this invention is to provide a spray control method, device, and equipment for an axial flux motor manifold. It aims to solve the technical problem that under dynamically changing speed and torque conditions, the temperature rise response of different regions on the stator surface has significant spatiotemporal coupling characteristics and uncertainties. Traditional control methods are difficult to accurately quantify the confidence interval of such temperature rise prediction, resulting in the inability to achieve optimal allocation of spray flow while ensuring that all monitoring areas simultaneously meet the temperature rise constraints.
[0005] To achieve the above objectives, a first aspect of this disclosure provides a spray control method for an axial flux motor manifold, comprising: acquiring the rotational speed and torque of the axial flux motor under operating conditions, and acquiring the real-time temperatures of multiple monitoring areas on the stator surface of the axial flux motor, forming a temperature distribution vector corresponding to the stator surface; using the real-time acquired temperature distribution vector, the rotational speed, and the torque as input vectors, inputting them into a pre-trained multi-task variational inference model to obtain the variational posterior distribution of the predicted temperature rise of each monitoring area output by the multi-task variational inference model; wherein the multi-task variational inference model treats the temperature rise prediction task of each monitoring area as multiple related tasks. The multiple tasks are interconnected through a shared latent variable space. With maximizing the variational lower bound as the training objective and the input vector as a condition, the predicted temperature rise mean and covariance matrix of each monitoring area are determined, and the variational posterior distribution of the predicted temperature rise of each monitoring area is predicted. Based on the variational posterior distribution of the predicted temperature rise of each monitoring area and the preset temperature rise threshold corresponding to each monitoring area, the spray flow rate value that maximizes the joint probability of the predicted temperature rise values of all monitoring areas being simultaneously lower than the preset temperature rise threshold corresponding to each monitoring area is calculated. The spray flow rate value is used to control the opening of the solenoid valves of each branch of the manifold to perform spraying on the axial flux motor.
[0006] In some possible implementations, the multi-task variational inference model outputs the variational posterior distribution of the predicted temperature rise for each of the monitoring regions as follows: Based on the input vector constructed from the temperature distribution vector, the rotational speed, and the torque, a global scalar feature is output based on a shared latent variable space, wherein the dimension of the latent variable space is determined according to the total number of monitoring regions, and the global scalar feature is the output of the shared latent variables after being mapped by a multilayer perceptron network; Based on the output projection matrix corresponding to each monitoring region and the global scalar feature, the mean predicted temperature rise for each monitoring region is obtained, wherein the output projection matrix is a linear transformation matrix mapping from the dimension of the latent variable space to a single-dimensional output space, and the dimension of each output projection matrix is determined according to the dimension of the latent variable space; The mean predicted temperature rise for each monitoring region is combined with the pre-trained noise variance corresponding to the monitoring region to output the variational posterior distribution of the predicted temperature rise for each monitoring region.
[0007] In some possible implementations, the prior distribution of the shared latent variable is set as a standard multivariate Gaussian distribution, and the likelihood function of the output of each monitoring region is set as a Gaussian distribution with the mean of the mapping value of the output projection matrix and the variance of the noise variance of each monitoring region. The noise variance is used as a model parameter in training. The training objective of the model is to maximize the variational lower bound, which is equal to the sum of the expected values of the log-likelihoods of each monitoring region minus the Kuhlberg-Klebler divergence between the variational posterior distribution and the prior distribution of the shared latent variable.
[0008] In some possible implementations, the step of outputting global scalar features based on a shared latent variable space using an input vector constructed from the temperature distribution vector, the rotational speed, and the torque includes: mapping the input vector, constructed from the temperature distribution vector, the rotational speed, and the torque, to the mean vector and covariance matrix of a variational posterior distribution in the shared latent variable space via a variational encoder network; performing random sampling a preset number of times from the variational posterior distribution, obtaining a shared latent variable sample vector with the same preset dimension for each sampling, resulting in a preset number of shared latent variable sample vectors; and inputting each shared latent variable sample vector into the multilayer perceptron network to obtain the global scalar features output by the multilayer perceptron network.
[0009] In some possible implementations, the step of calculating the spray flow rate value that maximizes the joint probability of all monitored areas having predicted temperature rise values simultaneously lower than the preset temperature rise thresholds corresponding to each monitored area, based on the variational posterior distribution of the predicted temperature rise of each monitored area and the preset temperature rise thresholds corresponding to each monitored area, includes: randomly selecting a predicted temperature rise value from each monitored area of the variational posterior distribution in each round according to a preset number of extraction rounds, forming a temperature prediction value vector corresponding to each round of extraction, and obtaining a joint temperature rise prediction vector corresponding to the preset number of extraction rounds; for each candidate spray flow rate value, counting the number of vectors in the joint temperature rise prediction vector under the candidate spray flow rate value where the predicted temperature rise values of all monitored areas are lower than the preset temperature rise thresholds corresponding to each monitored area; using the ratio between the number of vectors and the preset number of extraction rounds as the Monte Carlo estimate of the joint probability corresponding to the candidate spray flow rate value; comparing the Monte Carlo estimates corresponding to each candidate spray flow rate value, and selecting the candidate spray flow rate value with the largest Monte Carlo estimate as the spray flow rate value with the highest joint probability.
[0010] In some possible implementations, controlling the opening of the solenoid valves of each branch of the manifold to perform spraying on the axial flux motor according to the spray flow rate value includes: dividing the spray flow rate value by the total number of spray branches in the manifold to obtain the average flow rate value of a single branch; querying the flow rate and opening characteristic curve of the solenoid valve of that branch based on the average flow rate value of the single branch to obtain the corresponding valve opening percentage, wherein the flow rate and opening characteristic curve is obtained in advance through experimental calibration and stored in the non-volatile memory of the controller; converting the valve opening percentage into the duty cycle of a pulse width modulation signal and outputting it to the drive circuit of the solenoid valve of that branch, wherein the drive circuit adjusts the opening degree of the solenoid valve according to the duty cycle.
[0011] In some possible implementations, the multiple monitoring areas on the stator surface of the axial flux motor are obtained by dividing the area as follows: based on the number of teeth and slots of the stator core of the axial flux motor, the end surface area of each stator tooth of the axial flux motor is divided into a tooth monitoring area; the end surface area corresponding to each slot of the axial flux motor is divided into a slot monitoring area; the tooth monitoring area and the slot monitoring area together constitute multiple monitoring areas, and the total number of monitoring areas is equal to the sum of the number of stator teeth and the number of slots; each monitoring area is assigned a unique area number, and each area number is associated with the stator tooth position or slot position to which the corresponding monitoring area belongs and stored in an area correspondence table.
[0012] In some possible implementations, the method further includes: setting the number of spray branches of the flow manifold to be equal to the number of monitoring areas, configuring each spray branch in a one-to-one correspondence with the area number in the area correspondence table, so that each spray branch corresponds to a unique monitoring area.
[0013] A second aspect of this disclosure provides an axial flux motor manifold spray control device, the device comprising: an acquisition module configured to acquire the rotational speed and torque of the axial flux motor under operating conditions, and to acquire the real-time temperature of multiple monitoring areas on the stator surface of the axial flux motor, forming a temperature distribution vector corresponding to the stator surface; and an input module configured to input the real-time acquired temperature distribution vector, the rotational speed, and the torque as input vectors to a pre-trained multi-task variational inference model, to obtain the variational posterior distribution of the predicted temperature rise of each monitoring area output by the multi-task variational inference model; wherein the multi-task variational inference model treats the temperature rise prediction task of each monitoring area as multiple related tasks, The multiple tasks are interconnected through a shared latent variable space. With maximizing the variational lower bound as the training objective and the input vector as a condition, the predicted temperature rise mean and covariance matrix of each monitoring area are determined, and the variational posterior distribution of the predicted temperature rise of each monitoring area is predicted. A calculation module is configured to calculate, based on the variational posterior distribution of the predicted temperature rise of each monitoring area and a preset temperature rise threshold corresponding to each monitoring area, the spray flow rate value that maximizes the joint probability of the predicted temperature rise values of all monitoring areas being simultaneously lower than the preset temperature rise thresholds corresponding to each monitoring area. A control module is configured to control the opening of the solenoid valves of each branch of the manifold to perform spraying on the axial flux motor according to the spray flow rate value.
[0014] A third aspect of this disclosure provides an electronic device, comprising: a memory storing a computer program thereon; and a processor for executing the computer program in the memory to implement the steps of the method described in any of the first aspects.
[0015] This invention provides a method, apparatus, and device for controlling the spraying of an axial flux motor manifold. Compared with the prior art, it has the following advantages: By acquiring real-time temperatures from multiple monitoring areas on the stator surface to form a temperature distribution vector, and combining this vector with rotational speed and torque as inputs, the temperature rise prediction for each area is modeled as a multi-task learning problem. The shared latent variable space is used to capture the correlation between temperature rise responses in each area, improving the overall prediction accuracy of the global temperature distribution. A multi-task variational inference model is employed to output the variational posterior distribution of the predicted temperature rise for each monitoring area, including the predicted mean and covariance matrix. The covariance matrix quantitatively characterizes the uncertainty of the temperature rise prediction for each area and the correlation between areas, enabling the system to simultaneously grasp the predicted temperature rise value and its reliability.
[0016] Furthermore, based on the variational posterior distribution of the predicted temperature rise in each region and the preset temperature rise threshold, the joint probability that the predicted temperature rise values of all monitored regions are simultaneously lower than their respective thresholds is calculated. The spray flow rate value that maximizes this joint probability is then selected, achieving a globally optimal allocation between cooling effect and energy consumption. Through collaborative decision-making driven by the global temperature distribution vector, the opening degree of the solenoid valves in each branch of the manifold is collaboratively optimized, avoiding local overheating or waste of cooling medium due to prediction deviations. This improves the reliability, consistency, and energy efficiency of motor thermal management, effectively suppresses local hot spots, and enhances thermal management efficiency and operational reliability.
[0017] Other features and advantages of this disclosure will be described in detail in the following detailed description section. Attached Figure Description
[0018] The accompanying drawings are provided to further illustrate the present disclosure and form part of the specification. They are used together with the following detailed description to explain the present disclosure, but do not constitute a limitation thereof. In the drawings: Figure 1 This is a schematic flowchart illustrating an axial flux motor manifold spray control method according to an embodiment in the specification.
[0019] Figure 2 This is a flowchart illustrating the variational posterior distribution of the predicted temperature rise in each monitoring area, as shown in the embodiment of the specification.
[0020] Figure 3 This is one implementation shown in the embodiment of the specification. Figure 2 A flowchart of step S21.
[0021] Figure 4 A block diagram of an axial flux motor manifold spray control device is shown in the embodiment of the specification.
[0022] Figure 5 This is a block diagram of another axial flux motor manifold spray control device shown in the embodiment of the specification. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0024] Before introducing the axial flux motor manifold spray control method provided by the embodiments of this disclosure, let's first discuss the technical problems existing in the relevant scenarios. Existing spray control methods generally suffer from the following technical problems: Firstly, the spray flow control lacks precise perception and prediction of the temperature distribution across the entire stator. Due to the flat structure of the axial flux motor, if the oil circuit design is inadequate, the internal temperature field of the stator will exhibit significant uneven distribution, leading to frequent occurrences of localized high temperatures.
[0025] Existing solutions mostly rely on a single temperature monitoring point or empirical threshold for spray start-stop control, which cannot reflect the differentiated temperature rise requirements of multiple areas on the stator surface. This results in some areas being overcooled while other areas remain overheated, not only wasting cooling medium but also making it difficult to effectively suppress local hot spots.
[0026] Secondly, the lack of quantitative modeling for temperature rise uncertainty makes it difficult to achieve optimal spray flow allocation. The motor's operating conditions (speed, torque) change in real time, and the temperature rise response in different stator regions exhibits dynamic coupling characteristics and uncertainty. Traditional control strategies based on deterministic models cannot characterize the confidence interval of temperature rise predictions. When predictions are biased, spray flow decisions based on a single predicted value may be insufficient to suppress the actual temperature rise, or excessive conservatism may lead to cooling redundancy, making it difficult to achieve the optimal balance between cooling effect and energy consumption.
[0027] In relevant scenarios, motor temperature prediction often employs physics-based thermal models, observer methods, or data-driven frameworks. However, these methods typically treat the temperature rise in each region as an independent prediction task, failing to leverage the correlation between temperature rise responses in different regions to improve prediction accuracy and robustness.
[0028] This disclosure provides a spray control method for an axial flux motor manifold. Figure 1 This is a flowchart illustrating an axial flux motor manifold spray control method according to an embodiment. The method includes the following steps: In step S11, the rotational speed and torque of the axial flux motor under operating conditions are obtained, as well as the real-time temperature of multiple monitoring areas on the stator surface of the axial flux motor, forming a temperature distribution vector corresponding to the stator surface.
[0029] In this embodiment, rotational speed and torque, as key physical quantities reflecting the motor's load conditions and operating intensity, directly determine the motor's heat output. The rotational speed and torque of the axial flux motor under operating conditions can be obtained, for example, by reading values from the internal registers of the motor controller, which are mapped in real-time to feedback values from a resolver or encoder; or by directly measuring the shaft torque using a torque sensor and then converting it to an analog-to-digital converter.
[0030] The multiple monitoring areas on the stator surface can refer to several independent temperature measurement areas pre-divided according to the physical structure of the motor stator (such as teeth and slots). Real-time temperature acquisition for each monitoring area can be achieved, for example, by using thermocouples or thermistors embedded in each area to collect voltage signals and convert them; or by using a non-contact infrared sensor array to scan and image the stator surface and extract the temperature values for each area.
[0031] In this embodiment, the real-time temperatures of each monitoring area are arranged in a preset area number order to construct a temperature distribution vector corresponding to the stator surface. The temperature distribution vector is a high-dimensional vector, with its dimensions matching the number of monitoring areas. The value of each dimension represents the real-time temperature of the corresponding area. By constructing this vector, discrete temperature measurement points are transformed into numerical inputs that the model can process.
[0032] In step S12, the temperature distribution vector, rotational speed and torque acquired in real time are used as input vectors and input to the pre-trained multi-task variational inference model to obtain the variational posterior distribution of the predicted temperature rise of each monitoring area output by the multi-task variational inference model.
[0033] The multi-task variational inference model treats the temperature rise prediction task of each monitoring area as multiple related tasks. These multiple tasks are interconnected through a shared latent variable space. With the maximization of the variational lower bound as the training objective and the input vector as the condition, the model determines the predicted temperature rise mean and covariance matrix of each monitoring area, and predicts the variational posterior distribution of the predicted temperature rise of each monitoring area.
[0034] In this embodiment of the disclosure, the construction and training of the pre-trained multi-task variational inference model are completed in the offline phase before system deployment. The training data can be derived from the operating condition samples accumulated during the historical operation of the axial flux motor. Each sample can include the rotational speed, torque, stator temperature distribution vector at the same moment, and the actual temperature rise change over a subsequent preset time period.
[0035] In terms of model architecture, the multi-task variational inference model adopts a structure combining deep neural networks and probabilistic graphical models, introducing a shared latent variable space. It treats the temperature rise prediction of each monitoring area as multiple related tasks, thereby learning the intrinsic correlation between temperature rises in different areas. During training, the goal is to maximize the variational lower bound. The network weights are updated through backpropagation until the prediction accuracy on the validation set converges. The trained model parameters are then persistently stored for loading and use during the inference phase.
[0036] During runtime, an input vector, composed of a temperature distribution vector, rotational speed, and torque, is fed into the multi-task variational inference model. The encoder network within the model maps the input vector to a shared latent variable space, utilizing global features to capture the coupling relationships of temperature rise in different regions. Subsequently, the model, conditioned on the input vector, calculates the predicted mean temperature rise and covariance matrix for each monitoring region through the decoder network or output layer. The predicted mean temperature rise represents the central estimate of future temperature rise, while the covariance matrix characterizes the uncertainty of the prediction and the correlation between temperature rises in different regions.
[0037] Furthermore, based on the aforementioned statistical parameters, the model determines and outputs the variational posterior distribution of the predicted temperature rise for each monitoring area. This distribution typically takes the form of a Gaussian distribution or a mixture of Gaussian distributions. This variational inference-based prediction method not only provides predicted temperature rise values but also quantifies the confidence interval of the prediction, overcoming the shortcomings of traditional deterministic models in assessing prediction risks and providing a complete basis for sprinkler decision-making that includes information on uncertainties.
[0038] Optionally, see Figure 2 As shown, the multi-task variational inference model outputs the variational posterior distribution of the predicted temperature rise for each monitoring area, including: In step S21, based on the input vector constructed from the temperature distribution vector, rotational speed, and torque, a global scalar feature is output using the shared latent variable space.
[0039] The dimension of the latent variable space is determined based on the total number of monitoring areas, and the global scalar feature is the output of the shared latent variables after being mapped by a multilayer perceptron network.
[0040] In this embodiment, the input vector is formed by concatenating the temperature distribution vector on the stator surface, the real-time speed of the motor, and the torque, constituting the basic input conditions for the multi-task variational inference model. The shared latent variable space is used to perform high-dimensional abstract characterization of the potential common physical laws in the temperature rise changes of each monitoring area of the stator. These common physical laws include the coupling characteristics of the heat conduction path and the overall correlation of the cooling medium flow.
[0041] The dimension of the latent variable space is set based on the total number of monitored areas. For example, if the number of monitored areas is N, the dimension D of the latent variable space is usually set to a value less than N (such as D = N / 2 rounded up or D = log2(N)) to retain sufficient expressive power while compressing redundant information. The encoded input vector is mapped to this shared latent variable space, and a multilayer perceptron network is used for nonlinear transformation to generate global scalar features. This multilayer perceptron network consists of an input layer, several hidden layers, and an output layer. The activation function can be, for example, a modified linear unit, used to extract deep semantic features closely related to the global temperature evolution trend from the input data, thereby providing a unified feature base containing global contextual information for independent prediction of each region.
[0042] Further, see Figure 3 As shown, in step S21, the step of outputting global scalar features based on the input vector constructed from the temperature distribution vector, rotational speed, and torque, and based on the shared latent variable space, includes: In step S211, the input vector, constructed from the temperature distribution vector, rotational speed, and torque, is mapped to the mean vector and covariance matrix of the variational posterior distribution in the shared latent variable space by the variational encoder network.
[0043] In this embodiment, the variational encoder network, as a deep learning-based probabilistic inference model, is used to compress high-dimensional observation data and map it to a low-dimensional latent variable space. In this embodiment, the variational encoder network not only performs data compression but also focuses on learning the probability distribution features of the input vector in the latent space. Its internal structure typically includes fully connected layers, activation function layers, and an output layer, extracting deep features related to temperature rise from the input data through nonlinear transformations.
[0044] Specifically, after weighted summation and nonlinear activation of each dimension of the input vector, two vectors are finally output: one is the mean vector representing the location of the distribution center, and the other is the covariance matrix characterizing the dispersion of the distribution. This mapping process transforms the deterministic input into a probability distribution in the latent space, providing a mathematical basis for the subsequent introduction of random sampling, thereby enabling the model to capture the random fluctuation characteristics of the impact of operating conditions on temperature rise.
[0045] In step S212, random sampling is performed from the variational posterior distribution for a preset number of samplings. Each sampling yields a shared latent variable sample vector with the same preset dimension, resulting in a total of a preset number of shared latent variable sample vectors.
[0046] In this embodiment of the disclosure, random sampling aims to approximate complex integral operations by drawing samples from the estimated posterior distribution. To ensure effective gradient backpropagation, a reparameterization technique is employed for sampling, which involves multiplying the standard Gaussian noise by the square root of the covariance matrix and adding the mean vector to generate a shared latent variable sample vector.
[0047] The preset number of sampling times is a hyperparameter whose value affects the balance between the stability of the prediction results and computational efficiency. For example, it can be set to 50, 100, or 200, which is only an example here. By repeatedly executing the above random sampling process for the preset number of sampling times, a set of shared latent variable sample vectors is obtained. This set of sample vectors statistically covers the high-probability region of the latent variable space, comprehensively reflecting the shape of the latent variable distribution, avoiding the random bias caused by single sampling, and providing sufficient data support for expectation estimation.
[0048] In step S213, each shared latent variable sample vector is input into the multilayer perceptron network to obtain the global scalar features output by the multilayer perceptron network.
[0049] In this embodiment, the multilayer perceptron network is a deep feedforward neural network containing at least one hidden layer, possessing powerful nonlinear mapping capabilities. When the shared latent variable sample vector is input into the multilayer perceptron network, the network maps the samples in the latent space to global scalar features in the feature space through layer-by-layer linear transformation and nonlinear activation function processing. This process essentially decodes the potential information about operating conditions and temperature contained in the latent variables into a higher-level, more discriminative feature representation, which is used for subsequent specific temperature rise prediction for each monitoring area.
[0050] In this way, by processing the shared latent variable sample vectors of a preset number of sampling times, the multilayer perceptron network outputs a corresponding number of global scalar features. These feature sets form the basis for subsequent calculations of the predicted temperature rise distribution in each monitoring area, thereby realizing end-to-end probabilistic modeling from input vector to predicted output.
[0051] In step S22, the predicted average temperature rise of each monitoring area is obtained based on the output projection matrix corresponding to each monitoring area and the global scalar features.
[0052] The output projection matrix is a linear transformation matrix that maps the dimensions of the latent variable space to the one-dimensional output space. The dimension of each output projection matrix is determined according to the dimension of the latent variable space. For example, the dimension of each output projection matrix is equal to one times the dimension of the latent variable space.
[0053] In this embodiment, to achieve differentiated prediction of temperature rise in multiple monitoring areas, a dedicated output projection matrix is configured for each monitoring area. The output projection matrix, as a linear transformation matrix, maps the extracted high-dimensional global scalar features to a single-dimensional output space, i.e., the specific temperature rise numerical prediction space. The dimension of each output projection matrix is strictly determined according to the dimension of the latent variable space. For example, if the dimension of the latent variable space is D, then the dimension of each output projection matrix is 1×D. This design mechanism allows different areas to extract specific information from shared global features: for areas significantly affected by global operating conditions (such as speed and torque), the projection matrix weights focus on extracting common components from the global features; while for areas with significant local heat sources or those significantly affected by specific cooling branches, the projection matrix weights learn specific linear combination patterns to capture the unique temperature rise response pattern of that area.
[0054] In this embodiment, the global scalar features are multiplied with the output projection matrix corresponding to each region to calculate the predicted average temperature rise of each monitoring region. This achieves the goal of improving robustness by utilizing shared information while preserving the independence of predictions for each region.
[0055] In step S23, the predicted average temperature rise of each monitoring area is combined with the pre-trained noise variance of the corresponding monitoring area to output the variational posterior distribution of the predicted temperature rise of each monitoring area.
[0056] In this embodiment of the disclosure, in order to fully describe the uncertainty of temperature rise prediction, in addition to the deterministic mean, it is also necessary to quantify the confidence interval of the prediction result. The predicted temperature rise mean of each monitoring area obtained above is combined with the noise variance of the corresponding pre-trained monitoring area to construct a probability distribution model of the predicted temperature rise of each monitoring area, that is, a variational posterior distribution.
[0057] The noise variance, a parameter learned during model training, characterizes the statistical properties of the prediction error in the monitored area under specific operating conditions. Different areas may have different noise variance values, reflecting differences in the signal-to-noise ratio or the severity of local disturbances in the temperature monitoring data. The final output variational posterior distribution is typically assumed to be Gaussian, with its mean calculated in the previous step and its variance determined by the corresponding noise variance. This output not only provides the most probable temperature rise value (i.e., the mean) for each monitored area but also clarifies the confidence range of the predicted value (i.e., the confidence interval determined by the variance), improving the accuracy of calculating the joint probability of spray flow control within the probability space.
[0058] Optionally, the construction process of the multi-task variational inference model includes: setting the prior distribution of the shared latent variables to a standard multivariate Gaussian distribution, setting the likelihood function of each monitoring area output to a Gaussian distribution with the mean of the output projection matrix and the variance of the noise variance of each monitoring area, and using the noise variance as a model parameter in training.
[0059] In this embodiment of the disclosure, when constructing the multi-task variational inference model, the prior distribution and likelihood function in the probabilistic generation model are first defined. Shared latent variables are used to capture potential common driving forces or correlation patterns in the temperature rise changes of each monitoring area. To standardize the learning space of the model and ensure analytical convenience, the prior distribution of the shared latent variables is set to a standard multivariate Gaussian distribution with zero mean and unit covariance.
[0060] For each monitoring area, the output observation (i.e., temperature rise) is modeled using a Gaussian likelihood function. The mean of this likelihood function is determined by linearly mapping the shared latent variables to the output projection matrix, corresponding to the deterministic prediction of temperature rise in that area. The variance is represented by the noise variance of the corresponding monitoring area. This noise variance is not a fixed constant but participates in the learning process as a trainable model parameter, enabling the model to adaptively estimate the uncertainty level of temperature rise prediction or the intensity of observed noise in different monitoring areas.
[0061] The training objective of the model is to maximize the variational lower bound, which is equal to the sum of the expected values of the log-likelihoods of each monitoring region minus the Kuhlberg-Klebler divergence between the variational posterior distribution of the shared latent variable and its prior distribution.
[0062] In this embodiment of the disclosure, variational inference is used for model training to enable the model to learn accurate latent variable representations from the data. Variational inference approximates the true posterior distribution by optimizing the variational posterior distribution, which is achieved by maximizing the variational lower bound.
[0063] In this embodiment of the disclosure, the calculation of the variational lower bound mainly includes two trade-offs: the first part is the reconstruction term, which is the sum of the expected values of the log-likelihoods of each monitoring area. This part ensures that the predicted distribution generated by the model fits the actual observation data as closely as possible, so as to improve the prediction accuracy; the second part is the regularization term, which is the Kuhl-Beckley divergence between the variational posterior distribution of the shared latent variables and its prior distribution. This part constrains the variational posterior distribution so that it does not deviate too far from the prior distribution, thereby preventing the model from overfitting and maintaining the smoothness of the latent variable space.
[0064] In this way, by maximizing the above variational lower bound, the model minimizes the difference between the variational posterior distribution and the true posterior distribution, while ensuring joint optimization of temperature rise prediction tasks for all monitoring areas, thereby realizing the effective utilization of multi-task correlation and the quantification of prediction uncertainty.
[0065] In summary, by setting a standard multivariate Gaussian distribution as a prior, configuring a likelihood function based on noise variance, and performing variational lower bound maximization training, a rigorous probabilistic generation and inference framework is collaboratively constructed. This framework utilizes the Körbeklebler divergence as a regularization method to constrain model complexity. Simultaneously, by jointly maximizing the expected log-likelihood of each region, it ensures the consistency and robustness of the model's extraction of temperature rise characteristics from multiple monitoring areas within a shared latent variable space, providing high-quality predictive input containing uncertainty information for subsequent sprinkler control decisions.
[0066] In step S13, based on the variational posterior distribution of the predicted temperature rise in each monitoring area and the preset temperature rise threshold corresponding to each monitoring area, the spray flow rate value that maximizes the joint probability of making the predicted temperature rise values of all monitoring areas simultaneously lower than the preset temperature rise threshold corresponding to each monitoring area is calculated.
[0067] In this embodiment of the disclosure, the preset temperature rise threshold is a safe upper limit for each monitoring area, used to define the allowable temperature rise range for motor operation. This threshold can be determined, for example, based on the heat resistance class of the motor insulation material (e.g., Class H allows a temperature rise of 125K) combined with a safety margin; or calculated using reliability engineering methods based on the statistical distribution of thermal failures in the motor's historical operating data.
[0068] In this embodiment of the disclosure, the spray flow rate value can be calculated by establishing a mapping between the spray flow rate and the temperature rise probability distribution, and then finding the optimal solution. Specifically, the suppression effect of different candidate spray flow rate values on stator temperature rise is evaluated, and this effect is measured by a probability index.
[0069] In this embodiment of the disclosure, for each candidate spray flow rate value, based on the aforementioned variational posterior distribution, the joint probability is calculated that the predicted temperature rise values of all monitoring areas are simultaneously lower than their respective preset temperature rise thresholds under the action of that flow rate. This joint probability reflects the likelihood or confidence that no overheating will occur in the entire stator region under that spray flow rate. By comparing the joint probabilities corresponding to each candidate flow rate value, the flow rate value that maximizes this joint probability is selected as the target spray flow rate value. This calculation process can, for example, employ the Monte Carlo simulation method to estimate the joint probability by sampling a large amount from the posterior distribution; or it can use analytical methods to derive the joint probability density function and search for extreme values within the feasible flow rate region.
[0070] In this way, the decision-making logic with probability maximization as its core makes full use of the uncertainty information of temperature rise prediction, and avoids the waste of cooling medium caused by excessive conservatism while ensuring cooling safety.
[0071] Optionally, in step S13, based on the variational posterior distribution of the predicted temperature rise in each monitoring area and the preset temperature rise threshold corresponding to each monitoring area, the calculation of the spray flow rate value that maximizes the joint probability of the predicted temperature rise values of all monitoring areas being simultaneously lower than the preset temperature rise thresholds corresponding to each monitoring area includes: In step S131, according to the preset number of sampling rounds, a predicted temperature rise is randomly sampled from each monitoring area of the variational posterior distribution in each round to form the temperature prediction value vector corresponding to each round of sampling, and the joint temperature rise prediction vector corresponding to the preset number of sampling rounds is obtained.
[0072] In this embodiment, the preset number of extraction rounds is a key hyperparameter for Monte Carlo simulation, and its value directly determines the balance between the accuracy of the joint probability estimation and the computational overhead. This preset number of extraction rounds can be set according to the safety level requirements of the target motor and the computing resources of the embedded controller; for example, it can be set to 1000, 5000, or 10000, etc., which is only an example here.
[0073] In this embodiment, a random sampling process is initiated based on the variational posterior distribution of the predicted temperature rise of each monitoring area output by the multi-task variational inference model. The variational posterior distribution contains the probability distribution information of the temperature rise of each monitoring area at future times, and is usually represented as a Gaussian distribution. In each round of sampling, a value is independently and randomly selected from the variational posterior distribution corresponding to each monitoring area as the predicted temperature rise of that monitoring area. Since there are multiple monitoring areas, and the temperature rises between the areas are correlated (this correlation has been captured by the aforementioned model through a shared latent variable space), the predicted temperature rises of each monitoring area obtained in each round of sampling collectively constitute a high-dimensional sample, namely, a temperature prediction vector.
[0074] In this embodiment, by repeatedly executing the above-described random sampling process until a preset number of sampling rounds is reached, a set of joint temperature rise prediction vectors corresponding to the preset number of sampling rounds is obtained. This process essentially utilizes the Monte Carlo method to conduct a large number of random experiments in the probability space, thereby approximately representing the continuous joint probability distribution structure at the level of discrete samples. In this way, the complex problem of joint probability calculation can be transformed into an easily tractable counting and statistics problem.
[0075] In step S132, for each candidate spray flow rate value, the number of vectors in the joint temperature rise prediction vector under that candidate spray flow rate value in which the predicted temperature rise value of all monitoring areas is lower than the preset temperature rise threshold corresponding to each monitoring area is counted.
[0076] In this embodiment of the disclosure, the candidate spray flow rate value refers to a predefined set of selectable flow rate setpoints that cover the possible operating range of the manifold. For example, the flow rate range can be discretized into a series of values, such as 0.5L / min, 1.0L / min, 1.5L / min, etc., depending on the control accuracy of the solenoid valve. This is only an illustrative example.
[0077] In this embodiment, a preset temperature rise threshold is a separately set upper limit for the safe temperature of each monitoring area. This threshold is typically determined based on the motor's insulation class, material thermal limit, and operational reliability requirements. After obtaining the joint temperature rise prediction vector set, the control effect corresponding to each candidate spray flow rate value is evaluated one by one.
[0078] Specifically, for any given candidate spray flow rate value, the joint temperature rise prediction vector obtained from all preset extraction rounds is traversed, and a global safety check is performed on each vector. This check process includes: examining the temperature rise prediction value of each monitoring area contained in the joint temperature rise prediction vector, and determining whether it is strictly lower than the preset temperature rise threshold corresponding to that monitoring area. Only when the temperature rise prediction values of all areas in the vector simultaneously meet their respective threshold constraints is the vector considered to have passed the safety check; otherwise, it is considered to have failed.
[0079] In this way, through the above statistical process, the total number of joint temperature rise prediction vectors that pass the safety verification under the candidate spray flow rate value can be calculated. This quantifies the number of scenarios that meet the overall safety requirements in the simulated future temperature rise scenarios under the current flow rate setting, thus reflecting the risk level of this flow rate setting.
[0080] In step S133, the ratio between the number of vectors and the preset number of extractions is used as the Monte Carlo estimate of the joint probability corresponding to the candidate spray flow rate value.
[0081] In this embodiment of the disclosure, based on the law of large numbers, when the preset number of samplings is sufficiently large, the frequency of the event will converge to its true probability. Using this principle, the ratio of the number of vectors that meet the conditions obtained in the previous step to the total number of samplings (i.e., the preset number of samplings) is calculated to obtain the Monte Carlo estimate of the joint probability corresponding to the candidate spray flow rate value.
[0082] In this context, the Monte Carlo estimate mathematically represents the confidence level that, under the current candidate spray flow rate, the actual temperature rise in all monitored areas is simultaneously lower than their respective preset temperature rise thresholds. For example, if the Monte Carlo estimate for a candidate flow rate is 0.95, it means that, based on the current model prediction and uncertainty simulation, this flow rate can guarantee that the overall temperature rise will not exceed the standard with a 95% probability. This statistically estimated quantitative indicator, compared to traditional point-prediction-based control methods, can more accurately reflect the safety margin of control decisions and effectively avoid overheating risks caused by model prediction biases or operating condition disturbances.
[0083] Step S13 further includes comparing the Monte Carlo estimates corresponding to each candidate spray flow rate value, and selecting the candidate spray flow rate value with the largest Monte Carlo estimate as the spray flow rate value with the largest joint probability.
[0084] In this embodiment of the disclosure, after calculating the Monte Carlo estimates of all candidate spray flow rates, the estimates corresponding to each flow rate are compared horizontally. The spray flow rate value with the highest joint probability is the flow rate setting that achieves the highest confidence level to ensure that the stator's overall temperature rise simultaneously meets safety constraints.
[0085] It can be explained that by selecting the candidate spray flow rate value with the largest Monte Carlo estimate, we are actually solving an optimization problem with the goal of maximizing safety confidence. This decision-making logic ensures that, in the presence of uncertainty in temperature rise prediction, the system always tends to choose the safest control strategy, thus achieving an optimal match between cooling medium flow rate and heat dissipation risk. Simultaneously, because the joint probability considers the coupling constraints of all monitoring areas, it avoids the problems of local overheating or overall cooling imbalance that might result from independent control of a single area, ensuring the long-term reliable operation of the axial flux motor under complex operating conditions.
[0086] In summary, Monte Carlo sampling transforms complex joint probability calculations into an executable statistical counting process. A joint temperature rise prediction vector is used to simulate future temperature rise scenarios, and the safety confidence of each candidate flow rate is quantified using Monte Carlo estimates. Finally, the optimal sprinkler flow rate is determined by maximizing the joint probability. This risk-quantified control mechanism ensures that sprinkler decisions no longer rely on a single temperature point estimate but are based on a statistical assessment of the uncertainty of temperature rise across the entire domain, thereby effectively improving the robustness and safety of the control strategy.
[0087] In step S14, the opening degree of each branch solenoid valve of the guide manifold is controlled according to the spray flow rate value to perform spraying on the axial flux motor.
[0088] In this embodiment, the flow manifold is a cooling medium distribution device installed inside or around the axial flux motor. Its main pipe is connected to a coolant source and branches out into multiple branches. Each branch has a nozzle at its end that faces a different monitoring area on the stator surface. The opening degree of the branch solenoid valve refers to the degree of opening of the solenoid regulating valve installed on each branch of the flow manifold, which directly determines the flow rate of the cooling medium flowing through that branch.
[0089] In this embodiment, the opening degree of the solenoid valves in each branch is controlled according to the calculated spray flow rate value, aiming to implement the globally optimal flow rate requirement into specific actuator actions. This control process can, for example, employ a proportional-integral-derivative (PID) closed-loop control algorithm, feeding back the measured flow rate values of each branch to the controller to dynamically adjust the valve opening degree to eliminate errors; or, based on a pre-calibrated flow rate-opening degree mapping table, the corresponding control command can be obtained directly by looking up the table according to the target flow rate.
[0090] In this way, by precisely adjusting the opening of the solenoid valves in each branch, the cooling medium is sprayed onto the stator surface of the axial flux motor according to the optimized flow distribution strategy, thereby achieving precise suppression of the temperature field across the entire range and ensuring that the motor maintains thermal stability while operating efficiently.
[0091] Optionally, in step S14, controlling the opening of the solenoid valves of each branch of the guide manifold to perform spraying on the axial flux motor according to the spray flow rate value includes: In step S141, the spray flow rate value is divided by the total number of spray branches in the manifold to obtain the average flow rate value of a single branch.
[0092] In this embodiment of the disclosure, the total number of spray branches in the manifold is determined. This number typically corresponds to the number of monitoring areas divided on the stator surface of the axial flux motor or the actual number of physical nozzles. The globally optimal spray flow rate value calculated in the preceding steps is used as the divisor, and the total number of spray branches is used as the divisor to perform calculations, thereby calculating the average flow rate value of a single branch.
[0093] The calculation process aims to evenly distribute the determined total amount of cooling medium to each physical branch, providing a basic flow reference for the independent control of each branch. The average flow rate of a single branch serves as an intermediate variable connecting the output of the control algorithm with the input of the underlying actuator. Its unit can be, for example, liters per minute (L / min) or milliliters per second (ml / s), and the specific value depends on the total number of spray branches and the total spray flow rate.
[0094] In step S142, the flow rate and opening characteristic curve of the solenoid valve of a branch is queried based on the average flow rate value of a single branch to obtain the corresponding valve opening percentage.
[0095] The flow rate and opening characteristic curves are obtained in advance through experimental calibration and stored in the controller's non-volatile memory.
[0096] In this embodiment, based on the average flow rate of a single branch, a query and mapping are performed on a pre-stored flow rate versus opening characteristic curve to obtain the corresponding valve opening percentage. The flow rate versus opening characteristic curve is used to characterize the nonlinear relationship between the actual flow rate of the solenoid valve at different opening degrees; this relationship is not a simple linear proportion.
[0097] The characteristic curves were constructed during the offline debugging phase of the system: through experimental calibration, a high-precision flow meter was used to collect the steady-state flow output of the solenoid valve under different opening commands, and the corresponding data points between the opening percentage and the actual flow value were recorded. Then, a flow-opening characteristic curve representing the inherent properties of the physical device was generated. The flow-opening characteristic curve can be stored in the form of a lookup table or in the form of polynomial fitting coefficients.
[0098] To ensure data integrity after a power outage and restart, the curve data is permanently stored in the controller's non-volatile memory. This non-volatile memory can be, for example, electrically erasable programmable read-only memory (EEPROM) or flash memory, which maintains data integrity even after power loss. During operation, based on the average flow rate of a single branch, interpolation or lookup operations are performed on the stored flow-opening characteristic curve to deduce the valve opening percentage corresponding to that flow rate. The valve opening percentage is typically expressed as a percentage (e.g., 0% to 100%) and is used to define the displacement ratio of the solenoid valve spool relative to the fully open position.
[0099] In step S143, the valve opening percentage is converted into the duty cycle of the pulse width modulation signal and output to the drive circuit of the solenoid valve of the branch. The drive circuit adjusts the opening degree of the solenoid valve according to the duty cycle.
[0100] In this embodiment, the acquired valve opening percentage is converted into the duty cycle of a pulse width modulation (PWM) signal, and the generated signal is output to the drive circuit of the solenoid valve in that branch, thereby realizing the physical conversion from digital control commands to analog drive signals. A pulse width modulation (PWM) signal is a digital modulation method that simulates signal amplitude by encoding the width of a series of pulses.
[0101] This embodiment linearly maps the valve opening percentage or maps it according to a preset function to the duty cycle of a pulse width modulation (PWM) signal. The duty cycle can be the ratio of the duration of the high level within one pulse cycle to the total cycle time, usually expressed as a percentage. For example, when the valve opening percentage is 50%, the corresponding PWM signal duty cycle can be set to 50%. The drive circuit, as an electronic circuit module responsible for power amplification, receives the logic-level PWM signal at its input and connects to the coil of the solenoid valve at its output. The drive circuit adjusts the average voltage or current output to the solenoid valve coil according to the input duty cycle, thereby changing the magnitude of the magnetic force inside the solenoid valve.
[0102] In this way, the drive circuit precisely controls the displacement of the solenoid valve core, that is, adjusts the opening degree of the solenoid valve, so that the actual flow rate of the cooling medium flowing through this branch is stabilized near the target average flow rate value, thus completing the precise spray cooling control of the axial flux motor.
[0103] In summary, through experimentally calibrated nonlinear compensation and digital control of pulse width modulation signals, the nonlinear error and execution lag of the solenoid valve response were eliminated. The optimal flow distribution strategy obtained from the top-level calculation was transformed into the precise mechanical action of each branch solenoid valve, thereby ensuring the precise delivery of the cooling medium in the spatial dimension and achieving effective suppression of the temperature field across the entire axial flux motor.
[0104] In this embodiment, based on the number of teeth and slots of the stator core of the axial flux motor, the end surface area of each stator tooth of the axial flux motor is divided into a tooth monitoring area. In the structural design of the axial flux motor, the stator core is usually formed by stacking multiple laminations, and its geometry has obvious periodic characteristics. The stator core mainly includes stator teeth arranged alternately along the circumferential direction and slots for accommodating windings. The number of teeth and slots is obtained based on the design parameters of the stator core.
[0105] In most axial flux motor designs, the number of teeth and slots are equal or in a specific ratio, and they are distributed in a circumferential array. The main function of each stator tooth is to provide a low magnetic reluctance path for the magnetic flux and is also the main area of iron loss concentration. Its end surface area directly faces the air gap or cooling medium, which is a key interface for heat exchange. Therefore, the end surface area of each stator tooth is independently divided as a tooth monitoring area. This division process corresponds to the meshing of the stator circumference in physical space. For example, taking the central axis of each stator tooth as a reference, extending to the center lines of adjacent slots on both sides, the enclosed end surface area is defined as a tooth monitoring area. This division method ensures that the boundary of the monitoring area coincides with the physical boundary of the motor structure (such as the tooth slot boundary), avoiding division across the physical structure, thus making the temperature distribution in each area relatively consistent and reducing temperature gradient interference caused by differences in boundary physical properties.
[0106] Furthermore, the end surface area corresponding to each slot of the axial flux motor is divided into a slot monitoring area. The tooth monitoring area and the slot monitoring area together constitute multiple monitoring areas, and the total number of monitoring areas is equal to the sum of the number of stator teeth and the number of slots.
[0107] In this embodiment of the disclosure, besides the stator teeth, the stator slots are the mounting space for the winding coils, and the copper loss (i.e., I) 2 R-loss mainly originates inside the winding and is conducted to the slot opening area through the slot walls. The slot opening area is often also a region with high heat flux density, especially in spray cooling scenarios. Whether the cooling medium can effectively enter the slot opening or cover the slot opening surface directly determines the winding's heat dissipation effect.
[0108] Therefore, monitoring only the tooth temperature is insufficient to reflect the actual thermal state of the winding. Based on the tooth monitoring area, the end surface area corresponding to each slot is further divided. Specifically, the slot monitoring area corresponds to the spatial opening between two adjacent stator teeth and its end projection surface. Geometrically, it can be the area enclosed by the sides of two adjacent tooth monitoring areas and the inner circle boundary of the stator yoke. By defining the area corresponding to each slot as an independent slot monitoring area, a complete spatial monitoring grid covering the main heat-generating components of the stator (teeth and slots) is constructed. According to the above division logic, the final set of monitoring areas consists of Nt tooth monitoring areas and Ns slot monitoring areas.
[0109] The total number of monitoring areas N total Satisfying N total=Nt+Ns. This one-to-one correspondence allows monitoring points to accurately cover each heating unit, avoiding monitoring blind spots and preventing sensor redundancy caused by overlapping areas. In practical applications, if both the number of stator teeth and slots are 12, the total number of monitoring areas is 24, forming a high spatial resolution temperature sensing array. Furthermore, each monitoring area is assigned a unique area number, and each area number is associated with the corresponding stator tooth or slot position in an area correspondence table.
[0110] In this embodiment of the disclosure, after the physical space is divided into regions, a unique identifier is established for each monitoring region to facilitate digital management, data indexing, and mapping with the manifold spray branches of the control system. A standardized mapping from physical location information to numerical numbers is achieved by constructing a region correspondence table. First, all the divided monitoring regions are traversed. The numbering rule can be clockwise or counterclockwise, for example, starting from the 0° phase position and sequentially labeled Area 01, Area 02, and so on up to Area N. Each number must be unique and cannot be repeated. Second, the specific physical location of each monitoring region is determined. For the tooth monitoring region, its location information includes, but is not limited to, the sequence number of the stator tooth (e.g., tooth 1, tooth 2, etc.) and the angular coordinates of that tooth on the circumference; for the slot monitoring region, its location information includes the corresponding slot sequence number and its angular coordinates.
[0111] Finally, the aforementioned region numbers are associated with their physical locations to form structured data records, which are then stored in a region correspondence table. This table can be stored in a key-value structure, a relational database table, or a JSON file. The region number serves as the primary key, and the physical location description (e.g., tooth number: 1, angle range: 0°-30°) is used as the field value. This table is generated during system initialization and stored in the controller's non-volatile memory. During subsequent spray control, when the system reads temperature sensor data for a specific number, it can immediately locate the corresponding stator tooth or slot by querying the region correspondence table, thus determining which branch solenoid valve in the manifold should be activated. This mapping mechanism provides the necessary data foundation for precise spray control based on the overall temperature distribution, ensuring that cooling actions are accurately directed to the specific physical areas requiring cooling.
[0112] In summary, by analyzing the motor's geometry, discretizing the physical space, and establishing a digital index, a rigorous and physically meaningful monitoring area division scheme was developed. This scheme not only ensures the spatial coverage and representativeness of temperature monitoring but also provides structured data support for subsequent predictive model input and spray actuator control through standardized data interfaces, enabling the spray control system to achieve on-demand cooling based on precise spatial location information.
[0113] For example, this application may also include a method for configuring the spray branches of the flow manifold and the monitoring areas. In this embodiment, the number of spray branches of the flow manifold is equal to the number of monitoring areas, and each spray branch is configured according to the area number in the area correspondence table, so that each spray branch corresponds to a unique monitoring area.
[0114] When implementing this method, the physical structure of the manifold is first designed and selected to ensure that it has independent fluid channels matching the number of monitoring areas on the stator surface. The number of spray branches is strictly based on the total number of monitoring areas. For example, if the stator surface is divided into N monitoring areas according to the number of teeth and slots, then the internal flow channel design or external interface configuration of the manifold should include N independent spray branches. This quantitative equivalence is a prerequisite for achieving precise spatial cooling, ensuring that the cooling medium can be distributed to each heat-sensitive area and avoiding the loss of direct cooling for some monitoring areas due to insufficient channel numbers. Establishing a deterministic mapping relationship between spray branches and monitoring areas is the core of the configuration process. This is achieved by referencing the aforementioned generated area correspondence table. The area correspondence table pre-stores the unique area number of each monitoring area and the stator tooth position or slot position associated with that number.
[0115] During the hardware connection or software control logic configuration phase, the physical identifier of each spray branch (such as pipe number, solenoid valve address, or control interface index) is bound to the area number in the area mapping table. For example, the first spray branch is mapped to the tooth monitoring area with area number 1, the second spray branch is mapped to the slot monitoring area with area number 2, and so on, until all spray branches are configured. This one-to-one physical implementation of the configuration can be achieved by designing specific nozzle orientations at the manifold outlet or by physically positioning the pipeline routing to ensure that the coverage of the cooling oil flow accurately falls within its corresponding monitoring area.
[0116] The above configuration assigns a clear cooling task to each spray branch, namely, a unique monitoring area. This mapping relationship avoids ineffective spraying of the cooling medium in non-target areas, and also eliminates localized overheating or cooling redundancy caused by mapping confusion.
[0117] Based on this, when the control unit needs to adjust the spray flow rate according to the temperature difference of each monitoring area, it can accurately send the control command for a certain area number to the corresponding spray branch according to the mapping relationship, thereby realizing differentiated and refined spray control based on the temperature distribution information of the whole area.
[0118] In summary, by establishing a hardware mapping relationship with equal quantity and one-to-one numbering, the manifold system can accurately respond to the differentiated heat load revealed by the stator surface temperature distribution vector obtained in the above embodiments. This structural configuration ensures that the thermal state of each monitoring area can be directly intervened by an independent physical spray branch, providing a solid hardware foundation for the independent and coordinated optimization of the flow of each branch based on the prediction results of the multi-task variational inference model. This maximizes the utilization efficiency of the cooling medium while ensuring the overall thermal safety of the motor.
[0119] The above scheme obtains the real-time temperature distribution vector from multiple monitoring areas on the stator surface, and combines it with rotational speed and torque as inputs. It models the temperature rise prediction for each area as a multi-task learning problem, utilizing a shared latent variable space to capture the correlation between the temperature rise responses of each area, thus improving the overall prediction accuracy of the global temperature distribution. A multi-task variational inference model is employed to output the variational posterior distribution of the predicted temperature rise for each monitoring area, including the predicted mean and covariance matrix. The covariance matrix quantitatively characterizes the uncertainty of the temperature rise prediction for each area and the correlation between areas, enabling the system to simultaneously grasp the predicted temperature rise value and its reliability.
[0120] Furthermore, based on the variational posterior distribution of predicted temperature rise in each region and the preset temperature rise threshold, the joint probability that the predicted temperature rise values of all monitored regions are simultaneously lower than their respective thresholds is calculated. The spray flow rate value that maximizes this joint probability is then selected, achieving a globally optimal allocation between cooling effect and energy consumption. Through collaborative decision-making driven by the global temperature distribution vector, the opening degree of the solenoid valves in each branch of the manifold is collaboratively optimized, avoiding local overheating or waste of cooling medium due to prediction deviations. This improves the reliability, consistency, and energy efficiency of motor thermal management, effectively suppresses local hot spots, and enhances thermal management efficiency and operational reliability. A spray control system for the axial flux motor manifold based on a multi-task variational inference model is implemented. This system can quantify the uncertainty of temperature rise prediction and optimize the spray flow rate with the goal of maximizing global safety confidence. Combined with refined monitoring area division and branch configuration, it effectively improves the robustness, safety, and energy efficiency of the motor cooling system.
[0121] In this way, the spray control of the axial flux motor manifold based on the multi-task variational inference model is realized. It can quantify the uncertainty of temperature rise prediction and optimize the spray flow with the goal of maximizing the safety confidence of the whole domain. Combined with the refined monitoring area division and branch configuration, the robustness, safety and energy efficiency of the motor cooling system are effectively improved.
[0122] See Figure 4 As shown, this disclosure also provides an axial flux motor manifold spray control device 400, wherein the axial flux motor manifold spray control device 400 includes: an acquisition module 410, configured to acquire the rotational speed and torque of the axial flux motor under operating conditions, and to acquire the real-time temperature of multiple monitoring areas on the stator surface of the axial flux motor, forming a temperature distribution vector corresponding to the stator surface; and an input module 420, configured to input the real-time acquired temperature distribution vector, the rotational speed, and the torque as input vectors to a pre-trained multi-task variational inference model, to obtain the variational posterior distribution of the predicted temperature rise of each monitoring area output by the multi-task variational inference model; wherein the multi-task variational inference model will predict the temperature rise of each monitoring area. The task is considered as multiple related tasks, which are interconnected through a shared latent variable space. With the maximization of the variational lower bound as the training objective and the input vector as a condition, the predicted temperature rise mean and covariance matrix of each monitoring area are determined, and the variational posterior distribution of the predicted temperature rise of each monitoring area is predicted. The calculation module 430 is configured to calculate the spray flow rate value that maximizes the joint probability of the predicted temperature rise value of all monitoring areas being lower than the preset temperature rise threshold corresponding to each monitoring area, based on the variational posterior distribution of the predicted temperature rise of each monitoring area and the preset temperature rise threshold corresponding to each monitoring area. The control module 440 is configured to control the opening of the solenoid valves of each branch of the guide manifold to perform spraying on the axial flux motor according to the spray flow rate value.
[0123] In one alternative approach, the multi-task variational inference model outputs the variational posterior distribution of the predicted temperature rise for each of the monitoring regions as follows: Based on an input vector constructed from the temperature distribution vector, the rotational speed, and the torque, a global scalar feature is output based on a shared latent variable space, wherein the dimension of the latent variable space is determined according to the total number of monitoring regions, and the global scalar feature is the output of the shared latent variables after being mapped by a multilayer perceptron network; Based on the output projection matrix corresponding to each monitoring region and the global scalar feature, the mean predicted temperature rise for each monitoring region is obtained, wherein the output projection matrix is a linear transformation matrix mapping from the dimension of the latent variable space to a single-dimensional output space, and the dimension of each output projection matrix is determined according to the dimension of the latent variable space; The mean predicted temperature rise for each monitoring region is combined with the pre-trained noise variance corresponding to the monitoring region to output the variational posterior distribution of the predicted temperature rise for each monitoring region.
[0124] In one alternative approach, the prior distribution of the shared latent variable is set to a standard multivariate Gaussian distribution, and the likelihood function of the output of each monitoring region is set to a Gaussian distribution with the mean of the mapping value of the output projection matrix and the variance of the noise variance of each monitoring region. The noise variance is used as a model parameter in training. The training objective of the model is to maximize the variational lower bound, which is equal to the sum of the expected values of the log-likelihoods of each monitoring region minus the Kuhlberg-Klebler divergence between the variational posterior distribution and the prior distribution of the shared latent variable.
[0125] In one alternative approach, the multi-task variational inference model outputs the global scalar features as follows: Using an input vector constructed from the temperature distribution vector, the rotational speed, and the torque as conditions, a variational encoder network maps the input vector to the mean vector and covariance matrix of a variational posterior distribution in a shared latent variable space; random sampling is performed from the variational posterior distribution for a preset number of samplings, each sampling yielding a shared latent variable sample vector with the same preset dimension, resulting in a preset number of shared latent variable sample vectors; each shared latent variable sample vector is input into the multilayer perceptron network to obtain the global scalar features output by the multilayer perceptron network.
[0126] In an optional manner, the calculation module 430 is configured to: randomly sample a predicted temperature rise from each of the monitoring areas of the variational posterior distribution in each round according to a preset number of sampling rounds, forming a temperature prediction value vector corresponding to each round of sampling, and obtaining a joint temperature rise prediction vector corresponding to the preset number of sampling rounds; for each candidate spray flow rate value, count the number of vectors in the joint temperature rise prediction vector under the candidate spray flow rate value where the predicted temperature rise values of all monitoring areas are lower than the preset temperature rise threshold corresponding to each monitoring area; use the ratio between the number of vectors and the preset number of sampling rounds as the Monte Carlo estimate of the joint probability corresponding to the candidate spray flow rate value; compare the Monte Carlo estimates corresponding to each candidate spray flow rate value, and select the candidate spray flow rate value with the largest Monte Carlo estimate as the spray flow rate value with the largest joint probability.
[0127] In one optional embodiment, the calculation module 430 is configured to: divide the spray flow rate value by the total number of spray branches in the manifold to obtain the average flow rate value of a single branch; query the flow rate and opening characteristic curve of the solenoid valve of that branch based on the average flow rate value of the single branch to obtain the corresponding valve opening percentage, wherein the flow rate and opening characteristic curve is obtained in advance through experimental calibration and stored in the non-volatile memory of the controller; convert the valve opening percentage into the duty cycle of a pulse width modulation signal and output it to the drive circuit of the solenoid valve of that branch, wherein the drive circuit adjusts the opening degree of the solenoid valve according to the duty cycle.
[0128] In one optional approach, the multiple monitoring areas on the stator surface of the axial flux motor are obtained by dividing the stator surface as follows: based on the number of teeth and slots of the stator core of the axial flux motor, the end surface area of each stator tooth of the axial flux motor is divided into a tooth monitoring area; the end surface area corresponding to each slot of the axial flux motor is divided into a slot monitoring area, and the tooth monitoring area and the slot monitoring area together constitute multiple monitoring areas, and the total number of monitoring areas is equal to the sum of the number of stator teeth and the number of slots; each monitoring area is assigned a unique area number, and each area number is associated with the stator tooth position or slot position to which the corresponding monitoring area belongs and stored in an area correspondence table.
[0129] In one alternative approach, the number of spray branches in the manifold is equal to the number of monitoring areas, and each spray branch is configured in a one-to-one correspondence with the area number in the area correspondence table, so that each spray branch corresponds to a unique monitoring area.
[0130] Specific limitations regarding the axial flux motor manifold spray control device can be found in the above description of the axial flux motor manifold spray control method, and will not be repeated here. Each module in the aforementioned axial flux motor manifold spray control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in a computer device, or stored in software in the memory of a computer device, so that the processor can call and execute the corresponding operations of each module.
[0131] This disclosure also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the methods described in the foregoing embodiments.
[0132] This disclosure also provides an electronic device, including: a memory storing a computer program thereon; and a processor for executing the computer program in the memory to implement the steps of any of the methods described in the foregoing embodiments.
[0133] Figure 5The axial flux motor manifold spray control device 100 shown includes a processor 1001 and a memory 1003. The processor 1001 and the memory 1003 are connected, for example, via a bus 1002. Optionally, the axial flux motor manifold spray control device 100 may further include a communication component, which can be used for data interaction between the device 100 and other devices, such as sending or receiving data. It should be noted that in actual scheduling, the communication component is not limited to one, and the structure of this axial flux motor manifold spray control device 100 does not constitute a limitation on the embodiments of this application.
[0134] Processor 1001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 1001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0135] Bus 1002 may include a pathway for transmitting information between the aforementioned components. Bus 1002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 1002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0136] The memory 1003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing program code and capable of being read by a computer, without limitation herein.
[0137] The memory 1003 is used to store program code for executing embodiments of the present disclosure, and is controlled by the processor 1001 for execution. The processor 1001 is used to execute the program code stored in the memory 1003 to implement the steps shown in the aforementioned embodiments of the axial flux motor manifold spray control method.
[0138] This disclosure also provides a computer-readable storage medium storing program code. When the program code is executed by a processor, it can implement the steps and corresponding content of the aforementioned embodiment of the axial flux motor manifold spray control method.
[0139] The preferred embodiments of the present disclosure have been described in detail above with reference to the accompanying drawings. However, the present disclosure is not limited to the specific details of the above embodiments. Within the scope of the technical concept of the present disclosure, various changes, modifications, substitutions and variations can be made to these embodiments, and all such changes, modifications, substitutions and variations fall within the protection scope of the present disclosure.
[0140] It should also be noted that the various specific technical features described in the above embodiments can be combined in any suitable manner without contradiction, and such combinations should also be considered as part of this disclosure. To avoid unnecessary repetition, this disclosure will not further describe the various possible combinations. The technical scope of this application is not limited to the contents of the specification, but must be determined according to the scope of the claims.
Claims
1. A method for controlling the spraying of an axial flux motor manifold, characterized in that, The method includes: The rotational speed and torque of the axial flux motor under operating conditions are obtained, as well as the real-time temperature of multiple monitoring areas on the stator surface of the axial flux motor, to form a temperature distribution vector corresponding to the stator surface. Using the real-time acquired temperature distribution vector, rotational speed, and torque as input vectors, the data is input to a pre-trained multi-task variational inference model to obtain the variational posterior distribution of the predicted temperature rise for each monitoring area output by the multi-task variational inference model. The multi-task variational inference model treats the temperature rise prediction task for each monitoring area as multiple related tasks, which are interconnected through a shared latent variable space. With maximizing the variational lower bound as the training objective and using the input vector as a condition, the model determines the predicted temperature rise mean and covariance matrix for each monitoring area, thereby predicting the variational posterior distribution of the predicted temperature rise for each monitoring area. Based on the variational posterior distribution of the predicted temperature rise of each monitoring area and the preset temperature rise threshold corresponding to each monitoring area, calculate the spray flow rate value that maximizes the joint probability of making the predicted temperature rise of all monitoring areas simultaneously lower than the preset temperature rise threshold corresponding to each monitoring area. The opening degree of each branch solenoid valve of the guide manifold is controlled according to the spray flow rate value to perform spraying on the axial flux motor.
2. The method according to claim 1, characterized in that, The multi-task variational inference model outputs the variational posterior distribution of the predicted temperature rise for each of the monitoring areas in the following manner: Based on the input vector constructed from the temperature distribution vector, the rotational speed, and the torque, a global scalar feature is output based on the shared latent variable space, wherein the dimension of the latent variable space is determined according to the total number of monitoring areas, and the global scalar feature is the output of the shared latent variables after being mapped by a multilayer perceptron network; Based on the output projection matrix corresponding to each monitoring area and the global scalar feature, the predicted average temperature rise of each monitoring area is obtained. The output projection matrix is a linear transformation matrix that maps from the dimension of the latent variable space to a single-dimensional output space. The dimension of each output projection matrix is determined according to the dimension of the latent variable space. The predicted mean temperature rise of each monitoring area is combined with the pre-trained noise variance of the corresponding monitoring area to output the variational posterior distribution of the predicted temperature rise of each monitoring area.
3. The method according to claim 2, characterized in that, The prior distribution of the shared latent variable is set to a standard multivariate Gaussian distribution, and the likelihood function of the output of each monitoring area is set to a Gaussian distribution with the mean of the mapping value of the output projection matrix and the variance of the noise variance of each monitoring area. The noise variance is used as a model parameter in training. The training objective of the model is to maximize the variational lower bound, which is equal to the sum of the expected values of the log-likelihoods of each of the monitoring regions minus the Kuhlberg-Klebler divergence between the variational posterior distribution and the prior distribution of the shared latent variable.
4. The method according to claim 2, characterized in that, The step of outputting global scalar features based on the input vector constructed from the temperature distribution vector, the rotational speed, and the torque, and using a shared latent variable space, includes: Using the temperature distribution vector, the rotational speed, and the torque as conditions, the input vector is mapped to the mean vector and covariance matrix of the variational posterior distribution in the shared latent variable space through a variational encoder network; Random sampling is performed from the variational posterior distribution for a preset number of samplings. Each sampling yields a shared latent variable sample vector with the same preset number of dimensions, resulting in a total of a preset number of shared latent variable sample vectors. Each of the shared latent variable sample vectors is input into the multilayer perceptron network to obtain the global scalar features output by the multilayer perceptron network.
5. The method according to claim 1, characterized in that, The step of calculating the spray flow rate value that maximizes the joint probability of the predicted temperature rise values of all monitoring areas being simultaneously lower than the preset temperature rise thresholds corresponding to each monitoring area, based on the variational posterior distribution of the predicted temperature rise of each monitoring area and the preset temperature rise threshold corresponding to each monitoring area, includes: According to the preset number of sampling rounds, in each round, a predicted temperature rise is randomly sampled from each of the monitoring areas of the variational posterior distribution to form a temperature prediction vector corresponding to each round of sampling, thereby obtaining a joint temperature rise prediction vector corresponding to the preset number of sampling rounds. For each candidate spray flow rate value, count the number of vectors in the joint temperature rise prediction vector where the predicted temperature rise value of all monitored areas is lower than the preset temperature rise threshold corresponding to each monitored area under that candidate spray flow rate value; The ratio between the number of vectors and the preset number of extractions is used as the Monte Carlo estimate of the joint probability corresponding to the candidate spray flow rate value; Compare the Monte Carlo estimates corresponding to each candidate spray flow rate value, and select the candidate spray flow rate value with the largest Monte Carlo estimate value as the spray flow rate value with the highest joint probability.
6. The method according to claim 5, characterized in that, The step of controlling the opening of the solenoid valves of each branch of the guide manifold to perform spraying on the axial flux motor according to the spray flow rate value includes: Divide the spray flow rate value by the total number of spray branches in the manifold to obtain the average flow rate value of a single branch. The flow rate and opening characteristic curve of the solenoid valve of a branch is retrieved based on the average flow rate of a single branch to obtain the corresponding valve opening percentage. The flow rate and opening characteristic curve is obtained in advance through experimental calibration and stored in the non-volatile memory of the controller. The valve opening percentage is converted into the duty cycle of a pulse width modulation signal and output to the drive circuit of the solenoid valve in that branch. The drive circuit adjusts the opening degree of the solenoid valve according to the duty cycle.
7. The method according to any one of claims 1-6, characterized in that, The multiple monitoring areas on the stator surface of the axial flux motor are obtained by dividing it in the following way: Based on the number of teeth and slots of the stator core of the axial flux motor, the end surface area of each stator tooth of the axial flux motor is divided into a tooth monitoring area. The end surface area corresponding to each slot of the axial flux motor is divided into a slot monitoring area. The tooth monitoring area and the slot monitoring area together constitute multiple monitoring areas, and the total number of monitoring areas is equal to the sum of the number of stator teeth and the number of slots. Each monitoring area is assigned a unique area number, and each area number is associated with the stator tooth position or slot position of the corresponding monitoring area and stored in the area correspondence table.
8. The method according to claim 7, characterized in that, The number of spray branches in the manifold is equal to the number of monitoring areas. Each spray branch is configured according to the area number in the area correspondence table, so that each spray branch corresponds to a unique monitoring area.
9. A spray control device for an axial flux motor manifold, characterized in that, The device includes: The acquisition module is configured to acquire the rotational speed and torque of the axial flux motor under operating conditions, and to acquire the real-time temperature of multiple monitoring areas on the stator surface of the axial flux motor, forming a temperature distribution vector corresponding to the stator surface. The input module is configured to input the real-time acquired temperature distribution vector, rotational speed, and torque as input vectors into a pre-trained multi-task variational inference model to obtain the variational posterior distribution of the predicted temperature rise of each monitoring area output by the multi-task variational inference model. The multi-task variational inference model treats the temperature rise prediction task of each monitoring area as multiple related tasks, which are interconnected through a shared latent variable space. With maximizing the variational lower bound as the training objective and the input vector as a condition, it determines the predicted temperature rise mean and covariance matrix of each monitoring area, and predicts the variational posterior distribution of the predicted temperature rise of each monitoring area. The calculation module is configured to calculate the spray flow rate value that maximizes the joint probability of making the predicted temperature rise values of all monitoring areas simultaneously lower than the preset temperature rise thresholds corresponding to each monitoring area, based on the variational posterior distribution of the predicted temperature rise of each monitoring area and the preset temperature rise thresholds corresponding to each monitoring area. The control module is configured to control the opening of the solenoid valves of each branch of the guide manifold to perform spraying on the axial flux motor according to the spray flow rate value.
10. An electronic device, characterized in that, include: A memory on which computer programs are stored; A processor for executing the computer program in the memory to implement the steps of the method according to any one of claims 1-8.
