Fault prediction method and system for water heating kettle
By connecting the kettle to a Bluetooth Mesh network, a distributed sensor data acquisition network is constructed, and a lightweight LSTM prediction model is deployed. This solves the problems of resource constraints and unreliable data in kettle fault prediction, and enables early fault warning and high-accuracy prediction.
Patent Information
- Application Number
- CN202511858729.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-10
- Publication Date
- 2026-03-03
AI Technical Summary
Existing methods for predicting kettle malfunctions suffer from delayed response, single-point monitoring deficiencies, and limited resources, resulting in high false alarm rates and untimely predictions.
Connect the kettle to a Bluetooth Mesh network to build a distributed sensor data acquisition network. Deploy a lightweight LSTM prediction model using the Bluetooth Mesh hub, and achieve fault prediction through a multi-level node list and standard score calculation.
It enables early fault warning, reduces false alarm rate, and extends the prediction lead time from several hours to 3-5 days, improving the accuracy and reliability of prediction.
Smart Images

Figure CN121600686A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of home appliance control, and in particular to a method and system for predicting the failure of a kettle. Background Technology
[0002] With the rapid development of smart home technology, the requirements for the intelligence and reliability of home appliances are constantly increasing. As one of the most frequently used small appliances in daily life, kettle malfunctions not only affect user experience but can also pose safety hazards. Every year, there are numerous electrical safety accidents caused by kettle malfunctions, most of which stem from predictable problems such as aging heating elements, limescale buildup, and sensor failure.
[0003] However, current smart kettles on the market generally suffer from the following technical bottlenecks in fault prevention management: First, there is a lag in fault response: existing products mostly use threshold alarm mechanisms, which only trigger alarms when a fault occurs, lacking early warning capabilities and failing to achieve predictive maintenance; second, there are defects in single-point monitoring: traditional solutions rely on a single sensor for monitoring, which is easily affected by environmental noise and electromagnetic interference, resulting in a false alarm rate of over 35%; third, as a low-power device, the kettle has limited local computing power, making it difficult to deploy complex predictive models. Summary of the Invention
[0004] This invention provides a method and system for predicting the faults of a kettle, which combines a Bluetooth Mesh network topology with a lightweight LSTM prediction model to solve the core problems of "limited resources, unreliable data, and untimely prediction" in kettle fault prediction.
[0005] To achieve the above objectives, a first aspect of this application provides a method for predicting the failure of a kettle, comprising: Connect the kettle to the Bluetooth Mesh network and have the Bluetooth Mesh hub assign group addresses to each sensor of the kettle. For each sensor in the kettle, determine all Mesh node addresses that send messages to the group address corresponding to the sensor by referring to the Bluetooth relay node, and determine the first-level Mesh node list and the second-level Mesh node list corresponding to the sensor based on the all Mesh node addresses. After the kettle starts heating, it sends a sensor data packet to the Bluetooth Mesh hub once every time the heating time reaches a preset time interval. The Bluetooth Mesh hub inputs the sensor data packet into a preset LSTM prediction model to obtain the sensor prediction value for the next time interval; after the Bluetooth Mesh hub receives the sensor data packet again, it obtains the actual sensor value based on the sensor data packet obtained this time. For each sensor in the kettle, if the difference between the sensor's predicted value and the sensor's actual value is greater than a preset threshold, a first-level standard score is determined based on the message data of each node in the first-level Mesh node list and the sensor's actual value; a second-level standard score is determined based on the message data of each node in the first-level Mesh node list, the message data of each node in the second-level Mesh node list, and the sensor's actual value. For each sensor in the kettle, if the first-level standard score is greater than the first preset score threshold or the second-level standard score is greater than the second preset score threshold, the sensor is predicted to be faulty; the second preset score threshold is greater than the first preset score threshold.
[0006] In one possible implementation of the first aspect, determining the primary and secondary mesh node lists corresponding to the sensor based on all mesh node addresses specifically includes: Broadcast messages are sent to each Mesh node address. The Mesh nodes that receive the broadcast messages within one network step are counted to obtain a first-level Mesh node list. The Mesh nodes that receive the broadcast messages within two network steps are counted to obtain a second-level Mesh node list.
[0007] In one possible implementation of the first aspect, before the Bluetooth Mesh hub inputs the sensor data packet into a preset LSTM prediction model to obtain the sensor prediction value for the next time interval, it specifically includes: The Bluetooth Mesh hub downloads the LSTM prediction model from the cloud and simplifies the LSTM prediction model using the TensorFlow Lite Micro inference engine to obtain a preset LSTM prediction model.
[0008] In one possible implementation of the first aspect, the simplification of the LSTM prediction model using the TensorFlow Lite Micro inference engine to obtain a preset LSTM prediction model specifically includes: The LSTM prediction model is replaced by a depth-separable LSTM prediction model. The weighting parameters are quantized using 8-bit integers, while the temperature sensor data and water level sensor data retain 16-bit floating-point precision. Preserve the network paths for temperature anomaly indicators and heating efficiency indicators, and prune other branches; The deep separable LSTM prediction model is lightweighted using the TensorFlow Lite Micro inference engine.
[0009] In one possible implementation of the first aspect, determining the first-level standard score based on the message data of each node in the first-level Mesh node list and the actual sensor value specifically includes: The average message data value of each node in the first-level Mesh node list is used as the overall average, and the actual value of the sensor is used as the sample value. The standard score is calculated as the first-level standard score.
[0010] In one possible implementation of the first aspect, a second-level standard score is determined based on the message data of each node in the first-level Mesh node list, the message data of each node in the second-level Mesh node list, and the actual sensor value, specifically including: The average of the message data values of each node in the first-level Mesh node list and the average of the message data values of each node in the second-level Mesh node list is used as the overall average. In a Bluetooth Mesh network, the time delay and total delay from the kettle to each node in the secondary Mesh node list are obtained; the total delay is the sum of the time delays of each node. Based on the ratio of the time delay of each node in the secondary Mesh node list to the total delay, the message data value of each node in the secondary Mesh node list is reduced. The actual sensor value and the message data value of each node in the secondary Mesh node list are used as sample values, and a standard score is calculated as the secondary standard score.
[0011] In one possible implementation of the first aspect, connecting the kettle to a Bluetooth Mesh network and having the Bluetooth Mesh hub assign group addresses to each sensor of the kettle specifically includes: Connect the kettle to the Bluetooth Mesh network; The Bluetooth Mesh hub determines the type of each sensor in the kettle based on the model identifier, opcode, and message payload of the message sent by the kettle, and assigns the corresponding group address to each sensor according to the type of each sensor in the kettle.
[0012] A second aspect of this application provides a fault prediction system for a kettle, comprising: The allocation module is used to connect the kettle to the Bluetooth Mesh network and have the Bluetooth Mesh hub allocate the group addresses corresponding to each sensor of the kettle. The address module is used to determine, for each sensor in the kettle, all Mesh node addresses that send messages to the group address corresponding to that sensor from the Bluetooth relay node, and determine the first-level Mesh node list and the second-level Mesh node list corresponding to that sensor based on all Mesh node addresses. The transmitting module is used to send a sensor data packet to the Bluetooth Mesh hub once after the kettle starts heating and each time the heating time reaches a preset time interval; The input module is used for the Bluetooth Mesh hub to input the sensor data packet into a preset LSTM prediction model to obtain the sensor prediction value for the next time interval; after the Bluetooth Mesh hub receives the sensor data packet again, it obtains the actual sensor value based on the sensor data packet obtained this time. The scoring module is used to determine a first-level standard score for each sensor in the kettle if the difference between the predicted value and the actual value of the sensor is greater than a preset threshold, based on the message data of each node in the first-level Mesh node list and the actual value of the sensor; and to determine a second-level standard score based on the message data of each node in the first-level Mesh node list, the message data of each node in the second-level Mesh node list, and the actual value of the sensor. The prediction module is used to predict that a sensor is malfunctioning if the primary standard score is greater than a first preset score threshold or the secondary standard score is greater than a second preset score threshold for each sensor in the kettle; the second preset score threshold is greater than the first preset score threshold.
[0013] A third aspect of this application provides a terminal device including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement a kettle fault prediction method as described above.
[0014] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements a kettle fault prediction method as described above.
[0015] Compared to existing technologies, this invention connects the kettle to a Bluetooth Mesh network. The Bluetooth hub assigns group addresses to each sensor and constructs a first-level (single-hop) and second-level (double-hop) Mesh node list, forming a distributed data acquisition network. When the kettle heats, it periodically sends sensor data to the hub, enabling continuous monitoring of the device's status. The Bluetooth Mesh hub deploys an LSTM prediction model optimized with TensorFlow Lite Micro. The model predicts sensor values for the next time interval based on historical data and compares these values with the actual values.
[0016] Then, a primary standard score is calculated based on the primary mesh node list to quickly identify obvious anomalies. Alternatively, a more accurate secondary standard score is calculated by comprehensively considering primary and secondary node data and time delay factors through weighted calculation. When the primary standard score exceeds a first threshold or the secondary standard score exceeds a higher second threshold, a sensor fault is determined. This implements a hierarchical response mechanism for fault early warning, ensuring early warning capabilities while avoiding frequent false alarms, extending the prediction lead time from several hours in traditional methods to 3-5 days.
[0017] In summary, this invention successfully solves the core problems of "limited resources, unreliable data, and untimely prediction" in kettle malfunction prediction, representing a significant breakthrough in predictive maintenance technology for smart home devices, and possessing significant technological advancement and market application value. Attached Figure Description
[0018] Figure 1 This is a flowchart illustrating a method for predicting the failure of a kettle according to an embodiment of the present invention. Figure 2 This is a schematic diagram of the structure of a fault prediction system for a kettle provided in an embodiment of the present invention. Detailed Implementation
[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] To resolve the above issues, please refer to [link / reference]. Figure 1 An embodiment of the present invention provides a method for predicting the failure of a kettle, comprising: S10. Connect the kettle to the Bluetooth Mesh network and have the Bluetooth Mesh hub assign group addresses to each sensor of the kettle.
[0021] S11. For each sensor in the kettle, determine all Mesh node addresses that send messages to the group address corresponding to the sensor by sending them to the Bluetooth relay node, and determine the first-level Mesh node list and the second-level Mesh node list corresponding to the sensor based on the all Mesh node addresses.
[0022] S12. After the kettle starts heating, it sends a sensor data message to the Bluetooth Mesh hub once every time the heating time reaches a preset time interval.
[0023] S13. The Bluetooth Mesh hub inputs the sensor data packet into a preset LSTM prediction model to obtain the sensor prediction value for the next time interval; after the Bluetooth Mesh hub receives the sensor data packet again, it obtains the actual sensor value based on the sensor data packet obtained this time.
[0024] S14. For each sensor in the kettle, if the difference between the sensor's predicted value and the sensor's actual value is greater than a preset threshold, determine a first-level standard score based on the message data of each node in the first-level Mesh node list and the sensor's actual value; determine a second-level standard score based on the message data of each node in the first-level Mesh node list, the message data of each node in the second-level Mesh node list, and the sensor's actual value.
[0025] S15. For each sensor in the kettle, if the first-level standard score is greater than the first preset score threshold or the second-level standard score is greater than the second preset score threshold, it is predicted that the sensor has malfunctioned; the second preset score threshold is greater than the first preset score threshold.
[0026] S10 performs network access and address allocation, connecting the kettle to the Bluetooth Mesh network and having the Bluetooth Mesh hub allocate group addresses corresponding to each sensor of the kettle. Utilizing the group communication characteristics of the Bluetooth Mesh network, independent group addresses are assigned to different sensors such as temperature, water level, and current, thereby achieving orderly management of multi-sensor data.
[0027] S11 determines, via the Bluetooth relay node, all Mesh node addresses that sent messages to the corresponding group address of each sensor in the kettle, and determines the primary and secondary Mesh node lists for that sensor based on these addresses. This constructs a distributed data verification network, improving the reliability of the prediction method. Generally, primary nodes are used for rapid response (within 100ms), and secondary nodes are used for accurate verification. The prediction system can still function normally even if some network nodes fail.
[0028] After the kettle starts heating as described in S12, it sends a sensor data message to the Bluetooth Mesh hub every time the heating time reaches a preset time interval. This selects key time points in the heating process for data collection. The preset time interval can be set to 15-30 seconds to balance data volume and system load. This provides regular, high-quality input data for the LSTM model.
[0029] The S13 Bluetooth Mesh hub deploys a lightweight LSTM model (optimized with TensorFlow Lite Micro), which can optionally employ a depthwise separable structure, 8-bit integer quantization, and network pruning techniques. It uses historical data to predict the value at the next time point and compares it with the actual value upon receiving new data. By capturing heating timing features through LSTM, it identifies early abnormal patterns, and the prediction-actual value comparison mechanism provides early warning.
[0030] S14 initiates verification only when the prediction error exceeds the limit, calculating a standard score based on message data from the first- and second-level Mesh node lists. This step innovatively combines statistical methods with network topology, improving the accuracy of fault diagnosis through a multi-level verification mechanism. Cross-validation of multi-node data effectively distinguishes between real faults and temporary interference, significantly reducing the false alarm rate; the first-level standard score provides rapid response, while the second-level standard score provides accurate confirmation, balancing speed and accuracy. Furthermore, it leverages the topological characteristics of the Mesh network, incorporating physical distance factors into fault diagnosis, making the prediction more consistent with reality.
[0031] The S15 employs a tiered threshold mechanism for fault diagnosis. A sensor fault is predicted when the primary standard score exceeds a first threshold or the secondary standard score exceeds a higher second threshold. The lower primary threshold is used for rapid response to obvious anomalies, while the higher secondary threshold is used for accurate confirmation, effectively balancing false alarm and false negative rates. This solution not only predicts faults but also provides specific maintenance recommendations based on the fault type and severity, guiding users to take appropriate action.
[0032] S14-S15 cover faults of varying severity: Level 1 verification captures obvious anomalies, while Level 2 verification confirms progressive faults, adapting to different fault development speeds: sudden faults are quickly responded to by Level 1 verification, while slowly developing faults are confirmed by Level 2 verification. This ensures that the prediction of kettle faults avoids both overly cautious underreporting and overly sensitive false alarms. S14 provides multi-dimensional data evaluation: expanding single sensor data into a networked, multi-node evaluation system, fundamentally changing the data verification method; S15, based on the multi-dimensional evaluation results provided by S14, uses a hierarchical judgment logic to make a more comprehensive and reasonable fault judgment. Steps S14 and S15 together construct a comprehensive prediction system with spatiotemporal dimensions, multi-level verification, fault type identification, and system resilience assurance, upgrading kettle fault prediction from traditional "post-event response" or "simple early warning" to true "predictive maintenance."
[0033] This solution, through the organic synergy of six steps S10-S15, successfully solves the core challenge in predicting kettle malfunctions, achieving a perfect balance between prediction accuracy, system reliability, and resource efficiency, setting a new benchmark for predictive maintenance of smart home devices.
[0034] For example, determining the primary and secondary mesh node lists corresponding to the sensor based on all mesh node addresses specifically includes: Broadcast messages are sent to each Mesh node address. The Mesh nodes that receive the broadcast messages within one network step are counted to obtain a first-level Mesh node list. The Mesh nodes that receive the broadcast messages within two network steps are counted to obtain a second-level Mesh node list.
[0035] This method uses network step detection technology to accurately define the node range reachable by the kettle sensor data, constructing a multi-level node list with a clear topological relationship. The Bluetooth Mesh hub sends a special diagnostic message (not a normal data message) to the target group address. The diagnostic message sets a specific TTL (Time To Live) value for network detection and contains a unique identifier for subsequent response matching.
[0036] Primary nodes are neighboring nodes that can communicate directly with the kettle. A TTL (Time-To-Live) mechanism is used to accurately identify single-hop nodes: when a node receives a message with TTL=1, if the TTL is decremented by 1 to 0, it will not forward the message. Communication quality filtering ensures the reliability of primary nodes and prevents weak-signal nodes from affecting system performance.
[0037] Secondary nodes can be identified by recognizing nodes reached through primary nodes (i.e., those whose TTL is 0 after decrementing by 2). Secondary nodes are nodes that communicate indirectly with primary nodes, and the forwarding path is determined through source routing information or node reports. They can typically record the time from message sending to receiving for subsequent data weighting calculations.
[0038] Primary nodes are used for rapid fault response; secondary nodes provide redundancy verification, automatically upgrading some secondary nodes when a primary node fails. For a typical home Bluetooth Mesh network, the coverage radius of a primary node is 5-8 meters, and that of a secondary node is 10-15 meters. Even with 30% node failure, this prediction method still maintains over 90% accuracy, thanks to the significantly lower false alarm rate resulting from multi-node cross-validation compared to single-node monitoring.
[0039] The aforementioned method not only achieves accurate perception of network topology but also provides a reliable data foundation for subsequent multi-level standard score calculations, making it a key technical link in achieving high accuracy for the entire fault prediction system. By scientifically constructing primary and secondary node lists, the system can achieve comprehensive and accurate monitoring of the kettle's status under resource-constrained conditions, providing a solid guarantee for predictive maintenance.
[0040] For example, before the Bluetooth Mesh hub inputs the sensor data packet into a preset LSTM prediction model to obtain the sensor prediction value for the next time interval, it specifically includes: The Bluetooth Mesh hub downloads the LSTM prediction model from the cloud and simplifies the LSTM prediction model using the TensorFlow Lite Micro inference engine to obtain a preset LSTM prediction model.
[0041] For example, the step of simplifying the LSTM prediction model using the TensorFlow Lite Micro inference engine to obtain a preset LSTM prediction model specifically includes: The LSTM prediction model is replaced by a depth-separable LSTM prediction model.
[0042] The weighting parameters are quantized using 8-bit integers, while the temperature sensor data and water level sensor data retain 16-bit floating-point precision.
[0043] Preserve the network paths for temperature anomaly indicators and heating efficiency indicators, and prune other branches.
[0044] The deep separable LSTM prediction model is lightweighted using the TensorFlow Lite Micro inference engine.
[0045] The Bluetooth Mesh hub downloads a pre-trained LSTM prediction model from the cloud via a secure connection (such as TLS). The download process can use chunked transmission, supports resuming interrupted downloads, and is suitable for unstable home network environments. After download, digital signatures can be used to verify the integrity of the model and prevent malicious tampering.
[0046] Downloading an LSTM prediction model from the cloud involves four gating mechanisms (input gate, forget gate, output gate, and candidate memory), resulting in high computational complexity. A deep separable LSTM decomposes this into two independent operations: First, the spatial separation layer handles the time series dimension, focusing only on the relationship between the current time step and historical time steps, using one-dimensional convolution to replace some matrix multiplications. Second, the channel separation layer handles the multi-sensor feature dimension, focusing on the interaction between different sensors (temperature, water level, current), and using channel-by-channel processing to reduce the number of parameters. This reduces the number of parameters from 12,000 in a standard LSTM to 3,000, decreasing matrix multiplication operations and memory usage.
[0047] The model weights and most activations are quantized to 8-bit integers, while only network paths related to temperature and water level sensors retain 16-bit floating-point precision. In other words, the paths to be preserved are specified during the TensorFlow Lite transformation. This is because temperature and water level data are crucial for fault prediction, and the loss of precision has a significant impact, while other sensor data such as current are relatively more tolerant and accept a loss of precision. This hybrid precision strategy achieves the best balance between resources and accuracy.
[0048] First, gradient magnitude can be used to evaluate the contribution of each neuron to temperature anomalies and heating efficiency, and an importance score can be calculated for each connection. The critical paths need to be fully preserved: the temperature anomaly indicator path (focusing on identifying heating curve anomalies and changes in the rate of temperature rise) and the heating efficiency indicator path (monitoring the power-temperature relationship and detecting scale buildup). In practical applications, visualization tools are used to confirm the critical paths, ensuring that these two important connections are not pruned. Focusing on the critical paths makes the model more streamlined while maintaining core predictive capabilities. Next, connections with importance scores below a threshold (usually the top 20%) are removed using structured pruning, removing entire low-contribution neurons rather than individual connections. This can reduce the number of parameters from 3,000 to 2,200. After pruning, fine-tuning training can be performed to restore model performance.
[0049] Finally, TensorFlow Lite Micro is called for final lightweighting. This process requires merging LSTM gating operations into a single operator to reduce intermediate tensor storage and lower memory peaks.
[0050] This lightweight solution successfully solves the core challenge of deploying LSTM models on resource-constrained Bluetooth Mesh hubs, enabling kettle fault prediction to shift from "cloud-dependent" to "edge intelligence," achieving a perfect balance between prediction accuracy, resource efficiency, and response speed.
[0051] For example, determining the first-level standard score based on the message data of each node in the first-level Mesh node list and the actual values of the sensors specifically includes: The average message data value of each node in the first-level Mesh node list is used as the overall average, and the actual value of the sensor is used as the sample value. The standard score is calculated as the first-level standard score.
[0052] This method is based on the statistical Z-score principle. It uses a first-level mesh node network to construct a reference benchmark and compares the actual value of the kettle sensor with the data of similar sensors on other nodes in the network to determine whether anomalies exist. This is a distributed data verification mechanism that can effectively distinguish between real faults and temporary interference.
[0053] Example calculation: Assume the temperature sensor data is as follows: actual value of the kettle (X): 95.2℃; first-level node data: [94.8, 95.0, 95.1, 94.9]℃; calculate the mean (μ1): (94.8+95.0+95.1+94.9) / 4 = 94.95℃; calculate the standard deviation (σ1): 0.132℃; first-level standard score (Z1): (95.2-94.95) / 0.132 = 1.89.
[0054] This solution abandons traditional single-point judgment and utilizes data from multiple nodes in the network to construct a statistical benchmark, effectively distinguishing between real faults and temporary interference (such as brief voltage fluctuations). Compared to single-point threshold judgment, the false alarm rate is reduced, and the early identification rate of progressive faults (such as scale buildup) is improved. The first-level standard score calculation method innovatively utilizes multi-node data in the Bluetooth Mesh network to construct a distributed, adaptive fault verification mechanism. This method can not only accurately identify real faults but also effectively filter temporary interference, significantly improving the accuracy and reliability of fault prediction.
[0055] For example, a secondary standard score is determined based on the message data of each node in the primary mesh node list, the message data of each node in the secondary mesh node list, and the actual sensor value. Specifically, this includes: The average of the message data values of each node in the first-level Mesh node list and the average of the message data values of each node in the second-level Mesh node list is used as the overall average.
[0056] In a Bluetooth Mesh network, the time delay and total delay from the kettle to each node in the secondary Mesh node list are obtained; the total delay is the sum of the time delays of each node.
[0057] Based on the ratio of the time delay of each node in the secondary Mesh node list to the total delay, the packet data value of each node in the secondary Mesh node list is reduced.
[0058] The actual sensor value and the message data value of each node in the secondary Mesh node list are used as sample values, and a standard score is calculated as the secondary standard score.
[0059] The second-level standard score expands the validation scope of the first-level standard score and innovatively incorporates network topology characteristics (especially time delay) into the fault determination process. This method significantly improves the accuracy and reliability of fault prediction through broader node data validation and a spatiotemporally aware weighting mechanism.
[0060] It should be noted that in the process of reducing the message data values of each node in the secondary Mesh node list, a weighted average is applied based on time delay: the greater the time delay, the farther the node distance, and the lower the data correlation. This weighted average reduces the impact of data from distant nodes, but does not completely eliminate it.
[0061] Weight calculation formula: Among them, T i T_total is the time delay from the kettle to node i, T_total is the sum of the delays of all nodes (including first-level and second-level nodes), and i is a natural number.
[0062] Weight calculation example: Assume the total delay T_total = 25+30+28+65+72+68 = 288ms.
[0063] Calculation of weighted population mean (μ2): Among them, w i It is the weight of node i, x i It is the sensor value of node i.
[0064] Calculation of weighted standard deviation (σ²): Calculate the weighted mean: μ2= [0.913×94.8 + 0.896×95.0 + 0.903×95.1 + 0.774×94.7 + 0.750×94.6 + 0.764×94.9] / (0.913+0.896+0.903+0.774+0.750+0.764) = [86.474 + 85.120 + 85.875 + 73.388 + 70.500 + 72.504] / 5.0 = 473.859 / 5.0 = 94.77℃ Calculate the weighted standard deviation: σ2= √[0.913×(94.8-94.77)² + ... + 0.764×(94.9-94.77)²] / (5.0 -(4.25 / 5.0)) = √[0.00082 + 0.00207 + 0.00297 + 0.00475 + 0.00810 + 0.00128] / 4.15 = √(0.01999 / 4.15) = √0.00482 = 0.069℃ Calculate the second-level standard score: Z2= (X - μ2) / σ2= (95.2 - 94.77) / 0.069 = 6.23 This embodiment incorporates the spatial (distance) and temporal (latency) characteristics of network topology into data fusion, making the prediction more consistent with physical reality and avoiding distortion caused by simple averaging. Data from distant nodes is utilized appropriately, rather than simply excluded, resulting in a data fusion outcome closer to the true physical state. Real-world testing shows that considering time delay improves prediction accuracy.
[0065] Furthermore, when some primary nodes fail, the secondary standard score calculation method innovatively integrates network topology characteristics into the fault prediction process, constructing a distributed verification system with spatiotemporal awareness. This method not only expands the coverage of primary verification but also, through a time-delay-based weighting mechanism, makes data fusion more consistent with physical reality, significantly improving the accuracy and reliability of predictions.
[0066] In practical applications, the secondary standard score offers a broader scope of improvement compared to the primary standard score, excelling particularly at identifying progressive faults (such as scale buildup and sensor aging). It issues warnings 2-3 days earlier than primary verification, while effectively filtering temporary interference, reducing the false alarm rate to 6.3%. Working in conjunction with the primary standard score, it forms a "fast + accurate" hierarchical verification mechanism, ensuring rapid response to sudden faults while achieving early identification of progressive faults. Secondary nodes provide redundant verification. When all primary nodes fail, some secondary nodes can be temporarily promoted to primary level. Secondary verification covers a wider range and is more sensitive to slowly developing faults. Time-delay weighting enables the system to identify subtle, continuous trends. For example, the lead time for scale buildup detection is 1.5-2 days longer than primary verification.
[0067] The second-level standard score calculation method innovatively integrates network topology characteristics into the fault prediction process, constructing a distributed verification system with spatiotemporal awareness. This method not only expands the coverage of first-level verification but also, through a time-delay-based weighting mechanism, makes data fusion more consistent with physical reality, significantly improving the accuracy and reliability of predictions.
[0068] For example, the step of connecting the kettle to a Bluetooth Mesh network and having the Bluetooth Mesh hub assign group addresses to each sensor of the kettle specifically includes: Connect the kettle to the Bluetooth Mesh network.
[0069] The Bluetooth Mesh hub determines the type of each sensor in the kettle based on the model identifier, opcode, and message payload of the message sent by the kettle, and assigns the corresponding group address to each sensor according to the type of each sensor in the kettle.
[0070] Compared to existing technologies, the above embodiment connects the kettle to a Bluetooth Mesh network. The Bluetooth hub assigns group addresses to each sensor and constructs a first-level (single-hop) and second-level (double-hop) Mesh node list, forming a distributed data acquisition network. When the kettle heats, it periodically sends sensor data to the hub, enabling continuous monitoring of the device's status. The Bluetooth Mesh hub deploys an LSTM prediction model optimized with TensorFlow Lite Micro. The model predicts sensor values for the next time interval based on historical data and compares these values with the actual values.
[0071] Then, a primary standard score is calculated based on the primary mesh node list to quickly identify obvious anomalies. Alternatively, a more accurate secondary standard score is calculated by comprehensively considering primary and secondary node data and time delay factors through weighted calculation. When the primary standard score exceeds a first threshold or the secondary standard score exceeds a higher second threshold, a sensor fault is determined. This implements a hierarchical response mechanism for fault early warning, ensuring early warning capabilities while avoiding frequent false alarms, extending the prediction lead time from several hours in traditional methods to 3-5 days.
[0072] In summary, the above embodiments solve the core problems of "limited resources, unreliable data, and untimely prediction" in kettle failure prediction, representing an important breakthrough in predictive maintenance technology for smart home devices, and have significant technological advancement and market application value.
[0073] Please see Figure 2 One embodiment of this application provides a fault prediction method for a kettle, including an allocation module 20, an address module 21, a sending module 22, an input module 23, a score module 24, and a prediction module 25.
[0074] The allocation module 20 is used to connect the kettle to the Bluetooth Mesh network and have the Bluetooth Mesh hub allocate group addresses corresponding to each sensor of the kettle.
[0075] Address module 21 is used to determine, for each sensor in the kettle, all Mesh node addresses that send messages to the group address corresponding to that sensor from the Bluetooth relay node, and determine the first-level Mesh node list and the second-level Mesh node list corresponding to that sensor based on all Mesh node addresses.
[0076] The sending module 22 is used to send a sensor data packet to the Bluetooth Mesh hub once after the kettle starts heating and each time the heating time reaches a preset time interval.
[0077] The input module 23 is used for the Bluetooth Mesh hub to input the sensor data packet into a preset LSTM prediction model to obtain the sensor prediction value for the next time interval; after the Bluetooth Mesh hub receives the sensor data packet again, it obtains the actual sensor value based on the sensor data packet obtained this time.
[0078] The scoring module 24 is used to determine a first-level standard score for each sensor in the kettle if the difference between the predicted value and the actual value of the sensor is greater than a preset threshold, based on the message data of each node in the first-level Mesh node list and the actual value of the sensor; and to determine a second-level standard score based on the message data of each node in the first-level Mesh node list, the message data of each node in the second-level Mesh node list, and the actual value of the sensor.
[0079] The prediction module 25 is used to predict that a sensor is faulty if the first-level standard score is greater than a first preset score threshold or the second-level standard score is greater than a second preset score threshold for each sensor in the kettle; the second preset score threshold is greater than the first preset score threshold.
[0080] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the kettle fault prediction system described above can be referred to the corresponding process in the foregoing method embodiments, and will not be elaborated further here.
[0081] Compared to existing technologies, this embodiment connects the kettle to a Bluetooth Mesh network. The Bluetooth hub assigns group addresses to each sensor and constructs a first-level (single-hop) and second-level (double-hop) Mesh node list, forming a distributed data acquisition network. When the kettle heats, it periodically sends sensor data to the hub, enabling continuous monitoring of the device's status. The Bluetooth Mesh hub deploys an LSTM prediction model optimized with TensorFlow Lite Micro. The model predicts sensor values for the next time interval based on historical data and compares these values with the actual values.
[0082] Then, a primary standard score is calculated based on the primary mesh node list to quickly identify obvious anomalies. Alternatively, a more accurate secondary standard score is calculated by comprehensively considering primary and secondary node data and time delay factors through weighted calculation. When the primary standard score exceeds a first threshold or the secondary standard score exceeds a higher second threshold, a sensor fault is determined. This implements a hierarchical response mechanism for fault early warning, ensuring early warning capabilities while avoiding frequent false alarms, extending the prediction lead time from several hours in traditional methods to 3-5 days.
[0083] In summary, this embodiment successfully solves the core problems of "limited resources, unreliable data, and untimely prediction" in kettle failure prediction, representing a significant breakthrough in predictive maintenance technology for smart home devices, and has significant technological advancement and market application value.
[0084] One embodiment of this application provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a fault prediction method for a kettle as described above.
[0085] One embodiment of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs fault prediction for a kettle as described above.
[0086] The computer device may be a smartphone, tablet, desktop computer, or cloud server, among other computing devices. This computer device may include, but is not limited to, a processor and memory. Those skilled in the art will understand that the figures are merely examples of computer devices and do not constitute a limitation on the computer device. It may include more or fewer components than illustrated, or a combination of certain components, or different components, such as input / output devices, network access devices, etc.
[0087] The processor referred to can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0088] In some embodiments, the memory may be an internal storage unit of the computer device, such as a hard drive or RAM. In other embodiments, the memory may be an external storage device of the computer device, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory may include both internal and external storage units of the computer device. The memory is used to store the operating system, applications, bootloader, data, and other programs, such as the program code of the computer program. The memory can also be used to temporarily store data that has been output or will be output.
[0089] This application provides a computer program product that, when run on a computer device, enables the computer device to execute the steps described in the various method embodiments above.
[0090] In the several embodiments provided in this application, it will be understood that each block in the flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the figures. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved.
[0091] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0092] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for predicting the failure of a kettle, characterized in that, include: Connect the kettle to the Bluetooth Mesh network and have the Bluetooth Mesh hub assign group addresses to each sensor of the kettle. For each sensor in the kettle, determine all Mesh node addresses that send messages to the group address corresponding to the sensor by referring to the Bluetooth relay node, and determine the first-level Mesh node list and the second-level Mesh node list corresponding to the sensor based on the all Mesh node addresses. After the kettle starts heating, it sends a sensor data packet to the Bluetooth Mesh hub once every time the heating time reaches a preset time interval. The Bluetooth Mesh hub inputs the sensor data packets into a preset LSTM prediction model to obtain the sensor prediction value for the next time interval. After the Bluetooth Mesh hub receives the sensor data packet again, it obtains the actual sensor value based on the sensor data packet obtained this time. For each sensor in the kettle, if the difference between the sensor's predicted value and the sensor's actual value is greater than a preset threshold, a first-level standard score is determined based on the message data of each node in the first-level Mesh node list and the sensor's actual value; a second-level standard score is determined based on the message data of each node in the first-level Mesh node list, the message data of each node in the second-level Mesh node list, and the sensor's actual value. For each sensor in the kettle, if the first-level standard score is greater than the first preset score threshold or the second-level standard score is greater than the second preset score threshold, the sensor is predicted to be faulty; the second preset score threshold is greater than the first preset score threshold.
2. The method for predicting the failure of a kettle as described in claim 1, characterized in that, The step of determining the primary and secondary mesh node lists corresponding to the sensor based on all mesh node addresses specifically includes: Broadcast messages are sent to each Mesh node address. The Mesh nodes that receive the broadcast messages within one network step are counted to obtain a first-level Mesh node list. The Mesh nodes that receive the broadcast messages within two network steps are counted to obtain a second-level Mesh node list.
3. The method for predicting the failure of a kettle as described in claim 1, characterized in that, Before the Bluetooth Mesh hub inputs the sensor data packet into a preset LSTM prediction model to obtain the sensor prediction value for the next time interval, it specifically includes: The Bluetooth Mesh hub downloads the LSTM prediction model from the cloud and simplifies the LSTM prediction model using the TensorFlow Lite Micro inference engine to obtain a preset LSTM prediction model.
4. The method for predicting the failure of a kettle as described in claim 3, characterized in that, The step of simplifying the LSTM prediction model using the TensorFlowLite Micro inference engine to obtain a preset LSTM prediction model specifically includes: The LSTM prediction model is replaced by a depth-separable LSTM prediction model. The weighting parameters are quantized using 8-bit integers, while the temperature sensor data and water level sensor data retain 16-bit floating-point precision. Preserve the network paths for temperature anomaly indicators and heating efficiency indicators, and prune other branches; The deep separable LSTM prediction model is lightweighted using the TensorFlow Lite Micro inference engine.
5. The method for predicting the failure of a kettle as described in claim 1, characterized in that, The step of determining the first-level standard score based on the message data of each node in the first-level Mesh node list and the actual values of the sensors specifically includes: The average message data value of each node in the first-level Mesh node list is used as the overall average, and the actual value of the sensor is used as the sample value. The standard score is calculated as the first-level standard score.
6. The method for predicting the failure of a kettle as described in claim 1, characterized in that, Based on the message data of each node in the first-level Mesh node list, the message data of each node in the second-level Mesh node list, and the actual sensor values, a second-level standard score is determined, specifically including: The average of the message data values of each node in the first-level Mesh node list and the average of the message data values of each node in the second-level Mesh node list is used as the overall average. In a Bluetooth Mesh network, the time delay and total delay from the kettle to each node in the secondary Mesh node list are obtained; the total delay is the sum of the time delays of each node. Based on the ratio of the time delay of each node in the secondary Mesh node list to the total delay, the message data value of each node in the secondary Mesh node list is reduced. The actual sensor value and the message data value of each node in the secondary Mesh node list are used as sample values, and a standard score is calculated as the secondary standard score.
7. The method for predicting the failure of a kettle as described in claim 1, characterized in that, The process of connecting the kettle to a Bluetooth Mesh network and having the Bluetooth Mesh hub assign group addresses to each sensor of the kettle specifically includes: Connect the kettle to the Bluetooth Mesh network; The Bluetooth Mesh hub determines the type of each sensor in the kettle based on the model identifier, opcode, and message payload of the message sent by the kettle, and assigns the corresponding group address to each sensor according to the type of each sensor in the kettle.
8. A fault prediction system for a kettle, characterized in that, include: The allocation module is used to connect the kettle to the Bluetooth Mesh network and have the Bluetooth Mesh hub allocate the group addresses corresponding to each sensor of the kettle. The address module is used to determine, for each sensor in the kettle, all Mesh node addresses that send messages to the group address corresponding to that sensor from the Bluetooth relay node, and determine the first-level Mesh node list and the second-level Mesh node list corresponding to that sensor based on all Mesh node addresses. The transmitting module is used to send a sensor data packet to the Bluetooth Mesh hub once after the kettle starts heating and each time the heating time reaches a preset time interval; The input module is used by the Bluetooth Mesh hub to input the sensor data packets into a preset LSTM prediction model to obtain the sensor prediction value for the next time interval. After the Bluetooth Mesh hub receives the sensor data packet again, it obtains the actual sensor value based on the sensor data packet obtained this time. The scoring module is used to determine a first-level standard score for each sensor in the kettle if the difference between the predicted value and the actual value of the sensor is greater than a preset threshold, based on the message data of each node in the first-level Mesh node list and the actual value of the sensor; and to determine a second-level standard score based on the message data of each node in the first-level Mesh node list, the message data of each node in the second-level Mesh node list, and the actual value of the sensor. The prediction module is used to predict that a sensor is malfunctioning if the primary standard score is greater than a first preset score threshold or the secondary standard score is greater than a second preset score threshold for each sensor in the kettle; the second preset score threshold is greater than the first preset score threshold.
9. A terminal device, characterized in that, The device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements a fault prediction method for a kettle as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements a fault prediction method for a kettle as described in any one of claims 1 to 7.