Intelligent diagnosis method for vortex flowmeter and related equipment

By combining multi-source sensor signals and end-to-end one-dimensional convolutional neural networks with the physical consistency verification of the Strouhal equation, and employing a three-stage cold start mechanism and federated learning, the fault diagnosis problem of vortex flowmeters under complex operating conditions is solved, achieving reliable intelligent diagnosis and identification of unknown anomalies.

CN123178909APending Publication Date: 2026-11-27TIANJIN SURE INSTR CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611716596.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-11-02
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing fault diagnosis methods for vortex flowmeters face frequent false alarms and missed alarms under complex operating conditions in industrial sites. Deep learning models have high prediction uncertainty during the cold start phase, lack physical constraints, and are difficult to identify unknown anomalies. Traditional methods cannot meet the requirements of traceability and robustness of diagnostic results.

Method used

Multimodal input features are constructed using signals from multiple sensor sources. Combined with an end-to-end one-dimensional convolutional neural network and physical consistency verification of the Strouhal equation, a three-stage cold start mechanism (physical constraint guidance period, small amount of data adaptation period, and sufficient data optimization period) is used for diagnosis. The computational redundancy of the neural processing unit is used for incremental fine-tuning and full model update. Federated learning is used to realize multi-node collaborative training and hot start parameter transfer, and the fusion weights of the rule engine and neural network are dynamically adjusted.

Benefits of technology

It achieves reliable fault diagnosis under complex operating conditions, reduces false alarm and false negative rates, ensures the traceability and long-term evolution capability of diagnostic results, solves the model uncertainty problem in the cold start stage, and improves the ability to identify unknown anomalies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178909A_ABST
    Figure CN123178909A_ABST
Patent Text Reader

Abstract

The application provides a vortex flowmeter intelligent diagnosis method and related equipment, the method comprises the following steps: acquiring a multi-source sensor signal and constructing a multi-modal input feature, inputting a pre-trained end-to-end one-dimensional convolutional neural network to output a signal quality evaluation result, a working condition recognition result and a fault diagnosis result; performing Strouhal equation physical consistency verification to output a signal quality level; determining a cold start stage according to the change rate of the prediction distribution entropy; determining a rule confidence according to the rule engine output in the guidance period, determining a fusion decision confidence by fusing the maximum class probability of the neural network, and outputting a diagnosis result or an uncertain prompt in combination with the information entropy; in the adaptation period, the last convolutional layer and the task head are incrementally fine-tuned; in the optimization period, the whole model is updated, unknown abnormality detection is performed based on the Mahalanobis distance and the energy score; and the final diagnosis result is obtained by fusing the rule engine and the neural network output according to the preset weight in each stage. The method of the application can ensure the diagnosis reliability in the whole life cycle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent diagnostic technology for industrial process control and instrumentation, and in particular to an intelligent diagnostic method and related equipment for vortex flowmeters. Background Technology

[0002] Vortex flow meters, as important flow measurement instruments in industrial control, are widely used in petroleum, chemical, metallurgical and other fields. Their measurement reliability is directly related to the safety and efficiency of the production process.

[0003] However, in actual industrial settings, vortex flowmeters face complex operating conditions and multiple failure modes. Traditional diagnostic methods have the following shortcomings: Fault diagnosis of vortex flowmeters mainly relies on fixed threshold judgments based on single sensor signals or rule matching based on expert experience. However, industrial conditions are complex and variable; a single signal cannot comprehensively reflect the equipment's operating status, and fixed thresholds are difficult to adapt to dynamic changes under different conditions, easily leading to missed and false alarms. Furthermore, while deep learning-based intelligent diagnostic methods have achieved good results in laboratory environments, they face serious cold-start problems when deployed in actual industrial settings: insufficient field-labeled data is lacking in the initial stage, model predictions have high uncertainty, and directly relying on model output may lead to misdiagnosis or even unnecessary downtime for maintenance. In addition, data-driven methods are often disconnected from the inherent physical mechanisms of vortex flowmeters, lacking the guidance of physical constraints, resulting in poor model interpretability and insufficient robustness, making it difficult to meet the requirements of traceability of diagnostic results in industrial settings. In open-set scenarios, unknown anomaly types that were not seen during the training phase may appear in industrial sites. Traditional closed-set classification models have difficulty identifying them effectively and risk misclassifying unknown anomalies as known categories, which restricts the long-term evolution capability of diagnosis.

[0004] Therefore, there is an urgent need for an intelligent diagnostic method for vortex flow meters to solve all or some of the above problems. Summary of the Invention

[0005] In view of this, the purpose of this application is to propose an intelligent diagnostic method and related equipment for vortex flow meters.

[0006] Based on the above objectives, the first aspect of this application provides an intelligent diagnostic method for a vortex flowmeter, comprising: acquiring multi-source sensor signals from the vortex flowmeter; constructing multimodal input features based on the multi-source sensor signals; inputting the multimodal input features into a pre-trained end-to-end one-dimensional convolutional neural network, and outputting signal quality assessment results, operating condition identification results, and fault diagnosis results; performing a Strouhal equation physical consistency check based on the multi-source sensor signals, and outputting a signal quality level; calculating the rate of change of predicted distribution entropy based on the operating condition identification results and the fault diagnosis results, and determining a cold start stage; wherein, the cold start stage includes a physical constraint guidance period, a small amount of data adaptation period, and a sufficient data optimization period; in the physical constraint guidance period, determining rule confidence based on the signal quality level and the output of a rule engine based on a domain knowledge graph, and determining the rule confidence based on the rule confidence and the fault diagnosis results. The maximum category probability determines the fusion decision confidence. Information entropy is determined based on the predicted distribution of the working condition identification result and the fault diagnosis result. In response to the determination that the fusion decision confidence is greater than a preset fusion decision confidence threshold and the information entropy is less than a preset entropy threshold, a diagnosis result is output; otherwise, an uncertain prompt is output. During the limited data adaptation period, the computational redundancy of the neural processing unit is used to incrementally fine-tune the last convolutional layer and all task heads of the end-to-end one-dimensional convolutional neural network and update the model parameters. During the sufficient data optimization period, the computational redundancy of the neural processing unit is used to perform a full model update of the end-to-end one-dimensional convolutional neural network and perform unknown anomaly detection based on Mahalanobis distance and energy score. Based on the preset fusion weights corresponding to the current cold start stage, the rule engine output and the fault diagnosis result are weighted and fused, and the category corresponding to the maximum probability after fusion is taken as the final diagnosis result output.

[0007] Optionally, the calculation of the rate of change of the predicted distribution entropy to determine the cold start phase includes: calculating the ratio of the change in the model's predicted distribution entropy to the corresponding time interval based on the working condition identification result and the fault diagnosis result, to obtain the rate of change of the predicted distribution entropy; in response to determining that the rate of change of the predicted distribution entropy is lower than a preset rate of change threshold and the pseudo-label coverage is higher than a preset coverage, switching from the physical constraint guidance period to the small amount of data adaptation period; in the small amount of data adaptation period, calculating the Fisher information matrix based on the current model parameters and finding the trace, calculating the difference between two adjacent traces to obtain the trace increment; in response to determining that the trace increment is lower than a preset tolerance threshold, switching from the small amount of data adaptation period to the sufficient data optimization period; after switching, in response to determining that the probability deviation between the output of the end-to-end one-dimensional convolutional neural network and the output of the rule engine in the diagnostic conclusion is greater than a preset deviation threshold, reverting to the previous stage and recalculating the rate of change of the predicted distribution entropy.

[0008] Optionally, the method further includes: forming a federated learning consortium with multiple vortex flowmeter nodes; calculating the difference between the baseline model parameters and the current model parameters at the start of the current federated iteration for each node as the model parameter update amount; determining the node weights based on the data volume ratio of each node, and weighting and aggregating the model parameter update amounts according to the node weights to obtain the global parameter update amount; superimposing the global parameter update amount onto the local factory pre-trained parameters to obtain the initial hot-start parameters of the new access point, using the initial hot-start parameters as the initial weights of the end-to-end one-dimensional convolutional neural network, and performing incremental fine-tuning training during the small amount of data adaptation period.

[0009] Optionally, the method further includes: in response to determining that the deviation between the predicted flow rate determined based on the operating condition identification result and the measured vortex frequency is greater than a preset deviation threshold, replacing the fault diagnosis result with the diagnostic conclusion output by the rule engine as the final diagnostic result.

[0010] Optionally, the step of weightedly fusing the rule engine output and the fault diagnosis result according to the preset fusion weight corresponding to the current cold start phase includes: during the physical constraint guidance period, fusing the diagnosis conclusion output by the rule engine and the fault diagnosis result according to a first fusion weight; wherein the weight of the diagnosis conclusion output by the rule engine is greater than the weight of the fault diagnosis result; during the small amount of data adaptation period, fusing the diagnosis conclusion output by the rule engine and the fault diagnosis result according to a second fusion weight; wherein the weight of the diagnosis conclusion output by the rule engine is equal to the weight of the fault diagnosis result; and during the sufficient data optimization period, fusing the diagnosis conclusion output by the rule engine and the fault diagnosis result according to a third fusion weight; wherein the weight of the fault diagnosis result is greater than the weight of the diagnosis conclusion output by the rule engine.

[0011] Optionally, the multi-source sensor signals include temperature signals and pressure signals. The step of performing a Strouhal equation physical consistency check based on the multi-source sensor signals and outputting a signal quality level includes: calculating the expected values ​​of medium density and flow velocity based on the temperature signals and pressure signals to determine the expected vortex shedding frequency; comparing the expected vortex shedding frequency with the measured vortex shedding frequency to determine the deviation rate; and determining the signal quality level based on the deviation rate.

[0012] Optionally, the unknown anomaly detection based on Mahalanobis distance and energy score includes: extracting feature vectors from the output of the shared fully connected layer of the end-to-end one-dimensional convolutional neural network; calculating the Mahalanobis distance and energy score of the feature vectors; in response to determining that the Mahalanobis distance is greater than a preset Mahalanobis distance threshold and the energy score is less than a preset energy score threshold, marking it as an unknown anomaly; and adding the feature vector corresponding to the unknown anomaly and the original signal segment as a new category to the subsequent training set.

[0013] Based on the above objectives, a second aspect of this application provides an intelligent diagnostic device for a vortex flowmeter, comprising: a signal acquisition module configured to acquire multi-source sensor signals of the vortex flowmeter; a feature construction module configured to construct multimodal input features based on the multi-source sensor signals; a neural network processing module configured to input the multimodal input features into a pre-trained end-to-end one-dimensional convolutional neural network and output signal quality assessment results, operating condition identification results, and fault diagnosis results; a physical verification module configured to perform Strouhal equation physical consistency verification based on the multi-source sensor signals and output signal quality level; a stage determination module configured to calculate the rate of change of predicted distribution entropy based on the operating condition identification results and the fault diagnosis results, and determine a cold start stage; wherein the cold start stage includes a physical constraint guidance period, a small amount of data adaptation period, and a sufficient data optimization period; and a guidance period processing module configured to determine rule confidence based on the signal quality level and the output of a rule engine based on a domain knowledge graph during the physical constraint guidance period, and based on the... The fusion decision confidence is determined by the rule confidence and the maximum class probability in the fault diagnosis result. The information entropy is determined by the predicted distribution of the working condition identification result and the fault diagnosis result. In response to determining that the fusion decision confidence is greater than a preset fusion decision confidence threshold and the information entropy is less than a preset entropy threshold, a diagnosis result is output; otherwise, an uncertain prompt is output. The adaptation period fine-tuning module is configured to incrementally fine-tune the last convolutional layer and all task heads of the end-to-end one-dimensional convolutional neural network and update the model parameters during the small amount of data adaptation period using the computing power redundancy of the neural processing unit. The optimization period update module is configured to perform a full model update of the end-to-end one-dimensional convolutional neural network and perform unknown anomaly detection based on Mahalanobis distance and energy score during the sufficient data optimization period. The fusion output module is configured to perform weighted fusion of the rule engine output and the fault diagnosis result according to the preset fusion weight corresponding to the current cold start stage, and take the category corresponding to the maximum probability after fusion as the final diagnosis result output.

[0014] Based on the same inventive concept, a third aspect of this application provides 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 described in the first aspect.

[0015] Based on the same inventive concept, a fourth aspect of this application provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method described in the first aspect.

[0016] As can be seen from the above, the intelligent diagnostic method and related equipment for vortex flowmeters provided in this application, through a three-stage cold start mechanism—physical constraint guidance period, small amount of data adaptation period, and sufficient data optimization period—automatically determines the stage of the equipment by utilizing the rate of change of predicted distribution entropy, achieving a smooth transition from rule-driven to data-driven; it utilizes the computing power redundancy of the neural processing unit for incremental fine-tuning and full model updates, completing model evolution without interrupting normal diagnosis; it performs unknown anomaly detection based on Mahalanobis distance and energy fraction, effectively identifying unknown fault types that did not appear during training; it achieves multi-node collaborative training and hot start parameter transfer through federated learning, further solving the cold start problem; and it dynamically adjusts the fusion weights of the rule engine and neural network according to the cold start stage, ensuring diagnostic reliability throughout the entire life cycle. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a schematic flowchart of the intelligent diagnostic method for vortex flowmeters according to an embodiment of this application;

[0019] Figure 2 This is a schematic diagram of the intelligent diagnostic device for a vortex flowmeter according to an embodiment of this application;

[0020] Figure 3 This is a schematic diagram of the electronic device structure according to an embodiment of this application. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.

[0022] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0023] The technical solution of this application will be described in detail below through specific embodiments.

[0024] refer to Figure 1 One embodiment of this application provides an intelligent diagnostic method for a vortex flowmeter, which specifically includes the following steps:

[0025] Step S101: Obtain the multi-source sensor signals of the vortex flowmeter.

[0026] In this step, the multi-source sensor signals include the raw timing signal from the vortex shear sensor, temperature signal, pressure signal, and vibration signal. The raw timing signal from the vortex shear sensor reflects the frequency and intensity of the fluid vortex and is the direct basis for flow calculation; the temperature signal is used to compensate for the influence of changes in medium density on the measurement; the pressure signal is used to determine whether the pipeline is blocked or leaking; and the vibration signal is used to detect mechanical faults, such as loosening of the vortex generator or failure of pipeline supports.

[0027] Step S102: Construct multimodal input features based on the multi-source sensor signals.

[0028] In this step, the multimodal input features include time-domain features (mean, variance, peak value, peak-to-peak value, skewness, kurtosis), frequency-domain features (power spectral density, dominant frequency, harmonic energy ratio, spectral entropy), and physical features (Reynolds number, Strouhal number, medium density). Time-domain features reflect the overall statistical characteristics of the signal, capturing transient changes under non-stationary conditions. Frequency-domain features extract vortex shedding frequencies and their harmonic components through FFT transformation. Physical features convert sensor readings into dimensionless hydrodynamic parameters, providing input for subsequent physical consistency verification. After normalization, the multimodal features are concatenated into a fixed-length feature vector, which serves as the input to an end-to-end one-dimensional convolutional neural network.

[0029] Step S103: Input the multimodal input features into a pre-trained end-to-end one-dimensional convolutional neural network, and output signal quality assessment results, operating condition identification results, and fault diagnosis results.

[0030] In this step, the end-to-end one-dimensional convolutional neural network adopts a multi-task learning architecture, sharing the bottom convolutional layer to extract common features, and the upper layer has three task heads that output separately:

[0031] Signal quality assessment results: Two-category output (normal and abnormal), determining whether the current vortex shear signal is affected by noise interference, bubble influence, or pipeline vibration interference. Operating condition identification results: Multi-category output (laminar flow, transitional flow, turbulent flow, pulsating flow, two-phase flow, etc.), identifying the current fluid state; Fault diagnosis results: Multi-category output (vortex generator wear, sensor aging, pipeline blockage, changes in medium properties, abnormal installation stress, etc.), pinpointing the specific fault type.

[0032] The network's bottom layer uses one-dimensional convolutional kernels (3×1, 5×1, and 7×1) to extract features at different time scales in parallel. After batch normalization and ReLU activation, it undergoes dimensionality reduction via max pooling. Each of the three task heads contains two fully connected layers, and the output layer uses softmax activation. The network is pre-trained on large-scale simulation data and historical field data before leaving the factory, and the initial parameters are stored in the device's ROM.

[0033] Step S104: Perform a Strouhal equation physical consistency check based on the multi-source sensor signals and output the signal quality level.

[0034] In this step, the Strouhal equation describes the physical relationship between the vortex shedding frequency and the flow velocity and characteristic dimensions of the vortex generator:

[0035]

[0036] in, The vortex shear frequency, For Strauhal numbers, For fluid velocity, The characteristic width of the vortex generator.

[0037] Specifically, step S104 may further include the following steps:

[0038] Step S1041: Calculate the expected values ​​of medium density and flow velocity based on the temperature signal and the pressure signal, and determine the expected vortex shedding frequency.

[0039] In this step, the density of the medium is calculated by looking up tables or using state equations based on the temperature and pressure signals. Combined with the pipe cross-sectional area Predicted flow rate in the operating condition identification results Calculate the expected flow rate Substitute into the Strouhal equation to calculate the expected vortex shedding frequency. Strauhall number The geometry of the vortex generator is determined by referring to a table.

[0040] Step S1042: Compare the expected vortex shedding frequency with the measured vortex shedding frequency to determine the deviation rate.

[0041] In this step, the measured vortex shedding frequency is extracted from the power spectral density of the original time-series signal from the vortex shedding sensor. This refers to the frequency component with the highest energy in the power spectrum. Deviation rate. The calculation method is as follows:

[0042]

[0043] The deviation rate reflects the degree of agreement between the measured signal and the physical expectation. The smaller the deviation rate, the higher the signal quality and the more reliable the measurement.

[0044] Step S1043: Determine the signal quality level based on the deviation rate.

[0045] In this step, the signal quality level is divided into three levels:

[0046] Excellent (deviation rate <5%): The measured frequency is highly consistent with the physical expectation, and the signal quality is good.

[0047] Good (5% ≤ Deviation rate < 15%): There is a certain deviation, which may be slightly affected by interference, but it can be used for measurement.

[0048] Poor (deviation rate ≥15%): The signal deviates significantly from the expected physical state, is significantly interfered with or is faulty, and the reliability of the diagnostic results is low.

[0049] Signal quality level serves as an important input during the physical constraint guidance period, used to determine the reliability of the neural network output.

[0050] Step S105: Based on the operating condition identification results and the fault diagnosis results, calculate the rate of change of the predicted distribution entropy to determine the cold start stage.

[0051] In this step, the cold start phase refers to the entire process from equipment commissioning to the model fully adapting to field data, divided into a physical constraint guidance period, a small amount of data adaptation period, and a full data optimization period. Predicting distribution entropy. The formula used to quantify the uncertainty of the model output is:

[0052]

[0053] in, For the model to the first Predicted probability of class This represents the number of categories. A higher entropy value indicates a less certain model; a lower entropy value indicates a more certain model.

[0054] The rate of change of the predicted distribution entropy reflects the model's learning state: during the physical constraint guidance period, the model faces new operating conditions, resulting in unstable output and large fluctuations in entropy values; as data accumulates, the model gradually adapts, and the entropy value decreases and tends to stabilize. When the rate of change of entropy value is below a threshold, it indicates that the model has entered a stable learning state and can proceed to the next stage.

[0055] Specifically, step S105 may further include the following steps:

[0056] Step S1051: Based on the operating condition identification result and the fault diagnosis result, calculate the ratio of the change in the model predicted distribution entropy within adjacent time periods to the corresponding time interval, and obtain the rate of change of the predicted distribution entropy.

[0057] In this step, the system divides continuous time into fixed-length time windows, such as 10-minute windows, and calculates the average value of the predicted distribution entropy of all samples within each window. Let the first... The average entropy of the windows is , No. The average entropy of the windows is Then predict the rate of change of distribution entropy. for:

[0058]

[0059] in, This represents the interval between adjacent time windows. A positive rate of change indicates an increase in entropy (increased uncertainty), while a negative rate of change indicates a decrease in entropy (reduced uncertainty). For the absolute value of the rate of change, a larger absolute value indicates a more unstable model.

[0060] Step S1052: In response to determining that the rate of change of the predicted distribution entropy is lower than a preset rate of change threshold and the pseudo-label coverage is higher than a preset coverage, switch from the physical constraint guidance period to the small amount of data adaptation period.

[0061] In this step, the preset rate of change threshold is set to 0.01, indicating that the model output has stabilized. Pseudo-label coverage refers to the proportion of automatically labeled samples out of the total samples when the model has high confidence (e.g., maximum class probability > 0.9), with a preset coverage rate of 80%. When both conditions are met, it indicates that the model has sufficient self-labeling capability and can utilize pseudo-labels for incremental learning, switching from the physical constraint-guided phase to the minimum data adaptation phase.

[0062] Step S1053: During the small amount of data adaptation period, the Fisher information matrix is ​​calculated based on the current model parameters and the trace is obtained. The difference between the traces obtained from two adjacent calculations is calculated to obtain the increment of the trace.

[0063] In this step, the Fisher information matrix measures the sensitivity of the model parameters to the data likelihood function, and its trace reflects the overall information content of the model. The larger the trace, the more information the model learns from the data; the smaller the increment of the trace, the more the model parameters tend to converge.

[0064] Step S1054: In response to determining that the increment of the trace is lower than a preset tolerance threshold, switch from the small data adaptation period to the sufficient data optimization period.

[0065] In this step, when the increment of the Fisher information matrix trace is lower than the preset tolerance threshold, it indicates that the incremental fine-tuning of the last convolutional layer and the task head has fully adapted the model to the field data. At this point, a full model update can be performed on all model parameters, entering the full data optimization period. The gradual unlocking strategy can avoid overfitting and catastrophic forgetting caused by early full model updates.

[0066] Step S1055: After switching, in response to determining that the probability deviation between the output of the end-to-end one-dimensional convolutional neural network and the output of the rule engine in the diagnostic conclusion is greater than a preset deviation threshold, the process reverts to the previous stage and recalculates the rate of change of the predicted distribution entropy.

[0067] In this step, a preset deviation threshold is set to 0.3. For example, if the rule engine's certainty score for a normal result is 0.9, while the neural network's probability of a normal result is 0.5, then the probability deviation is greater than 0.3. When the deviation is too large, it indicates that the model may be overfitting or encountering unknown conditions. The system automatically reverts to the previous stage, either from the sufficient data optimization period to the minimum data adaptation period, or from the limited data adaptation period to the physical constraint guidance period, to re-accumulate data and calculate the rate of change of the predicted distribution entropy. This revert mechanism ensures the robustness of the diagnostic system and prevents the model from outputting incorrect conclusions under abnormal conditions.

[0068] Step S106: During the physical constraint guidance period, determine the rule confidence level based on the signal quality level and the rule engine output based on the domain knowledge graph; determine the fusion decision confidence level based on the rule confidence level and the maximum category probability in the fault diagnosis result; determine the information entropy based on the predicted distribution of the working condition identification result and the fault diagnosis result; and output the diagnosis result in response to determining that the fusion decision confidence level is greater than a preset fusion decision confidence level threshold and the information entropy is less than a preset entropy threshold, otherwise output an uncertain prompt.

[0069] In this step, the physical constraint guidance period is the stage when the equipment has just been put into operation or has just experienced significant changes in operating conditions. At this time, there is very little field data, the accuracy of the neural network model is low, and diagnosis mainly relies on physical rules and expert knowledge. The domain knowledge graph contains the correlation between typical fault modes of vortex flowmeters, operating condition boundary conditions, and expert experience rules. When the signal quality level is poor, a signal abnormality prompt is directly output, and the confidence level and information entropy judgment process is not executed.

[0070] Specifically, the rule engine of the domain knowledge graph encodes expert experience into IF-THEN rules. For example: IF Temperature > 150°C AND Pressure > 10MPa AND Vibration spectrum shows 3rd harmonic THEN, it is judged as "vortex generator thermal stress deformation"; IF Reynolds number < 2300 AND vortex shelving frequency unstable THEN, it is judged as "laminar flow condition, measurement unreliable". The rule engine performs rule matching based on the temperature signal, the pressure signal, the vibration signal, and the signal quality level, and outputs diagnostic conclusions and rule confidence levels.

[0071] Fusion decision confidence Calculation method:

[0072]

[0073] in, The deterministic score (0-1) output by the rules engine. The maximum class probability in the neural network fault diagnosis results. These represent rule weights. A higher confidence level in the fusion decision indicates greater consistency between the rule engine and the neural network's judgments, leading to more reliable diagnostic results.

[0074] Information entropy The calculation method is as follows:

[0075]

[0076] in, The predicted distribution entropy of the working condition identification results. This represents the predicted distribution entropy of the fault diagnosis results. The lower the information entropy, the more concentrated and certain the model output is.

[0077] If the confidence level is greater than 0.85 and the information entropy is less than 1.0: output the diagnostic result (taking the consensus conclusion of the rule engine and the neural network). Otherwise: output an "uncertainty message," suggesting manual review or waiting for more data to accumulate. In the cold start phase where data is scarce, unreliable diagnostic conclusions will not be output; instead, the accuracy of the diagnosis will be maintained through physical constraints and uncertainty quantification.

[0078] Step S107: During the small amount of data adaptation period, the computational redundancy of the neural processing unit is used to perform incremental fine-tuning training on the last convolutional layer and all task heads of the end-to-end one-dimensional convolutional neural network, and update the model parameters.

[0079] In this step, the small data adaptation period is the stage where the equipment has accumulated a certain amount of field data, but the amount of data is still insufficient to support the training of the entire model. At this time, a parameter fine-tuning strategy is adopted: freeze the bottom convolutional layers (preserving the general feature extraction capability), and only fine-tune the last convolutional layer and the three task heads.

[0080] It should be noted that edge computing devices in industrial settings are typically equipped with dedicated neural processing units (NPUs), which only utilize 30%-50% of their computing power during normal operation. The system uses the remaining computing power redundancy to perform incremental fine-tuning during idle periods (such as nighttime when traffic is stable), without affecting real-time diagnostic services.

[0081] The specific method for incremental fine-tuning is as follows: High-confidence samples with a confidence level greater than 0.85 from step S106 are automatically labeled as pseudo-labels and added to the training set; the AdamW optimizer is used, with the learning rate set to 1 / 10 of the pre-training rate; the loss function is defined as follows: ,in, For the cross-entropy loss of the signal quality assessment task, For the cross-entropy loss of the working condition identification task, The cross-entropy loss for fault diagnosis tasks, , , The weights are assigned to the task loss; fine-tuning stops when the validation set loss does not decrease for 5 consecutive epochs. The fine-tuned model parameters are saved in local storage and automatically loaded upon restart.

[0082] Step S108: During the sufficient data optimization period, the computing power redundancy of the neural processing unit is used to perform a full model update of the end-to-end one-dimensional convolutional neural network, and unknown anomaly detection is performed based on Mahalanobis distance and energy score.

[0083] In this step, the full data optimization period is the stage where the equipment has been running stably for a long time and has accumulated a large amount of labeled data. At this time, all model parameters are updated to ensure that the neural network is fully adapted to the specific working conditions on site.

[0084] Specifically, the full model update is performed as follows: all historically accumulated high-confidence samples, including the pseudo-labels from step S107 and the labels subsequently manually verified; the time-series signals are randomly pruned, noise injected, and time-warped to expand the training set; a cosine annealing strategy is adopted, and the learning rate is set; and Dropout and weight decay are introduced to prevent overfitting.

[0085] In industrial settings, novel faults may not be covered during training. Typically, softmax classifiers will forcibly classify unknown samples into known categories. This application employs a joint approach of Mahalanobis distance and energy score to detect unknown anomalies.

[0086] The unknown anomaly detection based on Mahalanobis distance and energy fraction in this step specifically includes the following steps:

[0087] Step S1081: Extract feature vectors from the output of the shared fully connected layer of the end-to-end one-dimensional convolutional neural network.

[0088] In this step, a shared fully connected layer is located between the lower convolutional layers and the three task heads, and its output is a high-level semantic feature vector. This feature vector integrates multi-source sensor information and temporal context, and is a distributed representation of the samples in the feature space.

[0089] Step S1082: Calculate the Mahalanobis distance and energy fraction of the feature vector.

[0090] In this step, Mahalanobis distance measures the distance between the sample feature vector and the known class distribution, and is calculated as follows:

[0091]

[0092] in, The feature vector extracted from the shared fully connected layer, Given the feature mean vectors of known classes in the training set, This is the inverse of the feature covariance matrix of the known classes in the training set. The larger the Mahalanobis distance, the more the sample deviates from the distribution center of the known classes.

[0093] Energy fraction The calculation method is as follows:

[0094]

[0095] in, This is a temperature parameter, typically set to 1. Given the total number of categories, For the first The logit output for each known category. The lower the energy score, the lower the "energy" of the sample in the feature space, and the more likely it is to be an unknown anomaly.

[0096] Step S1083: In response to determining that the Mahalanobis distance is greater than a preset Mahalanobis distance threshold and the energy score is less than a preset energy score threshold, mark it as an unknown anomaly.

[0097] In this step, the preset Mahalanobis distance threshold is determined based on the training set statistics, for example, the mean plus three standard deviations, while the preset energy score threshold is determined through validation set calibration. When a sample simultaneously meets both the criteria of "large Mahalanobis distance" and "low energy score," it is marked as an unknown anomaly. Mahalanobis distance is sensitive to distribution shift, while energy score is sensitive to feature space density; their complementarity improves the accuracy of unknown detection, and joint judgment reduces the false alarm rate of a single indicator.

[0098] Step S1084: Add the feature vector corresponding to the unknown anomaly and the original signal segment as a new category to the subsequent training set.

[0099] In this step, samples marked as unknown anomalies are not immediately used for full model updates, but are temporarily stored in a confirmation queue. When a certain number of similar anomaly samples accumulate in the queue, such as 50, and are confirmed by human experts, a new fault category label is formed and added to the training set for incremental learning. This mechanism enables the continuous discovery of new types of faults and avoids misclassifying unknown faults as known categories.

[0100] Step S109: Based on the preset fusion weight corresponding to the current cold start stage, the output of the rule engine and the fault diagnosis result are weighted and fused, and the category corresponding to the maximum probability after fusion is taken as the final diagnosis result output.

[0101] In this step, the fusion weight of the rule engine output and the fault diagnosis result is dynamically adjusted according to the cold start phase, so as to achieve a smooth transition from rule-driven to data-driven.

[0102] The formula for fusion is:

[0103]

[0104] in, This represents the final fused class probability distribution vector. To integrate weights for the rules engine, For neural network weight fusion, This refers to the category probability distribution output by the rule engine. This represents the softmax probability distribution of the neural network output.

[0105] Specifically, step S109 may further include the following steps:

[0106] Step S1091: During the physical constraint guidance period, the diagnostic conclusion output by the rule engine and the fault diagnosis result are fused according to the first fusion weight; wherein, the weight of the diagnostic conclusion output by the rule engine is greater than the weight of the fault diagnosis result.

[0107] In this step, the first fusion weight is set to rule engine:neural network = 0.8:0.2. Due to the extreme scarcity of data during the physical constraint guidance period, the neural network output is unreliable; therefore, the primary reliance is on the rule engine. The 20% weight of the neural network is only used for auxiliary judgment, providing a reference when boundary cases that the rule engine cannot cover occur.

[0108] Step S1092: During the small amount of data adaptation period, the diagnostic conclusion output by the rule engine and the fault diagnosis result are fused according to the second fusion weight; wherein, the weight of the diagnostic conclusion output by the rule engine is equal to the weight of the fault diagnosis result.

[0109] In this step, the second fusion weight is set to rule engine:neural network = 0.5:0.5. During the small data adaptation period, the neural network has initially adapted to the field data, improving its reliability and becoming equally important as the rule engine. When the conclusions of the two conflict, the category with the higher probability is taken as the final output. If the conflict is severe, such as the probability of the rule engine determining "normal" while the neural network determines "fault" is >0.7, the rollback mechanism in step S1055 is triggered.

[0110] Step S1093: During the sufficient data optimization period, the diagnostic conclusion output by the rule engine and the fault diagnosis result are fused according to the third fusion weight; wherein, the weight of the fault diagnosis result is greater than the weight of the diagnostic conclusion output by the rule engine.

[0111] In this step, the third fusion weight is set to rule engine:neural network = 0.2:0.8. During the sufficient data optimization period, the neural network has been fully trained, and its adaptability to on-site conditions far exceeds that of general rules; therefore, the neural network is the primary focus. The 20% weight of the rule engine serves as a safety net. When the neural network output is extremely abnormal, such as an extremely flat softmax probability distribution with a maximum probability <0.5, the physical constraints of the rule engine can still trigger an early warning.

[0112] In some embodiments, the method further includes the following steps:

[0113] Step S201: Form a federated learning alliance from multiple vortex flowmeter nodes.

[0114] In this step, the federated learning consortium consists of multiple vortex flowmeter nodes from the same industrial site or under the same enterprise. Data from each node is shared only locally for model parameter updates, meeting industrial data privacy protection requirements.

[0115] Step S202: Calculate the difference between the baseline model parameters and the current model parameters at the start of the current round of federated iteration for each node as the model parameter update amount.

[0116] In this step, the baseline model parameters are the global parameters obtained from the previous round of federated aggregation. The current parameter model consists of parameters trained locally on the node. The model parameter update amount is:

[0117]

[0118] The model's parameter update only includes the changes in parameters, rather than the complete parameters, thus reducing communication bandwidth requirements.

[0119] Step S203: Determine the node weight based on the proportion of data volume of each node, and perform weighted aggregation of the model parameter update amount according to the node weight to obtain the global parameter update amount.

[0120] In this step, the node weight is directly proportional to the amount of data in that node; the more data, the greater the weight. The node weight is calculated as follows:

[0121]

[0122] in, For the first The aggregate weight of each node, For the first The amount of local data on each node. The total number of nodes in the Federated Learning Consortium. This represents the total data volume of the alliance.

[0123] Global parameter update amount The weighted average of the model parameter updates for each node:

[0124]

[0125] in, For the first Number of node model parameter updates.

[0126] Step S204: The global parameter update amount is superimposed on the local factory pre-trained parameters to obtain the hot start initial parameters of the new access point. The hot start initial parameters are used as the initial weights of the end-to-end one-dimensional convolutional neural network, and incremental fine-tuning training is performed during the small amount of data adaptation period.

[0127] In this step, new access points, such as newly installed vortex flow meters, do not need to undergo a lengthy physical constraint setup period; instead, they are directly loaded with warm-start initial parameters. :

[0128]

[0129] in, These are the factory-pre-trained parameters. The initial parameters for a hot start already include the field adaptation knowledge of other nodes in the alliance. New nodes only need to perform incremental fine-tuning during a small data adaptation period (step S107) to quickly reach the diagnostic level of a fully data-optimized period, which can shorten the cold start time of new nodes from several weeks to several days.

[0130] In some embodiments, the method further includes the following steps:

[0131] Step S301: In response to determining that the deviation between the predicted flow rate and the measured vortex frequency determined based on the operating condition identification result is greater than a preset deviation threshold, the diagnostic conclusion output by the rule engine is used to replace the fault diagnosis result as the final diagnostic result.

[0132] In this step, a preset deviation threshold of 20% is set. When the operating condition identification result predicts a flow rate value, but the theoretical vortex shedding frequency corresponding to that flow rate deviates from the measured vortex shedding frequency by more than 20%, it indicates that the neural network may have a systematic bias, such as the training data not covering the current medium characteristics. In this case, the physical derivation conclusions based on the Strouhal equation by the rule engine are preferentially used to replace the data-driven conclusions of the neural network. This fallback mechanism ensures that even in model failure scenarios, the diagnosis can still output reliable results through physical constraints.

[0133] In some embodiments, the method further includes the following steps:

[0134] Step S401: Construct a scrolling memory window.

[0135] In this step, the scrolling memory window is used to store historical diagnostic results from the most recent preset number of times. The preset number of times is the window length. ,For example If the diagnosis is performed every ten minutes, this corresponds to approximately 3.3 hours of historical context. After each execution of step S109 and the output of the final diagnosis result, the diagnosis result at the current moment is written to the rolling memory window. The rolling memory window adopts a first-in, first-out update strategy; when the stored records reach a certain threshold... When writing a record, remove the oldest record and write the latest record.

[0136] In addition, a condition switching flag is set in the scrolling memory window. When the flow rate change indicated by the condition identification result exceeds the preset flow rate change threshold, the condition switching flag is set and the scrolling memory window is paused from updating. When the flow rate change is lower than the preset flow rate change threshold and remains stable for more than the preset stable time, the condition switching flag is reset and the scrolling memory window is cleared. The scrolling memory window is then rebuilt using the current diagnostic result as the initial record.

[0137] Step S402: Determine the historical diagnostic consistency benchmark based on the historical diagnostic results stored in the scrolling memory window.

[0138] In this step, historical diagnostic results include the fusion probability distribution vector, diagnostic category labels, and fusion decision confidence. For the first [item] within the window... Historical records are assigned time decay weights. :

[0139]

[0140] in, This represents the attenuation factor, where more recent historical diagnostic results contribute more to the consistency benchmark.

[0141] Calculate the historical weighted average maximum class probability :

[0142]

[0143] in, For the first The maximum probability value in the final fusion probability distribution of historical records.

[0144] Within the window The frequency of diagnostic category labels in the historical records was analyzed, and the category with the highest frequency was selected as the dominant historical diagnostic category. If there are cases with the same frequency, the one with the most recent time will be taken as the dominant historical diagnostic category.

[0145] Calculate the weighted average probability of the historically dominant diagnostic category within the rolling memory window. :

[0146]

[0147] in, For the first The probability of the dominant historical category in the final fusion probability distribution of historical records.

[0148] Historical diagnostic consistency benchmarks include historical weighted average maximum category probability. Historically dominant diagnostic categories and historical dominant category weighted average probability .

[0149] Step S403: Determine the time consistency penalty item based on the difference between the historical diagnostic consistency benchmark and the current diagnostic result.

[0150] In this step, a time consistency penalty is determined based on the difference between the current diagnostic results and the historical diagnostic consistency benchmark. It is used to quantify the consistency between the current diagnostic result and the historical diagnostic results.

[0151] Probability fluctuation difference term Reflects the degree of deviation of the current diagnostic confidence from the historical average:

[0152]

[0153] in, This represents the maximum probability value in the final fusion probability distribution at the current moment. This is the preset probability balance coefficient.

[0154] Category jump difference item Reflecting the degree of jump in the current diagnostic category relative to the historical dominant category: if the current diagnostic category ,but

[0155]

[0156] in, The historical dominant category in the current final fusion probability distribution The probability; if ,but .

[0157] Time consistency penalty The calculation formula is:

[0158]

[0159] in, To preset the balance coefficient, . The larger, This indicates that the worse the consistency between the current diagnosis and the historical diagnosis, the lower the reliability of the current diagnosis.

[0160] It should be noted that when the operating condition identification result indicates that the current flow rate change rate exceeds the preset flow rate change threshold, it is determined to be an operating condition switching period. At this time, the time consistency penalty term is set to zero and the updating of the scrolling memory window is paused. When the flow rate change rate is lower than the preset flow rate change threshold and remains stable for more than the preset stable duration, the scrolling memory window is cleared and the current diagnostic result is used as the initial record reconstruction window to avoid continuous interference from old operating condition records to the diagnosis of new operating conditions.

[0161] Step S404: Correct the fusion decision confidence based on the time consistency penalty term to obtain the corrected fusion decision confidence.

[0162] In this step, the confidence level of the fusion decision is corrected according to the time consistency penalty term to obtain the corrected confidence level of the fusion decision. The corrected formula is:

[0163]

[0164] When the corrected fusion decision confidence is greater than or equal to the preset threshold, the final diagnostic result output in step S109 is maintained, and the corrected fusion decision confidence and the current diagnostic result are written into the scrolling memory window.

[0165] When the corrected fusion decision confidence is less than the preset threshold and the historical dominant diagnosis category is inconsistent with the current diagnosis category, the historical dominant diagnosis category replaces the current final diagnosis result, the corrected diagnosis conclusion and diagnosis prompt are output, and the corrected diagnosis conclusion and the corrected fusion decision confidence are written to the scrolling memory window.

[0166] When the corrected fusion decision confidence is less than the preset backtracking threshold and the historical dominant diagnosis category is consistent with the current diagnosis category, an uncertainty prompt is output, and the uncertainty prompt and the corrected fusion decision confidence are written to the scrolling memory window.

[0167] This embodiment improves diagnostic reliability by utilizing the temporal continuity of historical diagnostic results to perform posterior reliability assessment on the current diagnostic output.

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

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

[0170] Based on the same inventive concept, and corresponding to any of the above embodiments, this application also provides an intelligent diagnostic device for vortex flowmeters.

[0171] refer to Figure 2 The intelligent diagnostic device for the vortex flowmeter includes:

[0172] The signal acquisition module 201 is configured to acquire multi-source sensor signals of the vortex flowmeter.

[0173] The feature construction module 202 is configured to construct multimodal input features based on the multi-source sensor signals.

[0174] The neural network processing module 203 is configured to input the multimodal input features into a pre-trained end-to-end one-dimensional convolutional neural network and output signal quality assessment results, operating condition identification results, and fault diagnosis results.

[0175] The physical verification module 204 is configured to perform a physical consistency verification of the Strouhal equation based on the multi-source sensor signals and output a signal quality level.

[0176] The phase determination module 205 is configured to calculate the rate of change of the predicted distribution entropy based on the operating condition identification result and the fault diagnosis result, and determine the cold start phase; wherein, the cold start phase includes a physical constraint guidance period, a small amount of data adaptation period, and a sufficient data optimization period.

[0177] The guidance period processing module 206 is configured to, during the physical constraint guidance period, determine rule confidence based on the signal quality level and the output of the rule engine based on the domain knowledge graph, determine fusion decision confidence based on the rule confidence and the maximum category probability in the fault diagnosis result, determine information entropy based on the operating condition identification result and the predicted distribution of the fault diagnosis result, and output a diagnosis result in response to determining that the fusion decision confidence is greater than a preset fusion decision confidence threshold and the information entropy is less than a preset entropy threshold; otherwise, output an uncertain prompt.

[0178] The adaptation period fine-tuning module 207 is configured to use the computational redundancy of the neural processing unit to perform incremental fine-tuning training on the last convolutional layer and all task heads of the end-to-end one-dimensional convolutional neural network during the adaptation period of the small amount of data, and update the model parameters.

[0179] The optimization period update module 208 is configured to perform a full model update of the end-to-end one-dimensional convolutional neural network by utilizing the computing power redundancy of the neural processing unit during the sufficient data optimization period, and to perform unknown anomaly detection based on Mahalanobis distance and energy score.

[0180] The fusion output module 209 is configured to perform weighted fusion of the rule engine output and the fault diagnosis result according to the preset fusion weight corresponding to the current cold start stage, and take the category corresponding to the maximum probability after fusion as the final diagnosis result output.

[0181] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.

[0182] The apparatus described above is used to implement the corresponding intelligent diagnostic method for vortex flowmeters in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0183] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides 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 intelligent diagnostic method for vortex flowmeters described in any of the above embodiments.

[0184] Figure 3 This embodiment illustrates a more specific hardware structure of an electronic device, which may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.

[0185] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0186] The memory 1020 can be implemented in the form of ROM (Read-Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0187] The input / output interface 1030 is used to connect input / output modules to realize information input and output. The input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.

[0188] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0189] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.

[0190] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.

[0191] The electronic devices described above are used to implement the corresponding intelligent diagnostic method for vortex flowmeters in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0192] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the intelligent diagnostic method for vortex flowmeters as described in any of the above embodiments.

[0193] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0194] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the intelligent diagnostic method for vortex flowmeters as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0195] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application (including the claims) is limited to these examples; within the framework of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in the details for the sake of brevity.

[0196] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0197] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.

[0198] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.

Claims

1. A method for intelligent diagnosis of a vortex flow meter, characterized in that, include: Acquire the multi-source sensor signals of the vortex flowmeter; Based on the multi-source sensor signals, construct multimodal input features; The multimodal input features are input into a pre-trained end-to-end one-dimensional convolutional neural network, which outputs signal quality assessment results, operating condition identification results, and fault diagnosis results. Based on the multi-source sensor signals, perform a physical consistency check of the Strouhal equation and output the signal quality level; Based on the operating condition identification results and the fault diagnosis results, the rate of change of the predicted distribution entropy is calculated to determine the cold start stage; wherein, the cold start stage includes a physical constraint guidance period, a small amount of data adaptation period, and a sufficient data optimization period; During the physical constraint guidance period, rule confidence is determined based on the signal quality level and the output of the rule engine based on the domain knowledge graph. Fusion decision confidence is determined based on the rule confidence and the maximum category probability in the fault diagnosis result. Information entropy is determined based on the predicted distribution of the working condition identification result and the fault diagnosis result. In response to determining that the fusion decision confidence is greater than a preset fusion decision confidence threshold and the information entropy is less than a preset entropy threshold, a diagnosis result is output; otherwise, an uncertain prompt is output. During the limited data adaptation period, the computational redundancy of the neural processing unit is used to perform incremental fine-tuning training on the last convolutional layer and all task heads of the end-to-end one-dimensional convolutional neural network, and update the model parameters. During the sufficient data optimization period, the computing power redundancy of the neural processing unit is used to perform a full model update of the end-to-end one-dimensional convolutional neural network, and unknown anomalies are detected based on Mahalanobis distance and energy score. Based on the preset fusion weights corresponding to the current cold start phase, the output of the rule engine and the fault diagnosis results are weighted and fused, and the category corresponding to the maximum probability after fusion is taken as the final diagnosis result output.

2. The method according to claim 1, characterized in that, The calculation of the predicted rate of change of distribution entropy to determine the cold start phase includes: Based on the operating condition identification results and the fault diagnosis results, the ratio of the change in the model predicted distribution entropy within adjacent time periods to the corresponding time interval is calculated to obtain the rate of change of the predicted distribution entropy. In response to determining that the rate of change of the predicted distribution entropy is lower than a preset rate of change threshold and the pseudo-label coverage is higher than a preset coverage, the system switches from the physical constraint guidance period to the small amount of data adaptation period; wherein, the pseudo-label coverage is the proportion of samples automatically labeled with high confidence by the model to the total number of samples; During the limited data adaptation period, the Fisher information matrix is ​​calculated based on the current model parameters and the trace is obtained. The difference between the traces obtained from two consecutive calculations is calculated to obtain the increment of the trace. In response to determining that the increment of the trace is lower than a preset tolerance threshold, the system switches from the small data adaptation period to the sufficient data optimization period; After switching, in response to determining that the probability deviation between the output of the end-to-end one-dimensional convolutional neural network and the output of the rule engine in the diagnostic conclusion is greater than a preset deviation threshold, the process reverts to the previous stage and recalculates the rate of change of the predicted distribution entropy.

3. The method according to claim 1, characterized in that, The method further includes: Multiple vortex flowmeter nodes are formed into a federated learning consortium; The difference between the baseline model parameters and the current model parameters at the beginning of the current round of federated iterations for each node is calculated as the model parameter update amount; The node weight is determined based on the proportion of data volume of each node, and the model parameter update volume is weighted and aggregated according to the node weight to obtain the global parameter update volume. The global parameter update is superimposed on the local factory pre-trained parameters to obtain the initial parameters for the hot start of the new access point. The initial parameters for the hot start are used as the initial weights of the end-to-end one-dimensional convolutional neural network, and incremental fine-tuning training is performed during the small amount of data adaptation period.

4. The method according to claim 1, characterized in that, The method further includes: In response to determining that the deviation between the predicted flow rate and the measured vortex frequency determined based on the operating condition identification result is greater than a preset deviation threshold, the diagnostic conclusion output by the rule engine is used to replace the fault diagnosis result as the final diagnostic result.

5. The method according to claim 1, characterized in that, The step of weightedly fusing the rule engine output with the fault diagnosis result according to the preset fusion weight corresponding to the current cold start stage includes: During the physical constraint guidance period, the diagnostic conclusion output by the rule engine and the fault diagnosis result are fused according to a first fusion weight; wherein, the weight of the diagnostic conclusion output by the rule engine is greater than the weight of the fault diagnosis result. During the limited data adaptation period, the diagnostic conclusions output by the rule engine and the fault diagnosis results are fused according to a second fusion weight; wherein, the weight of the diagnostic conclusions output by the rule engine is equal to the weight of the fault diagnosis results. During the sufficient data optimization period, the diagnostic conclusions output by the rule engine and the fault diagnosis results are fused according to a third fusion weight; wherein, the weight of the fault diagnosis results is greater than the weight of the diagnostic conclusions output by the rule engine.

6. The method according to claim 1, characterized in that, The multi-source sensor signals include temperature signals and pressure signals; The Strouhal equation physical consistency verification based on the multi-source sensor signals includes the following output signal quality levels: Calculate the expected values ​​of medium density and flow velocity based on the temperature signal and the pressure signal, and determine the expected vortex frequency. The expected vortex shedding frequency is compared with the measured vortex shedding frequency to determine the deviation rate; The signal quality level is determined based on the deviation rate.

7. The method according to claim 1, characterized in that, The unknown anomaly detection based on Mahalanobis distance and energy fraction includes: Extract feature vectors from the shared fully connected layer output of the end-to-end one-dimensional convolutional neural network; Calculate the Mahalanobis distance and energy fraction of the eigenvectors; In response to determining that the Mahalanobis distance is greater than a preset Mahalanobis distance threshold and the energy score is less than a preset energy score threshold, it is marked as an unknown anomaly; The feature vectors corresponding to the unknown anomalies and the original signal segments are added as new categories to the subsequent training set.

8. A smart diagnostic device for a vortex flow meter, characterized in that, include: The signal acquisition module is configured to acquire multi-source sensor signals of the vortex flowmeter; The feature construction module is configured to construct multimodal input features based on the multi-source sensor signals; The neural network processing module is configured to input the multimodal input features into a pre-trained end-to-end one-dimensional convolutional neural network and output signal quality assessment results, operating condition identification results, and fault diagnosis results. The physical verification module is configured to perform Strouhal equation physical consistency verification based on the multi-source sensor signals and output the signal quality level. The phase determination module is configured to calculate the rate of change of the predicted distribution entropy based on the operating condition identification results and the fault diagnosis results, and determine the cold start phase; wherein, the cold start phase includes a physical constraint guidance period, a small amount of data adaptation period, and a sufficient data optimization period; The guidance period processing module is configured to, during the physical constraint guidance period, determine rule confidence based on the signal quality level and the output of the rule engine based on the domain knowledge graph, determine fusion decision confidence based on the rule confidence and the maximum class probability in the fault diagnosis result, determine information entropy based on the working condition identification result and the predicted distribution of the fault diagnosis result, and output a diagnosis result in response to determining that the fusion decision confidence is greater than a preset fusion decision confidence threshold and the information entropy is less than a preset entropy threshold; otherwise, output an uncertain prompt. The adaptation period fine-tuning module is configured to use the computational redundancy of the neural processing unit to perform incremental fine-tuning training on the last convolutional layer and all task heads of the end-to-end one-dimensional convolutional neural network during the adaptation period of the small amount of data, and update the model parameters. The optimization period update module is configured to perform a full model update of the end-to-end one-dimensional convolutional neural network by utilizing the computing power redundancy of the neural processing unit during the sufficient data optimization period, and to perform unknown anomaly detection based on Mahalanobis distance and energy score. The fusion output module is configured to perform weighted fusion of the rule engine output and the fault diagnosis result according to the preset fusion weight corresponding to the current cold start stage, and take the category corresponding to the maximum probability after fusion as the final diagnosis result output.

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 non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method described in any one of claims 1 to 7.