Intelligent water meter self-diagnosis and fault prediction method and system

By combining multi-scale signal decomposition and manifold learning dimensionality reduction with domain-adaptive transfer learning and adaptive diagnostic strategies, the problems of degradation feature extraction and multi-failure mode coupling analysis of smart water meters are solved, achieving high-precision fault prediction and system-level lifetime prediction, reducing energy consumption and improving resource utilization efficiency.

CN123138754APending Publication Date: 2026-11-20HENAN BIANJING INSTR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611248525.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-18
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing predictive maintenance technologies for smart water meters suffer from problems such as difficulty in extracting degradation features, difficulty in information fusion, low prediction accuracy with small samples, fixed diagnostic strategies, and insufficient multi-failure mode coupling analysis, resulting in delayed fault detection, low resource utilization efficiency, and low accuracy in system-level lifetime prediction.

Method used

We employ multi-scale signal decomposition, manifold learning dimensionality reduction, domain-adaptive transfer learning, adaptive diagnostic strategies, and multi-failure mode modeling, combined with Bayesian deep learning, to perform self-diagnosis and fault prediction of smart water meters. We dynamically select feature subsets, construct health indices, optimize the allocation of diagnostic resources, and predict the remaining service life of the system.

Benefits of technology

It enables early detection of degradation signals, improves fault prediction accuracy, reduces energy consumption, optimizes resource utilization, and enhances the accuracy and reliability of system-level lifetime prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138754A_ABST
    Figure CN123138754A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of intelligent instrument predictive maintenance, and discloses a self-diagnosis and fault prediction method and system for an intelligent water meter, which comprises the following steps: multi-source degradation feature adaptive extraction, multi-scale degradation features are extracted from multiple operation signals, and an optimal feature subset is dynamically selected; health state space mapping and degradation trajectory learning, high-dimensional features are mapped to a low-dimensional health state space through manifold learning, a health index is constructed, and a degradation trajectory is learned online; cross-condition migration fault prediction, a model is pre-trained by using accelerated degradation data and is migrated to an actual working condition through domain adaptation; active sensing and diagnosis opportunity optimization, a sampling frequency and a diagnosis strategy are adaptively adjusted according to the health state. The application can realize accurate self-diagnosis and life prediction of the intelligent water meter, and significantly improves the predictive maintenance capability and operation and maintenance management efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of predictive maintenance technology for smart meters, specifically to a method and system for self-diagnosis and fault prediction of smart water meters. Background Technology

[0002] As a key metering terminal in urban water supply systems, the operational reliability of smart water meters directly impacts the service quality and economic benefits of water supply companies. With the continuous expansion of smart water meter deployment and the increase in their operational lifespan, equipment aging and failure issues are becoming increasingly prominent. According to industry statistics, the failure rate of smart water meters that have been in operation for more than 5 years has increased significantly, with an average annual failure rate of 8%-15%. Battery depletion, sensor failure, and valve malfunction are the main failure modes.

[0003] Traditional smart water meter maintenance mainly adopts a reactive, post-failure repair model, meaning that repairs and replacements are only carried out after the water meter malfunctions. This model has many problems: delayed fault detection, with an average fault detection time of 7-15 days; poor maintenance planning, resulting in high costs for emergency repairs; and a lack of scientific basis for equipment replacement decisions, leading to either premature replacement resulting in waste or delayed replacement affecting service.

[0004] In recent years, predictive maintenance technology has gradually gained attention. By monitoring and predicting the health status of equipment, maintenance activities can be scheduled in advance, effectively reducing operation and maintenance costs and improving equipment reliability. However, the application of existing predictive maintenance technologies in the field of smart water meters still faces many challenges: Degradation feature extraction is difficult and lacks sensitivity. The degradation process of smart water meters is slow and insidious, with weak early degradation signals that are easily masked by noise. Most existing methods use fixed feature sets, which cannot adapt to feature changes at different degradation stages, resulting in low sensitivity for early degradation detection. In particular, for progressive degradation such as sensor drift and battery capacity decay, traditional methods often only detect it when degradation has progressed to a relatively severe stage, missing the optimal maintenance opportunity.

[0005] The fusion of high-dimensional degradation information is challenging, and a unified health status representation is lacking. The degradation information of smart water meters is distributed across multiple sensors and signal dimensions. A key challenge is how to fuse this high-dimensional degradation information into an interpretable, unified health status representation. Most existing methods are based on single features or simple weighted fusion, failing to fully utilize the complementarity of multi-source degradation information and struggling to capture the intrinsic evolutionary patterns of the degradation process.

[0006] Low prediction accuracy and poor adaptability across operating conditions are observed with small sample sizes. Obtaining full lifecycle data for smart water meters is difficult, and in actual operation, only a small amount of degradation data is often available. Existing data-driven prediction methods typically require a large amount of labeled data to train the model, making it difficult to guarantee prediction accuracy in small sample scenarios. Furthermore, the degradation patterns of water meters differ under different installation environments and water usage patterns, making it difficult for a single model to adapt to multiple operating conditions, resulting in a significant decrease in prediction accuracy across operating conditions.

[0007] Fixed diagnostic strategies lead to low resource utilization efficiency. Most existing smart water meters employ fixed-cycle sampling and diagnostic methods for self-diagnosis, failing to dynamically adjust the diagnostic strategy based on the actual health status of the equipment. When the equipment is in good health, excessive sampling and diagnostics cause unnecessary energy consumption and shorten battery life; conversely, when equipment degradation accelerates, the fixed sampling frequency may fail to capture critical degradation information in a timely manner, resulting in delayed fault warnings.

[0008] Insufficient multi-failure mode coupling analysis leads to low accuracy in system-level lifetime prediction. Smart water meters exhibit multiple failure modes, such as sensor failure, battery depletion, valve malfunction, and circuit board aging. These failure modes may exhibit correlations and competition. Existing methods mostly focus on lifetime prediction for single failure modes, neglecting the coupling effects between multiple failure modes, resulting in significant biases in system-level lifetime prediction results. Summary of the Invention

[0009] The purpose of this invention is to provide a method and system for self-diagnosis and fault prediction of smart water meters, which solves the problems in the background technology.

[0010] The present invention adopts the following technical solution: A method for self-diagnosis and fault prediction of smart water meters includes the following steps: S1. Extract multi-scale degradation features from various operating signals of smart water meters, and dynamically select the optimal feature subset based on feature sensitivity evaluation; S2. Map high-dimensional degradation features to a low-dimensional health state space, construct a health index that represents the overall health state of the water meter, and learn the evolution law of degradation trajectory online. S3. Pre-train the prediction model using laboratory accelerated degradation data, and transfer the model to water meters under actual working conditions through the domain adaptation method to achieve fault prediction under small sample conditions. S4. Based on the current health status, the sampling frequency and diagnostic cycle are adaptively adjusted to optimize the allocation of diagnostic resources under energy constraints, thereby achieving proactive fault detection. S5. Model the correlation between multiple failure modes, analyze the impact of competing failures and common cause failures on system reliability, and realize system-level remaining service prediction. S6. Model the maintenance decision-making process as a partially observable Markov decision-making process and solve the optimal maintenance strategy through reinforcement learning; S7. Based on Bayesian deep learning, the uncertainty of the prediction results is quantified, the prediction range and confidence level are given, and the risk value is used to provide graded early warning.

[0011] Preferably, step S1 specifically includes: S11. Multi-scale signal decomposition: Multi-scale decomposition of various operating signals of the water meter, such as voltage signal, current signal, sound signal, and temperature signal, to extract feature components of different frequency bands; S12. Construction of Degradation Feature Set: Extract time-domain features, frequency-domain features, and time-frequency-domain features from each scale component to construct an initial degradation feature set; S13. Feature Sensitivity Assessment: Based on multiple indicators such as mutual information, monotonicity, trend, and robustness, a comprehensive sensitivity assessment of features is conducted, and the degradation sensitivity score of each feature is calculated. S14. Dynamic Feature Selection: Based on the sensitivity scores, the optimal feature subset is dynamically selected and updated as the degradation process progresses, ensuring that the features remain sensitive to the degradation state.

[0012] Preferably, step S2 specifically includes: S21. Manifold Learning Dimensionality Reduction Mapping: The manifold learning method is used to map high-dimensional degenerate features to a low-dimensional healthy state space, preserving the inherent geometric structure and degenerate trajectory information of the data; S22. Health Index Construction: Based on a low-dimensional health state space, a unified health index is constructed to integrate multi-dimensional deterioration information into a single-dimensional interpretable health state representation. S23. Degradation trajectory modeling: Model the degradation trajectory of the time series of health indexes and use parametric or non-parametric methods to describe the evolution of the degradation trajectory. S24. Trajectory Library Construction and Update: Construct a trajectory library containing degraded trajectories under different working conditions and fault modes, and continuously update and expand the trajectory library through online learning.

[0013] Preferably, step S3 specifically includes: S31. Source Domain Model Pre-training: Pre-train the basic fault prediction model in the source domain using laboratory accelerated degradation test data to learn general degradation patterns and fault evolution laws. S32. Domain Adaptation Transfer: By using domain adversarial training or feature alignment methods, the distribution difference between the source domain and the target domain is reduced, and the pre-trained model is transferred to the actual working conditions of the target domain. S33. Small sample fine-tuning: Fine-tuning the transfer model using a small amount of labeled data in the target domain to quickly adapt to specific degradation features of the target domain; S34. Transfer effect evaluation: Evaluate the transfer effect based on the target domain validation data. When the transfer effect does not meet the requirements, trigger active learning and select the most valuable samples for annotation.

[0014] Preferably, step S4 specifically includes: S41. Health Status Sensing: Real-time monitoring of the health status of the water meter, assessing the current stage of degradation and the risk of failure; S42. Adaptive sampling adjustment: The sampling frequency is dynamically adjusted according to the health status and degradation rate. When the health status is good, the sampling frequency is reduced to save energy, and when the degradation is accelerated, the sampling frequency is increased to capture degradation details. S43. Active Diagnosis Trigger: When abnormal signs or accelerated degradation are detected, deep diagnosis is actively triggered, activating more sensors and analysis modules; S44. Optimization of Diagnostic Resource Allocation: Under the constraints of energy and computing resources, establish an optimization model for the allocation of diagnostic resources to maximize diagnostic accuracy and energy efficiency.

[0015] Preferably, step S5 specifically includes: S51 Failure Mode Identification: Identify the main failure modes of the water meter, including sensor failure, battery depletion, valve failure, circuit board aging, etc. S52. Correlation Modeling: The Copula function or the Teng Copula method is used to model the correlation between multiple failure modes and to characterize the nonlinear dependency between failure modes. S53. Competitive Failure Analysis: Analyzes the competitive relationship between multiple failure modes, i.e., the failure mode that occurs first determines the system lifetime, and calculates the failure probability contribution of each failure mode. S54. Common Cause Failure Analysis: Identify common causes that lead to the simultaneous occurrence of multiple failure modes and assess the impact of common cause failures on system reliability. S55. System-level lifetime prediction: Taking into account both competing failures and common cause failures, calculate the remaining lifetime distribution and reliability function at the system level.

[0016] Preferably, step S6 specifically includes: S61, POMDP Modeling: The water meter maintenance decision-making process is modeled as a partially observable Markov decision-making process, defining the state space, action space, observation space, transition probability, observation probability, and reward function. S62. State estimation: Based on the observation data, Bayesian filtering or particle filtering methods are used to estimate the true health state distribution of the system; S63. Strategy Solution: Deep reinforcement learning methods are used to solve the optimal maintenance strategy, achieving a balance between minimizing long-term cost and maximizing reliability. S64. Multi-objective optimization: Considering multiple objectives such as maintenance cost, equipment availability, and maintenance personnel workload, generate a Pareto optimal set of maintenance strategies; S65. Online Strategy Update: Update maintenance strategies online based on actual maintenance results and degradation data to continuously optimize decision-making quality.

[0017] Preferably, step S7 specifically includes: S71. Bayesian deep learning modeling: A prediction model is constructed using a Bayesian neural network or a Bayesian recurrent neural network, and the uncertainty of the model is characterized by the probability distribution of the weights. S72. Uncertainty Quantification: Quantifying the cognitive and stochastic uncertainties of prediction results using Monte Carlo dropout or variational inference methods; S73. Prediction Interval Estimation: Provides the confidence interval and probability density function of the prediction result, quantifying the reliability of the prediction result; S74. Value at Risk (VaR): Calculate the VaR and conditional VaR based on the probability distribution of the prediction results to assess the risk of failure under extreme conditions. S75. Tiered early warning mechanism: Set multiple early warning thresholds based on risk value and confidence level to achieve tiered risk early warning and differentiated response.

[0018] Preferably, S71, Bayesian deep learning modeling: a prediction model is constructed using a Bayesian neural network or a Bayesian recurrent neural network, and the uncertainty of the model is characterized by the probability distribution of the weights; S72. Uncertainty Quantification: Quantifying the cognitive and stochastic uncertainties of prediction results using Monte Carlo dropout or variational inference methods; S73. Prediction Interval Estimation: Provides the confidence interval and probability density function of the prediction result, quantifying the reliability of the prediction result; S74. Value at Risk (VaR): Calculate the VaR and conditional VaR based on the probability distribution of the prediction results to assess the risk of failure under extreme conditions. S75. Tiered early warning mechanism: Set multiple early warning thresholds based on risk value and confidence level to achieve tiered risk early warning and differentiated response.

[0019] Preferably, a smart water meter self-diagnosis and fault prediction system includes: The system comprises the following modules: a multi-source sensing module, integrating various sensors and signal acquisition circuits to collect multi-source operating signals from the water meter, including voltage, current, acoustics, and temperature; a degradation feature extraction module, used for multi-scale decomposition and degradation feature extraction of multi-source signals, and dynamically selecting the optimal feature subset; a health status assessment module, used to map high-dimensional features to a low-dimensional health status space, construct a health index, and learn degradation trajectories; a transfer prediction module, used to achieve fault prediction and remaining life estimation across operating conditions based on transfer learning; an active sensing and control module, used to adaptively adjust sampling frequency and diagnostic strategies according to health status, and optimize diagnostic resource allocation; a multi-failure analysis module, used to model the correlation of multiple failure modes, perform competitive failure analysis, and predict system-level lifespan; a maintenance decision module, used to generate optimal maintenance strategies based on partially observable Markov decision processes and reinforcement learning; and a confidence prediction and early warning module, used for uncertainty quantification and graded risk early warning based on Bayesian deep learning.

[0020] The beneficial effects of this invention are as follows: A rich set of degradation features is established through multi-scale signal decomposition and multi-dimensional feature construction; comprehensive feature sensitivity evaluation and dynamic feature selection ensure that the most sensitive feature subset is always used at different degradation stages. Compared with fixed feature set methods, it can detect abnormal signals at the nascent stage of degradation.

[0021] A manifold learning approach is employed to map high-dimensional degradation features to a low-dimensional health state space, constructing a unified health index that preserves the inherent geometric structure of the degradation process while providing an interpretable, single-dimensional health state representation. Through degradation trajectory modeling and trajectory database learning, the evolutionary patterns of degradation can be accurately captured, providing a reliable foundation for lifespan prediction.

[0022] The sampling frequency and diagnostic strategy are adaptively adjusted based on the health status. When the health status is good, the sampling frequency is reduced to save energy; when degradation accelerates, the sampling frequency is increased to capture details, achieving on-demand allocation of diagnostic resources. Compared with fixed-cycle diagnostic methods, this approach reduces energy consumption while ensuring diagnostic accuracy, effectively extending the lifespan of battery-powered equipment. Attached Figure Description

[0023] Figure 1 This is a schematic diagram of the overall architecture of the prediction system of the present invention.

[0024] Figure 2 This is a flowchart of the prediction method of the present invention.

[0025] Figure 3 This is a flowchart of the adaptive extraction method for multi-source degradation features of the present invention. Detailed Implementation

[0026] The technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art are within the scope of protection of the present invention.

[0027] Example 1: refer to Figure 1-3 This paper presents a self-diagnosis and fault prediction method and system for smart water meters. The application is a certain model of ultrasonic smart water meter, which has a built-in ER26500 lithium thionyl chloride battery with a nominal capacity of 8500mAh and a nominal voltage of 3.6V. The water meter integrates a battery monitoring circuit, which can measure parameters such as open-circuit voltage, load voltage, discharge current, internal resistance, and temperature. The sampling circuit uses a 24-bit high-precision ADC with a sampling resolution of 1μV and an internal resistance measurement accuracy of ±5%.

[0028] The experiment consisted of three accelerated degradation tests: a normal temperature group (25℃), a medium temperature group (45℃), and a high temperature group (60℃), with 20 water meters in each group. The accelerated degradation test was conducted continuously, and battery parameters were measured periodically. Simultaneously, 100 water meters were selected for on-site verification in a real-world operating environment for varying operating times.

[0029] Specific methods include: Adaptive Extraction of Multi-Source Degradation Features (1) Multiscale signal decomposition The battery voltage signal was decomposed using wavelet packet decomposition with the db4 wavelet basis function. The decomposition was performed at four levels, yielding wavelet packet coefficients for 16 frequency bands. The wavelet packet energy was calculated for the coefficients in each frequency band. E_i=Σ|c_i,j| 2 ; Where c_i,j are the coefficients of the j-th wavelet packet in the i-th frequency band, and E_i is the energy of the i-th frequency band.

[0030] Simultaneously, ensemble empirical mode decomposition (EEMD) was performed on the voltage signal, with white noise added at an amplitude of 0.2 times the standard deviation, and the ensemble was performed 100 times to obtain 10 intrinsic mode function (IMF) components.

[0031] (2) Construction of Degeneracy Feature Set A total of 56 dimensions of degradation features were extracted from the original signal and each decomposed component, including: Time-domain features (12 dimensions): mean, standard deviation, variance, peak value, peak-to-peak value, kurtosis, skewness, waveform factor, peak factor, impulse factor, margin factor, slope; Frequency domain characteristics (8 dimensions): center frequency, mean square frequency, frequency variance, frequency standard deviation, spectral kurtosis, spectral entropy, dominant frequency amplitude, dominant frequency position; Time-frequency domain features (16 dimensions): energy of each wavelet packet frequency band, wavelet packet energy entropy, energy of each IMF component, and IMF energy entropy; Statistical characteristics (20 dimensions): quantiles (5%, 25%, 50%, 75%, 95%), interquartile range, coefficient of variation, range, first-order difference mean, second-order difference mean, etc.

[0032] (3) Feature sensitivity assessment Four indicators were used to assess the degradation sensitivity of each feature: Monotonicity: Measures the degree to which a feature changes monotonically over time. Mon = |#positive difference -#negative difference| / (n-1); Where #positive difference represents the number of positive first-order differences, #negative difference represents the number of negative first-order differences, and n is the number of samples.

[0033] Trend: Measures the degree of linear correlation between a feature and time, using the absolute value of the correlation coefficient.

[0034] Mutual information: measures the mutual information between a feature and a degradation state, reflecting the amount of degradation information contained in the feature.

[0035] Robustness: Measures a feature’s ability to resist noise interference, using the reciprocal of the signal-to-noise ratio.

[0036] The entropy weight method was used to calculate the objective weights of the four indicators: monotonicity weight 0.35, trend weight 0.30, mutual information weight 0.25, and robustness weight 0.10. The comprehensive sensitivity score for each feature was then calculated.

[0037] (4) Dynamic feature selection Features are ranked based on their overall sensitivity scores, and a forward search method is used to select the optimal feature subset. Initially, the five features with the highest sensitivity are selected, and then features with the next highest sensitivity are added sequentially. The search stops when a newly added feature no longer significantly improves prediction accuracy (improvement <1%).

[0038] Experimental results show that in the early stage of degradation, battery internal resistance and voltage plateau slope are the most sensitive features; in the middle stage of degradation, voltage fluctuation rate and internal resistance growth rate are the most sensitive; and in the late stage of degradation, voltage drop rate and discharge capacity decay rate are the most sensitive. Dynamic feature selection can automatically adjust the feature subset according to the degradation stage, always maintaining high sensitivity to the degradation state.

[0039] Health state spatial mapping and degradation trajectory learning (1) Manifold learning dimensionality reduction mapping The UMAP (Uniform Manifold Approximation and Projection) method is used to map the 12-dimensional optimal feature subset to a 2-dimensional health state space. The neighborhood size of UMAP is set to 15, the minimum distance is set to 0.1, and the distance metric is Euclidean distance.

[0040] After UMAP dimensionality reduction, samples at different degradation stages exhibit a clear trajectory distribution in 2D space: samples in the new state cluster in the upper right corner of the space, samples move towards the lower left corner along the curved path as degradation progresses, and samples nearing failure cluster in the lower left corner. The spatial structure after dimensionality reduction clearly reflects the inherent geometric structure of the degradation process.

[0041] (2) Construction of health index The output of the bottleneck layer of the autoencoder is used as the health index. The autoencoder structure is as follows: 12-dimensional input layer → 8-dimensional encoding layer → 1-dimensional bottleneck layer → 8-dimensional decoding layer → 12-dimensional output layer. Mean squared error is used as the reconstruction loss to train the autoencoder to learn the low-dimensional representation of the data.

[0042] After training, the one-dimensional output of the bottleneck layer is the health index HI. HI is then normalized. HI_norm=(HI-HI_failure) / (HI_fresh-HI_failure); Where HI_fresh is the health index for a brand new state, and HI_failure is the health index corresponding to the failure threshold. After normalization, HI_norm ∈ [0,1], where 1 represents brand new and 0 represents failure.

[0043] (3) Degradation trajectory modeling The degradation trajectory of health index time series is modeled using a Gamma process. The Gamma process is a monotonically non-decreasing stochastic process, suitable for describing cumulative damage-type degradation. X(t)-Gamma(α(t),β); Where α(t) is the shape parameter, which increases with time, and β is the scale parameter. The maximum likelihood estimation method is used to estimate the model parameters.

[0044] Experimental results show that the Gamma process can fit the battery capacity degradation trajectory well, with a coefficient of determination R0. 2 It reaches 0.95 or higher.

[0045] (4) Trajectory database construction and updating A trajectory library containing 60 degraded trajectories was constructed, covering degraded trajectories under three temperature conditions and three load conditions. Dynamic Time Warping (DTW) was used to measure the similarity between trajectories. DTW(T1,T2)=minΣd(t1_i,t2_j) Where d is the distance between points, the optimal alignment path is found through dynamic programming.

[0046] When new degraded data is available, an online learning method is used to update the trajectory database: if the similarity between the new trajectory and a trajectory in the database is higher than a threshold, the new trajectory is updated with the new data; if the similarity is lower than the threshold, the new trajectory is added to the trajectory database.

[0047] Cross-condition migration fault prediction (1) Source domain model pre-training Using accelerated degradation data from a high-temperature group (60℃) as the source domain, a remaining lifespan prediction model was pre-trained. The source domain contained complete degradation data from 20 water meters, with approximately 200 time points for each meter. The prediction model employed a Long Short-Term Memory (LSTM) network, with the input being a sequence of health indices from the past 30 days and the output being a probability distribution of remaining lifespan.

[0048] Model structure: Input layer → LSTM layer (64 hidden units) → LSTM layer (32 hidden units) → Fully connected layer → Output layer. Mean squared error is used as the loss function, Adam optimizer is employed, learning rate is 0.001, and training lasts for 100 epochs.

[0049] (2) Domain adversarial migration Domain Adversarial Neural Networks (DANNs) are used to achieve the transfer from high-temperature to normal-temperature operating conditions. A DANN consists of three parts: a feature extractor, a predictor, and a domain discriminator. The feature extractor and predictor constitute the prediction branch, while the domain discriminator constitutes the domain classification branch.

[0050] The training process employs a gradient inversion layer (GRL) to implement adversarial training: during forward propagation, the GRL acts as an identity mapping; during backward propagation, the GRL multiplies the gradient by -λ, enabling the feature extractor to learn domain-invariant features.

[0051] The weighted sum of domain adversarial loss and prediction loss is taken as the total loss: L_total = L_pred + λ × L_domain; Where λ is the domain adversarial weight, which adopts a progressively increasing strategy, increasing linearly from 0 to 1.

[0052] (3) Fine-tuning with small samples In the target domain (normal temperature group), the top 50% of degraded data from 5 water meters were selected as labeled data for fine-tuning. A layer-by-layer unfreezing strategy was adopted: the last layer was fine-tuned first, and then the previous layers were gradually unfrozen. The fine-tuning learning rate was set to 1 / 10 of the pre-training learning rate.

[0053] Experimental results show that: Without using transfer learning, and directly training with 5 target domain samples, RUL predicts a MAE of 45.2 days. Using transfer learning and fine-tuning with 5 samples, RUL predicted a MAE of 18.7 days, improving accuracy by 58.6%. Using all 20 target domain samples for training, RUL predicts a MAE of 15.3 days.

[0054] Transfer learning significantly improves prediction accuracy under small sample conditions, achieving near-full-scale training accuracy with only 1 / 4 of the labeled data.

[0055] Active perception and diagnosis optimization (1) Adaptive sampling strategy Establish a mapping relationship between sampling frequency and health status: f_sampling=f_base×(1+α×(1-HI) 2 ); Where f_base is the base sampling frequency (once a day), α is the adjustment coefficient (set to 2.0), and HI is the health index.

[0056] When HI=1 (new state), the sampling frequency is once a day; When HI=0.5 (intermediate degradation), the sampling frequency is 1.5 times per day; When HI=0.2 (accelerated degradation), the sampling frequency is 2.56 times per day; When HI=0.1 (near failure), the sampling frequency is 3.62 times per day.

[0057] (2) Active diagnosis trigger Set two active diagnostic trigger conditions: Condition 1: The rate of decline in the health index exceeds the threshold (the rate of decline is >0.01 / day for 3 consecutive days). Condition 2: Health index is below the warning threshold (HI<0.3).

[0058] Active diagnostics is triggered when any condition is met, performing in-depth diagnostic operations such as high-precision internal resistance measurement, deep discharge testing, and temperature scanning.

[0059] (3) Energy efficiency analysis Compared to a fixed sampling of twice per day, the adaptive sampling strategy reduces the total number of samples by 42% over the entire lifespan, resulting in a 38% reduction in energy consumption. Simultaneously, the sampling density is increased by 80% during the critical degradation phase (the last 20% of the lifespan), enabling more precise capture of the accelerated degradation process.

[0060] This embodiment achieves the following results in the battery degradation prediction task: Early detection capability: Capable of detecting degradation signals when capacity decays to 5%, approximately 30% earlier than the traditional voltage threshold method. Prediction accuracy: The mean absolute percentage error (MAPE) for predicting remaining lifetime 6 months in advance is 12.5%, and the MAPE for predicting 3 months in advance is 7.8%. Small sample performance: Achieves the prediction accuracy of traditional methods with 20 samples using only 5 labeled samples, reducing labeling costs by 75%. Energy efficiency: Reduces diagnostic energy consumption by 38% while maintaining prediction accuracy, effectively extending battery life by approximately 6 months.

[0061] Example 2: Optimization Scheme for Smart Water Meter System-Level Lifespan Prediction and Maintenance Decisions under Multiple Failure Modes This embodiment is deployed in a water supply company in a prefecture-level city, covering 50,000 smart water meters, including 30,000 ultrasonic water meters, 10,000 electromagnetic water meters, and 10,000 mechanical smart water meters. The water meters are distributed in various scenarios such as residential communities, commercial buildings, and industrial enterprises, and their operating environments vary greatly.

[0062] Multi-failure mode correlation modeling and competing failure analysis (1) Failure Mode Identification Identify the main failure modes of smart water meters using Failure Mode and Effects Analysis (FMEA): Failure Mode 1: Sensor Failure (FM1) – Ultrasonic transducer attenuation, pressure sensor drift, etc., leading to inaccurate or unmeasurable measurements. This accounts for 35% of all failures.

[0063] Failure Mode 2: Battery Depletion (FM2) – Battery capacity decays to the lower limit, causing the water meter to malfunction. This accounts for 40% of all failures.

[0064] Failure Mode 3: Valve Failure (FM3) – Valve wear, jamming, seal failure, etc., prevent the valve from opening and closing properly. This accounts for 15% of all failures.

[0065] Failure Mode 4: Circuit Board Aging (FM4) – Aging of electronic components, solder joint fatigue, etc., lead to abnormal circuit function. This accounts for 10% of all failures.

[0066] (2) Degeneration feature extraction and health status assessment For each failure mode, corresponding degradation features are extracted, and their respective health indices are constructed: FM1 Health Index (HI1): Constructed based on sensor signal-to-noise ratio, echo amplitude, measurement deviation and other characteristics, it reflects the health status of the sensor.

[0067] FM2 Health Index (HI2): Based on characteristics such as battery voltage, internal resistance, and capacity decay, it reflects the health status of the battery.

[0068] FM3 Health Index (HI3): Based on characteristics such as valve operating current, operating time, and position status, it reflects the health status of the valve.

[0069] FM4 Health Index (HI4): Based on characteristics such as circuit board power consumption, clock drift, and communication error rate, it reflects the health status of the circuit board.

[0070] All health indices are normalized to the [0,1] range, where 1 represents healthy and 0 represents ineffective.

[0071] (3) Correlation modeling The correlation between the health indices of the four failure modes is modeled using the Gaussian Copula function: C(u1,u2,u3,u4)=Φ_G(Φ -1 (u1),Φ -1 (u2),Φ -1 (u3),Φ -1 (u4);Σ); Where Φ_G is the cumulative distribution function of the multivariate normal distribution, Φ -1 Let Σ be the inverse cumulative distribution function of the standard normal distribution, and Σ be the correlation coefficient matrix.

[0072] Estimating the correlation coefficient matrix based on historical fault data: The correlation coefficient ρ between FM1 and FM2 12 =0.35 (moderate positive correlation; temperature affects both) The correlation coefficient ρ between FM1 and FM3 13 =0.15 (weak positive correlation); The correlation coefficient ρ between FM1 and FM4 14 =0.25 (weak positive correlation); The correlation coefficient ρ between FM2 and FM3 23 =0.20 (weak positive correlation); The correlation coefficient ρ between FM2 and FM4 24 =0.40 (moderate positive correlation; both battery aging and circuit board aging are affected by temperature) The correlation coefficient ρ between FM3 and FM4 34 =0.30 (moderate positive correlation) (4) Competition failure analysis Calculate the system reliability function based on the Copula function: R_sys(t)=P(T1>t,T2>t,T3>t,T4>t)=C(R1(t),R2(t),R3(t),R4(t);Σ) Where T_i is the failure time of the i-th failure mode, and R_i(t) is the reliability function of the i-th failure mode.

[0073] Calculate the failure probability contribution of each failure mode: α_i=P(T_i=min(T1,T2,T3,T4)); That is, the probability that the i-th failure mode becomes the dominant failure mode (occurs first).

[0074] The calculation results show that: After 3 years of operation, battery depletion contributed the most (α2=0.42), followed by sensor failure (α1=0.33). After 5 years of operation, the contribution of sensor failure increased to 0.38, while the contribution of battery depletion was 0.37, which were close. After 7 years of operation, the contribution of circuit board aging increased significantly to 0.22, sensor failure contributed 0.35, and battery depletion contributed 0.28.

[0075] (5) Common Cause Failure Analysis The impact of common-cause failures was assessed using a beta-factor model. Identified common-cause factors included: Extreme temperatures: High temperatures accelerate battery aging and sensor degradation, β_temperature=0.12; Humidity effect: High humidity accelerates circuit board corrosion and seal failure, β_humidity=0.08; Water quality impact: Poor water quality accelerates valve wear and sensor contamination, β_water=0.10; After considering common-cause failures, the system reliability decreases, especially under extreme environmental conditions, where the impact of common-cause failures is more significant.

[0076] III. Optimization of POMDP Maintenance Decisions (1) POMDP modeling The maintenance decision of smart water meters is modeled as a discrete-time POMDP, defined as follows: State space S: The healthy state is discretized into 10 levels, S = {s0, s1, ..., s9}, where s0 represents a completely new state and s9 represents complete failure. The system state is a combination of the four failure modes and the healthy state, for a total of 10 levels. 4 =10,000 states.

[0077] Action space A: A={a0,a1,a2}, where a0 indicates no maintenance (continue to run), a1 indicates preventive maintenance (replace vulnerable parts), and a2 indicates replacement (replace the entire meter).

[0078] Observation space O: The observed combination of health indices. Due to the presence of measurement noise, the observed values ​​deviate from the true state.

[0079] State transition probability P: The probability of transitioning from one state to another, calculated based on the degradation model.

[0080] Observation probability O: The probability of observing a specific observation value given the true state, determined by the measurement noise model.

[0081] Reward function R: R(s,a0)=-C_failure×P(failure|s) (loss due to failure when no maintenance is performed) R(s,a1) = -C_preventive (preventive maintenance cost) R(s,a2)=-C_replace (replacement cost) Where C_failure is the cost of failure (including repair costs, downtime losses, user complaint costs, etc.), C_preventive is the cost of preventive maintenance, and C_replace is the cost of replacement.

[0082] Cost parameters: C_failure=500 yuan, C_preventive=150 yuan, C_replace=300 yuan.

[0083] (2) State estimation The belief state (i.e., the posterior probability distribution of the state) is estimated using a particle filtering method. The number of particles is set to 1000, and the particle weights are updated using importance sampling and resampling methods.

[0084] After obtaining each new observation, perform the following steps: 1. Prediction: Predict the next state of the particle based on the state transition model; 2. Update: Update particle weights based on the observation model; 3. Resampling: Resampling is performed according to weights to maintain particle diversity.

[0085] (3) Strategy solution The optimal maintenance strategy is solved using a deep Q-network (DQN). The input of DQN is a vector representation of the belief state (10000 dimensions → compressed to 256 dimensions), and the output is the Q value of each action.

[0086] Network structure: Input layer → Fully connected layer (256 units, ReLU) → Fully connected layer (128 units, ReLU) → Fully connected layer (64 units, ReLU) → Output layer (3 units, corresponding to 3 actions).

[0087] Experience replay and target network techniques are used for stable training. During training, the agent interacts with the environment, collects empirical data, and updates the network parameters through gradient descent.

[0088] Training parameters: learning rate 0.0003, discount factor 0.99, experience replay pool size 100,000, batch size 64, target network update frequency once every 1,000 steps.

[0089] (4) Multi-objective optimization Consider three optimization objectives: Objective 1: Minimize the total expected cost in the long run Objective 2: Maximize equipment availability Objective 3: Balance maintenance workload A multi-objective reinforcement learning approach is employed to generate a Pareto-optimal policy set. Decision-makers can then select appropriate policies on the Pareto frontier based on their specific needs.

[0090] (5) Comparison of implementation results Comparing the optimal POMDP strategy with traditional strategies: Traditional Strategy 1: Fixed replacement cycle (replace every 6 years) -- Average annual cost of 82 yuan / unit, availability rate of 97.5%. Traditional Strategy 2: Replace after failure – Average annual cost: 95 yuan / unit; Availability: 95.2% Traditional Strategy 3: Fixed Threshold Maintenance (Maintenance when Health Index < 0.3) -- Average annual cost: 72 RMB / unit, Availability: 98.3% The POMDP strategy of this invention has an average annual cost of 58 yuan per unit and an availability rate of 99.1%. Compared to the optimal traditional strategy (fixed threshold maintenance), the POMDP strategy of this invention reduces maintenance costs by 19.4% while increasing availability by 0.8 percentage points.

[0091] IV. Bayesian Confidence Prediction and Risk Warning (1) Bayesian LSTM modeling Bayesian Long Short-Term Memory (LSTM) network is used to predict remaining lifetime. BayesianLSTM replaces the deterministic weights of traditional LSTM with probability distributions, and uses the uncertainty of the weights to characterize the cognitive uncertainty of the model.

[0092] A variational inference method is used to approximate the posterior distribution, with each weight following a normal variational distribution, and the parameters being the mean μ and standard deviation σ. During training, the lower bound of evidence (ELBO) is optimized. ELBO=E_q[logp(D|w)]-KL(q(w)||p(w)) The first term is the expected log-likelihood, and the second term is the KL divergence between the variational distribution and the prior distribution.

[0093] (2) Quantification of uncertainty Uncertainty is quantified using the Monte Carlo Dropout method. During prediction, the network undergoes T random forward propagations (each time randomly discarding different neurons), resulting in T predicted values.

[0094] Calculate the predicted mean and variance: μ_pred=(1 / T)Σy_t; σ 2 _total=(1 / T)Σ(y_t-μ_pred) 2 +σ 2 _noise; The first term is cognitive uncertainty (model uncertainty), and the second term is random uncertainty (inherent noise in the data).

[0095] The experiment was set up with T=50 Monte Carlo samplings.

[0096] (3) Prediction interval estimation Based on the probability distribution of the prediction results, a 95% prediction interval is constructed: PI_95%=[μ_pred-1.96σ_total,μ_pred+1.96σ_total]; A conformal prediction method is used to calibrate the prediction interval to ensure that the actual coverage reaches the nominal confidence level.

[0097] (4) Value at Risk Calculation Calculate the Value at Risk (VaR) and Conditional Value at Risk (CVaR) for the remaining useful life: VaR_α=inf{r|P(RUL≤r)≥α}; CVaR_α=E[RUL|RUL≤VaR_α]; Where α is the confidence level, usually taken as 0.95 or 0.99.

[0098] VaR indicates that at a 95% confidence level, RUL will not be shorter than the VaR value; CVaR indicates the conditional expectation of RUL in the worst-case 5% scenario.

[0099] (5) Tiered early warning mechanism Set up a three-level early warning system: Attention Level (Blue Alert): CVaR_95% < 180 days, confidence level > 0.7. Response Measures: Add to watchlist, increase monitoring frequency.

[0100] Warning level (yellow alert): CVaR_95% < 90 days, confidence level > 0.8. Response measures: Arrange a preventive maintenance plan.

[0101] Danger Level (Red Alert): CVaR_95% < 30 days, confidence level > 0.9. Response Measures: Urgently arrange maintenance or replacement.

[0102] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for self-diagnosis and fault prediction of smart water meters, characterized in that, Includes the following steps: S1. Extract multi-scale degradation features from various operating signals of smart water meters, and dynamically select the optimal feature subset based on feature sensitivity evaluation; S2. Map high-dimensional degradation features to a low-dimensional health state space, construct a health index that represents the overall health state of the water meter, and learn the evolution law of degradation trajectory online. S3. Pre-train the prediction model using laboratory accelerated degradation data, and transfer the model to water meters under actual working conditions through the domain adaptation method to achieve fault prediction under small sample conditions. S4. Based on the current health status, the sampling frequency and diagnostic cycle are adaptively adjusted to optimize the allocation of diagnostic resources under energy constraints, thereby achieving proactive fault detection. S5. Model the correlation between multiple failure modes, analyze the impact of competing failures and common cause failures on system reliability, and realize system-level remaining service prediction. S6. Model the maintenance decision-making process as a partially observable Markov decision-making process and solve the optimal maintenance strategy through reinforcement learning; S7. Based on Bayesian deep learning, the uncertainty of the prediction results is quantified, the prediction range and confidence level are given, and the risk value is used to provide graded early warning.

2. The method for self-diagnosis and fault prediction of a smart water meter according to claim 1, characterized in that, Step S1 specifically includes: S11. Multi-scale signal decomposition: Multi-scale decomposition of various operating signals of the water meter, such as voltage signal, current signal, sound signal, and temperature signal, to extract feature components of different frequency bands; S12. Construction of Degradation Feature Set: Extract time-domain features, frequency-domain features, and time-frequency-domain features from each scale component to construct an initial degradation feature set; S13. Feature Sensitivity Assessment: Based on multiple indicators such as mutual information, monotonicity, trend, and robustness, a comprehensive sensitivity assessment of features is conducted, and the degradation sensitivity score of each feature is calculated. S14. Dynamic Feature Selection: Based on the sensitivity scores, the optimal feature subset is dynamically selected and updated as the degradation process progresses, ensuring that the features remain sensitive to the degradation state.

3. The method for self-diagnosis and fault prediction of a smart water meter according to claim 1, characterized in that, Step S2 specifically includes: S21. Manifold Learning Dimensionality Reduction Mapping: The manifold learning method is used to map high-dimensional degenerate features to a low-dimensional healthy state space, preserving the inherent geometric structure and degenerate trajectory information of the data; S22. Health Index Construction: Based on a low-dimensional health state space, a unified health index is constructed to integrate multi-dimensional deterioration information into a single-dimensional interpretable health state representation. S23. Degradation trajectory modeling: Model the degradation trajectory of the time series of health indexes and use parametric or non-parametric methods to describe the evolution of the degradation trajectory. S24. Trajectory Library Construction and Update: Construct a trajectory library containing degraded trajectories under different working conditions and fault modes, and continuously update and expand the trajectory library through online learning.

4. The method for self-diagnosis and fault prediction of a smart water meter according to claim 1, characterized in that, Step S3 specifically includes: S31. Source Domain Model Pre-training: Pre-train the basic fault prediction model in the source domain using laboratory accelerated degradation test data to learn general degradation patterns and fault evolution laws. S32. Domain Adaptation Transfer: By using domain adversarial training or feature alignment methods, the distribution difference between the source domain and the target domain is reduced, and the pre-trained model is transferred to the actual working conditions of the target domain. S33. Small sample fine-tuning: Fine-tuning the transfer model using a small amount of labeled data in the target domain to quickly adapt to specific degradation features of the target domain; S34. Transfer effect evaluation: Evaluate the transfer effect based on the target domain validation data. When the transfer effect does not meet the requirements, trigger active learning and select the most valuable samples for annotation.

5. The method for self-diagnosis and fault prediction of a smart water meter according to claim 1, characterized in that, Step S4 specifically includes: S41. Health Status Sensing: Real-time monitoring of the health status of the water meter, assessing the current stage of degradation and the risk of failure; S42. Adaptive sampling adjustment: The sampling frequency is dynamically adjusted according to the health status and degradation rate. When the health status is good, the sampling frequency is reduced to save energy, and when the degradation is accelerated, the sampling frequency is increased to capture degradation details. S43. Active Diagnosis Trigger: When abnormal signs or accelerated degradation are detected, deep diagnosis is actively triggered, activating more sensors and analysis modules; S44. Optimization of Diagnostic Resource Allocation: Under the constraints of energy and computing resources, establish an optimization model for the allocation of diagnostic resources to maximize diagnostic accuracy and energy efficiency.

6. The method for self-diagnosis and fault prediction of a smart water meter according to claim 1, characterized in that, Step S5 specifically includes: S51 Failure Mode Identification: Identify the main failure modes of the water meter, including sensor failure, battery depletion, valve failure, circuit board aging, etc. S52. Correlation Modeling: The Copula function or the Teng Copula method is used to model the correlation between multiple failure modes and to characterize the nonlinear dependency between failure modes. S53. Competitive Failure Analysis: Analyzes the competitive relationship between multiple failure modes, i.e., the failure mode that occurs first determines the system lifetime, and calculates the failure probability contribution of each failure mode. S54. Common Cause Failure Analysis: Identify common causes that lead to the simultaneous occurrence of multiple failure modes and assess the impact of common cause failures on system reliability. S55. System-level lifetime prediction: Taking into account both competing failures and common cause failures, calculate the remaining lifetime distribution and reliability function at the system level.

7. The method for self-diagnosis and fault prediction of a smart water meter according to claim 1, characterized in that, Step S6 specifically includes: S61, POMDP Modeling: The water meter maintenance decision-making process is modeled as a partially observable Markov decision-making process, defining the state space, action space, observation space, transition probability, observation probability, and reward function. S62. State estimation: Based on the observation data, Bayesian filtering or particle filtering methods are used to estimate the true health state distribution of the system; S63. Strategy Solution: Deep reinforcement learning methods are used to solve the optimal maintenance strategy, achieving a balance between minimizing long-term cost and maximizing reliability. S64. Multi-objective optimization: Considering multiple objectives such as maintenance cost, equipment availability, and maintenance personnel workload, generate a Pareto optimal set of maintenance strategies; S65. Online Strategy Update: Update maintenance strategies online based on actual maintenance results and degradation data to continuously optimize decision-making quality.

8. The method for self-diagnosis and fault prediction of a smart water meter according to claim 1, characterized in that, Step S7 specifically includes: S71. Bayesian deep learning modeling: A prediction model is constructed using a Bayesian neural network or a Bayesian recurrent neural network, and the uncertainty of the model is characterized by the probability distribution of the weights. S72. Uncertainty Quantification: Quantifying the cognitive and stochastic uncertainties of prediction results using Monte Carlo dropout or variational inference methods; S73. Prediction Interval Estimation: Provides the confidence interval and probability density function of the prediction result, quantifying the reliability of the prediction result; S74. Value at Risk (VaR): Calculate the VaR and conditional VaR based on the probability distribution of the prediction results to assess the risk of failure under extreme conditions. S75. Tiered early warning mechanism: Set multi-level early warning thresholds based on risk value and confidence level to achieve tiered risk early warning and differentiated response.

9. The method for self-diagnosis and fault prediction of a smart water meter according to claim 1, characterized in that, S71. Bayesian deep learning modeling: A prediction model is constructed using a Bayesian neural network or a Bayesian recurrent neural network, and the uncertainty of the model is characterized by the probability distribution of the weights. S72. Uncertainty Quantification: Quantifying the cognitive and stochastic uncertainties of prediction results using Monte Carlo dropout or variational inference methods; S73. Prediction Interval Estimation: Provides the confidence interval and probability density function of the prediction result, quantifying the reliability of the prediction result; S74. Value at Risk (VaR): Calculate the VaR and conditional VaR based on the probability distribution of the prediction results to assess the risk of failure under extreme conditions. S75. Tiered early warning mechanism: Set multiple early warning thresholds based on risk value and confidence level to achieve tiered risk early warning and differentiated response.

10. A smart water meter self-diagnosis and fault prediction system, employing the prediction method described in any one of claims 1-9, characterized in that, include: The multi-source sensing module integrates various sensors and signal acquisition circuits to collect multi-source operating signals of the water meter, such as voltage, current, acoustics, and temperature. The degradation feature extraction module is used to perform multi-scale decomposition and degradation feature extraction on multi-source signals, and dynamically select the optimal feature subset; The health status assessment module is used to map high-dimensional features to a low-dimensional health status space, construct a health index, and learn a degradation trajectory. The migration prediction module is used to predict faults and estimate remaining life across operating conditions based on transfer learning; the active perception control module is used to adaptively adjust the sampling frequency and diagnostic strategy according to the health status and optimize the allocation of diagnostic resources. The multi-failure analysis module is used to model the correlation of multiple failure modes, perform competitive failure analysis, and predict system-level lifetime. The maintenance decision module is used to generate the optimal maintenance strategy based on partially observable Markov decision processes and reinforcement learning. The confidence prediction and early warning module is used for uncertainty quantification and graded risk early warning based on Bayesian deep learning.