Hydroelectric generating set sound-vibration-temperature multi-modal fusion fault diagnosis method and system
By performing two-dimensional hierarchical sampling and dynamic weight allocation of operating conditions and fault categories in hydropower units, the problems of uneven sample distribution and noise interference in multimodal fault diagnosis of hydropower units are solved, achieving high-quality multimodal feature fusion and stable fault diagnosis results.
Patent Information
- Application Number
- CN202611516904.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-28
- Publication Date
- 2026-11-20
AI Technical Summary
Existing multi-modal fault diagnosis technologies for hydropower units are susceptible to changes in operating conditions and noise interference specific to single modes during model training when there are few fault samples. Furthermore, the uneven distribution of samples under different operating conditions leads to a decrease in the model's feature learning ability under rare operating conditions.
By performing two-dimensional hierarchical sampling based on operating condition parameters and fault categories, training batches are constructed, the mean of modal feature vectors and prototype dispersion are calculated, fusion weights are dynamically allocated, and a total loss function including a regularization term for prototype distance consistency between modalities is constructed to achieve high-quality fusion of cross-modal features.
It effectively balances the training coverage ratio of different working conditions and fault categories, improves the model's feature learning ability and diagnostic generalization performance under rare working conditions and small sample fault categories, and reduces online computational complexity and fault diagnosis latency.
Smart Images

Figure CN123138947A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a multi-modal fusion fault diagnosis method and system for hydropower units, which belongs to the field of intelligent condition monitoring technology for hydropower units. Background Technology
[0002] During operation, hydropower units generate sound, vibration, and temperature responses related to their operating status, including the turbine, generator, bearings, and auxiliary equipment such as speed regulating pumps and butterfly valve pumps. Traditional hydropower unit condition monitoring primarily relies on structured operating parameters such as vibration, sway, and temperature for fault diagnosis. However, its ability to characterize early, subtle faults and anomalies in components that are inconvenient to measure directly is limited. With the development of machine acoustic signature monitoring technology, sound signals, characterized by wide bandwidth and non-contact acquisition, are increasingly being combined with vibration and temperature signals to form a multi-parameter fusion-based unit condition monitoring method.
[0003] Existing multimodal fault diagnosis technologies for sound, vibration, and temperature typically extract features from different modal signals separately, then directly concatenate these features to form a fused feature, and finally use a classification network for fault identification. When the number of fault samples is small, a prototype network approach can be used, forming a category prototype based on the mean of features from samples of the same fault category, and classifying the fault based on the distance between the test sample and the category prototype. However, because sound, vibration, and temperature signals have different physical formation mechanisms, sampling characteristics, and noise distributions, directly concatenating features from different modes can easily introduce the unique operating condition variations and noise interference of each single mode into the fused feature, causing the fused feature to fail to fully reflect the fault information commonly represented by different modes.
[0004] Meanwhile, the operating conditions of hydropower units vary widely, and the number of samples corresponding to different operating conditions usually differs significantly. When training the fault diagnosis model using random mini-batch sampling, some training batches may contain a specific type of operating condition or certain common fault categories, while lacking samples for other operating conditions and fault categories. This results in significant distribution differences between different training batches, causing fluctuations in the model training process and reducing the model's feature learning ability under fault categories and rare operating conditions with fewer samples. Summary of the Invention
[0005] To address the problems existing in the prior art, this invention proposes a multi-modal fusion fault diagnosis method and system for hydropower units, which integrates acoustic, vibration, and temperature modes.
[0006] The technical solution of the present invention is as follows: On the one hand, this invention proposes a multi-modal fault diagnosis method for hydropower units, comprising the following steps: Collect sound, vibration and temperature signals and operating parameters of hydropower units, determine operating condition labels based on operating condition parameters, determine fault category labels based on operation and maintenance records, and construct training batches by stratifying sampling according to the two types of labels. The batch samples were trained by encoding sound, vibration and temperature feature extractors respectively to obtain three types of single-modal feature vectors. The mean of the modal feature vectors was calculated according to the fault category to obtain the single-modal fault prototype. The average distance between the feature vector and the corresponding prototype was calculated to obtain the prototype dispersion. The fusion weights are determined based on the prototype dispersion of the modal fault categories. The modal fault prototypes are weighted and fused to generate cross-modal fusion prototypes. The three single-modal feature vectors of the sample are weighted according to the fusion weights of the candidate fault categories to generate category-conditional fusion features. Calculate the prototype distance between the category conditional fusion features and the cross-modal fusion prototype, construct the classification loss, combine the inter-modal prototype distance consistency regularization term to construct the total loss, and train and update the modal feature extractor; Extract single-mode features from the sound, vibration, and temperature signals to be tested, generate conditional fusion features for the test category according to the candidate fault categories, calculate the distance between the features and the corresponding cross-modal fusion prototype, and take the fault category corresponding to the minimum distance as the diagnostic result.
[0007] Preferably, the method determines the operating condition label based on the operating condition parameters and determines the fault category label in conjunction with the operation and maintenance records, including the following steps: The collected raw sound, vibration and temperature signals are subjected to outlier removal and filtering preprocessing, and then framed according to a preset time window. The time correspondence between each modal signal segment within the same time window is established to form a multimodal sample sequence. The active power and head parameters of the unit corresponding to the time of the multimodal sample sequence are acquired simultaneously as operating condition labels; The fault types corresponding to the associated operation and maintenance records are used as fault category labels to obtain multimodal training samples with operation condition labels and fault category labels.
[0008] Preferably, the method involves stratified sampling based on two types of labels to construct training batches, including the following steps: Based on active power and head parameters, the operating status is divided into four typical operating conditions: low load, medium load, high load, and start-up / shutdown transition. Each typical operating condition is further divided into continuous subdivided operating condition intervals, forming the operating condition dimension. Based on the type and severity of the fault, it is divided into normal state, bearing faults, hydraulic faults, electrical faults and auxiliary machine faults, which constitute the fault dimensions; Each multimodal training sample is mapped to the corresponding working condition category and fault category to establish a hierarchical sample pool; The target sample size for each working condition in the current training batch is determined according to the preset working condition allocation ratio. Within each working condition, samples are collected according to the fault category. For fault categories with fewer samples than the preset value, samples are supplemented by repeated sampling or data augmentation. For fault categories with more samples than the preset value, the sampling quantity is limited to construct the current training batch.
[0009] Preferably, the method calculates the mean of modal feature vectors according to fault categories to obtain single-mode fault prototypes, and calculates the average distance between the feature vectors and the corresponding prototypes to obtain the prototype dispersion, including the following steps: The sound feature extractor, vibration feature extractor and temperature feature extractor are used to encode the features of the multimodal training samples in the training batch, and the original signal sequences of each modality are mapped to a feature space of a unified dimension to obtain the corresponding three types of single-modal feature vectors. For any fault category in the current training batch, calculate the arithmetic mean of the single-mode feature vectors of all samples of the same mode under that fault category, and use it as the single-mode fault prototype of that mode under that fault category; Calculate the Euclidean distance between the feature vectors of each sample of the same mode under the fault category and the corresponding single-mode fault prototype, and take the average value of the Euclidean distance as the prototype dispersion of the mode under the fault category; the prototype dispersion characterizes the degree of dispersion of the distribution of the same type of fault samples in the modal feature space.
[0010] Preferably, the method calculates category conditional fusion features based on prototype discreteness, including the following steps: Calculate the reciprocal of the prototype discreteness of each mode, and use the reciprocal normalization ratio as the initial fusion weight of each mode under the corresponding fault category; Obtain the maximum and minimum values of the initial fusion weights for the three modalities. When the maximum value is greater than the minimum value, linearly map each initial fusion weight to the weight range defined by the preset minimum stable weight and maximum stable weight to obtain the corrected fusion weight. The modified fusion weights are normalized and recalibrated to obtain the final fusion weights; Using the final fusion weights of each modality for the current fault category, the three single-modal fault prototypes of the fault category are weighted and summed to generate the cross-modal fusion prototype of the fault category. For any sample to be classified and any candidate fault category in the current training batch, the final fusion weight corresponding to the candidate fault category is used as the fusion parameter. The three single-modal feature vectors of the sample are weighted and summed to generate the category conditional fusion feature of the sample under the corresponding candidate fault category.
[0011] Preferably, the method for constructing the total loss includes the following steps: Calculate the Euclidean distance between the category-conditional fusion feature of the sample under the corresponding candidate fault category and the cross-modal fusion prototype of the candidate fault category, and use it as the prototype distance; The negative form of the prototype distance is calculated by exponential normalization to obtain the probability that the sample is classified as each candidate fault category. The fault classification loss is constructed by combining the true fault category label of the sample with the cross-entropy function. For any two different fault categories, calculate the Euclidean distance between two fault prototypes in the same mode. Calculate the sum of the magnitudes of the distance differences between corresponding fault prototypes between pairwise combinations of different modes, and use it as the regularization term for the consistency of prototype distances between modes; The fault classification loss is added to the inter-modal prototype distance consistency regularization term multiplied by a preset non-negative regularization coefficient to generate the total model training loss.
[0012] Preferably, the method for generating diagnostic results includes the following steps: In the current training iteration, backpropagation of the gradient is calculated based on the total training loss of the model, and the parameters of each modality feature extractor are updated using the gradient descent algorithm. In the next training batch, the single-modal feature vector, single-modal fault prototype, prototype discreteness and fusion weight are recalculated so that the fusion weight is updated synchronously with the evolution of the feature space until the preset convergence condition or training round number is reached to complete the model training. Save the parameters of each modal feature extractor after training, the cross-modal fusion prototype of each fault category, and the modal fusion weights to construct an edge fault diagnosis model; During online diagnosis, the real-time multimodal signals of the hydropower unit under test are encoded using each modal feature extractor, and the corresponding conditional fusion features of the test category are generated by combining the modal fusion weights of each candidate fault category. Calculate the Euclidean distance between the conditional fusion features of each test category and the cross-modal fusion prototype of the corresponding candidate fault category, and take the candidate fault category with the smallest Euclidean distance as the real-time fault diagnosis result of the hydropower unit.
[0013] On the other hand, the present invention also proposes a multi-modal fusion fault diagnosis system for hydropower units, comprising the following modules: The data acquisition and sampling module is used to collect sound, vibration and temperature signals and operating parameters of the hydropower unit. It determines the operating condition label based on the operating condition parameter, and determines the fault category label based on the operation and maintenance records. It performs stratified sampling according to the two types of labels to construct training batches. The feature extraction and prototype calculation module is used to encode and train batch samples using sound, vibration and temperature feature extractors respectively to obtain three types of single-modal feature vectors. The mean of the modal feature vectors is calculated according to the fault category to obtain the single-modal fault prototype. The average distance between the feature vector and the corresponding prototype is calculated to obtain the prototype dispersion. The weight determination and prototype fusion module is used to determine the fusion weights based on the prototype dispersion of the modal fault categories, weight the modal fault prototypes to generate cross-modal fusion prototypes, and weight the three single-modal feature vectors of the samples according to the fusion weights of the candidate fault categories to generate category conditional fusion features. The model training module is used to calculate the prototype distance between the category conditional fusion features and the cross-modal fusion prototype, construct the classification loss, and construct the total loss by combining the inter-modal prototype distance consistency regularization term, and train and update the modal feature extractor. The online diagnostic module is used to extract single-mode features of the sound, vibration and temperature signals to be tested, generate conditional fusion features of the test category according to the candidate fault categories, calculate the distance between the feature and the corresponding cross-modal fusion prototype, and take the fault category corresponding to the minimum distance as the diagnostic result.
[0014] In another aspect, the present invention also proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method as described in any embodiment of the present invention.
[0015] In another aspect, the present invention also proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any embodiment of the present invention.
[0016] The present invention has the following beneficial effects: 1. This invention proposes a multi-modal fusion fault diagnosis method and system for hydropower units, which constructs training batches by performing hierarchical sampling of training samples based on operating conditions and fault categories. This solves the problems of uneven sample distribution and large fluctuations between training batches caused by the large span of operating conditions of hydropower units. It effectively balances the coverage ratio of different operating conditions and different fault categories in training, and significantly improves the feature learning ability and diagnostic generalization performance of the model under rare operating conditions and small sample fault categories.
[0017] 2. This invention proposes a multi-modal fusion fault diagnosis method and system for hydropower units. By calculating the prototype dispersion of single-mode features under each fault category, and dynamically allocating modal fusion weights based on the inverse of the dispersion and the weight interval, it overcomes the shortcomings of traditional direct feature splicing, which easily introduces interference and high noise from single-mode specific operating conditions. It can adaptively reduce the modal weights with high dispersion and high instability for different fault types, highlight the key modal features that characterize stability, and achieve high-quality fusion of acoustic, vibration, and temperature multi-modal features.
[0018] 3. This invention proposes a multi-modal fusion fault diagnosis method and system for hydropower units. By constructing a total loss function that includes a regularization term for the consistency of prototype distance between modes and a classification loss for the prototype distance of the category condition, the structural consistency of the relative space between different modes in the fault category is constrained, so that each mode can form a highly unified fault semantic space while retaining its own physical characteristics. At the same time, after training, the generated cross-modal fusion prototype and fusion weights are directly deployed on the edge terminal. Online diagnosis only requires feature extraction and distance matching, which greatly reduces the online computational complexity and fault diagnosis latency.
[0019] Additional aspects and advantages of the invention will be set forth in the following description, and some of them will be obvious from the description, or may be learned by practicing the invention. Furthermore, various aspects and advantages of the invention may be realized and obtained by means of method steps and combinations particularly pointed out in the appended claims. Attached Figure Description
[0020] Figure 1 This invention is for the purpose of this invention. Detailed Implementation
[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0022] It should be understood that the step numbers used in the text are for ease of description only and are not intended to limit the order in which the steps are performed.
[0023] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0024] The terms “comprising” and “including” indicate the presence of the described feature, whole, step, operation, element and / or component, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.
[0025] The term “and / or” refers to any combination of one or more of the associated listed items, as well as all possible combinations, and includes these combinations.
[0026] Example 1: See Figure 1 This embodiment proposes a multi-modal fault diagnosis method for hydropower units, including the following steps: S100. Sound, vibration, and temperature signals during the operation of the hydropower unit are simultaneously acquired. These three monitoring modes constitute a mode set, expressed by the formula: ; In the formula, Represents the set of monitoring modes. Represents sound modality, Indicates vibration modes, Indicates temperature modes; It should be noted that the sound signal is obtained through sound sensors or acoustic acquisition devices placed near the key equipment of the hydropower unit; the vibration signal is obtained through vibration sensors placed on the unit's bearings, frame, or other key vibration measurement points; and the temperature signal is obtained through the unit's existing temperature measurement points or temperature sensors.
[0027] During the data collection process, the operating condition parameters corresponding to the samples are acquired simultaneously, including at least the unit's active power and head parameters, to stratify the monitoring samples according to their operating conditions. For fault records, maintenance records, or manual verification results already obtained by the operating system, they are matched with the sound, vibration, and temperature monitoring data for the corresponding time period to obtain fault category labels for model training. Let the set of fault categories for hydroelectric generating units be expressed by the formula: ; In the formula, This represents the set of fault categories for hydroelectric generating units. This indicates a Class 1 hydropower unit fault. This indicates a Class 2 hydropower unit fault. Indicates the total number of fault categories. Indicates the first Hydropower unit malfunction; For the Class of faults The set of modal samples can be expressed by the formula: ; In the formula, Indicates the monitoring modality index. This represents the index of hydroelectric generator unit fault categories. Indicates the first The number of samples of each type of fault in the corresponding training batch. Indicates the first Class of faults Class modal sample set, Indicates the first Class 1 fault The first training sample of the class modality, Indicates the first Class 1 fault The second training sample of the class modality, Indicates the first Class 1 fault The third training sample of the modality.
[0028] The acquired raw sound, vibration, and temperature signals are preprocessed, including removing obvious abnormal sampling values, filtering out interference components that are irrelevant to fault diagnosis, and framing according to a preset time window. The sound signal segments, vibration signal segments, and temperature signal segments within the same time window are combined to form a multimodal sample sequence. For the three types of signals—sound, vibration, and temperature—a time correspondence is established between corresponding signal frames within the same time window to obtain corresponding sound mode samples, vibration mode samples, and temperature mode samples. For different modalities with different sampling frequencies, sampling preprocessing of each modality is performed separately, and a unified time window is used to ensure that the samples of each modality correspond to the same runtime segment during training. After processing, preprocessed multimodal samples are obtained, and operating condition labels and fault category labels are attached to the corresponding samples as inputs for subsequent hierarchical sampling and feature learning.
[0029] S200. All training samples are stratified into two dimensions: operating condition and fault. Based on the two core operating parameters of active power and head of the hydropower unit, the operating status of the unit is divided into four typical operating conditions: low load, medium load, high load and start-up / shutdown transition. Each typical operating condition is further divided into multiple continuous subdivisions based on the actual operating range of the unit. The fault dimensions are divided according to the fault type and severity, including normal state, bearing faults, hydraulic faults, electrical faults and auxiliary machine faults; Each training sample is simultaneously mapped to a working condition category and a fault category, forming a hierarchical sample pool organized according to the dual dimensions of working condition and fault.
[0030] Furthermore, suppose a training batch contains Given samples, let the number of typical operating condition categories be... ,in ; According to the preset working condition allocation ratio, the target sample quantity of each working condition in this training batch is determined from the sample pool of each working condition, so that all four typical working conditions can be covered by the current training batch. Within each working condition, sampling is further performed according to the fault category, so that different fault categories under the same working condition can all have training opportunities. For fault categories with a small number of samples, training samples are supplemented by repeatedly extracting existing samples or by performing data augmentation based on existing samples. For fault categories with a large number of samples, the number of samples is limited to avoid them occupying too high a proportion in the training batch. Ultimately, each training batch has both operating condition coverage and fault category coverage while keeping the total number of samples basically fixed.
[0031] For the Type of working condition, first The stratified sample pool corresponding to the fault type is denoted as the number of samples collected in this batch. Then the current training batch satisfies the following formula: ; In the formula, This indicates the total number of samples in the current training batch. Indicates the working condition category index. Indicates the total number of operating condition categories. Indicates the fault category index, Indicates the total number of fault categories. Indicates from the first Type of working conditions and the first The number of samples collected in the sample pool corresponding to the type of fault; It should be noted that, through the analysis of... By applying the above formula constraints, the operating conditions and fault categories are kept relatively balanced within each batch. At the same time, the target sampling ratio for each operating condition and fault category can be set according to the actual amount of training data, and small random variations are allowed in each batch around the target ratio, so that different batches do not form a completely fixed sample arrangement.
[0032] S300. For each multimodal sample in the current training batch, feature encoding is performed using a sound feature extractor, a vibration feature extractor, and a temperature feature extractor, respectively. Let the first The feature extractor corresponding to the modality is For the first training batch The first sample Modal feature extraction is performed, and the original signal is mapped to A dimensional eigenvector can be expressed by the following formula: ; In the formula, This represents the index of the multimodal samples in the current training batch. Indicates modal index, Indicates the first in the current training batch The first sample Modal feature vectors Indicates the first in the current training batch The first sample Modal sequences, This represents the unified feature dimension after feature mapping across all modalities; By making the outputs of the three modalities have the same feature dimensions, subsequent modality weighted fusion can be performed directly without setting up an additional cross-modal conversion network.
[0033] Furthermore, for each fault category in the current training batch, the single-mode fault prototypes for the three modes are calculated respectively; For the Class modality and the first For a fault class, its single-mode fault prototype is defined as the mean of the feature vectors of all sample modes under that fault class, expressed by the formula: ; In the formula, Indicates the first The first class modality corresponding to Class failure prototype, This indicates the number of samples of this fault category in the current training batch. Indicates the first The first type of fault corresponding to the The first sample Modal features; The average Euclidean distance between the features of each modal sample within the current fault category and its corresponding single-modal fault prototype is taken as the prototype dispersion of that mode under that fault category. Then, the... Class modality corresponds to the first The prototype dispersion of a fault class is expressed by the formula: ; In the formula, Indicates the first Class modality in the first Prototype discreteness under fault class Represents the Euclidean norm; The larger the prototype dispersion, the more dispersed the sample feature distribution of the mode under the same fault category, indicating that the mode is relatively more affected by noise, changes in operating conditions, or other disturbances. The smaller the prototype dispersion, the higher the degree of aggregation of similar fault samples in the mode feature space, and the more stable its representation of the fault category. The prototype dispersion can be used as the basis for determining the fusion weights of different modes.
[0034] After obtaining the three modal prototype discretenesses corresponding to each fault category, initial fusion weights are assigned to different modes based on the reciprocal of the discreteness. For the Class of faults, number The initial weights of the modality are expressed by the formula: ; In the formula, Indicates the first Modal pairs Initial fusion weights for fault classes, Indicates the modal summation index. Indicates the first Class modality in the first Prototype discreteness under fault class Represents a pre-defined small constant that is greater than zero; The smaller the prototype dispersion of a mode, the larger its reciprocal, thus obtaining a higher initial fusion weight; the larger the prototype dispersion of a mode, the lower its initial fusion weight.
[0035] Because the calculation uses a normalized form, the sum of the initial weights of the three modes under the current fault category is 1, that is... This ensures that the total weight remains consistent.
[0036] Furthermore, to prevent excessive concentration of initial weights due to excessively low or high prototype dispersion of a certain mode, interval correction is applied to the initial weights; within the set stable weight interval... In this case, the maximum and minimum values of the three initial weights for the current fault category are obtained, expressed by the formula: ; ; In the formula, Indicates the first The maximum value of the multimodal initial weights corresponding to the fault type. Indicates the first Minimum initial weights for multimodal fault types; when > At that time, each initial weight is linearly mapped to a preset weight interval to obtain the corrected fusion weight, which is expressed by the formula: ; In the formula, Indicates the first Modal pairs Correction fusion weights for fault types This represents the preset minimum stable weight. This represents the preset maximum stable weight; In one implementation method Take 0.15, Set the initial weight to 0.55; when the prototype discreteness of the three modes is the same, the three initial weights are all 0.55. In this case, instead of performing the aforementioned linear mapping, we directly let... This avoids situations where the mapping formula cannot be calculated because the numerator and denominator are simultaneously equal.
[0037] After obtaining the corrected fusion weights, they are recalibrated to a sum of 1 to obtain the final fusion weights, expressed by the formula: ; In the formula, Indicates the first Modal pairs The final fusion weights for fault classes, Indicates the first Modal pairs Corrected fusion weights for fault types; the final fusion weights satisfy... This ensures that the fusion weights for different fault categories remain at a uniform magnitude.
[0038] S400, obtained the first Three single-mode fault prototypes of class faults and final fusion weight Then, the three single-mode fault prototypes are weighted and fused to form the first... The cross-modal alignment and fusion prototype for class-related faults is expressed by the following formula: ; In the formula, Indicates the first A fusion prototype of class-specific faults; For any sample to be classified in the current training batch, in order to maintain consistency with the fusion prototype of the fault category to be determined, for each candidate fault category... The category conditional fusion feature of the sample is constructed according to the fusion weight corresponding to the fault category, as expressed by the formula: ; In the formula, Indicates the first The sample in the first Category-conditional fusion features obtained when class fault weights are used as fusion parameters; Further calculate the distance between the category conditional fusion features and the corresponding fusion prototypes, expressed by the formula: ; In the formula, Indicates the first The sample belongs to the first Prototype distance during class-related faults; It should be noted that the first The sample belongs to the first Prototype distance during class failure The smaller the value, the better the multimodal fusion feature of the sample is compared with the first value. The closer the fusion prototypes of the fault types are.
[0039] To convert the prototype distance into class probabilities for training, the class probabilities are obtained using the exponential form of the negative distance, expressed by the formula: ; In the formula, Indicates the first The sample was determined to be the first The probability of a type of failure. Index representing the summation of fault categories. Indicates the first The sample belongs to the first Prototype distance during class-related faults; It should be noted that the smaller the Euclidean distance, the larger the corresponding exponent value. Therefore, samples that are closer to the true class prototype can obtain a higher class probability.
[0040] Based on the true fault category labels of the current training batch samples, the fault classification loss is constructed using cross-entropy, expressed as the formula: ; In the formula, Indicates the loss due to fault classification. Indicates the true class indicator of the sample; Among them, when the first The sample belongs to the first When a fault occurs ,otherwise By minimizing the fault classification loss This makes the features extracted from each modality closer to their corresponding fault prototypes and further away from other fault category prototypes after cross-modal weighting.
[0041] To further improve the consistency of different modes' representations of the same fault category, a regularization constraint for the consistency of prototype distance between modes is introduced, based on the fault prototype as the alignment anchor point; for any two fault categories and The distance between two fault prototypes in the same mode is calculated and expressed by the formula: ; In the formula, Indicates the first In the class modality, the first Class Fault Prototype and the First The distance between fault prototypes Indicates the first The first class modality corresponding to Class failure prototype, Indicates different Fault category index; To reduce the differences in the relative structural representations of fault categories among different modes, a prototype distance consistency regularization term is constructed, expressed by the formula: ; In the formula, This indicates a prototype distance consistency regularization term. This indicates the number of pairwise modal combinations. This indicates the total number of fault category pairs. This represents the set of pairwise mode combinations among the three types of modes. Indicates different Modal index, Indicates the first In class modality, the first Class Fault Prototype and the First The Euclidean distance between fault prototypes. Indicates the first In class modality, the first Class Fault Prototype and the First Euclidean distance between fault prototypes; The regularization term constrains the relative distance between fault prototypes in different modes, enabling sound, vibration, and temperature modes to form a more consistent feature space structure for distinguishing the same fault categories while retaining their respective feature differences.
[0042] Further combining the fault classification loss and the prototype distance consistency regularization term yields the total model loss function, expressed as: ; In the formula, This represents the total loss during the model training phase. This represents the regularization coefficient used to adjust the strength of the regularization constraint; it is a pre-set non-negative parameter. By minimizing the total loss during the model training phase, feature extractors of different modalities are simultaneously constrained by both the fault classification objective and the cross-modal prototype structure consistency objective.
[0043] After obtaining the total loss during model training, backpropagation is performed to update the parameters of each modality feature extractor based on the total loss; let the set of parameters of all modality feature extractors be expressed by the formula: ; In the formula, This represents the set of parameters for all modal feature extractors. This represents the set of trainable parameters for the feature extractor corresponding to the sound modality. This represents the set of trainable parameters for the feature extractor corresponding to the vibration modes. This represents the set of trainable parameters for the feature extractor corresponding to the temperature mode. Then the first In each training iteration, the parameters are updated using gradient descent, expressed by the formula: ; In the formula, Indicates the index of the training iteration number. Indicates the first During the nth iteration Parameters of the modality feature extractor Indicates the first During the nth iteration Parameters of the modality feature extractor Indicates the learning rate; Since the prototype, dispersion, and fusion weights mentioned above are all calculated from the features of the current batch, after the model parameters are updated, feature extraction, prototype calculation, dispersion calculation, and weight calculation are re-executed in the next training batch, so that the fusion weights can be updated synchronously with the changes in the model feature space. S500 After completing the loss calculation and parameter update of the current training batch, the next training batch is constructed again using the working condition hierarchical batch sampling mechanism, and the processes of multimodal feature extraction, single-modal prototype calculation, prototype dispersion calculation, inverse dispersion weight calculation, weight interval correction, cross-modal prototype fusion, distance calculation, loss calculation and parameter update are repeated until the preset model convergence condition is met or the set number of training rounds is reached and the training ends. After the model training is completed, the parameters of each modal feature extractor, the cross-modal fusion prototypes of each fault category, and the modal fusion weights corresponding to each fault category are saved, forming a fault diagnosis model and prototype library deployed on the edge computing terminal. Since the fusion prototypes and fusion weights have been calculated during the training process, there is no need to retrain the feature extractor in the online diagnosis stage. Fault identification can be completed by only performing feature extraction and distance calculation on the real-time collected data.
[0044] Example 2: This embodiment proposes a multi-modal fusion fault diagnosis system for hydropower units, including the following modules: The data acquisition and sampling module is used to collect sound, vibration and temperature signals and operating parameters of the hydropower unit. It determines the operating condition label based on the operating condition parameter, and determines the fault category label based on the operation and maintenance records. It performs stratified sampling according to the two types of labels to construct training batches. The feature extraction and prototype calculation module is used to encode and train batch samples using sound, vibration and temperature feature extractors respectively to obtain three types of single-modal feature vectors. The mean of the modal feature vectors is calculated according to the fault category to obtain the single-modal fault prototype. The average distance between the feature vector and the corresponding prototype is calculated to obtain the prototype dispersion. The weight determination and prototype fusion module is used to determine the fusion weights based on the prototype dispersion of the modal fault categories, weight the modal fault prototypes to generate cross-modal fusion prototypes, and weight the three single-modal feature vectors of the samples according to the fusion weights of the candidate fault categories to generate category conditional fusion features. The model training module is used to calculate the prototype distance between the category conditional fusion features and the cross-modal fusion prototype, construct the classification loss, and construct the total loss by combining the inter-modal prototype distance consistency regularization term, and train and update the modal feature extractor. The online diagnostic module is used to extract single-mode features of the sound, vibration and temperature signals to be tested, generate conditional fusion features of the test category according to the candidate fault categories, calculate the distance between the feature and the corresponding cross-modal fusion prototype, and take the fault category corresponding to the minimum distance as the diagnostic result.
[0045] Example 3: This embodiment proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the method described in any embodiment of the present invention.
[0046] Example 4: This embodiment proposes a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the method described in any embodiment of the present invention.
[0047] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, A and B simultaneously, or B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.
[0048] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0049] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0050] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0051] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A multi-modal fusion fault diagnosis method for acoustic, vibration, and temperature-related parameters of a hydropower unit, characterized in that... Includes the following steps: Collect sound, vibration and temperature signals and operating parameters of hydropower units, determine operating condition labels based on operating condition parameters, determine fault category labels by combining operation and maintenance records, and construct training batches by stratified sampling according to the two types of labels. The batch samples were trained by encoding sound, vibration and temperature feature extractors respectively to obtain three types of single-modal feature vectors. The mean of the modal feature vectors was calculated according to the fault category to obtain the single-modal fault prototype. The average distance between the feature vector and the corresponding prototype was calculated to obtain the prototype dispersion. The fusion weights are determined based on the prototype dispersion of the modal fault categories. The modal fault prototypes are weighted and fused to generate cross-modal fusion prototypes. The three single-modal feature vectors of the samples are weighted according to the fusion weights of the candidate fault categories to generate category-conditional fusion features. Calculate the prototype distance between the category conditional fusion features and the cross-modal fusion prototype, construct the classification loss, combine the inter-modal prototype distance consistency regularization term to construct the total loss, and train and update the modal feature extractor. Extract single-mode features from the sound, vibration, and temperature signals to be tested, generate conditional fusion features for the test category according to the candidate fault categories, calculate the distance between the features and the corresponding cross-modal fusion prototype, and take the fault category corresponding to the minimum distance as the diagnostic result.
2. The method for multi-modal fusion fault diagnosis of hydropower units according to claim 1, characterized in that, The method determines operating condition labels based on operating condition parameters and determines fault category labels by combining operating and maintenance records, including the following steps: The collected raw sound, vibration and temperature signals are subjected to outlier removal and filtering preprocessing, and then framed according to a preset time window. The time correspondence between each modal signal segment within the same time window is established to form a multimodal sample sequence. The active power and head parameters of the unit corresponding to the time of the multimodal sample sequence are acquired simultaneously as operating condition labels; The fault types corresponding to the associated operation and maintenance records are used as fault category labels to obtain multimodal training samples with operation condition labels and fault category labels.
3. The method for multi-modal fusion fault diagnosis of hydropower units according to claim 1, characterized in that, The method involves stratified sampling based on two types of labels to construct training batches, including the following steps: Based on active power and head parameters, the operating status is divided into four typical operating conditions: low load, medium load, high load, and start-up / shutdown transition. Each typical operating condition is further divided into continuously subdivided operating condition intervals, forming the operating condition dimension. Based on the type and severity of the fault, it is divided into normal state, bearing faults, hydraulic faults, electrical faults and auxiliary machine faults, which constitute the fault dimensions; Each multimodal training sample is mapped to the corresponding working condition category and fault category to establish a hierarchical sample pool; The target sample size for each working condition in the current training batch is determined according to the preset working condition allocation ratio. Within each working condition, samples are collected according to the fault category. For fault categories with fewer samples than the preset value, samples are supplemented by repeated sampling or data augmentation. For fault categories with more samples than the preset value, the sampling quantity is limited to construct the current training batch.
4. The method for multi-modal fusion fault diagnosis of hydropower units according to claim 1, characterized in that, The method calculates the mean of modal feature vectors according to fault categories to obtain single-modal fault prototypes, and calculates the average distance between the feature vectors and the corresponding prototypes to obtain the prototype dispersion, including the following steps: The sound feature extractor, vibration feature extractor and temperature feature extractor are used to encode the features of the multimodal training samples in the training batch, and the original signal sequences of each modality are mapped to a feature space of a unified dimension to obtain the corresponding three types of single-modal feature vectors. For any fault category in the current training batch, calculate the arithmetic mean of the single-mode feature vectors of all samples of the same mode under that fault category, and use it as the single-mode fault prototype of that mode under that fault category; Calculate the Euclidean distance between the feature vectors of each sample of the same mode under the fault category and the corresponding single-mode fault prototype, and take the average value of the Euclidean distance as the prototype dispersion of the mode under the fault category; the prototype dispersion characterizes the degree of dispersion of the distribution of the same type of fault samples in the modal feature space.
5. The method for multi-modal fusion fault diagnosis of hydropower units according to claim 1, characterized in that, The method calculates category conditional fusion features based on prototype discreteness, and includes the following steps: Calculate the reciprocal of the prototype discreteness of each mode, and use the reciprocal normalization ratio as the initial fusion weight of each mode under the corresponding fault category; Obtain the maximum and minimum values of the initial fusion weights for the three modalities. When the maximum value is greater than the minimum value, linearly map each initial fusion weight to the weight range defined by the preset minimum stable weight and maximum stable weight to obtain the corrected fusion weight. The modified fusion weights are normalized and recalibrated to obtain the final fusion weights; Using the final fusion weights of each modality for the current fault category, the three single-modal fault prototypes of the fault category are weighted and summed to generate the cross-modal fusion prototype of the fault category. For any sample to be classified and any candidate fault category in the current training batch, the final fusion weight corresponding to the candidate fault category is used as the fusion parameter. The three single-modal feature vectors of the sample are weighted and summed to generate the category conditional fusion feature of the sample under the corresponding candidate fault category.
6. The method for multi-modal fusion fault diagnosis of hydropower units according to claim 1, characterized in that, The method constructs the total loss, including the following steps: Calculate the Euclidean distance between the category conditional fusion feature of the sample under the corresponding candidate fault category and the cross-modal fusion prototype of the candidate fault category, and use it as the prototype distance; The negative form of the prototype distance is calculated by exponential normalization to obtain the probability that the sample is classified as each candidate fault category. The fault classification loss is constructed by combining the true fault category label of the sample with the cross-entropy function. For any two different fault categories, calculate the Euclidean distance between two fault prototypes in the same mode. Calculate the sum of the magnitudes of the distance differences between corresponding fault prototypes between pairwise combinations of different modes, and use it as the regularization term for the consistency of prototype distances between modes; The fault classification loss is added to the inter-modal prototype distance consistency regularization term multiplied by a preset non-negative regularization coefficient to generate the total model training loss.
7. The method for multi-modal fusion fault diagnosis of hydropower units according to claim 1, characterized in that, The method generates diagnostic results, including the following steps: In the current training iteration, backpropagation of the gradient is calculated based on the total training loss of the model, and the parameters of each modality feature extractor are updated using the gradient descent algorithm. In the next training batch, the single-modal feature vector, single-modal fault prototype, prototype discreteness and fusion weight are recalculated so that the fusion weight is updated synchronously with the evolution of the feature space until the preset convergence condition or training round number is reached to complete the model training. Save the parameters of each modal feature extractor after training, the cross-modal fusion prototype of each fault category, and the modal fusion weights to construct an edge fault diagnosis model; During online diagnosis, the real-time multimodal signals of the hydropower unit under test are encoded using each modal feature extractor, and the corresponding conditional fusion features of the test category are generated by combining the modal fusion weights of each candidate fault category. Calculate the Euclidean distance between the conditional fusion features of each test category and the cross-modal fusion prototype of the corresponding candidate fault category, and take the candidate fault category with the smallest Euclidean distance as the real-time fault diagnosis result of the hydropower unit.
8. A multi-modal fusion fault diagnosis system for acoustic, vibration, and temperature modes of hydropower units, characterized in that, Includes the following modules: The data acquisition and sampling module is used to collect sound, vibration and temperature signals and operating parameters of the hydropower unit. It determines the operating condition label based on the operating condition parameter, and determines the fault category label based on the operation and maintenance records. It performs stratified sampling according to the two types of labels to construct training batches. The feature extraction and prototype calculation module is used to encode and train batch samples using sound, vibration and temperature feature extractors respectively to obtain three types of single-modal feature vectors. The mean of the modal feature vectors is calculated according to the fault category to obtain the single-modal fault prototype. The average distance between the feature vector and the corresponding prototype is calculated to obtain the prototype dispersion. The weight determination and prototype fusion module is used to determine the fusion weights based on the prototype dispersion of the modal fault categories, weight the modal fault prototypes to generate cross-modal fusion prototypes, and weight the three single-modal feature vectors of the samples according to the fusion weights of the candidate fault categories to generate category conditional fusion features. The model training module is used to calculate the prototype distance between the category conditional fusion features and the cross-modal fusion prototype, construct the classification loss, and construct the total loss by combining the inter-modal prototype distance consistency regularization term, and train and update the modal feature extractor. The online diagnostic module is used to extract single-mode features of the sound, vibration and temperature signals to be tested, generate conditional fusion features of the test category according to the candidate fault categories, calculate the distance between the feature and the corresponding cross-modal fusion prototype, and take the fault category corresponding to the minimum distance as the diagnostic result.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1 to 7.
