Intelligent water immersion alarm device, method and equipment
By integrating and collaboratively analyzing multi-module data from the intelligent water immersion alarm device, the problem of existing water immersion sensors being unable to accurately identify the type of water immersion event has been solved, enabling precise identification and graded early warning of water immersion events and improving the reliability of water immersion alarms.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- X-SENSE INNOVATIONS CO LTD
- Filing Date
- 2026-04-28
- Publication Date
- 2026-06-02
AI Technical Summary
Existing water immersion sensors cannot accurately distinguish different operating conditions of water immersion events, and are prone to false alarms or missed alarms. Flow detection equipment has poor adaptability, water level detection equipment has insufficient accuracy, and multi-dimensional data linkage analysis cannot be achieved, resulting in the inability to accurately identify the type of water immersion event.
An intelligent water immersion alarm device is adopted, which combines a water immersion detection module, a six-axis sensor module, and an ultrasonic sensor module. It comprehensively determines the type of water immersion event through multiple dimensions, including obtaining the reference voltage value, water flow dynamic analysis, and water level rise rate, and uses the MCU main control module for comprehensive judgment.
It improves the accuracy of water immersion event type identification, reduces the false alarm rate, achieves accurate identification and graded early warning of water immersion events, and enhances the reliability of water immersion alarms.
Smart Images

Figure CN122135504A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of water immersion alarm technology, and in particular to an intelligent water immersion alarm device, method and equipment. Background Technology
[0002] In scenarios such as computer rooms, power distribution rooms, home kitchens, and basements, water immersion accidents can easily cause equipment damage and property loss. In severe cases, they can also cause safety hazards such as electric shock and short circuits. Therefore, water immersion alarm devices have become an indispensable safety protection device in various scenarios.
[0003] Currently, existing water immersion sensors can only determine whether water immersion has occurred by detecting the continuity of contacts, but cannot distinguish different operating conditions of water immersion events, which easily leads to false alarms or missed alarms; flow detection equipment requires series pipeline installation, has poor adaptability, and is difficult to cover ground flooding scenarios; water level detection equipment has insufficient detection accuracy or is not integrated with water immersion and water flow detection functions, making it impossible to achieve multi-dimensional data linkage analysis, making it difficult to form a comprehensive perception of water immersion events, and unable to accurately identify the type of water immersion event, resulting in the inability to take targeted protective measures.
[0004] Therefore, improving the accuracy of identifying different types of flooding incidents is an urgent issue that needs to be addressed. Summary of the Invention
[0005] This application provides an intelligent water immersion alarm device, method, and apparatus. By integrating the target water immersion information from the water immersion detection module, the water flow status from the six-axis sensor module, and the water level rise rate from the ultrasonic sensor module, the water immersion event type is determined comprehensively from multiple dimensions, thereby improving the accuracy of identifying water immersion event types.
[0006] In a first aspect, embodiments of this application provide an intelligent water immersion alarm device, the device comprising a water immersion detection module, a comparator module, an MCU main control module, a six-axis sensor module, an ultrasonic sensor module, and a wireless module, wherein: The water immersion detection module is used to acquire m reference voltage values corresponding to the target water immersion event; m is an integer greater than 1. The comparator module is used to obtain the difference between the comparison voltage value and each of the m reference voltage values when all m reference voltage values are less than the preset comparison voltage value, and thus obtain m first voltage differences. The MCU main control module is used to generate target water immersion information based on the m first voltage differences; The six-axis sensor module is used to perform dynamic analysis of water flow on the target water immersion event to obtain the water flow state; The ultrasonic sensor module is used to perform water level depth analysis on the target water immersion event and obtain the water level rise rate. The MCU main control module is also used to determine the target event type corresponding to the target water immersion event based on the target water immersion information, the water flow state and the water level rise rate; The wireless module is used to perform alarm prompting operations based on the target event type.
[0007] Secondly, embodiments of this application provide an intelligent water immersion alarm method, applied to the device described in the first aspect, the method comprising: Obtain m reference voltage values corresponding to the target water immersion event; m is an integer greater than 1; When all m reference voltage values are less than a preset comparison voltage value, the difference between the comparison voltage value and each of the m reference voltage values is obtained to obtain m first voltage differences; Target water immersion information is generated based on the m first voltage differences; The target flooding event is analyzed dynamically to obtain the water flow state. The target flooding event was analyzed for water level depth to obtain the rate of water level rise; Based on the target flooding information, the water flow state, and the water level rise rate, determine the target event type corresponding to the target flooding event; Perform an alarm notification operation based on the target event type.
[0008] Thirdly, embodiments of this application provide an electronic device, including: a processor and a memory, the memory being used to store one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the second aspect of this application.
[0009] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program for electronic data interchange, wherein the computer program causes a computer to perform some or all of the steps described in the second aspect of this application.
[0010] Fifthly, embodiments of this application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the second aspect of embodiments of this application. The computer program product may be a software installation package.
[0011] As can be seen, the intelligent water immersion alarm device provided in this application achieves accurate identification and graded early warning of water immersion events through multi-module data fusion and collaborative analysis. Compared with traditional single detection devices, this device integrates three core functions: water immersion contact detection, dynamic water flow perception, and quantitative water level monitoring. It can not only output a basic judgment on whether water immersion has occurred, but also deduce the contact conduction area and water immersion diffusion rate through voltage difference, infer the water flow impact intensity through the spectral characteristics of a six-axis sensor, and calculate the water level rise rate through ultrasonic ranging. Finally, the MCU main control module, combined with a threshold library, accurately distinguishes between trace water accumulation, slow leakage, pipe gushing, and interference events, improving the accuracy of identifying water immersion event types, effectively reducing the false alarm rate, and thus improving the reliability of the water immersion alarm. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of this application or the background art, the accompanying drawings used in the embodiments of this application or the background art will be described below.
[0013] Figure 1 This is a block diagram of the modules of an intelligent water immersion alarm device provided in an embodiment of this application; Figure 2 This is a schematic diagram of a process for obtaining a reference voltage value provided in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of a water immersion detection module provided in an embodiment of this application; Figure 4 This is a flowchart illustrating an alarm notification operation provided in an embodiment of this application; Figure 5 This is a schematic diagram illustrating the working principle of an intelligent water immersion alarm device provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of an audible and visual alarm module provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application; Figure 8 This is a flowchart illustrating an intelligent water immersion alarm method provided in an embodiment of this application. Detailed Implementation
[0014] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0015] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0016] It should be understood that the term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this document indicates that the preceding and following related objects are in an "or" relationship. In the embodiments of this application, "multiple" refers to two or more.
[0017] In the embodiments of this application, "at least one item" or its similar expression refers to any combination of these items, including any combination of a single item or a plurality of items. "One or more" means one or more, while "multiple" means two or more. For example, "at least one item" of a, b, or c can represent the following seven cases: a, b, c; a and b; a and c; b and c; a, b, and c. Each of a, b, and c can be an element or a set containing one or more elements.
[0018] In this application embodiment, "connection" refers to various connection methods such as direct connection or indirect connection to realize communication between devices. This application embodiment does not limit this in any way.
[0019] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0020] In scenarios such as computer rooms, power distribution rooms, home kitchens, and basements, water immersion accidents can easily cause equipment damage and property loss. In severe cases, they can also cause safety hazards such as electric shock and short circuits. Therefore, water immersion alarm devices have become an indispensable safety protection device in various scenarios.
[0021] Currently, existing water immersion sensors can only determine whether water immersion has occurred by detecting the continuity of contacts, but cannot distinguish different operating conditions of water immersion events, which easily leads to false alarms or missed alarms; flow detection equipment requires series pipeline installation, has poor adaptability, and is difficult to cover ground flooding scenarios; water level detection equipment has insufficient detection accuracy or is not integrated with water immersion and water flow detection functions, making it impossible to achieve multi-dimensional data linkage analysis, making it difficult to form a comprehensive perception of water immersion events, and unable to accurately identify the type of water immersion event, resulting in the inability to take targeted protective measures.
[0022] Therefore, improving the accuracy of identifying different types of flooding incidents is an urgent issue that needs to be addressed.
[0023] To address the aforementioned issues, this application provides an intelligent water immersion alarm device, method, and apparatus. The device includes a water immersion detection module, a comparator module, an MCU main control module, a six-axis sensor module, an ultrasonic sensor module, and a wireless module. Specifically: the water immersion detection module is used to acquire m reference voltage values corresponding to a target water immersion event; m is an integer greater than 1; the comparator module is used to acquire the difference between the comparison voltage value and each of the m reference voltage values when all m reference voltage values are less than a preset comparison voltage value, thereby obtaining m first voltage difference values. The MCU main control module is used to generate target water immersion information based on the m first voltage differences; the six-axis sensor module is used to perform dynamic water flow analysis on the target water immersion event to obtain the water flow state; the ultrasonic sensor module is used to perform water level depth analysis on the target water immersion event to obtain the water level rise rate; the MCU main control module is also used to determine the target event type corresponding to the target water immersion event based on the target water immersion information, the water flow state, and the water level rise rate; the wireless module is used to execute alarm prompt operations based on the target event type.
[0024] For easier understanding, please refer to Figure 1 , Figure 1 This is a block diagram of the modules of an intelligent water immersion alarm device provided in an embodiment of this application. The device includes: a water immersion detection module, a comparator module, an MCU main control module, a six-axis sensor module, an ultrasonic sensor module, and a wireless module, wherein: The water immersion detection module is used to acquire m reference voltage values corresponding to the target water immersion event; m is an integer greater than 1.
[0025] Optional, please refer to Figure 2 , Figure 2This is a schematic diagram of a process for obtaining reference voltage values according to an embodiment of this application. The water immersion detection module includes a water immersion detection component, a water sensing line, and a detection circuit. The water immersion detection component and the water sensing line are both connected in series to the detection circuit. Regarding obtaining m reference voltage values corresponding to a target water immersion event, the water immersion detection module is specifically used to perform the following... Figure 2 The steps shown are as follows: A1. When the first contact array of the water immersion detection component and / or the second contact array of the water sensing line comes into contact with the water body, the target water immersion event is generated. A2. According to the preset sampling frequency and sampling duration, collect the output voltage value of the detection circuit in the target water immersion event to obtain the m reference voltage values.
[0026] In a specific embodiment, when the water immersion detection module is in a dry state, its detection circuit is in a high-impedance state, and the output voltage is stable at a preset high level. When any one of the contact arrays (such as the first contact array or the second contact array) comes into contact with water, the water acts as a conductive medium, creating a path between the contacts. The impedance of the detection circuit changes from high resistance to low resistance, and the output voltage drops accordingly. The circuit trigger signal changes, and this is used to determine that a target water immersion event has occurred. The target water immersion event can be triggered by either of the two contact arrays coming into contact with water, or both contact arrays can come into contact simultaneously, ensuring comprehensive water immersion detection.
[0027] After a target water immersion event is generated, the detection circuit automatically starts the sampling program, continuously acquiring the output voltage value of the detection circuit according to the set sampling frequency and sampling duration, thereby obtaining m reference voltage values. The sampling frequency can be set according to user needs or scenario requirements. For example, for scenarios with frequent rapid water inrush, a 100Hz high-frequency sampling is used to capture rapid changes in voltage values; for scenarios with frequent slow seepage, a 10Hz low-frequency sampling is used to reduce data redundancy. No specific limitation is made here. The sampling duration must not be less than the minimum response time for water immersion detection, and can be set between 1s and 3s to ensure that the acquired voltage values cover the impedance stabilization phase after the contact array contacts the water, avoiding data errors caused by instantaneous fluctuations.
[0028] Thus, by achieving full-area coverage sensing through the first contact array of the water immersion detection component and the second contact array of the water sensing line, combined with voltage value sampling of the detection circuit, accurate triggering of water immersion events and stable signal acquisition are realized, laying a reliable data foundation for subsequent multi-dimensional water immersion feature analysis.
[0029] For easier understanding, please refer to Figure 3 , Figure 3This is a schematic diagram of a water immersion detection module provided in an embodiment of this application. The water immersion detection component is a circular main structure. The detection circuit is integrated in the dotted area inside, and a first contact array (i.e., multiple circular metal contacts) is evenly arranged on the outer circumference for detecting water accumulation around the device body. It should be noted that the water immersion detection component is the main structure of the intelligent water immersion alarm device, and it also integrates a comparator module, an MCU main control module, a six-axis sensor module, an ultrasonic sensor module, and a wireless module, which are not specifically limited here. The water sensing cable is a flexible connecting cable, with one end electrically connected to the water immersion detection component and the other end extending to a distant risk area (such as a pipe interface or corner). The metal contacts at its end form a second contact array to extend the detection range. The water sensing cable uses a detachable interface, allowing users to replace it with different lengths to adapt to different installation distances and facilitate maintenance and replacement. The metal contacts (first contact array) of the water immersion detection component and the metal contacts (second contact array) of the water sensing cable are connected in series to the same detection circuit through internal wires in the water sensing cable. When any contact point (the metal contact of the first contact array or the second contact array) comes into contact with the water, the water acts as a conductive medium, causing the circuit to conduct, reducing the impedance, and triggering a change in the voltage signal, thereby achieving full-area detection of water immersion events.
[0030] The comparator module is used to obtain the difference between the comparison voltage value and each of the m reference voltage values when all m reference voltage values are less than a preset comparison voltage value, thereby obtaining m first voltage differences.
[0031] In a specific embodiment, the comparator module has a built-in preset comparison voltage value, which is the output voltage calibration value of the detection circuit under dry conditions (e.g., 5V), and can be adjusted according to user needs. The comparator module compares each of the m sampled reference voltage values to determine whether the condition that all m reference voltage values are less than the comparison voltage value is met. If the condition is not met (i.e., at least one of the m reference voltage values is greater than or equal to the comparison voltage value), the comparator module does not perform subsequent difference calculations and directly outputs a "no valid water immersion data" signal to the MCU main control module. If the condition is met, the difference between the comparison voltage value and each of the m reference voltage values is calculated to obtain m first voltage differences, and the m first voltage differences are transmitted to the MCU main control module in real time for further calculation of target water immersion information such as contact conduction area and water immersion diffusion rate.
[0032] The MCU main control module is used to generate target water immersion information based on the m first voltage differences.
[0033] Optionally, the target water immersion information includes the target contact conduction area and the target water immersion diffusion rate. In generating the target water immersion information based on the m first voltage differences, the MCU main control module specifically performs the following steps: B1. Obtain the average value of the m first voltage differences to obtain the average voltage difference; B2. Based on a preset mapping relationship between voltage difference and contact conduction area, determine the target contact conduction area corresponding to the average voltage difference; the target contact conduction area includes at least one of the following: the contact conduction area of the first contact array and the contact conduction area of the second contact array. B3. Determine the target water immersion diffusion rate based on the target contact conduction area and the sampling duration.
[0034] In a specific embodiment, the MCU main control module receives m first voltage differences from the comparator module and calculates the average of the m first voltage differences to obtain the average voltage difference, thereby filtering out voltage fluctuation interference from a single sampling (such as instantaneous impedance changes caused by water sloshing). The MCU main control module has a built-in preset mapping relationship between the voltage difference and the contact conduction area. This mapping relationship can be pre-established through laboratory calibration experiments. The calibration process involves controlling water bodies of different areas to contact the first and second contact arrays, collecting the average voltage difference under the corresponding conditions, establishing a one-to-one correspondence between the "average voltage difference and the contact conduction area," and then storing this relationship in the MCU main control module's storage unit in the form of a mapping table or a fitting function.
[0035] Then, based on the preset mapping relationship between voltage difference and contact conduction area, the target contact conduction area corresponding to the average voltage difference is obtained. Specifically, if only the first contact array of the water immersion detection component is in contact with the water, the target contact conduction area is the contact conduction area corresponding to the first contact array; if only the second contact array of the water sensing line is in contact with the water, the target contact conduction area is the contact conduction area corresponding to the second contact array; if both contact arrays are in contact with the water simultaneously, the target contact conduction area is the sum of the contact conduction areas of the two contact arrays. Next, the ratio between the target contact conduction area and the sampling time is calculated to obtain the target water immersion diffusion rate.
[0036] In this way, by averaging multiple voltage differences to filter out noise interference, and by converting the contact conduction area based on a preset mapping relationship and then combining the sampling time to calculate the water immersion diffusion rate, the accurate quantification of the contact conduction area and the water immersion diffusion rate is achieved, providing a reliable core quantitative basis for determining the risk level of water immersion events.
[0037] The six-axis sensor module is used to perform dynamic analysis of water flow in the target water immersion event to obtain the water flow state.
[0038] Optionally, the six-axis sensor module includes a three-axis acceleration detection unit and a three-axis angular velocity detection unit. In performing dynamic analysis of the water flow in the target water immersion event to obtain the water flow state, the six-axis sensor module is specifically used to execute the following steps: C1. The three-dimensional acceleration data of the intelligent water immersion alarm device during the target water immersion event is collected by the three-axis acceleration detection unit. C2. The three-dimensional angular velocity data of the intelligent water immersion alarm device during the target water immersion event are collected by the three-axis angular velocity detection unit. C3. Perform spectral analysis on the three-dimensional acceleration data to obtain the first spectral characteristic parameters; the first spectral characteristic parameters include the proportion of the first high-frequency interval component, the proportion of the first low-frequency interval component, and the acceleration peak value. C4. Perform spectral analysis on the three-dimensional angular velocity data to obtain the second spectral characteristic parameters; the second spectral characteristic parameters include the proportion of the second high-frequency interval component, the proportion of the second low-frequency interval component, and the peak angular velocity. C5. Based on a preset first weighting coefficient, the proportions of the first high-frequency interval components and the proportions of the second high-frequency interval components are fused to obtain the target high-frequency interval component proportions. C6. Based on the preset second weighting coefficient, the proportion of the first low-frequency interval component and the proportion of the second low-frequency interval component are fused to obtain the target low-frequency interval component proportion. C7. Determine the target spectral characteristic parameters based on the proportion of the target high-frequency range components, the proportion of the target low-frequency range components, the peak acceleration, and the peak angular velocity; C8. The target spectral feature parameters are mapped and analyzed according to a preset mapping model to obtain the water flow state; the mapping model is used to establish and characterize the quantitative correspondence between the spectral feature parameters and the water flow state.
[0039] In a specific embodiment, after the water immersion detection module triggers the target water immersion event, the MCU main control module sends a start command to the six-axis sensor module. In response to the start command, the six-axis sensor module controls the three-axis acceleration detection unit and the three-axis angular velocity detection unit to start data acquisition synchronously.
[0040] Using a triaxial acceleration detection unit, acceleration data of the intelligent water immersion alarm device is continuously collected in three orthogonal directions (X-axis, Y-axis, and Z-axis) according to a sampling frequency (e.g., 50–100Hz, which can be consistent with the sampling frequency of the water immersion detection module), resulting in a three-dimensional acceleration time series, i.e., three-dimensional acceleration data. Specifically, the X / Y axes represent the horizontal swaying acceleration of the detection device (corresponding to the lateral force of water flow impact); the Z-axis represents the vertical acceleration of the detection device (corresponding to the longitudinal force of rising water causing the device to float). Rapid water flow impact will cause high-frequency, large-amplitude fluctuations in the acceleration data; slow water accumulation impact will only cause low-frequency, small-amplitude fluctuations in the acceleration data.
[0041] Then, a Fast Fourier Transform (FFT) is performed on the three-dimensional acceleration time series (i.e., three-dimensional acceleration data) to convert the time-domain signal into a frequency-domain signal, obtaining the acceleration frequency-domain curve. Key feature parameters are then extracted from the acceleration frequency-domain curve to obtain the first spectral feature parameters. These first spectral feature parameters include the proportion of the first high-frequency range component, the proportion of the first low-frequency range component, and the acceleration peak value. The proportion of the first high-frequency range component is calculated as follows: the high-frequency range is set to 10–20 Hz (corresponding to the frequency range of rapid water flow impact), and the sum of the signal amplitudes within this range is calculated as the proportion of the total amplitude across the entire frequency band. The proportion of the first low-frequency range component is calculated as follows: the low-frequency range is set to 0–1 Hz (corresponding to the frequency range of slow water accumulation impact), and the sum of the signal amplitudes within this range is calculated as the proportion of the total amplitude across the entire frequency band. The acceleration peak value is the maximum acceleration amplitude extracted across the entire frequency band, reflecting the intensity of the water flow impact.
[0042] Using a triaxial angular velocity detection unit, and at the same sampling frequency as the triaxial acceleration detection unit, angular velocity data of the intelligent water immersion alarm device in the three orthogonal directions of the X, Y, and Z axes are continuously collected to obtain a three-dimensional angular velocity time series, i.e., three-dimensional angular velocity data. The angular velocity data reflects the degree of rotational tilt of the device: when slow water accumulation causes the device to tilt slowly, the angular velocity data shows a low-frequency, stable change; when rapid water flow impacts the device, causing it to shake and rotate violently, the angular velocity data shows a high-frequency, pulse-like fluctuation.
[0043] Then, a Fast Fourier Transform is performed on the three-dimensional angular velocity time series to convert the time-domain signal into a frequency-domain signal, obtaining the angular velocity frequency-domain curve. Next, key feature parameters are extracted from the angular velocity frequency-domain curve to obtain the second spectral feature parameters. These second spectral feature parameters include the proportion of components in the second high-frequency range, the proportion of components in the second low-frequency range, and the peak angular velocity.
[0044] Next, a preset first weighting coefficient (e.g., 0.6) is applied to fuse the proportions of the first and second high-frequency interval components to obtain the target high-frequency interval component proportion. For example, the target high-frequency interval component proportion = first weighting coefficient × first high-frequency interval component proportion + (1 - first weighting coefficient) × second high-frequency interval component proportion. Then, a preset second weighting coefficient (e.g., 0.4) is applied to fuse the proportions of the first and second low-frequency interval components to obtain the target low-frequency interval component proportion. For example, the target low-frequency interval component proportion = second weighting coefficient × first low-frequency interval component proportion + (1 - second weighting coefficient) × second low-frequency interval component proportion. It should be noted that the three-dimensional acceleration detection unit is more sensitive to high-frequency water flow impact, so its high-frequency interval components are given higher weights during weighted fusion; the three-dimensional angular velocity detection unit has a more stable response to low-frequency signals, so its low-frequency interval components are given higher weights during weighted fusion.
[0045] Then, the proportions of the target high-frequency components, the proportions of the target low-frequency components, the peak acceleration, and the peak angular velocity are integrated to obtain the target spectral characteristic parameters. Next, a mapping analysis is performed on the target spectral characteristic parameters according to a pre-defined mapping model to obtain the corresponding water flow state. This mapping model is trained using calibration data from laboratory simulations of three typical operating conditions (no water flow impact, slow water flow impact, and fast water flow impact), and can characterize the quantitative correspondence between different spectral characteristic parameters and water flow states.
[0046] Thus, by extracting multi-dimensional spectral features and performing differentiated weighted fusion of acceleration and angular velocity data, and combining it with a pre-set mapping model for quantitative analysis, the system can accurately identify three types of water flow states: no impact, slow, and fast, effectively improving the sensitivity and accuracy of dynamic feature determination of water immersion events.
[0047] The ultrasonic sensor module is used to perform water level depth analysis on the target water immersion event and obtain the water level rise rate.
[0048] Optionally, the ultrasonic sensor module includes an ultrasonic transmitting unit and an ultrasonic receiving unit. In the process of analyzing the water level depth of the target immersion event to obtain the water level rise rate, the ultrasonic sensor module is specifically used to perform the following steps: D1. Through the ultrasonic transmitting unit, n ultrasonic pulse signals are sequentially transmitted to the vertical direction corresponding to the bottom of the intelligent water immersion alarm device in the target water immersion event, and the n transmission times corresponding to the n ultrasonic pulse signals are recorded; n is an integer greater than 1. D2. The ultrasonic receiving unit receives the n ultrasonic echo signals after the n ultrasonic pulse signals are reflected, and records the n receiving times corresponding to the n ultrasonic echo signals. D3. Obtain the installation height of the bottom of the intelligent water immersion alarm device from the ground; D4. Determine n vertical distances based on the n transmission times, the n reception times, and the preset signal propagation speed; D5. Determine n water level depths based on the installation height and the n vertical distances; D6. Perform linear fitting on the n launch times and the n water level depths to obtain the first fitted straight line; D7. Determine the rate of water level rise based on the slope of the first fitted straight line.
[0049] In a specific embodiment, after the water immersion detection module triggers the target water immersion event, the MCU main control module sends a start command to the ultrasonic sensor module. In response to the start command, the ultrasonic sensor module controls the ultrasonic transmitting unit and the ultrasonic receiving unit to enter the working mode.
[0050] First, through the ultrasonic transmitting unit, n ultrasonic pulse signals are sequentially emitted vertically downwards from the bottom of the device at a preset pulse emission frequency (which can be 10–20Hz to balance detection accuracy and real-time performance). (n is an integer greater than 1, and can be between 10 and 20 to ensure the validity of data fitting). Simultaneously, the timing unit built into the ultrasonic sensor module records the emission time of each ultrasonic pulse signal, resulting in n emission times. The ultrasonic receiving unit receives the n ultrasonic echo signals after reflection from the n ultrasonic pulse signals, and the timing unit simultaneously records the n reception times corresponding to the n ultrasonic echo signals. The ultrasonic pulse signals are reflected upon encountering a liquid surface (or ground), forming ultrasonic echo signals that return along their original path. In the absence of water, the reflecting surface is the ground; in the presence of water, the reflecting surface is the liquid surface.
[0051] Then, the installation height of the bottom of the intelligent water immersion alarm device from the ground is obtained after installation. Next, based on a preset distance calculation formula, n vertical distances are calculated for n transmission times, n reception times, and a preset signal propagation speed. The distance calculation formula is as follows: .
[0052] in, Represents the nth vertical distance. One vertical distance; This indicates the speed at which a signal propagates, that is, the speed at which a signal travels through the air. Represents the nth launch time. Each launch moment; Represents the nth receiving time. Each receiving moment.
[0053] Next, the difference between the installation height and each of the n vertical distances is calculated, resulting in n differences, which represent n water level depths. Then, a linear fit is performed on the n launch times and the n water level depths to obtain the first fitted line. The x-axis of the first fitted line represents the launch time, and the y-axis represents the water level depth. Finally, the rate of water level rise is determined based on the slope of the first fitted line.
[0054] Thus, by continuously transmitting ultrasonic pulse signals and performing linear fitting, multi-point sampling of water level depth and accurate calculation of water level rise rate were achieved, providing a reliable quantitative basis for the dynamic development trend of flooding events.
[0055] The MCU main control module is also used to determine the target event type corresponding to the target water immersion event based on the target water immersion information, the water flow state, and the water level rise rate.
[0056] Optionally, the water flow state includes any of the following: no water flow impact state, slow water flow impact state, and fast water flow impact state. Regarding determining the target event type corresponding to the target water immersion event based on the target water immersion information, the water flow state, and the water level rise rate, the MCU main control module is specifically used to execute the following steps: E1. Obtain a preset event type determination threshold library; the event type determination threshold library includes a contact conduction area threshold, a water immersion diffusion rate threshold, and a water level rise rate threshold. E2. If the target contact conduction area is less than the contact conduction area threshold, the target water immersion diffusion rate is 0, the water flow state is the state without water flow impact, and the water level rise rate is 0, then the target event type is determined to be a minor water accumulation event. E3. If the target contact conduction area is less than the contact conduction area threshold, the target water immersion diffusion rate is greater than 0 and less than the water immersion diffusion rate threshold, the water flow state is the slow water flow impact state, and the water level rise rate is greater than 0 and less than the water level rise rate threshold, then the target event type is determined to be a slow leakage event. E4. If the target contact conduction area is greater than or equal to the contact conduction area threshold, the target water immersion diffusion rate is greater than or equal to the water immersion diffusion rate threshold, the water flow state is the rapid water flow impact state, and the water level rise rate is greater than or equal to the water level rise rate threshold, then the target event type is determined to be a pipeline water surge event. E5. If the target contact conduction area, the target water immersion diffusion rate, the water flow state, and the water level rise rate do not meet any of the determination conditions for the micro water accumulation event, the slow leakage event, and the pipeline water surge event, then the target event type is determined to be a suspected interference event.
[0057] In a specific embodiment, the MCU main control module automatically retrieves the event type determination threshold library from the built-in non-volatile memory unit (such as a Flash chip). This event type determination threshold library is a quantitative reference standard obtained through dual-dimensional calibration of laboratory simulation and field measurement, supporting users to remotely update its threshold parameters via a wireless module according to the application scenario (such as a computer room, kitchen, or power distribution room). This event type determination threshold library includes, but is not limited to, the contact conduction area threshold, the water immersion diffusion rate threshold, and the water level rise rate threshold, without specific limitations here.
[0058] If, in the target water immersion event, the conductive area of the target contact is less than the contact conductive area threshold, it indicates that only a local contact of the device is in contact with the water, the immersion area is small, and no large-area water accumulation has occurred; if the target water immersion diffusion rate is 0, it indicates that the conductive contact area remains unchanged within the continuous sampling period, and the water does not show a tendency to spread; if the water flow state is a state without water flow impact, it indicates that there is no water flow disturbance; if the water level rise rate is 0, it indicates that there is no water, or the water level does not show a rising trend. Therefore, it can be determined that the target event type of this target water immersion event is a minor water accumulation event, and its corresponding actual scenario is a risk-free scenario such as condensation accumulation on the device surface, a small amount of water droplets dripping, and static water stains remaining on the ground.
[0059] If, in a target water immersion event, the target contact conduction area is less than the contact conduction area threshold, it indicates that the water immersion range is still limited to a local area and has not spread to a large area around the device; if the target water immersion diffusion rate is greater than 0 and less than the water immersion diffusion rate threshold, it indicates that the conduction contact area is slowly increasing, and the water body is spreading in a small area; if the water flow state is a slow water flow impact state, it indicates that the six-axis sensor detected low-frequency, small angular velocity fluctuations, corresponding to slight disturbances in the seepage water flow; if the water level rise rate is greater than 0 and less than the water level rise rate threshold, it indicates that the water level is rising slowly, the rise rate is lower than the threshold, and there is no risk of a rapid rise. Therefore, it can be determined that the target event type of this target water immersion event is a slow seepage event, and its corresponding actual scenarios are low-risk scenarios such as slight leakage at pipe joints, slow diffusion of water seepage in walls, and slow spread of dampness on the ground.
[0060] If, in a target flooding event, the target contact conduction area is greater than or equal to the contact conduction area threshold, it indicates that a large number of contacts are in contact with water, and the flooding area has expanded to a large area around the device; if the target water diffusion rate is greater than or equal to the water diffusion rate threshold, it indicates that the conduction contact area is rapidly increasing, and the water is spreading over a large area, consistent with the diffusion characteristics of pipe bursts and valve damage; if the water flow is in a rapid water flow impact state, it indicates that the six-axis sensor detected high-frequency, large-amplitude fluctuations in angular velocity and acceleration, corresponding to a strong impact of gushing water; if the water level rise rate is greater than or equal to the water level rise rate threshold, it indicates that the water depth is rising rapidly, and the rise rate exceeds the threshold, posing a risk of a rapid rise. Therefore, the target event type of this flooding event can be determined to be a pipe gushing water event, corresponding to high-risk scenarios requiring emergency handling such as pipe bursts, large-scale water gushing due to an unturned tap, and basement backflow.
[0061] If, in a target water immersion event, the target contact conductive area, target water immersion diffusion rate, water flow state, and water level rise rate do not meet any of the criteria for a minor water accumulation event, a slow leakage event, or a pipeline water surge event, then the target event type is determined to be a suspected interference event. For example, if the target contact conductive area is greater than or equal to the contact conductive area threshold, the target water immersion diffusion rate is greater than or equal to the water immersion diffusion rate threshold, the water flow state is a state without water flow impact, and the water level rise rate is 0, then the target event type is determined to be a suspected interference event. The corresponding actual scenario is: when cleaning, water is splashed around the device, instantly submerging a large number of contacts, but without continuous water flow impact, and the water level remains stable without rising. No specific limitations are made here.
[0062] In this way, by using a preset threshold library to make multi-dimensional collaborative judgments on the contact conduction area, water immersion diffusion rate, water flow state and water level rise rate, accurate classification and identification of minor water accumulation, slow leakage, pipeline water surge and suspected interference events are achieved, providing a reliable basis for subsequent differentiated treatment strategies.
[0063] The wireless module is used to perform alarm prompting operations based on the target event type.
[0064] Optional, please refer to Figure 4 , Figure 4 This is a flowchart illustrating an alarm notification operation provided in an embodiment of this application. The wireless module controls the smart water valve in conjunction with the alarm notification operation based on the target event type. Specifically, the wireless module is used to perform actions such as... Figure 4 The steps shown are as follows: F1. If the target event type is the minor water accumulation event, a low-risk alert notification will be pushed to the user terminal. F2. If the target event type is the slow leakage event, a medium risk warning notification is pushed to the user terminal; the corresponding response strategy for the slow leakage event is obtained, and the response strategy is pushed to the user terminal. F3. If the target event type is the pipeline water surge event, a high-risk warning notification is pushed to the user terminal; a closing command is sent to the smart water valve through a preset wireless communication protocol to control the smart water valve to automatically close and block the water source. F4. If the target event type is the suspected interference event, a confirmation notification will be pushed to the user terminal.
[0065] In a specific embodiment, if the target event type is a minor water accumulation event, a low-risk alert notification is pushed to the bound user terminal (mobile APP, WeChat mini program) through a preset communication link. The low-risk alert notification could be: "A small amount of static water accumulation has been detected locally. There is no risk of spreading. Regular inspection and cleaning are recommended."
[0066] If the target event type is a slow leakage event, a medium-risk warning notification will be pushed to the bound user terminal through this communication link. The medium-risk warning notification could be: "Slow leakage detected; water is spreading in a small area. Please check the leak point promptly." Simultaneously, the wireless module retrieves the preset response strategy for the slow leakage event and pushes the strategy to the user terminal. This response strategy is a standardized handling procedure based on common leakage scenarios (such as pipe joint leaks, wall seepage, etc.). For example, it might involve checking whether pipe joints and valves around the device are loose; using a dry cloth to absorb the accumulated water and observing whether leakage recurs; if leakage continues, shut off the nearest water valve and contact maintenance personnel.
[0067] If the target event type is a pipe flooding event, a high-risk warning notification is pushed to the bound user terminal through this communication link. The high-risk warning notification could be: "Pipe flooding detected! Water is spreading rapidly. The smart water valve has been automatically shut off. Please go to the site immediately." Simultaneously, the wireless module sends a shut-off command to the bound smart water valve according to a preset wireless communication protocol (such as MQTT). Upon receiving the shut-off command, the smart water valve activates its internal motor or electromagnetic mechanism to cut off the water supply, preventing further water spread.
[0068] If the target event type is a suspected interference event, a confirmation notification will be pushed to the bound user terminal through this communication link. The confirmation notification may be: "An abnormal signal has been detected, suspected to be non-water immersion interference (such as accidental equipment contact, instantaneous spillage). Please check the site for verification."
[0069] In this way, by implementing a tiered alarm and coordinated response strategy that matches the type of event, a fully intelligent response is achieved, from low-risk alerts and medium-risk warnings to high-risk automatic valve shut-off, effectively improving the timeliness and accuracy of flood risk management.
[0070] For easier understanding, please refer to Figure 5 , Figure 5 This is a schematic diagram illustrating the working principle of an intelligent water immersion alarm device provided in an embodiment of this application. The intelligent water immersion alarm device also includes a power supply and an audible and visual alarm module, which are not specifically limited herein. The power supply can provide stable power to the MCU main control module, water immersion detection module, comparator module, six-axis sensor module, ultrasonic sensor module, wireless module, and audible and visual alarm module, ensuring the normal operation of the entire device.
[0071] The system comprises several modules: a water immersion detection module, a comparator module, and an MCU main control module. The MCU main control module receives the comparison results from the comparator module, simultaneously collects data from the six-axis sensor module and the ultrasonic sensor module, executes the water immersion event determination logic, identifies the type of water immersion event, and sends corresponding control commands to the audible and visual alarm module and the wireless module. The six-axis sensor module collects the device's three-dimensional acceleration and angular velocity data and identifies the water flow state through spectrum analysis. The ultrasonic sensor module measures the vertical distance from the bottom of the device to the liquid surface using ultrasonic ranging principles to calculate the water level depth and the rate of water level rise. The audible and visual alarm module controls its built-in buzzer and LED lights to provide audible and visual alerts for on-site warning. The wireless module sends alarm data to the server via a wireless protocol, and the server then sends the alarm data to the user terminal (such as the user's mobile app, mini-program, or webpage).
[0072] For easier understanding, please refer to Figure 6 , Figure 6 This is a schematic diagram of the structure of an audible and visual alarm module provided in an embodiment of this application. The audible and visual alarm module includes a buzzer and an LED light. When the target event type is a low-risk event (i.e., a minor water accumulation event), the audible and visual alarm module controls the buzzer and LED light to issue a low-intensity alarm at a low frequency, only to provide a prompt and avoid interference. When the target event type is a medium-risk event (i.e., a slow leakage event), the audible and visual alarm module controls the buzzer and LED light to issue a medium-intensity alarm at a medium frequency, prompting the user to investigate in a timely manner. When the target event type is a high-risk event (i.e., a pipeline water surge event), the audible and visual alarm module controls the buzzer and LED light to issue a high-intensity alarm at a high frequency, prompting the user to take immediate emergency measures.
[0073] The following is combined with Figure 7 The electronic devices in the embodiments of this application will be described. Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 7 As shown, the electronic device includes one or more processors, a memory, a communication interface, and one or more programs. The processor is connected to the memory and the communication interface via an internal communication bus.
[0074] The processor can be used for: Obtain m reference voltage values corresponding to the target water immersion event; m is an integer greater than 1; When all m reference voltage values are less than a preset comparison voltage value, the difference between the comparison voltage value and each of the m reference voltage values is obtained to obtain m first voltage differences; Target water immersion information is generated based on the m first voltage differences; The target flooding event is analyzed dynamically to obtain the water flow state. The target flooding event was analyzed for water level depth to obtain the rate of water level rise; Based on the target flooding information, the water flow state, and the water level rise rate, determine the target event type corresponding to the target flooding event; Perform an alarm notification operation based on the target event type.
[0075] The one or more programs are stored in the aforementioned memory and configured to be executed by the aforementioned processor, and the one or more programs include instructions for performing any of the steps in the above embodiments.
[0076] The processor can be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, cells, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc. The communication unit can be a communication interface, transceiver, transceiver circuit, etc., and the storage unit can be a memory.
[0077] The memory can be volatile or non-volatile, or a combination of both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), used as an external cache. By way of example, but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), synchronous linked DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0078] It is understood that the electronic device may include more or fewer structural elements than those shown in the block diagram above, such as a power module, physical buttons, a Wi-Fi module, a speaker, a Bluetooth module, sensors, a display module, etc., without limitation. It is understood that the electronic device may incorporate elements such as... Figure 1 The aforementioned functional modules.
[0079] After understanding the software and hardware architecture of this application, the following will be combined with... Figure 8 This application describes an intelligent water immersion alarm method based on an embodiment of the present application. Figure 8 This is a flowchart illustrating an intelligent water immersion alarm method provided in an embodiment of this application, specifically including the following steps: S1. Obtain m reference voltage values corresponding to the target water immersion event; m is an integer greater than 1; S2. When all m reference voltage values are less than a preset comparison voltage value, the difference between the comparison voltage value and each of the m reference voltage values is obtained to obtain m first voltage differences. S3. Generate target water immersion information based on the m first voltage differences; S4. Perform dynamic analysis of water flow on the target water immersion event to obtain the water flow state; S5. Perform water level depth analysis on the target flooding event to obtain the water level rise rate; S6. Determine the target event type corresponding to the target flooding event based on the target flooding information, the water flow state, and the water level rise rate; S7. Perform an alarm notification operation based on the target event type.
[0080] It is evident that by quantifying water immersion information through voltage difference, analyzing water flow and water level characteristics from multiple dimensions, classifying event types, and implementing differentiated alarm handling, accurate identification and efficient handling of water immersion events have been achieved.
[0081] This application also provides a computer-readable storage medium storing a computer program for electronic data exchange, which causes a computer to perform some or all of the steps of the intelligent water leak alarm method described in the above embodiments, wherein the computer includes an electronic device.
[0082] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of the intelligent water leak alarm method described in the above embodiments. The computer program product can be a software installation package, and the computer includes an electronic device.
[0083] It should be noted that, for the sake of simplicity, the above embodiments are all described as a series of actions. Those skilled in the art should understand that this application is not limited to the described order of actions, as some steps in the embodiments of this application can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions, steps, modules, or units involved are not necessarily essential to the embodiments of this application.
[0084] In the above embodiments, the descriptions of each embodiment in this application have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0085] Those skilled in the art will understand that implementing all or part of the processes in the above embodiments can be accomplished by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0086] The steps of the methods or algorithms described in the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in RAM, flash memory, ROM, EPROM, electrically erasable programmable read-only memory (EEPROM), registers, hard disk, portable hard disk, read-only optical disk (CD-ROM), or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside in an ASIC. Furthermore, the ASIC can reside in a terminal device or management device. Alternatively, the processor and storage medium can exist as discrete components in the terminal device or management device.
[0087] Those skilled in the art will recognize that, in one or more of the examples above, the functions described in the embodiments of this application can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).
[0088] The modules / units included in the various devices and products described in the above embodiments can be software modules / units, hardware modules / units, or a combination of both. For example, for devices and products applied to or integrated into a chip, all modules / units can be implemented using hardware methods such as circuits, or at least some modules / units can be implemented using software programs that run on a processor integrated within the chip, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits. For devices and products applied to or integrated into a chip module, all modules / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some modules / units can be implemented using hardware methods such as circuits. The implementation is achieved through a software program that runs on the processor integrated within the chip module. The remaining modules / units (if any) can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into terminal equipment, each of their modules / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components within the terminal equipment. Alternatively, at least some modules / units can be implemented through a software program that runs on the processor integrated within the terminal equipment, while the remaining modules / units (if any) can be implemented using hardware methods such as circuits.
[0089] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the embodiments of this application. It should be understood that the above descriptions are merely specific embodiments of the embodiments of this application and are not intended to limit the protection scope of the embodiments of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solutions of the embodiments of this application should be included within the protection scope of the embodiments of this application.
Claims
1. An intelligent water immersion alarm device, characterized in that, The intelligent water immersion alarm device includes a water immersion detection module, a comparator module, an MCU main control module, a six-axis sensor module, an ultrasonic sensor module, and a wireless module, wherein: The water immersion detection module is used to acquire m reference voltage values corresponding to the target water immersion event; m is an integer greater than 1. The comparator module is used to obtain the difference between the comparison voltage value and each of the m reference voltage values when all m reference voltage values are less than the preset comparison voltage value, and thus obtain m first voltage differences. The MCU main control module is used to generate target water immersion information based on the m first voltage differences; The six-axis sensor module is used to perform dynamic analysis of water flow on the target water immersion event to obtain the water flow state; The ultrasonic sensor module is used to perform water level depth analysis on the target water immersion event and obtain the water level rise rate. The MCU main control module is also used to determine the target event type corresponding to the target water immersion event based on the target water immersion information, the water flow state and the water level rise rate; The wireless module is used to perform alarm prompting operations based on the target event type.
2. The apparatus as claimed in claim 1, characterized in that, The water immersion detection module includes a water immersion detection component, a water sensing line, and a detection circuit. The water immersion detection component and the water sensing line are both connected in series with the detection circuit. Specifically, in acquiring m reference voltage values corresponding to the target water immersion event, the water immersion detection module is used for: The target water immersion event is generated when the first contact array of the water immersion detection component and / or the second contact array of the water sensing line comes into contact with the water body. According to the preset sampling frequency and sampling duration, the output voltage value of the detection circuit in the target water immersion event is collected to obtain the m reference voltage values.
3. The apparatus as described in claim 2, characterized in that, The target water immersion information includes the target contact conduction area and the target water immersion diffusion rate. Specifically, in generating the target water immersion information based on the m first voltage differences, the MCU main control module is used for: The average value of the m first voltage differences is obtained; Based on a preset mapping relationship between voltage difference and contact conduction area, the target contact conduction area corresponding to the average voltage difference is determined; the target contact conduction area includes at least one of the following: the contact conduction area of the first contact array and the contact conduction area of the second contact array. The target water immersion diffusion rate is determined based on the target contact conduction area and the sampling duration.
4. The apparatus as described in claim 3, characterized in that, The water flow state includes any of the following: no water flow impact state, slow water flow impact state, and fast water flow impact state. Regarding determining the target event type corresponding to the target water immersion event based on the target water immersion information, the water flow state, and the water level rise rate, the MCU main control module is specifically used for: Obtain a preset event type determination threshold library; the event type determination threshold library includes a contact conduction area threshold, a water immersion diffusion rate threshold, and a water level rise rate threshold; If the target contact conduction area is less than the contact conduction area threshold, the target water immersion diffusion rate is 0, the water flow state is the state without water flow impact, and the water level rise rate is 0, then the target event type is determined to be a minor water accumulation event. If the target contact conduction area is less than the contact conduction area threshold, the target water immersion diffusion rate is greater than 0 and less than the water immersion diffusion rate threshold, the water flow state is the slow water flow impact state, and the water level rise rate is greater than 0 and less than the water level rise rate threshold, then the target event type is determined to be a slow leakage event. If the target contact conduction area is greater than or equal to the contact conduction area threshold, the target water immersion diffusion rate is greater than or equal to the water immersion diffusion rate threshold, the water flow state is the rapid water flow impact state, and the water level rise rate is greater than or equal to the water level rise rate threshold, then the target event type is determined to be a pipeline water surge event. If the target contact conduction area, the target water immersion diffusion rate, the water flow state, and the water level rise rate do not meet any of the determination conditions for the minor water accumulation event, the slow leakage event, and the pipeline water surge event, then the target event type is determined to be a suspected interference event.
5. The apparatus as described in claim 4, characterized in that, The wireless module is used to control the smart water valve. Specifically, in the aspect of executing the alarm notification operation based on the target event type, the wireless module is used for: If the target event type is the minor water accumulation event, a low-risk alert notification will be pushed to the user terminal. If the target event type is the slow leakage event, a medium risk warning notification is pushed to the user terminal; Obtain the corresponding response strategy for the slow leakage event and push the response strategy to the user terminal; If the target event type is the pipeline water inrush event, a high-risk warning notification is pushed to the user terminal; A shutdown command is sent to the smart water valve via a preset wireless communication protocol to control the smart water valve to automatically close and block the water source; If the target event type is the suspected interference event, a confirmation notification is pushed to the user terminal.
6. The apparatus according to any one of claims 1-5, characterized in that, The six-axis sensor module includes a three-axis acceleration detection unit and a three-axis angular velocity detection unit. Specifically, in performing dynamic analysis of the water flow in the target water immersion event to obtain the water flow state, the six-axis sensor module is used for: The three-dimensional acceleration data of the intelligent water immersion alarm device during the target water immersion event are collected by the triaxial acceleration detection unit. The three-dimensional angular velocity data of the intelligent water immersion alarm device during the target water immersion event are collected by the three-axis angular velocity detection unit. The three-dimensional acceleration data is subjected to spectral analysis to obtain the first spectral characteristic parameters; the first spectral characteristic parameters include the proportion of the first high-frequency interval component, the proportion of the first low-frequency interval component, and the acceleration peak value; The three-dimensional angular velocity data are subjected to spectral analysis to obtain the second spectral characteristic parameters; the second spectral characteristic parameters include the proportion of the second high-frequency range component, the proportion of the second low-frequency range component, and the peak angular velocity. Based on a preset first weighting coefficient, the proportions of the first high-frequency interval components and the proportions of the second high-frequency interval components are fused to obtain the target high-frequency interval component proportions. The proportions of the first low-frequency interval components and the proportions of the second low-frequency interval components are fused based on a preset second weighting coefficient to obtain the target low-frequency interval component proportions. The target spectral characteristic parameters are determined based on the proportion of the target high-frequency range components, the proportion of the target low-frequency range components, the peak acceleration, and the peak angular velocity. The target spectral feature parameters are mapped and analyzed according to a preset mapping model to obtain the water flow state; the mapping model is used to establish and characterize the quantitative correspondence between the spectral feature parameters and the water flow state.
7. The apparatus according to any one of claims 1-5, characterized in that, The ultrasonic sensor module includes an ultrasonic transmitting unit and an ultrasonic receiving unit. Specifically, in performing water level depth analysis on the target immersion event to obtain the water level rise rate, the ultrasonic sensor module is used for: Through the ultrasonic transmitting unit, n ultrasonic pulse signals are sequentially transmitted in the vertical direction corresponding to the bottom of the intelligent water immersion alarm device in the target water immersion event, and the n transmission times corresponding to the n ultrasonic pulse signals are recorded; n is an integer greater than 1. The ultrasonic receiving unit receives n ultrasonic echo signals after the n ultrasonic pulse signals are reflected, and records the n receiving times corresponding to the n ultrasonic echo signals. Obtain the installation height of the bottom of the intelligent water immersion alarm device from the ground; n vertical distances are determined based on the n transmission times, the n reception times, and the preset signal propagation speed; The n water level depths are determined based on the installation height and the n vertical distances; A first fitted straight line is obtained by linearly fitting the n launch times and the n water level depths; The rate of water level rise is determined based on the slope of the first fitted straight line.
8. A smart water immersion alarm method, characterized in that, Applied to the apparatus of any one of claims 1-7, the method comprises: Obtain m reference voltage values corresponding to the target water immersion event; m is an integer greater than 1; When all m reference voltage values are less than a preset comparison voltage value, the difference between the comparison voltage value and each of the m reference voltage values is obtained to obtain m first voltage differences; Target water immersion information is generated based on the m first voltage differences; The target flooding event is analyzed dynamically to obtain the water flow state. The target flooding event was analyzed for water level depth to obtain the rate of water level rise; Based on the target flooding information, the water flow state, and the water level rise rate, determine the target event type corresponding to the target flooding event; Perform an alarm notification operation based on the target event type.
9. An electronic device, characterized in that, include: Processor, memory, communication interface, and one or more programs; The one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the method of claim 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the method as described in claim 8.