Operation power adjusting method and storage medium

CN121743980APending Publication Date: 2026-03-27QINGDAO HAIER TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-16
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

[0005]本申请实施例提供了一种运行功率的调整方法及存储介质,以至少解决相关技术中,无法对实际沐浴进程进行灵活响应的问题

Benefits of technology

[0018] In this embodiment, by analyzing audio data from a target area, water usage events are intelligently identified, thereby dynamically adjusting the water heater's operating status to achieve high efficiency and energy saving. First, audio data is collected, and a classification model is used to identify the type of current water usage event. Based on a preset duration standard, the user's action status is intelligently determined, such as preparing to shower, pausing shower, or finishing shower. Finally, based on the user's action status, the target operating power of the water heater is optimized and adjusted to ensure that comfortable water usage needs are met while minimizing energy waste, thus solving the problem of not being able to flexibly respond to the actual showering process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121743980A_ABST
    Figure CN121743980A_ABST
Patent Text Reader

Abstract

The invention discloses an operation power adjustment method and a storage medium, and relates to the technical field of smart home, the operation power adjustment method comprises the following steps: obtaining audio data of a target area, and determining a water use event corresponding to the audio data through a classification model; a preset duration corresponding to the water use event is determined, the action state of a target object is determined according to the preset duration, and the target object is located in the target area; and according to the action state of the target object, determining the target operation power of target equipment, and adjusting the actual operation power of the target equipment to the target operation power.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home technology, and more specifically, to a method for adjusting operating power and a storage medium. Background Technology

[0002] Against the backdrop of ever-increasing global energy demand, escalating resource scarcity, and growing calls for environmental protection, the development of energy efficiency management and energy-saving control technologies for water heaters, as an indispensable high-energy-consuming appliance in modern households, is particularly important. Water heaters account for a significant proportion of energy consumption in daily household water supply, especially in the frequent and energy-intensive activity of bathing. Therefore, efficient and precise energy-saving control strategies are of great significance for reducing household energy consumption, improving energy utilization efficiency, and mitigating environmental burden.

[0003] Currently, energy-saving control solutions for water heaters on the market mainly rely on timer control. Timer control achieves energy savings by allowing users to preset the start and stop times of the water heater. However, this control method has inherent limitations, namely a lack of flexibility in responding to actual showering needs. Since users' showering habits may fluctuate due to various factors (such as work, social activities, and seasonal changes), the preset time may not accurately match the user's actual water demand. For example, when a user showers earlier or later than expected, the water heater may either start heating prematurely, resulting in energy waste, or fail to heat the water in time, thus affecting the user experience. Especially when the water temperature is insufficient, additional energy consumption may be required to reach the user's desired water temperature.

[0004] No effective solution has yet been proposed to address the problem that related technologies cannot flexibly respond to the actual bathing process. Summary of the Invention

[0005] This application provides a method for adjusting operating power and a storage medium to at least solve the problem in related technologies that cannot flexibly respond to the actual bathing process.

[0006] According to one embodiment of this application, a method for adjusting operating power is provided, comprising: acquiring audio data of a target area and determining a water usage event corresponding to the audio data through a classification model; determining a preset duration corresponding to the water usage event and determining the action state of a target object based on the preset duration, wherein the target object is located in the target area; determining a target operating power of a target device based on the action state of the target object, and adjusting the actual operating power of the target device to the target operating power, wherein the target device is located in the target area.

[0007] In an exemplary embodiment, determining a preset duration corresponding to the water usage event and determining the action state of the target object based on the preset duration includes: if the water usage event is a first water usage event, determining the preset duration corresponding to the first water usage event as a first preset duration; determining whether a second water usage event is identified within the first preset duration; if no second water usage event is identified within the first preset duration, determining the action state of the target object as a first action state; and if a second water usage event is identified within the first preset duration, determining the action state of the target object as a second action state.

[0008] In an exemplary embodiment, determining a preset duration corresponding to the water usage event and determining the action state of the target object based on the preset duration includes: if the water usage event is a third water usage event, determining the preset duration corresponding to the third water usage event as a second preset duration; if the duration of the third water usage event is greater than the second preset duration, determining the action state of the target object as a third action state; and if the duration is less than or equal to the second preset duration, determining the action state of the target object as a second action state.

[0009] In an exemplary embodiment, determining a preset duration corresponding to the water usage event and determining the action state of the target object based on the preset duration includes: if the water usage event is a fourth water usage event, determining the preset duration corresponding to the fourth water usage event as a third preset duration; determining whether other water usage events are identified within the third preset duration; if other water usage events are identified within the third preset duration, determining the action state of the target object as a third action state; and if no other water usage events are identified within the third preset duration, determining the action state of the target object as a fourth action state.

[0010] In an exemplary embodiment, determining the target operating power of a target device based on the action state of the target object includes: when the action state of the target object is a first action state, determining a first operating power corresponding to the first action state, and adjusting the first operating power according to environmental information of the target area to determine the target operating power; when the action state of the target object is a second action state and the temperature of the target device is lower than a first preset temperature, determining a second operating power corresponding to the second action state, and adjusting the second operating power according to environmental information of the target area to determine the target operating power; when the action state of the target object is a third action state and the temperature of the target device is lower than a second preset temperature, determining a third operating power corresponding to the second action state, and adjusting the third operating power according to environmental information of the target area to determine the target operating power, wherein the first operating power is greater than the second operating power, and the second operating power is greater than the third operating power.

[0011] In an exemplary embodiment, adjusting the first operating power based on environmental information of the target area to determine the target operating power includes: determining whether the sub-environmental information conforms to corresponding preset environmental information when the environmental information includes multiple sub-environmental information; determining an adjustment factor for the sub-environmental information that does not conform to the corresponding preset environmental information; and adjusting the first operating power according to the adjustment factor to determine the target operating power.

[0012] In one exemplary embodiment, determining the water use event corresponding to the audio data using a classification model includes: denoising the audio data using a target denoising algorithm to determine denoised audio data; segmenting the denoised audio data and normalizing each segmented data segment; extracting the acoustic feature vector of each normalized data segment and inputting the acoustic feature vector of each data segment into the classification model, so that the classification model determines the water use event corresponding to the audio data based on the acoustic feature vector of each data segment.

[0013] In an exemplary embodiment, determining the preset duration corresponding to the water use event includes: acquiring historical water use data of the target object, and determining the interval duration of each water use event switching in the historical water use data; and determining the preset duration corresponding to the water use event based on the interval duration of the water use event switching.

[0014] In an exemplary embodiment, determining the preset duration corresponding to the water use event includes: obtaining the historical water use event previously output by the classification model, and determining whether the water use event and the historical water use event are consistent; if the water use event and the historical water use event are inconsistent, determining the preset duration corresponding to the water use event.

[0015] According to another embodiment of the present application, an operating power adjustment device is also provided, comprising: a first determining module, configured to acquire audio data of a target area and determine a water usage event corresponding to the audio data through a classification model; a second determining module, configured to determine a preset duration corresponding to the water usage event and determine the action state of a target object based on the preset duration, wherein the target object is located in the target area; and an adjusting module, configured to determine a target operating power of a target device based on the action state of the target object and adjust the actual operating power of the target device to the target operating power, wherein the target device is located in the target area.

[0016] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described method for adjusting operating power when it is run.

[0017] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above-described method for adjusting operating power through the computer program.

[0018] In this embodiment, by analyzing audio data from a target area, water usage events are intelligently identified, thereby dynamically adjusting the water heater's operating status to achieve high efficiency and energy saving. First, audio data is collected, and a classification model is used to identify the type of current water usage event. Based on a preset duration standard, the user's action status is intelligently determined, such as preparing to shower, pausing shower, or finishing shower. Finally, based on the user's action status, the target operating power of the water heater is optimized and adjusted to ensure that comfortable water usage needs are met while minimizing energy waste, thus solving the problem of not being able to flexibly respond to the actual showering process. Attached Figure Description

[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a schematic diagram of the hardware environment for a method of adjusting operating power according to an embodiment of this application;

[0022] Figure 2 This is a flowchart of a method for adjusting operating power according to an embodiment of this application;

[0023] Figure 3 This is a schematic diagram of a method for adjusting operating power according to an embodiment of this application;

[0024] Figure 4 This is a structural block diagram of an operating power adjustment device according to an embodiment of this application. Detailed Implementation

[0025] 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 should fall within the scope of protection of the present application.

[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. 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 comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0027] According to one aspect of the embodiments of this application, a method for adjusting operating power is provided. This method for adjusting operating power is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligence house ecosystems. Optionally, in this embodiment, the above-mentioned method for adjusting operating power can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.

[0028] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.

[0029] This embodiment provides a method for adjusting operating power, applied to the aforementioned terminal device. Figure 2 This is a flowchart of a method for adjusting operating power according to an embodiment of this application, the process including the following steps:

[0030] Step S202: Obtain audio data of the target area and determine the water usage event corresponding to the audio data through a classification model;

[0031] Audio data from the environment is collected in real time by audio sensors (such as microphones) placed in a target area (such as a bathroom). The audio data is then fed into a pre-trained classification model, which can identify and determine the type of water use event corresponding to the data.

[0032] Step S204: Determine the preset duration corresponding to the water usage event, and determine the action state of the target object based on the preset duration, wherein the target object is located in the target area;

[0033] Optionally, the historical water usage events previously output by the classification model are obtained, and it is determined whether the water usage event and the historical water usage events are consistent; if the water usage event and the historical water usage events are inconsistent, a preset duration corresponding to the water usage event is determined.

[0034] The currently identified water usage event is compared with the historical water usage events previously output by the classification model to determine if the current water usage event is consistent with the historical water usage event. If the water usage event type changes, it indicates that the user's behavior pattern has changed.

[0035] When a water usage event is found to be inconsistent with historical water usage events, the current action state of the target object is determined based on the preset duration standard of water usage events and the duration of the current water usage event. For example, when the transition from the sound event of turning on the tap to the sound event of turning off the tap is detected, it can be inferred that the user has entered the paused shower stage from the preparation stage.

[0036] Step S206: Determine the target operating power of the target device based on the action state of the target object, and adjust the actual operating power of the target device to the target operating power, wherein the target device is located in the target area.

[0037] Based on the assessment of the target object's operational status, the target operating power of the target equipment is further determined, thus avoiding energy waste by matching the user's actual needs. For example, when the user is taking a shower, the system may maintain or increase the water heater's heating power to ensure a stable water temperature; while when the user pauses showering (such as applying shower gel or scrubbing), the heating will be reduced or stopped to achieve energy savings.

[0038] Through the above steps, by analyzing audio data from the target area, water usage events are intelligently identified, thereby dynamically adjusting the water heater's operating status to achieve high efficiency and energy saving. First, audio data is collected, and a classification model is used to identify the type of current water usage event. Based on preset duration standards, the user's action status is intelligently determined, such as preparing to shower, pausing shower, or finishing shower. Finally, based on the user's action status, the target operating power of the water heater is optimized and adjusted to ensure that comfortable water usage needs are met while minimizing energy waste, thus solving the problem of not being able to flexibly respond to actual showering processes.

[0039] Optionally, determining a preset duration corresponding to the water usage event and determining the action state of the target object based on the preset duration includes: if the water usage event is a first water usage event, determining the preset duration corresponding to the first water usage event as a first preset duration; determining whether a second water usage event is identified within the first preset duration; if no second water usage event is identified within the first preset duration, determining the action state of the target object as a first action state; and if a second water usage event is identified within the first preset duration, determining the action state of the target object as a second action state.

[0040] Water usage incidents include: turning on the tap, using the shower, and turning off the tap.

[0041] Action states include: waiting to shower (awaiting shower state), showering, temporarily stopping showering (such as applying shower gel / scrubbing, i.e., pausing shower state), or showering completed (ending shower state).

[0042] Upon detecting a first water usage event (e.g., a user turning on the tap and adjusting the water temperature), a timer for a first preset duration (assumed to be 3-10 seconds) is immediately initiated. During this first preset duration, subsequent acoustic signals are monitored to determine if a second water usage event different from the first (e.g., the sound of water flowing from a showerhead) is detected. If no second water usage event is detected within the first preset duration, it means the user's action did not follow the expected pattern. In this case, the water heater's operating parameters will not be changed to prevent insufficient hot water supply or overheating due to misoperation.

[0043] Conversely, if a second water usage event (e.g., showerhead water flow) is successfully identified within the first preset duration, indicating that the user's behavior matches the expected pattern, it can be further determined that the user has transitioned from the preparation phase to the showering state or another specific state (e.g., the shower is paused). Subsequently, based on the determined user action state, the water heater adopts a matching energy-saving control strategy, such as increasing or decreasing the heating power, to maintain a suitable water temperature and avoid energy waste.

[0044] Optionally, determining a preset duration corresponding to the water usage event and determining the action state of the target object based on the preset duration includes: if the water usage event is a third water usage event, determining the preset duration corresponding to the third water usage event as a second preset duration; if the duration of the third water usage event is greater than the second preset duration, determining the action state of the target object as a third action state; and if the duration is less than or equal to the second preset duration, determining the action state of the target object as a second action state.

[0045] For a detected third water usage event (water usage pause event), if the duration of the third water usage event is greater than the second preset duration, the target object's action state is determined to be the third action state (paused shower state). If the duration of the third water usage event is less than or equal to the second preset duration, the system determines the target object's action state to be the second action state (showering state).

[0046] Optionally, determining a preset duration corresponding to the water usage event and determining the action state of the target object based on the preset duration includes: if the water usage event is a fourth water usage event, determining the preset duration corresponding to the fourth water usage event as a third preset duration; determining whether other water usage events are identified within the third preset duration; if other water usage events are identified within the third preset duration, determining the action state of the target object as a third action state; and if no other water usage events are identified within the third preset duration, determining the action state of the target object as a fourth action state.

[0047] For the identified fourth water use event (faucet turning off event), within the "third preset duration", acoustic signals continue to be collected to assess whether other water use events different from the "fourth water use event" are identified, such as the transition from "showering" state to "spraying bath liquid / rubbing" state.

[0048] If other water usage events are detected within the "third preset duration", the user's action state will be determined as the "third action state" (such as the paused shower state). If no other water usage events are detected within the "third preset duration", the action state will be determined as the "fourth action state" (i.e. the shower ended state).

[0049] Optionally, determining the target operating power of the target device based on the action state of the target object includes: when the action state of the target object is a first action state, determining a first operating power corresponding to the first action state, and adjusting the first operating power according to the environmental information of the target area to determine the target operating power; when the action state of the target object is a second action state and the temperature of the target device is lower than a first preset temperature, determining a second operating power corresponding to the second action state, and adjusting the second operating power according to the environmental information of the target area to determine the target operating power; when the action state of the target object is a third action state and the temperature of the target device is lower than a second preset temperature, determining a third operating power corresponding to the second action state, and adjusting the third operating power according to the environmental information of the target area to determine the target operating power, wherein the first operating power is greater than the second operating power, and the second operating power is greater than the third operating power.

[0050] The first operating state can be understood as the waiting state for showering. At this time, a higher operating power (first operating power) is determined based on environmental information (such as water temperature, external temperature, etc.) to ensure that the water temperature quickly reaches or is maintained within the user-set comfort range.

[0051] The second operating state can be understood as the showering state. If the current temperature of the target device (water heater) is lower than a preset relatively high temperature (first preset temperature), the operating power is adjusted to an intermediate level (second operating power). This can both prevent the water temperature from dropping too quickly and significantly reduce energy consumption, avoiding unnecessary heating.

[0052] The third operating state can be understood as the shower pause state. If the water temperature of the water heater is lower than a lower preset temperature (second preset temperature) at this time, the operating power will be further reduced to a minimum level (third operating power) to maintain only the necessary heat preservation effect, greatly reducing energy waste during non-shower periods.

[0053] After determining the operating power for each action state, the operating power is further fine-tuned based on the environmental information of the target area (such as indoor and outdoor temperature, humidity, etc.).

[0054] Through the embodiments of this application, the operation of the water heater is not only based on user actions, but also takes into account the influence of the external environment on the water temperature, thereby ensuring that the water heater can efficiently maintain the water temperature under different environmental conditions and avoid excessive or insufficient energy consumption.

[0055] Optionally, adjusting the first operating power based on the environmental information of the target area to determine the target operating power includes: when the environmental information includes multiple sub-environmental information, determining whether the sub-environmental information conforms to the corresponding preset environmental information; determining an adjustment factor for the sub-environmental information that does not conform to the corresponding preset environmental information; and adjusting the first operating power according to the adjustment factor to determine the target operating power.

[0056] Environmental information includes multiple dimensions of sub-environmental information, including but not limited to temperature, humidity, light intensity, CO2 concentration, and human activity status. Preset environmental information refers to standard conditions set based on the environmental requirements for normal and efficient operation of appliances or user preferences. For example, for water heaters, preset environmental information includes a suitable ambient temperature range (e.g., 20-25℃) to ensure that the water heater operates under relatively ideal conditions, avoiding increased energy consumption due to overheating or frequent activation of the heating system due to excessive cold.

[0057] When the sub-environment information does not match the preset environment information, an "adjustment factor" is calculated. The adjustment factor is calculated based on the difference between the sub-environment information and the preset environment information. For example, if the temperature of the target area is much higher than the preset temperature range, the heating demand of the water heater is reduced, and the operating power can be reduced based on the adjustment factor; conversely, if the temperature of the target area is lower than the preset range, the water heater may need to be started more frequently to maintain the water temperature, and the operating power can be increased based on the adjustment factor.

[0058] For example, for the sub-environmental information of temperature, the adjustment factor might be calculated based on the following formula:

[0059] Adjustment factor = 1 - {(current temperature - preset temperature) / preset temperature}. The smaller the difference between the current temperature and the preset temperature, the closer the adjustment factor is to 1, indicating that the environmental conditions are closer to the preset standard, and the appliance can operate at a power level close to its first operating power. Conversely, the smaller the adjustment factor, the more the environmental conditions deviate from the standard, and the appliance's operating power needs to be increased or decreased accordingly to adapt to environmental changes.

[0060] Optionally, determining the water use event corresponding to the audio data through a classification model includes: denoising the audio data using a target denoising algorithm to determine the denoised audio data; segmenting the denoised audio data and normalizing each segmented data segment; extracting the acoustic feature vector of each normalized data segment and inputting the acoustic feature vector of each data segment into the classification model, so that the classification model determines the water use event corresponding to the audio data based on the acoustic feature vector of each data segment.

[0061] It should be noted that the bathroom environment is complex, with various background noises such as water flow, ventilation, and external ambient noise, which can interfere with the identification of acoustic events. Targeted denoising algorithms (such as wavelet thresholding, spectral subtraction, or deep learning denoising models) remove irrelevant noise components from the collected raw audio data, retaining sound signals related to bathing and improving the accuracy of subsequent acoustic event classification.

[0062] Continuous audio signals are segmented into a series of shorter data segments. Segmentation helps convert audio signals into a format that classification models can process. At the same time, by controlling the length of the data segments (e.g., 50ms), a balance can be struck between real-time performance and recognition accuracy, ensuring that the model can respond promptly to changes in sound events while avoiding the inability to capture complete event features due to segments that are too short.

[0063] Normalization is used to adjust the amplitude range of data segments, ensuring that audio data collected from different devices or environments are comparable when input into the model. By normalizing the signal amplitude to the [0,1] interval, model misjudgment caused by differences in signal strength can be avoided.

[0064] Features such as Mel frequency cepstral coefficients (MFCC), time-domain peak values, and frequency spectral entropy can effectively describe the time-frequency characteristics of sound signals.

[0065] The classification model, built on deep learning techniques (such as Convolutional Neural Networks (CNN), Long Short-Term Memory Networks (LSTM), etc.), can learn the distinguishing patterns of different acoustic events from acoustic feature vectors. Through training, the model can accurately identify the acoustic features of water usage stages such as "turning on the tap", "shower water", and "turning off the tap".

[0066] Optionally, determining the preset duration corresponding to the water use event includes: acquiring historical water use data of the target object, and determining the interval duration of each water use event switching in the historical water use data; determining the preset duration corresponding to the water use event based on the interval duration of the water use event switching.

[0067] The system collects water usage records from the target user over a period of time, including the time when the tap is turned on and off, water temperature adjustments, and water flow. Through big data analysis, it extracts key information about the user's water usage patterns, including frequency, duration, and preferences. Furthermore, it obtains the interval between consecutive water usage events, i.e., the time difference between the end of one water usage event and the start of the next. By analyzing these intervals, it learns the user's habit transition time between different water usage behaviors.

[0068] Based on the analysis of the interval between water usage events, a reasonable preset duration is set for each water usage event. For example, if data analysis shows that users usually adjust the water temperature for about 10 seconds before taking a shower, then the preset duration of the water usage event "adjusting the water temperature" will be set to about 10 seconds.

[0069] To better understand the process of the above-mentioned method for adjusting operating power, the implementation flow of the above-mentioned method for adjusting operating power will be described below in conjunction with optional embodiments, but this is not intended to limit the technical solution of the embodiments of this application.

[0070] This embodiment provides a method for adjusting operating power. Figure 3 This is a schematic diagram of a method for adjusting operating power according to an embodiment of this application, as shown below. Figure 3 As shown, the specific steps are as follows:

[0071] Step S301: Acoustic signal acquisition and preprocessing.

[0072] Acoustic sensors were deployed in the bathing area to collect acoustic signals from the environment. Wavelet threshold denoising technology was used to denoise the original acoustic signals, eliminating noise from non-target sound sources. The denoised acoustic signals were then segmented into fixed-length segments, and amplitude normalization was performed to ensure that each signal segment was within the [0,1] interval. Acoustic feature vectors were extracted from the normalized signals using Mel-frequency cepstral coefficients, time-domain peak values, and frequency spectral entropy as key indicators.

[0073] Step S302: Input the preprocessed acoustic signal into the trained acoustic event recognition model and output the corresponding acoustic event type. The acoustic event type includes faucet turning on event, shower water output event, faucet turning off event, and water usage interruption event.

[0074] The extracted acoustic feature vectors are fed into a pre-trained acoustic event recognition model, which is based on a hybrid architecture of convolutional neural networks and long short-term memory networks.

[0075] The model outputs types of acoustic events, including but not limited to "tap turning on event", "shower water output event", "tap turning off event" and "water usage pause event", in order to identify different stages of the user's shower process.

[0076] Step S303: Based on the identified acoustic event type and event duration, determine the user's current bathing state, which includes the state of waiting to bathe, bathing in progress, bathing paused, and bathing ended.

[0077] Based on the combination of acoustic event type and duration, the state changes of the user's bathing activity are determined. Specifically:

[0078] When the system detects a "faucet turning on event" and then detects a "showerhead water output event" 3 to 10 seconds later, it determines that the user has moved from the preparation stage to the "showering state".

[0079] If a "water use pause event" is detected while "showering" and the duration exceeds 15 seconds, the showering status will automatically be adjusted to "shower paused".

[0080] When the "paused shower state" encounters the "showerhead water event" again, it indicates that the user has resumed showering, and the state returns to "showering state".

[0081] If a "faucet-off event" is detected in the "showering" or "paused showering" state and lasts for more than 30 seconds, and no other water-related events are detected subsequently, then the "showering state ends" is determined.

[0082] Step S304: Based on the user's current bathing status, send the corresponding control command to the water heater controller to adjust the water heater's heating power or start / stop status, thereby achieving real-time energy-saving control.

[0083] Ready to shower: When the system determines that the user is about to start showering, it instructs the water heater to operate at 80%-90% of its rated power to preheat quickly and ensure that the water temperature can rise to the user's preset comfort level within 30 seconds.

[0084] During shower: Real-time monitoring of water temperature. When the water temperature drops below the preset lower limit (e.g., 40℃), the water heater will supplement heating with 50%-60% of its rated power to ensure that the water temperature remains stable within the preset temperature range (e.g., 42℃).

[0085] Pause Shower Mode: The heating process is stopped immediately, and the water heater's heat preservation mode is activated simultaneously. The water temperature is maintained by the device's excellent heat preservation performance. Only when the water temperature drops below the heat preservation threshold (such as 35℃) will a small amount of heating be performed at a lower power (20%-30%).

[0086] Step S305: Continuously collect acoustic signals and repeat steps S302-S304 until the shower state is detected and maintained for a preset time, then control the water heater to enter standby state.

[0087] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0088] Figure 4 This is a structural block diagram of an operating power adjustment device according to an embodiment of this application; as shown... Figure 4 As shown, it includes:

[0089] The first determining module 42 is used to acquire audio data of the target area and determine the water use event corresponding to the audio data through a classification model.

[0090] The second determining module 44 is used to determine the preset duration corresponding to the water use event, and to determine the action state of the target object according to the preset duration, wherein the target object is located in the target area;

[0091] The adjustment module 46 is used to determine the target operating power of the target device based on the action state of the target object, and adjust the actual operating power of the target device to the target operating power, wherein the target device is located in the target area.

[0092] The aforementioned device analyzes audio data from the target area to intelligently identify water usage events, thereby dynamically adjusting the water heater's operating status to achieve high efficiency and energy saving. First, audio data is collected, and a classification model is used to identify the type of current water usage event. Next, historical water usage events are compared to determine changes in user behavior. When an event change is detected, the device intelligently determines the user's action status, such as preparing to shower, pausing shower, or finishing shower, based on a preset duration standard and the current event duration. Finally, based on the user's action status, the target operating power of the water heater is optimized and adjusted to ensure that comfortable water usage needs are met while minimizing energy waste, thus solving the problem of not being able to flexibly respond to actual showering processes.

[0093] In an exemplary embodiment, the second determining module 46 is configured to: determine a preset duration corresponding to the first water use event as a first preset duration when the water use event is a first water use event; determine whether a second water use event is identified within the first preset duration; determine the action state of the target object as a first action state when no second water use event is identified within the first preset duration; and determine the action state of the target object as a second action state when a second water use event is identified within the first preset duration.

[0094] In an exemplary embodiment, the second determining module 46 is configured to: determine a preset duration corresponding to the third water use event as a second preset duration when the water use event is a third water use event; determine the action state of the target object as a third action state when the duration of the third water use event is greater than the second preset duration; and determine the action state of the target object as a second action state when the duration is less than or equal to the second preset duration.

[0095] In an exemplary embodiment, the second determining module 46 is configured to: determine a preset duration corresponding to the fourth water use event as a third preset duration when the water use event is a fourth water use event; determine whether other water use events are identified within the third preset duration; determine the action state of the target object as a third action state when other water use events are identified within the third preset duration; and determine the action state of the target object as a fourth action state when no other water use events are identified within the third preset duration.

[0096] In an exemplary embodiment, the adjustment module is configured to: determine a first operating power corresponding to the first operating state when the target object's operating state is a first operating state; adjust the first operating power according to environmental information of the target area to determine the target operating power; determine a second operating power corresponding to the second operating state when the target object's operating state is a second operating state and the temperature of the target device is lower than a first preset temperature; adjust the second operating power according to environmental information of the target area to determine the target operating power; and determine a third operating power corresponding to the second operating state when the target object's operating state is a third operating state and the temperature of the target device is lower than a second preset temperature; adjust the third operating power according to environmental information of the target area to determine the target operating power, wherein the first operating power is greater than the second operating power, and the second operating power is greater than the third operating power.

[0097] In an exemplary embodiment, the adjustment module is configured to determine whether the sub-environmental information conforms to the corresponding preset environmental information when the environmental information includes multiple sub-environmental information; determine the adjustment factor of the sub-environmental information that does not conform to the corresponding preset environmental information; and adjust the first operating power according to the adjustment factor to determine the target operating power.

[0098] In an exemplary embodiment, a first determining module is configured to perform denoising processing on the audio data using a target denoising algorithm to determine denoised audio data; segment the denoised audio data and normalize each segmented data segment; extract the acoustic feature vector of each normalized data segment and input the acoustic feature vector of each data segment into the classification model, so that the classification model determines the water use event corresponding to the audio data based on the acoustic feature vector of each data segment.

[0099] In an exemplary embodiment, the second determining module is configured to acquire historical water usage data of the target object, and determine the interval duration of each water usage event switching in the historical water usage data; and determine the preset duration corresponding to the water usage event based on the interval duration of the water usage event switching.

[0100] In an exemplary embodiment, the second determining module is configured to obtain the historical water usage events previously output by the classification model and determine whether the water usage events and the historical water usage events are consistent; if the water usage events and the historical water usage events are inconsistent, determine the preset duration corresponding to the water usage events.

[0101] Embodiments of this application also provide a storage medium including a stored program, wherein the program executes any of the methods described above when it is run.

[0102] Optionally, in this embodiment, the storage medium may be configured to store program code for performing the following steps:

[0103] S1, acquire audio data of the target area, and determine the water usage event corresponding to the audio data through a classification model;

[0104] S2, determine the preset duration corresponding to the water use event, and determine the action state of the target object according to the preset duration, wherein the target object is located in the target area;

[0105] S3, determine the target operating power of the target device based on the action state of the target object, and adjust the actual operating power of the target device to the target operating power, wherein the target device is located in the target area.

[0106] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0107] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0108] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0109] S1, acquire audio data of the target area, and determine the water usage event corresponding to the audio data through a classification model;

[0110] S2, determine the preset duration corresponding to the water use event, and determine the action state of the target object according to the preset duration, wherein the target object is located in the target area;

[0111] S3, determine the target operating power of the target device based on the action state of the target object, and adjust the actual operating power of the target device to the target operating power, wherein the target device is located in the target area.

[0112] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0113] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0114] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0115] The embodiments described herein also provide a computer program that includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in any of the above method embodiments.

[0116] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.

[0117] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0118] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for adjusting operating power, characterized in that, include: Acquire audio data of the target area and determine the water usage event corresponding to the audio data using a classification model; A preset duration corresponding to the water usage event is determined, and the action state of the target object is determined based on the preset duration, wherein the target object is located in the target area; The target operating power of the target device is determined based on the action state of the target object, and the actual operating power of the target device is adjusted to the target operating power, wherein the target device is located in the target area.

2. The method for adjusting operating power according to claim 1, characterized in that, Determining the preset duration corresponding to the water usage event, and determining the action state of the target object based on the preset duration, includes: If the water usage event is a first water usage event, the preset duration corresponding to the first water usage event is determined to be the first preset duration. Determine whether a second water usage event is detected within the first preset duration; If no second water usage event is detected within the first preset duration, the action state of the target object is determined to be the first action state; If a second water usage event is detected within the first preset duration, the action state of the target object is determined to be the second action state.

3. The method for adjusting operating power according to claim 1, characterized in that, Determining the preset duration corresponding to the water usage event, and determining the action state of the target object based on the preset duration, includes: In the case that the water use event is a third water use event, the preset duration corresponding to the third water use event is determined to be the second preset duration. If the duration of the third water-use event is longer than the second preset duration, the action state of the target object is determined to be the third action state. If the duration is less than or equal to the second preset duration, the action state of the target object is determined to be the second action state.

4. The method for adjusting operating power according to claim 1, characterized in that, Determining the preset duration corresponding to the water usage event, and determining the action state of the target object based on the preset duration, includes: In the case that the water use event is the fourth water use event, the preset duration corresponding to the fourth water use event is determined to be the third preset duration. Determine whether other water usage events are identified within the third preset duration; If other water usage events are detected within the third preset duration, the target object's action state is determined to be the third action state. If no other water usage events are detected within the third preset duration, the target object's action state is determined to be the fourth action state.

5. The method for adjusting operating power according to claim 1, characterized in that, Determining the target operating power of the target device based on the action state of the target object includes: When the target object's action state is a first action state, a first operating power corresponding to the first action state is determined, and the first operating power is adjusted according to the environmental information of the target area to determine the target operating power; When the target object is in a second action state and the temperature of the target device is lower than a first preset temperature, a second operating power corresponding to the second action state is determined, and the second operating power is adjusted according to the environmental information of the target area to determine the target operating power; When the target object is in a third operating state and the temperature of the target device is lower than a second preset temperature, a third operating power corresponding to the second operating state is determined. The third operating power is adjusted according to the environmental information of the target area to determine the target operating power, wherein the first operating power is greater than the second operating power, and the second operating power is greater than the third operating power.

6. The method for adjusting operating power according to claim 5, characterized in that, Adjusting the first operating power based on the environmental information of the target area to determine the target operating power includes: When environmental information includes multiple sub-environmental information, determine whether the sub-environmental information conforms to the corresponding preset environmental information; Determine the adjustment factors for sub-environmental information that do not conform to the corresponding preset environmental information; The first operating power is adjusted according to the adjustment factor to determine the target operating power.

7. The method for adjusting operating power according to claim 1, characterized in that, The water usage events corresponding to the audio data are determined using a classification model, including: The audio data is denoised using a target denoising algorithm to determine the denoised audio data. The denoised audio data is segmented, and each segmented data segment is normalized. The acoustic feature vector of each normalized data segment is extracted and input into the classification model so that the classification model can determine the water use event corresponding to the audio data based on the acoustic feature vector of each data segment.

8. The method for adjusting operating power according to claim 1, characterized in that, Determining the preset duration corresponding to the water usage event includes: Obtain historical water usage data of the target object, and determine the interval duration of each water usage event switching in the historical water usage data; The preset duration of the water use event is determined based on the interval between the water use event switching.

9. The method for adjusting operating power according to claim 1, characterized in that, Determining the preset duration corresponding to the water usage event includes: Obtain the historical water usage event from the previous output of the classification model, and determine whether the water usage event and the historical water usage event are consistent; In the event that the water usage event and the historical water usage event are inconsistent, the preset duration corresponding to the water usage event is determined.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method according to any one of claims 1 to 8.