Self-optimizing ultrasonic flow monitoring method based on cloud center neural network

By deploying a neural network model in the cloud center and leveraging the powerful computing capabilities and global knowledge base of the cloud to optimize flow prediction, the problems of limited computing power and data silos in ultrasonic flow meters are solved, achieving high-precision and fast-response flow monitoring.

CN121009401BActive Publication Date: 2025-12-30MAXTOR INSTR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511543453.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-28
Publication Date
2025-12-30
Estimated Expiration
2045-10-28

AI Technical Summary

Technical Problem

Existing ultrasonic flow meters suffer from large measurement errors due to limited computing power and data silos, making them unable to quickly adapt to complex flow conditions and changing operating conditions.

Method used

A self-optimization method based on cloud-centric neural networks is adopted. Data is collected by deploying ultrasonic flow meters on-site and preprocessed in a lightweight manner. The data is then uploaded to the cloud center for feature supplementation and neural network training. The powerful computing capabilities and global knowledge base of the cloud are used to optimize the flow prediction model, and real-time calculation and model optimization are performed locally.

Benefits of technology

It improves the flow meter's calculation accuracy and ability to adapt to complex flow conditions, reduces measurement errors, enhances the equipment's intelligence and adaptability, and enables rapid response to sudden changes in operating conditions, avoiding the lag of traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121009401B_ABST
    Figure CN121009401B_ABST
Patent Text Reader

Abstract

The application provides a kind of self-optimization ultrasonic flow monitoring method based on cloud center neural network, comprising the following sub-steps: S1: collecting original data and performing lightweight pretreatment;S2: cloud center receives data and performs data storage and feature supplement;S3: training and optimization of cloud center neural network model;S4: issue optimal neural network model and perform local flow calculation;S5: optimize the model based on error results;The method introduces the deep neural network of cloud center to carry out flow prediction, uploads the data to the cloud, and the ultrasonic flowmeter is no longer limited by the computing power of the device, improves the calculation accuracy, improves the adaptability to complex flow state and working condition change, thereby reducing the measurement error;Data storage is carried out through the cloud center, and is associated with the global knowledge base, data and experience are shared between different devices, human experience dependence is reduced, and the problem of device dependence on local experience is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of ultrasonic technology for fluid flow measurement, and in particular to a self-optimizing ultrasonic flow monitoring method based on a cloud-centric neural network. Background Technology

[0002] Ultrasonic flow meters calculate flow rate by detecting the time difference (or phase difference) of ultrasonic waves propagating in a fluid along and against the flow, combined with fluid sound velocity, pipe parameters, etc., and are widely used in liquid flow monitoring. Ultrasonic flow meters typically rely on a fixed physical model of an embedded device for flow estimation; however, due to the limitations of the device's hardware resources, the flow calculation has the following drawbacks:

[0003] 1. Limited local computing power leads to large errors: The computing power and storage resources of embedded devices are limited by hardware, making it impossible to run complex nonlinear models, such as advanced technologies like deep neural networks. They rely on simple linear correction or lookup table methods, and their inability to adapt to complex flow conditions leads to large measurement errors.

[0004] 2. Data silos and experience dependence: Traditional local embedded devices cannot effectively share global data and can only rely on the local experience of a single device to make parameter corrections, resulting in poor generalization ability and inability to adapt to complex and ever-changing actual working conditions.

[0005] 3. Dynamic optimization lag: Traditional adaptive methods, such as local parameter adjustment based on Kalman filtering, have a slow response speed and cannot learn long-term patterns using historical data, making it difficult for traditional flow meters to make quick and accurate adjustments when faced with sudden changes in operating conditions. Summary of the Invention

[0006] The purpose of this invention is to address the shortcomings of existing technologies by proposing a self-optimizing ultrasonic flow monitoring method based on a cloud-centric neural network.

[0007] To achieve the above objectives, the present invention adopts the following technical solution:

[0008] The self-optimizing ultrasonic flow monitoring method based on cloud-centric neural networks includes the following sub-steps:

[0009] S1: Collect raw data and perform lightweight preprocessing;

[0010] S11: Collect raw data according to the set sampling frequency;

[0011] Multiple ultrasonic flow meters are pre-deployed on the pipeline. Each ultrasonic flow meter has a unique device ID, each pipeline has a unique pipe code, and each pipeline has a corresponding initial calibration value.

[0012] The ultrasonic flow meter synchronously collects raw data through a sensor group at a set sampling frequency; the sensor group includes an ultrasonic flow sensor, a temperature sensor, a pressure sensor, etc.; the sampling frequency is ≥100Hz / S.

[0013] The raw data includes ultrasonic propagation data, environmental parameters, equipment status parameters, basic pipeline data, timestamps, etc.

[0014] The ultrasonic propagation data includes downstream flight time, upstream flight time, echo signal intensity, and flow direction;

[0015] The environmental parameters include fluid temperature, fluid pressure, pipeline vibration noise, etc.

[0016] The device status parameters include transducer coupling status, local battery voltage, etc.

[0017] The basic pipeline data includes pipeline cross-sectional direction, pipeline code, initial calibration value, original inner diameter of the pipeline, pipeline condition, etc.

[0018] S12: Perform lightweight preprocessing on the collected raw data;

[0019] The ultrasonic flow meter performs lightweight preprocessing on the collected raw data, including noise reduction, normalization, feature extraction, and data compression.

[0020] High-frequency noise in the original data is removed using denoising techniques such as moving average filtering; the original data is normalized using methods such as linear scaling.

[0021] The feature extraction includes extracting basic features such as countercurrent time difference and temperature-pressure ratio;

[0022] Specifically, the time difference of the countercurrent is denoted as... Downstream flight time is Counter-current flight time , Let the fluid temperature be T, the fluid pressure be P, and the temperature-pressure ratio be T / P.

[0023] The preprocessed raw data is compressed, and after compression, it is packaged together with the extracted basic features, device ID, pipeline code, and timestamp and uploaded to the cloud center.

[0024] S2: The cloud center receives data and performs data storage and feature supplementation;

[0025] The cloud center receives data uploaded by multiple ultrasonic flow meters and categorizes and stores the received data according to device ID and timestamp;

[0026] The cloud center is associated with a global knowledge base, which includes pipeline design drawings, fluid type knowledge base, and historical data of ultrasonic flow meters under different operating conditions. Based on the information in the global knowledge base, the cloud center supplements the received data with features, adding the flow velocity range, temperature / pressure range, pipeline status flow velocity value, and flow rate value of the ultrasonic flow meter under normal operating conditions, high temperature operating conditions, high pressure operating conditions, and abnormal operating conditions to the classified and stored data, forming a multi-dimensional feature vector.

[0027] S3: Training and optimization of the cloud center neural network model;

[0028] Includes the following sub-steps:

[0029] S31: Deploy the neural network model and train it;

[0030] A neural network model is deployed in the cloud center. The neural network model includes an input layer, a first fully connected hidden layer, an attention mechanism hidden layer, a second fully connected hidden layer, and an output layer.

[0031] The multidimensional feature vector is used as input features into the neural network model. Each dimension of the multidimensional feature vector is a node. The input layer of the neural network model receives the input features and passes them to the first fully connected hidden layer.

[0032] The first fully connected hidden layer contains multiple nodes, each with a corresponding weight, forming a weight matrix. The first fully connected hidden layer receives the input features from the input layer, multiplies the value of each node in the input features sequentially with the weight matrix, and adds it to the bias term preset by the input layer to obtain a weighted value. The weighted value is then non-linearly transformed using the ReLU activation function. If the weighted value is negative, it is transformed to zero; if it is positive, it remains unchanged. The transformed multi-dimensional vector is output, with each dimension corresponding to a feature.

[0033] The multidimensional vector is passed to the hidden layer of the attention mechanism, which focuses on the key features in the multidimensional vector. The attention mechanism performs weighted processing on the key features and outputs a weighted multidimensional vector.

[0034] The weighted multidimensional vector is passed to the second fully connected hidden layer. The weight matrix in the second fully connected hidden layer is multiplied with the weighted multidimensional vector and added to the bias term. The weighted value is then nonlinearly transformed by the ReLU activation function. If the weighted value is negative, it is transformed to zero; if it is positive, it remains unchanged. The final multidimensional vector is then output.

[0035] The final multidimensional vector is passed to the output layer, which performs weighted processing on the final multidimensional vector through a linear activation function. The weighted output value is the predicted flow rate value, thus obtaining the trained neural network model.

[0036] Furthermore, the weight matrix and bias terms in the second fully connected hidden layer are different from those in the first fully connected hidden layer;

[0037] S32: Optimize the trained neural network model to obtain the optimal neural network model;

[0038] Abnormal operating conditions are assigned higher weights than normal operating conditions using the weighted mean square error method. These abnormal operating conditions include sudden changes in flight time difference or waveform anomalies. The predicted flow velocity is output, and the error between the predicted and actual flow velocity values ​​is minimized using the weighted mean square error loss function. During training, the neural network model is optimized through dynamic weight adjustment, regularization, and other methods until the error is within a preset range, thus obtaining the optimal neural network model.

[0039] S4: Distribute the optimal neural network model and perform local traffic calculation;

[0040] Includes the following sub-steps:

[0041] S41: The cloud center sends the trained optimal neural network model to the ultrasonic flow meter;

[0042] The cloud center pre-sets specific conditions such as the prediction error exceeding a set threshold, including two distribution methods: periodic distribution and triggered distribution.

[0043] The periodic distribution refers to the distribution of the optimal neural network model to the ultrasonic flow meter according to a set cycle;

[0044] The trigger-based sending means that when a preset specific condition is detected, the optimal neural network model is immediately sent to the ultrasonic flow meter.

[0045] S42: Output the predicted flow rate value and obtain the predicted flow rate value based on the predicted flow rate value;

[0046] Based on the method described in step S2, a real-time multidimensional feature vector is obtained. The multidimensional feature vector is then input into the optimal neural network model issued by the cloud center, and the optimal neural network model outputs the predicted flow rate value.

[0047] The predicted flow rate is calculated by combining the cross-sectional area of ​​the pipe;

[0048] The specific calculation method is as follows: ;

[0049] in, For predicting flow velocity, A is the cross-sectional area of ​​the pipe. The angle between the fluid flow direction and the normal to the pipe cross-section. To predict flow rates;

[0050] The cross-sectional area A of the pipe is the initial calibration value of the pipe plus the effective correction amount for the inner diameter of the pipe;

[0051] ;

[0052] Where v is the flow velocity vector and n is the normal vector of the pipe cross-section. Let |v| and |n| be the dot product of the velocity vector and the normal vector of the pipe cross section, where |v| and |n| are the magnitudes of the velocity vector and the normal vector of the pipe cross section, respectively.

[0053] The flow direction and predicted flow velocity value obtained by the ultrasonic flow meter constitute the flow velocity vector; the cross-sectional normal of the pipe is perpendicular to the cross-section of the pipe. The cross-sectional normal of the pipe is set as a unit vector, that is, the magnitude is 1, to form the cross-sectional normal of the pipe.

[0054] Furthermore, in the event of a malfunction or network interruption, the local ultrasonic calculation method is switched: the current flow velocity value is obtained through the time-of-flight method; and through... The formula yields the current flow rate; at this point... This represents the current flow rate.

[0055] S5: Optimize the optimal neural network model based on the error results;

[0056] Includes the following sub-steps:

[0057] S51: Perform error analysis and obtain key training samples;

[0058] The cloud center pre-sets a difference threshold, a reference flow velocity value, and a reference flow rate value. The cloud center calculates the difference between the predicted flow velocity value and the reference flow velocity value, and the predicted flow rate value and the reference flow rate value. If any difference exceeds the set difference threshold, the cloud center combines the raw data collected by sensors and ultrasonic transducers to identify high-error operating conditions. These high-error operating conditions include low-temperature and low-flow-velocity scenarios in specific areas. Corresponding data is extracted from these high-error operating conditions as key training samples. These corresponding data include pipe cross-sectional area, temperature, etc.

[0059] S52: Incrementally train the optimal neural network model;

[0060] The optimal neural network model is retrained using full data, which includes the original data, sample data from the global database, and filtered data of the optimal neural network model under various working conditions. The optimized neural network model is then used for subsequent calculations to achieve dynamic self-optimization of the neural network model.

[0061] Preferably, for scenarios with privacy protection requirements, each ultrasonic flow meter performs lightweight model training. The lightweight model includes Long Short-Term Memory (LSTM) networks, one-dimensional convolutional neural networks (1D-CNN), etc., and the specific method is as follows:

[0062] The image data is obtained by taking pictures with a camera and based on image recognition technology. The original data and image data after lightweight preprocessing in step S12 are augmented by Gaussian noise, time offset, amplitude scaling and other methods.

[0063] The lightweight model is trained using processed time-series data, and INT8 quantization is simulated during training to reduce the model's storage and computational load without significantly reducing accuracy. The updated lightweight model weights (cross-sectional area, temperature parameters, etc.) are uploaded to the cloud center for aggregation via encrypted communication to ensure data privacy and security.

[0064] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0065] This method introduces a deep neural network in the cloud center for flow prediction, which has stronger computing power and more complex model training capabilities. By uploading data to the cloud, the ultrasonic flow meter is no longer limited by the device's computing power, improving calculation accuracy and adaptability to complex flow states and changes in operating conditions, thereby reducing measurement errors.

[0066] Data is stored in the cloud center and linked to the global knowledge base, which can retrieve information related to pipelines, equipment and environment to supplement data features. Data and experience are shared among different devices, which enables flow meters to better adapt to different pipeline or operating conditions, enhances the intelligence and adaptability of the equipment, reduces reliance on human experience, and solves the problem of equipment relying on local experience.

[0067] It employs a cloud-centric neural network model for learning and dynamic optimization, repeatedly optimizing through training and testing sets to adjust the prediction model in real time. By using a weighted mean square error method to assign higher weights to abnormal operating conditions, it can quickly respond to sudden changes in operating conditions. This enables the flowmeter to make faster and more accurate adjustments when faced with sudden changes in operating conditions, eliminating the need for manual calibration of each unit. It avoids the lag of traditional adaptive methods and improves the dynamic adaptability and response speed of the equipment. Attached Figure Description

[0068] Figure 1 This is a flowchart illustrating the steps of the self-optimizing ultrasonic flow monitoring method based on a cloud-centric neural network according to the present invention. Detailed Implementation

[0069] To provide a further understanding of the purpose, structure, features, and functions of the present invention, detailed descriptions are provided below with reference to specific embodiments.

[0070] like Figure 1 As shown, the self-optimizing ultrasonic flow monitoring method based on a cloud-centric neural network includes the following sub-steps:

[0071] S1: Collect raw data and perform lightweight preprocessing;

[0072] S11: Collect raw data according to the set sampling frequency;

[0073] Multiple ultrasonic flow meters are pre-deployed on the pipeline. Each ultrasonic flow meter has a unique device ID, each pipeline has a unique pipe code, and each pipeline has a corresponding initial calibration value.

[0074] The ultrasonic flow meter synchronously collects raw data through a sensor group at a set sampling frequency; the sensor group includes an ultrasonic flow sensor, a temperature sensor, a pressure sensor, etc.; the sampling frequency is ≥100Hz / S.

[0075] The raw data includes ultrasonic propagation data, environmental parameters, equipment status parameters, basic pipeline data, timestamps, etc.

[0076] The ultrasonic propagation data includes downstream flight time, upstream flight time, echo signal strength, and flow direction; the signal-to-noise ratio is evaluated using the echo signal strength.

[0077] The environmental parameters include fluid temperature, fluid pressure, pipeline vibration noise, etc.

[0078] The device status parameters include transducer coupling status, local battery voltage, etc.

[0079] The basic pipeline data includes pipeline cross-sectional direction, pipeline code, initial calibration value, original inner diameter of the pipeline, pipeline condition, etc.

[0080] Specifically, the ultrasonic flow sensor collects data such as downstream flight time, upstream flight time, and echo signal strength through an ultrasonic transducer; it collects fluid temperature through a temperature sensor; it obtains fluid pressure through a pressure sensor; it collects pipeline vibration noise through a vibration sensor; it monitors the coupling status of the ultrasonic transducer through sensors (judging the coupling effect through the signal attenuation coefficient); and it collects the local battery voltage through a voltage sensor (which can indirectly reflect the health of the equipment based on the battery voltage).

[0081] Furthermore, the timestamp of the acquired data is generated by the real-time clock (RTC) built into the ultrasonic flow meter;

[0082] S12: Perform lightweight preprocessing on the collected raw data;

[0083] The ultrasonic flow meter performs lightweight preprocessing on the collected raw data, including noise reduction, normalization, feature extraction, and data compression.

[0084] High-frequency noise in the original data is removed using denoising techniques such as moving average filtering; the original data is normalized using methods such as linear scaling.

[0085] The feature extraction includes extracting basic features such as countercurrent time difference and temperature-pressure ratio; feature extraction can help reduce model computational complexity and improve prediction accuracy.

[0086] Specifically, the time difference of the countercurrent is denoted as... Downstream flight time is Counter-current flight time , Let the fluid temperature be T, the fluid pressure be P, and the temperature-pressure ratio be T / P.

[0087] The preprocessed raw data is compressed, and after compression, it is packaged together with the extracted basic features, device ID, pipeline code, and timestamp and uploaded to the cloud center.

[0088] S2: The cloud center receives data and performs data storage and feature supplementation;

[0089] The cloud center receives data uploaded by multiple ultrasonic flow meters and categorizes and stores the received data according to device ID and timestamp;

[0090] The cloud center is associated with a global knowledge base, which includes pipeline design drawings, fluid type knowledge base, historical data of ultrasonic flow meters under different operating conditions, etc.; the cloud center supplements the received data with features based on the information in the global knowledge base.

[0091] Specifically, the cloud center obtains the effective correction amount of the pipe inner diameter and regional environmental characteristics from the global knowledge base based on the pipe code; the cloud center obtains the equipment lifecycle characteristics from the global knowledge base based on the equipment ID;

[0092] The regional environmental characteristics include regional seasonal temperature fluctuation patterns and flow correlation between adjacent flow meters;

[0093] The device lifecycle characteristics include the ultrasonic flow meter's operating time and historical calibration records.

[0094] The flow velocity range, temperature / pressure range, flow velocity value and flow rate value of the ultrasonic flow meter under normal operating conditions, high temperature operating conditions, high pressure operating conditions and abnormal operating conditions, as well as the effective correction amount of the pipe inner diameter, regional environmental characteristics and equipment life cycle characteristics, are supplemented into the classified and stored data to form a multi-dimensional feature vector.

[0095] S3: Training and optimization of the cloud center neural network model;

[0096] Includes the following sub-steps:

[0097] S31: Deploy the neural network model and train it;

[0098] A neural network model is deployed in the cloud center. The neural network model includes an input layer, a first fully connected hidden layer, an attention mechanism hidden layer, a second fully connected hidden layer, and an output layer.

[0099] The multidimensional feature vector is used as input features into the neural network model. Each dimension of the multidimensional feature vector is a node. The input layer of the neural network model receives the input features and passes them to the first fully connected hidden layer.

[0100] The first fully connected hidden layer contains multiple nodes, each with a corresponding weight, forming a weight matrix. The first fully connected hidden layer receives the input features from the input layer, multiplies the value of each node in the input features sequentially with the weight matrix, and adds it to the bias term preset by the input layer to obtain a weighted value. The weighted value is then non-linearly transformed using the ReLU activation function. If the weighted value is negative, it is transformed to zero; if it is positive, it remains unchanged. The transformed multi-dimensional vector is output, with each dimension corresponding to a feature.

[0101] The multidimensional vector is passed to the hidden layer of the attention mechanism, which focuses on the key features in the multidimensional vector. The attention mechanism performs weighted processing on the key features and outputs a weighted multidimensional vector.

[0102] The weighted multidimensional vector is passed to the second fully connected hidden layer. The weight matrix in the second fully connected hidden layer is multiplied with the weighted multidimensional vector and added to the bias term. The weighted value is then nonlinearly transformed by the ReLU activation function. If the weighted value is negative, it is transformed to zero; if it is positive, it remains unchanged. The final multidimensional vector is then output.

[0103] The final multidimensional vector is passed to the output layer, which performs weighted processing on the final multidimensional vector through a linear activation function. The weighted output value is the predicted flow rate value, thus obtaining the trained neural network model.

[0104] Furthermore, the weight matrix and bias terms in the second fully connected hidden layer are different from those in the first fully connected hidden layer;

[0105] S32: Optimize the trained neural network model to obtain the optimal neural network model;

[0106] Abnormal operating conditions are assigned higher weights than normal operating conditions using the weighted mean square error method. These abnormal operating conditions include sudden changes in flight time difference or waveform anomalies. The predicted flow velocity is output, and the error between the predicted and actual flow velocity values ​​is minimized using the weighted mean square error loss function. During training, the neural network model is optimized through dynamic weight adjustment, regularization, and other methods until the error is within a preset range, thus obtaining the optimal neural network model.

[0107] This method only requires lightweight data acquisition and feature extraction (low computing power requirements), while complex calculations are handled by the cloud center, reducing hardware costs.

[0108] S4: Distribute the optimal neural network model and perform local traffic calculation;

[0109] Includes the following sub-steps:

[0110] S41: The cloud center sends the trained optimal neural network model to the ultrasonic flow meter;

[0111] The cloud center pre-sets specific conditions, such as prediction errors exceeding a set threshold, among which...

[0112] It includes two distribution methods: scheduled distribution and triggered distribution;

[0113] The periodic distribution refers to the distribution of the optimal neural network model to the ultrasonic flow meter according to a set cycle;

[0114] The trigger-based sending means that when a preset specific condition is detected, the optimal neural network model is immediately sent to the ultrasonic flow meter.

[0115] It combines two model update methods: periodic and triggered. When a specific condition is detected, such as the prediction error exceeding the limit, the optimal model can be quickly sent to the flow meter for real-time adjustment, which improves the flow meter's response speed. Especially in the event of equipment abnormality or network interruption, it can quickly switch to local calculation mode. It improves real-time performance and flexibility, and can quickly correct and adapt to new situations when equipment failure or abnormal operating conditions occur, thereby ensuring that the flow meter always maintains high-precision calculation capabilities.

[0116] S42: Output the predicted flow rate value and obtain the predicted flow rate value based on the predicted flow rate value;

[0117] Based on the method described in step S2, a real-time multidimensional feature vector is obtained. The multidimensional feature vector is then input into the optimal neural network model issued by the cloud center, and the optimal neural network model outputs the predicted flow rate value.

[0118] The predicted flow rate is calculated by combining the cross-sectional area of ​​the pipe;

[0119] The specific calculation method is as follows: ;

[0120] in, For predicting flow velocity, A is the cross-sectional area of ​​the pipe. The angle between the fluid flow direction and the normal to the pipe cross-section. To predict flow rates;

[0121] The cross-sectional area A of the pipe is the initial calibration value of the pipe plus the effective correction amount for the inner diameter of the pipe;

[0122] ;

[0123] Where v is the flow velocity vector and n is the normal vector of the pipe cross-section. Let |v| and |n| be the dot product of the velocity vector and the normal vector of the pipe cross section, where |v| and |n| are the magnitudes of the velocity vector and the normal vector of the pipe cross section, respectively.

[0124] The flow direction and predicted flow velocity value obtained by the ultrasonic flow meter constitute the flow velocity vector; the cross-sectional normal of the pipe is perpendicular to the cross-section of the pipe. The cross-sectional normal of the pipe is set as a unit vector, that is, the magnitude is 1, to form the cross-sectional normal of the pipe.

[0125] Furthermore, tasks and triggering conditions are set in advance; the triggering conditions are a fault or network interruption, and the task is to switch the local ultrasound calculation mode.

[0126] In case of failure or network interruption, switch the local ultrasonic calculation method: obtain the current flow velocity value through the time-of-flight difference method; and through... The formula yields the current flow rate; at this point... This represents the current flow rate.

[0127] S5: Optimize the optimal neural network model based on the error results;

[0128] Includes the following sub-steps:

[0129] S51: Perform error analysis and obtain key training samples;

[0130] The cloud center pre-sets a difference threshold, a reference flow velocity value, and a reference flow rate value. The cloud center calculates the difference between the predicted flow velocity value and the reference flow velocity value, and the predicted flow rate value and the reference flow rate value. If any difference exceeds the set difference threshold, the cloud center combines the raw data collected by sensors and ultrasonic transducers to identify high-error operating conditions. These high-error operating conditions include low-temperature and low-flow-velocity scenarios in specific areas. Corresponding data is extracted from these high-error operating conditions as key training samples. These corresponding data include pipe cross-sectional area, temperature, etc.

[0131] S52: Incrementally train the optimal neural network model;

[0132] The optimal neural network model is retrained using full data, which includes the original data, sample data from the global database, and filtered data of the optimal neural network model under various working conditions. The optimized neural network model is then used for subsequent calculations to achieve dynamic self-optimization of the neural network model.

[0133] Preferably, for scenarios with privacy protection requirements, each ultrasonic flow meter performs lightweight model training. The lightweight model includes Long Short-Term Memory (LSTM) networks, one-dimensional convolutional neural networks (1D-CNN), etc., and the specific method is as follows:

[0134] The image data is obtained by taking pictures with a camera and based on image recognition technology. The original data and image data after lightweight preprocessing in step S12 are augmented by Gaussian noise, time offset, amplitude scaling and other methods.

[0135] Specifically, noise is added to the time-series signal using Gaussian noise to simulate the error of the original data; different sampling times or environmental changes are simulated by using time offset; and data under different measurement conditions are simulated by using amplitude scaling.

[0136] Normalize the time series data; for long-term time series signals (such as large bubble or empty tube state), divide the time series signal into fixed-length segments by sliding window to reduce the computational complexity of lightweight models and improve training efficiency.

[0137] The lightweight model is trained using processed time-series data, and INT8 quantization is simulated during training to reduce the model's storage and computational load without significantly reducing accuracy. The updated lightweight model (cross-sectional area, temperature parameters, etc.) weights are uploaded to the cloud center for aggregation via encrypted communication to ensure data privacy and security.

[0138] By querying and comparing similar signals under highly similar operating conditions (such as the same fluid type, pipe material, etc., which lead to slight differences in flow rate and different fault modes), the operating condition type that adapts to slight parameter changes is detected and analyzed through database query and comparison, and different filtering algorithms are selected to adapt the model. The flow meter model parameters are then queried and matched through database query and model matching, and data is shared in the cloud to accelerate the model convergence of new equipment.

[0139] In scenarios with high privacy protection requirements, flow meters can perform lightweight local model training (such as LSTM, 1D-CNN), reducing reliance on cloud resources; they can also enhance and normalize locally trained data to reduce computational complexity, and perform INT8 quantization to reduce model storage and computation without reducing accuracy; this improves data privacy and security, reduces the computational burden on devices, improves model training efficiency, and ensures performance.

[0140] The present invention has been described in the above-described embodiments; however, these embodiments are merely examples for implementing the present invention. It must be noted that the disclosed embodiments do not limit the scope of the present invention. Conversely, any modifications and refinements made without departing from the spirit and scope of the present invention are within the scope of patent protection of the present invention.

Claims

1. A cloud-centric neural network based self-optimizing ultrasonic flow monitoring method, characterized in that: Comprise the following steps: S1: Collect raw data and perform lightweight preprocessing; S11: Collect raw data according to the set sampling frequency; S12: Perform lightweight preprocessing on the collected raw data; S2: The cloud center receives data and performs data storage and feature supplementation; S3: Training and optimization of cloud center neural network model; S31: Deploy the neural network model and perform training; S32: Optimize the trained neural network model to obtain the optimal neural network model; S4: Issue the optimal neural network model and perform local flow calculation; S41: The cloud center issues the trained optimal neural network model to the ultrasonic flowmeter; S42: Output the predicted flow rate value and obtain the predicted flow value based on the predicted flow rate value; S5: Optimize the optimal neural network model based on the error result; S51: Perform error analysis and obtain key training samples; S52: Incremental training of the optimal neural network model.

2. The cloud center neural network based self-optimizing ultrasonic flow monitoring method of claim 1, wherein: The specific content of step S1 is as follows: A plurality of ultrasonic flowmeters are deployed on the field pipeline in advance, the device ID of each ultrasonic flowmeter is unique, the pipeline code of each pipeline is unique, and each pipeline has a corresponding initial calibration value; the ultrasonic flowmeter synchronously collects raw data through a sensor group according to a set sampling frequency; The raw data includes downstream flight time, upstream flight time, flow direction, fluid temperature, fluid pressure, pipeline cross-section direction, pipeline code, initial calibration value, pipeline original inner diameter, and time stamp; The basic features include upstream time difference and temperature-pressure ratio; 3. The cloud center neural network based self-optimizing ultrasonic flow monitoring method of claim 1, wherein: In step S2, the cloud center receives data uploaded by the plurality of ultrasonic flowmeters, and stores the data collected by the ultrasonic flowmeters according to the device ID and time stamp; The cloud center is associated with a global knowledge base, and the cloud center supplements the received data based on information in the global knowledge base, including pipeline inner diameter effective correction amount, regional environment characteristics, device life cycle characteristics, and historical data of the ultrasonic flowmeter under different working conditions; and forms a multi-dimensional feature vector. ​ ​ ​ ​ recording the difference in the reverse flow time as , forward flow time as , reverse flow time , ; recording the fluid temperature as T, the fluid pressure as P, and the temperature-pressure ratio as T / P. ​ ​ ​ 4. The cloud center neural network-based self-optimizing ultrasonic flow monitoring method of claim 1, wherein: The specific content of step S3 is as follows: S31: deploying a neural network model and training the same; The cloud center deploys a neural network model, which includes an input layer, a first fully connected hidden layer, an attention mechanism hidden layer, a second fully connected hidden layer, and an output layer; A multi-dimensional feature vector is input into the neural network model as an input feature, each dimension of the multi-dimensional feature vector being a node, and the input layer of the neural network model receives the input feature and passes it to the first fully connected hidden layer; The first fully connected hidden layer contains multiple nodes, each node having a corresponding weight, forming a weight matrix, the first fully connected hidden layer receives the input feature passed by the input layer, multiplies the value of each node in the input feature with the weight matrix in sequence, and adds a preset bias term of the input layer, obtaining a weighted value; the weighted value is nonlinearly transformed by a ReLU activation function, if the weighted value is negative, it is transformed to zero, and if the weighted value is positive, it remains unchanged, and a multi-dimensional vector after transformation is output, each dimension corresponding to a feature; The multi-dimensional vector is passed to the attention mechanism hidden layer, and the key features in the multi-dimensional vector are focused through the attention mechanism; The attention mechanism performs weighted processing on the key features and outputs a weighted multi-dimensional vector; The weighted multi-dimensional vector is passed to the second fully connected hidden layer, the weight matrix in the second fully connected hidden layer is multiplied by the weighted multi-dimensional vector and added to the bias term, and the weighted value is nonlinearly transformed by a ReLU activation function, if the weighted value is negative, it is transformed to zero, and if the weighted value is positive, it remains unchanged, and a final multi-dimensional vector is output; The final multi-dimensional vector is passed to the output layer, the output layer performs weighted processing on the final multi-dimensional vector through a linear activation function, and the weighted value is a predicted flow rate value; a trained neural network model is obtained; S32: optimizing the trained neural network model to obtain an optimal neural network model; An abnormal working condition is given a higher weight than a normal working condition by a weighted mean square error method; a weighted MSE loss function is used to minimize the error between the predicted flow rate value and the actual value, the neural network model is optimized by dynamic weight adjustment and regularization during the training process, until the error is within a preset range, and an optimal neural network model is obtained.

5. The cloud center neural network-based self-optimizing ultrasonic flow monitoring method of claim 1, wherein: In step S42, the specific calculation method of the predicted flow rate value and the predicted flow value is as follows: Based on the method of step S2, a real-time multi-dimensional feature vector is obtained, the multi-dimensional feature vector is input into the optimal neural network model issued by the cloud center, and the optimal neural network model outputs a predicted flow rate value; And the predicted flow value is calculated by combining the pipe cross-sectional area; The specific calculation method is: ; wherein, is the predicted flow rate value, A is the pipe cross-sectional area, is the angle between the flow direction of the fluid and the normal to the pipe cross-sectional area, is the predicted flow rate value; The pipe cross-sectional area A is the initial calibration value of the pipe plus the effective correction amount of the pipe inner diameter; ; Wherein, v is a flow rate vector, n is a pipe cross-sectional normal vector, v*n is the dot product of the flow rate vector and the pipe cross-sectional normal vector, |v| and |n| are the modules of the flow rate vector and the pipe cross-sectional normal vector. The flow direction and the predicted flow rate value obtained by the ultrasonic flow meter constitute a flow rate vector; the cross-sectional normal of the pipeline is a direction perpendicular to the cross section of the pipeline, and the cross-sectional normal of the pipeline is set as a unit vector, i.e., the size is 1, to constitute the cross-sectional normal of the pipeline.

6. The cloud center neural network-based self-optimization ultrasonic flow monitoring method according to claim 1, wherein: The specific content of step S5 is as follows: The difference threshold value, the reference flow rate value and the reference flow value are set in the cloud center in advance; the cloud center calculates the difference between the predicted flow rate value and the reference flow rate value, and the difference between the predicted flow value and the reference flow value; if any of the differences is greater than the set difference threshold value, the high error working condition is identified in combination with the original data collected by the sensor and the ultrasonic transducer, and the corresponding data in the high error working condition is extracted as the key training sample; S52: Incremental training of the optimal neural network model; The optimal neural network model is retrained using full-quantity data, including original data, data in the global database, and data filtered by the optimal neural network model under various working conditions; An optimized neural network model is obtained, which is used for subsequent calculation to realize dynamic self-optimization of the neural network model.

7. The cloud center neural network-based self-optimization ultrasonic flow monitoring method according to claim 1, wherein: For scenarios with privacy protection requirements, each ultrasonic flow meter performs lightweight model training, and the specific method is as follows: Image data is obtained by taking pictures through a camera and based on image recognition technology; the original data after lightweight preprocessing in step S12 and the image data are subjected to data enhancement in the form of Gaussian noise, time offset and amplitude scaling; The processed time series data is used to train the lightweight model, and INT8 quantization is simulated during the training process to reduce the storage and calculation amount of the model without significantly reducing the accuracy; the updated lightweight model weight is uploaded to the cloud center cloud through encrypted communication for aggregation.

Citation Information

Patent Citations

  • Metering method and system for flow of water meter based on improved Elman neural network

    CN109724657A

  • Wind resistance prediction method and system, electronic equipment and storage medium

    CN118536668A