Bathroom lamp control system and method based on voice interaction

Through the bathroom light control system based on voice interaction, combined with denoising processing and abnormal sound analysis, personalized adjustment of user needs and personal safety guarantee in the bathroom environment are achieved, and the existing technology solves the problem of user accidents in the bathroom. The problem of not being able to get help in time.

CN118843232APending Publication Date: 2024-10-25JIANGXI WANGLAI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411292697.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

The bathroom environment is changeable, and it is difficult for existing technology to meet the individual needs of users while also taking into account the detection and early warning of users' personal safety. As a result, users cannot get immediate help when an accident occurs while using the bathroom.

Method used

Through the bathroom light control system based on voice interaction, real-time environmental sound information is obtained, denoising processing is performed to reduce noise interference, user instructions and abnormal sound characteristics are analyzed, lighting adjustments are made to meet personalized needs and humanized help is provided, and during detection When abnormal conditions occur, the lights can be adjusted through linkage warnings to provide timely alarms.

Benefits of technology

It improves the accuracy of judging abnormal sounds, meets the needs of users in special circumstances, informs external needs through lights and voices, ensures the user's personal safety and provides timely rescue, and improves user satisfaction and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118843232A_ABST
    Figure CN118843232A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of bathroom lamp control, in particular to a bathroom lamp control system and method based on voice interaction. The method comprises the following steps: acquiring and processing real-time environment sound information to obtain de-noised sound information; according to the de-noised sound information, user instruction information is determined, the user instruction information is analyzed, light adjustment information is determined, and then basic instruction adjustment is carried out on bathroom light; the user instruction information is analyzed, user demand help information is determined, and linkage help-seeking adjustment is carried out on the bathroom lamp and the help-seeking associated light according to the user demand help information; and analyzing the de-noised sound information, determining an abnormal sound feature set, determining a current abnormal condition according to the abnormal sound feature set, and carrying out linkage warning adjustment on the bathroom lamp and all the associated lights according to the current abnormal condition. According to the method and the device, personalized requirements of the user and requirements under special conditions are met, the satisfaction degree of the user is improved, light alarm is carried out on abnormal conditions of the user, and guarantee can be provided for personal safety of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of bathroom light control, and in particular to a control system and method for bathroom lights based on voice interaction. Background Art

[0002] With the rapid development of artificial intelligence and Internet of Things technologies, smart home products have gradually entered people's daily lives, among which control systems based on voice interaction are highly favored due to their convenience. In the bathroom environment, voice-interactive bathroom light control systems have gradually become a research hotspot, which can better meet the personalized needs of users and can control the bathroom lighting environment in real time.

[0003] However, the environment in the bathroom is changeable, and there are many potential risks that may endanger the personal safety of users. Existing technologies make it difficult to detect and warn users of their personal safety while meeting their personalized needs. As a result, when an accident occurs while using the bathroom, users are unable to get help in the first place. Summary of the invention

[0004] The present application provides a control system and method for bathroom lights based on voice interaction to solve the above-mentioned technical problems.

[0005] In a first aspect, the present application provides a method for controlling a bathroom light based on voice interaction, the method comprising: acquiring real-time ambient sound information, denoising the real-time ambient sound information, and determining the denoised sound information; determining user command information based on the denoised sound information, analyzing the user command information to determine light adjustment information, and performing basic command adjustments to the light of the bathroom light based on the light adjustment information; analyzing the user command information to determine user demand help information, and performing linkage help adjustments to the bathroom light and help-related lights based on the demand help information; analyzing the denoised sound information to determine an abnormal sound feature set, determining a current abnormal situation based on the abnormal sound feature set, and performing linkage warning adjustments to the bathroom light and all related lights based on the current abnormal situation.

[0006] Through the above technical scheme, the collected sound information is denoised, which can effectively reduce the interference of noise and improve the accuracy of abnormal sound judgment. The user command information is analyzed to determine the user's active control command of the current bathroom light, which meets the user's personalized needs. Considering that the user may need outside help in some cases, but it is difficult for the user to leave the bathroom, the user's needs are informed to the outside world by light and voice, which meets the user's needs in special circumstances. It has humanized considerations and improves user satisfaction. Abnormal sounds are analyzed to determine whether the user has an abnormal situation, and the outside world is informed by light alarm, so that the outside world can know in time that the user has an accident and provide timely rescue, which can provide protection for the user's personal safety.

[0007] Optionally, the denoising the real-time environmental sound information to determine the denoised sound information includes: determining a current noise level according to the real-time environmental sound information; determining a current denoising intensity according to the current noise level and a preset noise level threshold; and preprocessing and denoising the real-time environmental sound information according to the current denoising intensity to determine the denoised sound information; The determining of user command information based on the denoised sound information includes: determining denoised text information based on the denoised sound information; determining function activation information based on the denoised text information and preset wake-up word information; determining whether a voice interaction function is activated based on the function activation information; if activated, analyzing the denoised text information to determine the user command information.

[0008] Optionally, the analyzing the user command information, determining the lighting adjustment information, and performing basic command adjustments to the lighting of the bathroom lamp according to the lighting adjustment information, includes: analyzing the user command information to determine the real-time adjustment information and the target lighting information; determining a number of real-time lighting adjustment parameters according to the real-time adjustment information; determining a real-time lighting adjustment strategy according to the number of real-time lighting adjustment parameters and the target lighting information; determining the lighting adjustment information according to the real-time lighting adjustment strategy; and performing basic command adjustments to the lighting of the bathroom lamp according to the lighting adjustment information.

[0009] Optionally, the analyzing the user command information to determine the user demand help information, and making linkage help adjustments to the bathroom light and help-associated lights according to the demand help information, includes: analyzing the user command information to determine the user demand help information; analyzing the user demand help information to determine the help information and receiving area information; determining the help-associated light information according to the receiving area information; determining the bathroom light adjustment information and the associated light adjustment information according to the help-associated light information and preset help light flashing information; determining the voice help information according to the help information and the receiving area information; and making linkage help adjustments to the bathroom light and the associated lights according to the bathroom light adjustment information, the associated light adjustment information and the voice help information.

[0010] Optionally, the analyzing the denoised sound information to determine the abnormal sound feature set includes: analyzing the denoised sound information to determine sound feature value information; determining sound time domain feature information and sound frequency domain feature information based on the sound feature value information; determining short-time energy information of each frame based on the sound time domain feature information and a preset sound frame length; analyzing the short-time energy information of each frame and a preset energy threshold to determine short-time energy abnormal sound information; determining frequency spectrum distribution information based on the sound frequency domain feature information; analyzing the frequency spectrum distribution information and a preset frequency range to determine the energy proportion within the range; determining frequency abnormal sound information based on the energy proportion within the range and a preset frequency band energy ratio threshold; determining an abnormal sound feature set based on the short-time energy abnormal sound information and the frequency abnormal sound information.

[0011] Optionally, determining the short-time energy information according to the sound time domain feature information and the preset sound frame length includes: dividing the sound time domain feature information into frames according to the preset sound frame length to determine a number of sound frame indexes; determining a number of sound sampling points according to a preset short-time energy sampling interval; determining a short-time energy signal of the sound sampling points according to the sound sampling points; and analyzing the preset sound frame length, the sound frame index, the sound sampling points and the short-time energy signal of the sampling points to determine the short-time energy information, which is specifically the following formula: ;in, is the current sound frame index, is the preset sound frame length, is the short-time energy information, Indicates the current sound sampling point, is the short-time energy signal of the current sample point; the analyzing the spectrum distribution information and the preset frequency range to determine the energy proportion within the range includes: determining the range maximum value, the range minimum value and the Nyquist frequency according to the preset frequency range; determining a number of frequency sampling points according to the preset frequency sampling interval; determining the sample point frequency signal according to the frequency sampling points; analyzing the range maximum value, the range minimum value, the Nyquist frequency, the frequency sampling points and the sample point frequency signal to determine the energy proportion within the range: ;in, is the energy proportion within the range, is the Nyquist frequency, is the current frequency sampling point, is the current sampling frequency signal, is the minimum value of the range, is the maximum value of the range.

[0012] Optionally, determining the current abnormal situation according to the abnormal sound feature set includes: obtaining a historical abnormal sound data set, analyzing the historical abnormal sound data set, and determining an abnormal sound classification model; analyzing the abnormal sound feature set and the abnormal sound classification model to determine the abnormal type; analyzing the frequency abnormal sound information to determine an energy ratio abnormal index; analyzing the short-time energy abnormal sound information to determine a short-time energy abnormal index; determining the total number of sound frames according to the time domain feature information and the sound frame length; determining the degree of abnormality according to the energy ratio abnormal index, the short-time energy abnormal index and the total number of sound frames, and calculating according to the following formula: ;in, is the degree of abnormality, is the short-term energy anomaly index, is the energy proportion abnormality indicator, is the total number of frames of the sound, is the short-time energy weight coefficient, is a frequency weight coefficient; and the current abnormal situation is determined according to the abnormal type and the abnormal degree.

[0013] Optionally, the linkage warning adjustment of the bathroom light and all related lights according to the current abnormal situation includes: determining inquiry content according to the current abnormal situation; conducting an initial safety inquiry to the user according to the inquiry content, determining the initial inquiry result, and judging whether a user response message is received according to the initial inquiry result; if the user response message is received, analyzing the user response message to determine the user abnormal situation; if the user abnormal situation exists, determining abnormal light adjustment information according to the current abnormal situation; if the user response message is not received, conducting a secondary safety inquiry to the user according to a preset inquiry interval and inquiry content, determining the secondary inquiry result, and judging whether a user response message is received according to the secondary inquiry result. Based on the result of the second inquiry, determine whether there is an abnormal situation of the user. If the user still does not respond based on the result of the second inquiry, determine that there is an abnormal emergency situation. If there is no abnormal situation of the user, obtain the real-time usage time of the bathroom and the preset bathroom usage time threshold. According to the real-time usage time of the bathroom and the preset bathroom usage time threshold, determine whether there is an abnormal usage time situation. If there is an abnormal usage time situation or an abnormal emergency situation, determine the emergency alarm situation. According to the emergency alarm situation and the preset emergency light adjustment parameters, determine the emergency light adjustment information. According to the abnormal light adjustment information and the emergency light adjustment information, perform linkage warning adjustment on the bathroom light and all related lights.

[0014] Optionally, determining abnormal light adjustment information according to the current abnormal situation includes: obtaining the basic brightness of several current lights, and determining an abnormal light brightness adjustment signal according to the basic brightness of the several current lights and the abnormality degree, specifically the following formula: ;in, is the abnormal light brightness adjustment signal, is the base brightness of the current lights. is the brightness adjustment coefficient, is the abnormality degree; obtaining the basic flickering frequency of the current plurality of lights, and determining the abnormal light flickering frequency adjustment signal according to the current basic flickering frequency of the plurality of lights and the abnormality degree, which is specifically the following formula: ;in, is the abnormal light flashing frequency adjustment signal, is the basic flashing frequency of the current lights. is the flicker frequency adjustment factor, is the abnormality degree; and determining the abnormal light adjustment information according to the abnormal light brightness adjustment signal and the abnormal light flashing frequency adjustment signal.

[0015] In a second aspect, the present application provides a control system for bathroom lights based on voice interaction, the system comprising: A denoising module, used to obtain real-time environmental sound information, perform denoising on the real-time environmental sound information, and determine denoised sound information; A basic instruction determination module, used to determine user instruction information according to the denoised sound information, analyze the user instruction information, determine light adjustment information, and perform basic instruction adjustment on the bathroom light according to the light adjustment information; A help demand determination module is used to analyze the user instruction information, determine the user help demand information, and perform linkage help adjustment on the bathroom light and the help-related light according to the help demand information; The abnormality analysis module is used to analyze the denoised sound information, determine an abnormal sound feature set, determine the current abnormal situation based on the abnormal sound feature set, and make linkage warning adjustments to the bathroom light and all related lights based on the current abnormal situation. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0017] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application; Figure 2 A flow chart of a method for controlling a bathroom light based on voice interaction provided in one embodiment of the present application; Figure 3 A schematic diagram of the structure of a control system for bathroom lights based on voice interaction provided in one embodiment of the present application. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0019] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0020] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0021] The environment in the bathroom is changeable, and there are many potential risks that may endanger the personal safety of users. Existing technologies make it difficult to detect and warn users of their personal safety while meeting their personalized needs. As a result, when an accident occurs during the use of the bathroom, users are unable to get help in the first place.

[0022] Based on this, the present application provides a control system and method for bathroom lights based on voice interaction. According to the user's need help information, the bathroom light and the help-related lights are adjusted in linkage with each other. According to the abnormal sound characteristics, the abnormal situation of the user is determined, and then the bathroom light and all related lights are adjusted in linkage with warnings. De-noising the collected sound information can effectively reduce the interference of noise and improve the accuracy of abnormal sound judgment. The user's command information is analyzed to determine the user's active control command for the current bathroom light, which meets the user's personalized needs. The user's needs are informed to the outside world by light and voice, which meets the user's needs in special circumstances. The abnormal sound is analyzed to determine whether the user has an abnormal situation, and the outside world is informed by light alarm, so that the outside world can know in time that the user has an accident and provide timely assistance, which can provide protection for the user's personal safety.

[0023] Figure 1 A schematic diagram of an application scenario provided for the present application. In a bathroom environment, the method provided by the present application is applied. The system obtains and analyzes real-time environmental sound information, determines the user's command information and emergency conditions, and then makes corresponding adjustments to the bathroom lights and related lights.

[0024] Specifically, the method provided in the present application is applied to any server, and the server interacts with the bathroom light, the associated light and the sound sensor. The server obtains the ambient sound information in the bathroom provided by the sound sensor, performs denoising on the real-time ambient sound information collected, further analyzes the denoised sound information, and then respectively performs basic command adjustment, linkage assistance adjustment and linkage warning adjustment on the bathroom light and the associated light. It can effectively reduce the interference of noise, improve the accuracy of abnormal sound judgment, meet the personalized needs of users, meet the needs of users in special circumstances, have humanized considerations, improve user satisfaction, analyze abnormal sounds to determine whether the user has an abnormal situation, and let the outside world know through light alarms, so that the outside world can know in time that the user has an accident and provide timely assistance, improve the user's sense of security, and provide protection for the user's personal safety. The specific implementation method can refer to the following embodiments.

[0025] Figure 2 This is a flow chart of a method for controlling bathroom lights based on voice interaction provided in an embodiment of the present application. The method of this embodiment can be applied to the server in the above scenario. Figure 2 As shown, the method includes: S201: Acquire real-time environmental sound information, perform denoising on the real-time environmental sound information, and determine denoised sound information.

[0026] The real-time environmental sound information may be the sound information collected by the sound sensor in the current bathroom environment. The denoised sound information may be the sound information obtained after the real-time environmental sound information is denoised.

[0027] Specifically, in a bathroom environment, users will generate more noise when using the bathroom, which will affect the subsequent collection and analysis of sound information. Therefore, the sound information in the bathroom is collected by a sound sensor, and the collected sound information is denoised using spectral subtraction to finally obtain the denoised sound information.

[0028] S202: Determine user command information based on the denoised sound information, analyze the user command information, determine light adjustment information, and perform basic command adjustments on the bathroom light based on the light adjustment information.

[0029] The user instruction information may be an instruction issued by the user based on the user's needs in the form of voice interaction. The light adjustment information may be information for adjusting the current light to meet the user's instruction obtained by analyzing the instruction issued by the user.

[0030] Specifically, in a bathroom environment, users have different needs for lighting based on different purposes of use and personalized needs. At this time, it is necessary to adjust the lighting to meet their own needs, collect user instructions, and accurately analyze user instructions to achieve the results the user wants. Therefore, the content of the denoised sound information is analyzed, and the text information is recognized through speech-to-text conversion technology, such as ASR (automatic speech recognition). Based on the recognized text information, the content is analyzed to determine the user's specific instruction information, and the specific adjustment information for the lighting is determined based on this. Based on the lighting adjustment information, basic instruction adjustments are made to the lighting in the bathroom through dimming technology, such as PWM (pulse width modulation).

[0031] S203, analyzing the user instruction information, determining the user's required help information, and adjusting the bathroom light and the help-related light in a linked manner according to the required help information.

[0032] The user's required help information may be the user's required help content when using the bathroom due to various reasons, such as forgetting to take a bath towel, and needing help outside the bathroom. The associated light may be the light in the area outside the bathroom that can be linked with the bathroom light, such as the living room light, the bedroom light, etc.

[0033] Specifically, in a bathroom environment, users may need help from outside the bathroom for various reasons, such as forgetting to take a towel, but it is inconvenient for them to leave the bathroom. In addition, due to noise interference and sound blocking, it is difficult to directly inform the outside world of their needs. Therefore, through the intention recognition algorithm in natural language analysis technology, the user's command information is accurately analyzed, the content is analyzed, the user's need help information is determined, the need content is output to the person seeking help through voice, and the lights in the bathroom and the lights outside are linked and adjusted to inform the person seeking help outside of the user's help content.

[0034] S204, analyzing the denoised sound information, determining an abnormal sound feature set, determining a current abnormal situation based on the abnormal sound feature set, and performing linkage warning adjustments on the bathroom light and all associated lights based on the current abnormal situation.

[0035] The abnormal sound feature set may be a set of abnormal sounds obtained by analyzing the denoised sound information. The current abnormal situation may be a current situation in which the user is determined to be abnormal by analyzing the abnormal sound feature set.

[0036] Specifically, in a bathroom environment, when a user is using the bathroom, accidents are prone to occur due to various reasons such as the damp ground and high air humidity. In the event of an accident, the user may lose the ability to call for help or even be in a coma, which will have a serious impact on the user's personal safety. Therefore, the denoised sound information is analyzed by mathematical analysis to identify abnormal sounds, and the detected abnormal sounds are analyzed and sorted to obtain an abnormal sound feature set. The detected abnormal sound feature set is analyzed to determine whether the current user has an abnormal situation. If the user is abnormal, the degree of abnormality is determined by mathematical analysis, and on this basis, the lighting adjustment parameters are determined by mathematical analysis, and then dimming technology, such as PWM (pulse width modulation), is used to perform linkage warning adjustments on the bathroom lights and related lights to inform the outside world that an accident has occurred to the user in the bathroom, and that people outside the bathroom need to provide timely assistance to the user in the bathroom.

[0037] Through the method provided in this embodiment, the collected sound information is denoised, which can effectively reduce noise interference and improve the accuracy of abnormal sound judgment. The user command information is analyzed to determine the user's active control command for the current bathroom light, which meets the user's personalized needs. Considering that the user may need help from the outside in some cases, but it is difficult for the user to leave the bathroom, the user's needs are informed to the outside world by light and voice, which meets the user's needs in special circumstances. It has humanized considerations and improves user satisfaction. Abnormal sounds are analyzed to determine whether the user has an abnormal situation, and the outside world is informed by light alarm, so that the outside world can know in time that the user has an accident and provide timely assistance, which can provide protection for the user's personal safety.

[0038] In some embodiments, the current noise level is determined based on real-time ambient sound information; the current denoising intensity is determined based on the current noise level and a preset noise level threshold; based on the current denoising intensity, the real-time ambient sound information is preprocessed and denoised to determine the denoised sound information; based on the denoised sound information, the denoised text information is determined; based on the denoised text information and the preset wake-up word information, the function activation information is determined; based on the function activation information, it is determined whether the voice interaction function is activated; if activated, the denoised text information is analyzed to determine the user command information.

[0039] The current noise level may be a value used to measure the current noise intensity, which may be detected by a noise analyzer. The preset noise level threshold may be a preset threshold used to determine whether the current noise level is too high and thus interferes with the analysis of other sound information. The current denoising intensity may be the intensity of denoising the currently collected sound information. The denoised text information may be text information obtained by analyzing and identifying the denoised sound information through a DNN (deep neural network) model to obtain the text content therein and converting it into text. Function activation information may be information for determining whether the voice interaction function is activated. The preset wake-up word information may be a preset keyword for waking up the voice interaction function.

[0040] Specifically, it is necessary to enjoy more fun and convenience in the use of the bathroom. Therefore, the real-time environmental sound information is obtained through the sound sensor, and the real-time environmental sound information is analyzed through the noise analyzer to determine the current noise level. The current noise level is compared with the preset noise level threshold to determine the current denoising intensity. If the current noise level exceeds the preset noise level threshold, it is considered that the current noise level will affect the subsequent sound analysis, and denoising means are used. The more it exceeds, the greater the denoising intensity, and then the denoised sound information is obtained. The text content of the denoised sound information is analyzed and converted into text to obtain denoised text information for analysis. Through natural language processing technology, the content in the text information is analyzed to determine whether there is text information that can overlap with the preset wake-up word. If so, the voice interaction function is activated, and the subsequent text information is determined as user command information. If the user's command is not detected within a fixed time after the voice interaction function is activated, such as within 2 minutes, the voice interaction function will enter a sleep state and need to be activated again for the next use.

[0041] By using the method provided in this embodiment, the collected sound is first denoised, which can effectively reduce the interference of noise on subsequent sound detection and analysis. By presetting the wake-up word, the voice interaction function is activated only when the user needs it, avoiding the mistaken assumption that there is an instruction when the user has not given an instruction. Through the form of voice interaction, it can bring convenience to users, bring users more personalized experience and fun, and convert the user's voice information into text information, which can better help understand the user's needs and more effectively complete the user's instructions and needs.

[0042] In some embodiments, user command information is analyzed to determine real-time adjustment information and target lighting information; based on the real-time adjustment information, a number of real-time lighting adjustment parameters are determined; based on the number of real-time lighting adjustment parameters and the target lighting information, a real-time lighting adjustment strategy is determined; based on the real-time lighting adjustment strategy, lighting adjustment information is determined; and based on the lighting adjustment information, basic command adjustments are made to the bathroom lights.

[0043] The real-time adjustment information may be specific adjustment information for a plurality of lights according to the user's instructions. The target light information may be a plurality of lights that need to be adjusted according to the user's instructions. The plurality of real-time light adjustment parameters may be specific parameters for adjusting the plurality of lights obtained according to the real-time adjustment information. The real-time light adjustment strategy may be a set of adjustment parameters obtained according to the plurality of real-time light adjustment parameters. The light adjustment information may be adjustment information obtained according to the real-time light adjustment strategy and sent to a plurality of target lights.

[0044] Specifically, in a bathroom environment, users will have different personalized needs when using the bathroom and need to adjust the lights. If the lights are adjusted manually, the user needs to walk back and forth, which will increase the cumbersomeness of the light adjustment and even pose a risk of electric shock. In addition, since the ground is wet, if the user often walks back and forth, there is a risk of slipping, which in turn affects the user's safety. Therefore, by analyzing the user's command information and user needs, it is determined which lights the user needs to adjust, and then the real-time adjustment information and target light information are obtained. Based on the above adjustment information, specific adjustment parameters are determined so that the bathroom lights achieve the effect that the above adjustment information needs to achieve, and then the specific parameter adjustment information of several lights is determined as the light adjustment information, and this information is used to make specific adjustments to the corresponding lights in the bathroom.

[0045] Through the method provided in this embodiment, the user can adjust the light in the bathroom through voice interaction, realizing contactless control between the user and the switch, avoiding the danger of electric shock to the user, reducing the risk of falling due to walking back and forth on the wet ground, improving the safety of the user, and bringing great convenience to the user. It can accurately analyze the needs of the user, and determine the precise parameter adjustment according to the needs, and then accurately adjust the light to achieve the desired effect of the user, which can accurately and perfectly meet the personalized needs of the user and improve the user's satisfaction.

[0046] In some embodiments, user command information is analyzed to determine user need help information; user need help information is analyzed to determine help information and receiving area information; help-associated light information is determined based on the receiving area information; bathroom light adjustment information and associated light adjustment information are determined based on the help-associated light information and preset help light flashing information; voice help information is determined based on the help information and receiving area information; and bathroom lights and associated lights are linked for help adjustment based on the bathroom light adjustment information, associated light adjustment information and voice help information.

[0047] The help information may be the specific content information that the user needs to ask for help. The receiving area information may be the area where the person being helped is located, obtained by analyzing the user's help information, such as asking someone in the living room to help me get a towel, where the living room is the receiving area. The help-associated lighting information may be the lighting information in the bathroom and the help-asking receiving area. The preset help light flashing information may be the preset flashing information of the bathroom and the receiving area lights when the user's help information is received. The bathroom lighting adjustment information may be the lighting information in the bathroom adjusted according to the preset help light flashing information. The associated lighting adjustment information may be the lighting adjustment information in the receiving help area adjusted according to the preset help light flashing information. The voice help information may be to inform the person being helped of the help need of the user in the bathroom through the light, and at the same time inform the person being helped of the help content of the user in the bathroom through voice interaction.

[0048] Specifically, in a bathroom environment, when a user is using the bathroom, they may not be able to solve some problems by themselves due to various reasons and need help from people outside the bathroom. However, due to the various noise factors and sound insulation in the bathroom, it is difficult for people outside the bathroom to quickly receive help information, resulting in the user in the bathroom being unable to inform the people outside the bathroom of their willingness to help. Therefore, through the voice interaction function, the user's instructions are analyzed to determine the help information required, and the help information required is analyzed through the entity recognition and relationship extraction technology in the natural language processing technology to obtain the help content and the help receiving area, and the lighting information of the help area. The flashing light for help is preset. When it is detected that the user has help information, the lights in the bathroom and the receiving area are adjusted according to the preset flashing light for help information, and the person in the receiving area is informed of the specific help needed by the user in the bathroom through voice interaction.

[0049] Through the method provided by this embodiment, the user can complete the request for help from the outside world through voice interaction and associated light adjustment, which not only brings convenience to the user, but also solves unnecessary embarrassment for the user and enhances the user experience. Through the associated light adjustment, the outside person who needs help can quickly know that the user in the bathroom needs help, and through the form of voice interaction, the person who needs help can know the content of the user's help request in the bathroom, so as to provide help to the user in time. Compared with the traditional loud call for help, it effectively avoids the interference of various factors on the user's voice, which causes the person who needs help to be unable to receive the user's help information in time, improves the timeliness of the help, and allows the person who needs help to know the user's specific needs more accurately, and then accurately solve the user's needs.

[0050] In some embodiments, the denoised sound information is analyzed to determine the sound feature value information; based on the sound feature value information, the sound time domain feature information and the sound frequency domain feature information are determined; based on the sound time domain feature information and the preset sound frame length, the short-time energy information of each frame is determined; based on the short-time energy information of each frame and the preset energy threshold, the short-time energy abnormal sound information is determined; based on the sound frequency domain feature information, the spectrum distribution information is determined; based on the spectrum distribution information and the preset frequency range, the energy proportion within the range is determined; based on the energy proportion within the range and the preset frequency band energy ratio threshold, the frequency abnormal sound information is determined; based on the short-time energy abnormal sound information and the frequency abnormal sound information, an abnormal sound feature set is determined.

[0051] The sound feature value information may be a series of information that can describe the characteristics of the sound extracted from the sound signal after denoising. The sound time domain feature information may be the performance of the sound signal at different time points as the sound changes over time. It includes the amplitude, duration, start time, etc. of the signal. The sound frequency domain feature information may be the properties of the sound signal in the frequency domain. The preset sound frame length may be the length of each sound frame preset under the time domain feature. The short-time energy information of each frame may be the energy amplitude of the sound signal under each frame. The preset energy threshold may be a preset threshold for comparing and judging the short-time energy of each frame. The short-time energy abnormal sound information may be the sound information whose short-time energy is judged to be abnormal. The spectrum distribution information may be the intensity and distribution of different frequency components in the sound signal. The preset frequency range may be a preset sound frequency range based on historical data. The energy proportion within the range may be the proportion of the energy within the preset frequency range to the total signal energy. The preset frequency band energy ratio threshold may be a preset threshold for comparing with the energy proportion within the range. The frequency abnormal sound information may be the sound information whose frequency is judged to be abnormal.

[0052] Specifically, in a bathroom environment, when a user uses the bathroom, the wet ground and high air humidity may threaten the user's personal safety. When an accident occurs in the bathroom, abnormal sounds are often heard. Therefore, the denoised sound information is analyzed by DSP (digital signal processing) technology to extract a series of sound feature information to obtain the time domain feature information and frequency domain feature information of the sound. According to the time domain feature information and the preset sound frame length, several frames of sound information are obtained. By mathematical analysis, several frames of sound information are analyzed to obtain the short-time energy information of each frame. The energy threshold is preset, and the short-time energy of each frame is compared with the preset energy threshold. The short-time energy information exceeding the preset energy threshold is determined as abnormal short-time energy sound information. According to the sound frequency domain characteristic information, the spectrum distribution information of the sound is determined, and the frequency range is preset. The spectrum distribution information and the preset frequency range are analyzed through mathematical analysis to obtain the energy proportion within the range. The energy proportion within the range is then compared with the preset frequency band energy ratio threshold. If the energy proportion within the range exceeds the preset frequency band energy ratio threshold, it is considered that the range contains abnormal sound frequency information. The short-term energy abnormal sound information and frequency abnormal sound information are sorted and analyzed to determine the abnormal sound feature set.

[0053] Through the method provided in this embodiment, considering that an accident of a user is often accompanied by the generation of abnormal sounds, by detecting whether there are abnormal sounds in the bathroom, and then determining the abnormal feature set, the current abnormal situation can be directly judged for the subsequent occurrence of the same or similar sounds. By judging the abnormal situation by abnormal sound detection, the privacy of the user can be better protected and the risk of privacy leakage can be prevented. Considering the abnormalities of time domain features and frequency domain features at the same time can make the results more comprehensive and protect the safety of users more comprehensively. Setting a threshold to define whether the current short-term energy and the energy ratio within the range are abnormal can make the abnormal result judgment more accurate.

[0054] In some embodiments, according to a preset sound frame length, the sound time domain feature information is frame-divided to determine a number of sound frame indexes; according to a preset short-time energy sampling interval, a number of sound sampling points are determined; according to the sound sampling points, a short-time energy signal of the sampling points is determined; and the preset sound frame length, the sound frame index, the sound sampling points and the short-time energy signal of the sampling points are analyzed to determine the short-time energy information, which is specifically the following formula (1): (1) in, is the current sound frame index, is the preset sound frame length, is short-term energy information, Indicates the current sound sampling point. is the short-time energy signal of the current sample point; According to the preset frequency range, determine the maximum value of the range, the minimum value of the range and the Nyquist frequency; according to the preset frequency sampling interval, determine a number of frequency sampling points; according to the frequency sampling points, determine the sampling point frequency signal; analyze the maximum value of the range, the minimum value of the range, the Nyquist frequency, the frequency sampling points and the sampling point frequency signal to determine the energy proportion within the range, which is specifically the following formula (2): (2) in, is the energy percentage within the range, is the Nyquist frequency, is the current frequency sampling point, is the current sampling frequency signal, is the minimum value of the range, is the maximum value of the range.

[0055] The sound frame index may be an identifier of a sound frame in a sound signal, and is used to determine the position of each sound frame in the sound signal. The preset short-time energy sampling interval may be a preset sampling interval for sampling short-time energy. A plurality of sound sampling points may be sampling points obtained by dividing a sound frame according to a preset short-time energy sampling interval. The sampling point short-time energy signal may be a short-time energy signal at the current sampling point. The range maximum value may be the maximum value of a preset frequency range. The range minimum value may be the minimum value of a preset frequency range.

[0056] Specifically, by presetting the sound frame length, a number of sound frame indexes are determined, and then each frame is traversed, and formula (1) is designed to obtain the short-time energy information of each frame, where Expressing arrive All The values ​​are summed. This range corresponds to All samples in the frame, is the index of the first sample point of the current frame, is the index of the last sample point of the current frame. It is assumed here that the frames are continuous without overlap or gap. Used to express The purpose of squaring is to convert the amplitude of the signal (which may be positive or negative) into energy (always non-negative). The overall formula is expressed as calculating the sum of the energy of all samples in the current frame to obtain the short-time energy. According to the preset frequency range, the maximum and minimum values ​​of the range are obtained. According to the preset frequency sampling interval, a number of frequency sampling points are determined, and then the frequency signal at each sample point is obtained. Then, formula (2) is designed to obtain the energy ratio within the range, where The sum of the signal energy at all frequency points from low frequency to high frequency is calculated. The sum of the signal energy in the entire frequency range (from 0 to the Nyquist frequency) is calculated, and the ratio of the two measures the proportion of the energy in the preset frequency range to the total signal energy.

[0057] Through the method provided in this embodiment, the signal sample point is converted into Square and sum to quantize the short-term energy of the sound signal in the frame into a single value This value reflects the average energy level of the signal in the frame. The formula is used to quantify the calculation process of short-time energy, which provides an accurate comparison basis for the judgment of short-time energy anomalies, making the judgment of short-time energy anomalies more accurate and reasonable. The formula is used to quantify the calculation process of the energy proportion within the range, which can help understand the distribution of different frequency components in the signal and perform corresponding processing.

[0058] In some embodiments, a historical abnormal sound data set is obtained, the historical abnormal sound data set is analyzed, and an abnormal sound classification model is determined; an abnormal sound feature set and an abnormal sound classification model are analyzed to determine an abnormal type; frequency abnormal sound information is analyzed to determine an energy ratio abnormal index; short-time energy abnormal sound information is analyzed to determine a short-time energy abnormal index; the total number of sound frames is determined based on time domain feature information and sound frame length; the degree of abnormality is determined based on the energy ratio abnormal index, the short-time energy abnormal index, and the total number of sound frames, and is calculated according to the following formula (3): (3) in, It is the degree of abnormality. It is an indicator of short-term energy abnormality. It is an abnormal indicator of energy ratio. is the total number of sound frames, is the short-time energy weight coefficient, is the frequency weight coefficient; the current abnormal situation is determined based on the abnormal type and degree.

[0059] The historical abnormal sound data set may be a collection of all abnormal sounds in a bathroom environment collected based on historical bathroom sound data. The abnormal sound classification model may be a model obtained through machine learning training, which can learn and identify different abnormal sound categories from given sound features. The abnormal type may be used to indicate which abnormal situation the current abnormal sound is caused by. The energy proportion abnormality index may be used to indicate whether the energy proportion within a preset frequency range is abnormal. If the abnormality is 1, the value of the index is 0, otherwise. The short-time energy abnormality index may be an index of the short-time energy abnormality of each sound frame, and if the abnormality is 1, the index is 0, otherwise. The total number of sound frames may be the total number of frames obtained by dividing the sound signal according to the preset sound frame length. The short-time energy weight coefficient may be a weight coefficient for adjusting the influence of the short-time energy abnormality on the overall abnormality. The linear regression fitting algorithm may be used to fit and analyze the historical short-time energy weight and abnormality change data to obtain the short-time energy weight coefficient. The frequency weight coefficient may be a weight coefficient for adjusting the influence of the energy proportion abnormality within the range on the overall abnormality. The linear regression fitting algorithm can be used to fit and analyze the data on energy proportion anomalies and anomaly degree changes within the historical range to obtain the frequency weight coefficient.

[0060] Specifically, in a bathroom environment, if an abnormal sound is detected while the user is using the bathroom, the user may have an accident and needs help to seek help from the outside world. Therefore, a comprehensive abnormal sound data set is obtained by collecting big data historical information, and it is trained through machine learning to obtain an abnormal sound classification model. The abnormal sound information obtained is then compared with the classification model to determine what abnormal situation the current abnormal sound is caused by and determine the current abnormal type. According to the frequency abnormal sound information and the short-time energy abnormal sound information, the energy proportion abnormal index and the short-time energy abnormal index are determined respectively, and the time domain feature information and the sound frame length are used to determine the total number of sound frames, and then formula (3) is designed to calculate the abnormal degree of the current abnormal situation, where It is a binary indicator (i.e. 0 or 1) used to indicate whether the energy ratio in a specific frequency range is abnormal. is the short-term energy anomaly indicator. For each frame , if its short-time energy If the preset threshold is exceeded, is 1 (indicates abnormality), otherwise it is 0 (indicates normality). is the sum of the number of frames with short-term energy anomalies in all sound frames, represents the average short-time energy abnormality rate, Indicates the contribution of short-term energy anomaly to the overall anomaly degree, Indicates the contribution of the energy ratio abnormality index to the overall abnormality level. Finally, the current abnormal situation is determined based on the abnormality type and abnormality level.

[0061] Through the method provided by this embodiment, by designing a formula to quantify the energy proportion abnormality and short-term energy abnormality to reflect the abnormal degree of the current abnormal situation, it is possible to more intuitively understand the abnormal situation of the current user, and provide an adjustment basis for the subsequent abnormal situation lighting adjustment. By determining the current abnormal situation by the abnormal type and abnormal degree, it is possible to quickly understand what kind of accident the user has encountered and the degree of the current accident, and make a preliminary judgment on the current accident, so that the judgment of the current abnormal situation is more reasonable, which is convenient for helping the user to seek help from the outside world in the future.

[0062] In some embodiments, according to the current abnormal situation, the inquiry content is determined; according to the inquiry content, the user is initially inquired for safety, the initial inquiry result is determined, and according to the initial inquiry result, it is determined whether the user response information is received; if the user response information is received, the user response information is analyzed to determine whether the user has an abnormal situation; if there is an abnormal user situation, the abnormal light adjustment information is determined according to the abnormal user situation; if the user response information is not received, the user is secondary security inquiries are conducted according to the preset inquiry interval time, the preset number of inquiries and the inquiry content, the secondary inquiry result is determined, and according to the secondary inquiry result, it is determined whether there is an abnormal user situation, and according to the secondary inquiry result, if the user still does not respond, it is determined that there is an abnormal emergency situation; if there is no abnormal user situation, the real-time bathroom usage time and the preset bathroom usage time threshold are obtained, and according to the real-time bathroom usage time and the preset bathroom usage time threshold, it is determined whether there is an abnormal usage time situation; if there is an abnormal usage time situation or an abnormal emergency situation, an emergency alarm situation is determined; according to the emergency alarm situation and the preset emergency light adjustment parameters, the emergency light adjustment information is determined; according to the abnormal light adjustment information and the emergency light adjustment information, the bathroom light and all related lights are linked to warn and adjust.

[0063] The inquiry content may be different preset contents for inquiring the current user whether an accident has occurred according to different abnormal situations. The preset inquiry interval time may be a preset time interval for inquiring the user when no response is received from the user. The initial safety inquiry may be to inquire the user whether an accident has occurred when an abnormal situation is detected to prevent misjudgment. The secondary safety inquiry may be to prevent the user from inquiring again due to various reasons, such as too loud water flow during bathing, when the initial safety inquiry is not responded to. The user response information may be the user's response information when receiving the safety inquiry. The abnormal light adjustment information may be the light adjustment information when it is determined that the user has an abnormal situation. The user abnormal situation may be a situation used to indicate whether the current user has an abnormal situation. The real-time bathroom usage time may be the time the current user uses the bathroom. The preset bathroom usage time threshold may be a preset threshold for defining whether the current bathroom usage time is too long. The usage time abnormal situation may be the situation where the real-time bathroom usage time of the user exceeds the preset bathroom usage time threshold. The emergency alarm situation may be used to indicate that the current user is in a more urgent and dangerous state. The preset emergency light adjustment parameters may be preset adjustment parameters for all lights when an emergency alarm situation occurs. The emergency lighting adjustment information may be lighting adjustment information based on preset emergency lighting adjustment parameters.

[0064] Specifically, in a bathroom environment, when a user detects an abnormal sound while using the bathroom, the sound may be emitted when the user has an accident, but it may also be emitted by other reasons such as other items falling or emitted by the user personally but not because of an accident. In special cases, the user may not emit an abnormal sound when an accident occurs. In addition, the user may lose the ability to ask for help or even be in a coma when some accidents occur. Therefore, when an abnormal sound is detected, the user is initially questioned through the voice interaction function, and it is determined whether a user response is received based on the query result. If a user response is received, the content is analyzed based on the response content through natural language processing technology to determine whether the user has an accident. If the user has an accident, the lighting adjustment information is determined based on the abnormal type and degree determined above. If no response is received from the user, a second inquiry is made according to the preset inquiry time interval. If a response is received this time, it is determined whether the user has an abnormal situation according to the above process. If no response is received, it is considered that the user may have lost consciousness or the ability to actively communicate, and this situation is determined as an abnormal emergency. If the user does not have any abnormal situation, the user's bathroom usage time is compared with the preset usage time threshold. If the user's bathroom usage time exceeds the preset usage time threshold, it is considered that the user has an accident in the bathroom but has not made any abnormal sound, and this situation is also determined as an emergency alarm. If an emergency alarm occurs, the bathroom light and all related lights are adjusted according to the preset light adjustment parameters to inform the user in the bathroom that an accident has occurred and the user has lost the ability to call for help.

[0065] Through the method provided by this embodiment, through the initial safety inquiry and the secondary safety inquiry of the user, it is possible to understand whether the user has an abnormal situation, whether an accident has occurred but the user is unable to ask for help or is even in a coma, which can effectively prevent misjudgment caused by some other reasons, and at the same time, it can timely discover whether the user has had an accident and lost the ability to ask for help, thereby providing protection for the user's personal safety. In the case where no abnormal sound is detected, by determining whether the bathroom has been used for too long to determine whether the user has had an accident but has not made an abnormal sound, a more comprehensive protection for the user's safety is provided, making the user's personal safety protection more comprehensive, and improving the user's sense of security and satisfaction. Through emergency lighting adjustment, when an emergency situation is detected in the user, the situation of the user in the bathroom can be informed to outsiders as soon as possible, so that the user can get help quickly.

[0066] In some embodiments, the basic brightness of the current plurality of lights is obtained, and the abnormal light brightness adjustment signal is determined according to the basic brightness of the current plurality of lights and the abnormality degree, which is specifically the following formula (4): (4) in, It is the abnormal light brightness adjustment signal. is the base brightness of several lights at present. is the brightness adjustment factor, is the degree of abnormality; obtain the basic flickering frequency of the current plurality of lights, and determine the abnormal light flickering frequency adjustment signal according to the basic flickering frequency of the current plurality of lights and the degree of abnormality, which is specifically the following formula (5): (5) in, It is the abnormal light flashing frequency adjustment signal. is the basic flashing frequency of several lights at present. is the flicker frequency adjustment factor, It is the degree of abnormality; according to the abnormal light brightness adjustment signal and the abnormal light flickering frequency adjustment signal, the abnormal light adjustment information is determined.

[0067] The basic brightness of several lights at present may be the default brightness of several lights that need to be adjusted according to the abnormal light adjustment information when no abnormal situation is detected. The abnormal light brightness adjustment signal may indicate the brightness level to which the light should be adjusted after the abnormal situation is detected. The brightness adjustment coefficient may be used to adjust the coefficient of the brightness change amplitude. The brightness adjustment coefficient may be set by changing the level of abnormality and observing the change in brightness to achieve the desired best effect. The basic flickering frequency of several lights at present may be the default flickering frequency of several lights that need to be adjusted according to the abnormal light adjustment information when no abnormal situation is detected. The abnormal light flickering frequency adjustment signal may be a flickering frequency adjustment signal sent to the target light determined according to the abnormal light adjustment information. The flickering frequency adjustment coefficient may be used to adjust the coefficient of the flickering frequency change amplitude. The historical user abnormality level and flickering frequency change data may be fitted and analyzed by a linear regression fitting algorithm to obtain the flickering frequency adjustment coefficient.

[0068] Specifically, the abnormal situations of users under different degrees are different. When rescuing users, it is necessary to understand the abnormal situation of the current user, distinguish the situations with different abnormal situations, and make different rescue measures for different levels. Therefore, the lights in abnormal situations are adjusted differently according to different abnormal situations. For example, the greater the abnormal situation, the more urgent the abnormal situation of the user. At this time, the brightness needs to be brighter and the flashing frequency needs to be faster, which has informed the outside world that the abnormal situation of the user in the bathroom is more urgent. Design formula (4) to adjust the light brightness. This formula is used to calculate the brightness that the light should be adjusted to when an abnormal situation is detected. It is based on the basic brightness , by multiplying the degree of abnormality and brightness adjustment factor To get the increase or decrease in brightness. Design formula (5) to adjust the light flickering frequency. This formula is used to calculate the flickering frequency that the light should be adjusted to when an abnormal situation is detected. It is based on the basic flickering frequency , by multiplying the degree of abnormality and flicker frequency adjustment factor To get the frequency increase or decrease.

[0069] Through the method provided by this embodiment, when an accident occurs to the user, two formulas are designed to clarify how the bathroom lights and external related lights should be adjusted, and different lighting parameters under different degrees are clarified, so that outsiders can better understand the urgency of the current abnormal situation, and prevent outsiders from using general means to rescue in a more urgent situation without considering the urgency of the situation. As a result, the user in the bathroom can be rescued by the best means, protecting the user's personal safety.

[0070] Figure 3 A schematic diagram of a control system for a bathroom light based on voice interaction provided in one embodiment of the present application is shown in FIG. Figure 3 As shown, the control system 300 of the bathroom light based on voice interaction of this embodiment includes: a denoising module 301 , a basic instruction determination module 302 , a need help determination module 303 , and an abnormality analysis module 304 .

[0071] The denoising module 301 is used to obtain real-time environmental sound information, denoise the real-time environmental sound information, and determine the denoised sound information; the basic instruction determination module 302 is used to determine the user instruction information based on the denoised sound information, analyze the user instruction information, determine the light adjustment information, and perform basic instruction adjustments on the bathroom light based on the light adjustment information; the need help determination module 303 is used to analyze the user instruction information, determine the user need help information, and perform linkage help adjustments on the bathroom light and the help-related lights based on the need help information; the abnormality analysis module 304 is used to analyze the denoised sound information, determine the abnormal sound feature set, determine the current abnormal situation based on the abnormal sound feature set, and perform linkage warning adjustments on the bathroom light and all related lights based on the current abnormal situation.

[0072] Optionally, the denoising module 301 is specifically used to: determine the current noise level based on the real-time environmental sound information; determine the current denoising intensity based on the current noise level and a preset noise level threshold; preprocess and denoise the real-time environmental sound information based on the current denoising intensity to determine the denoised sound information.

[0073] Optionally, the basic instruction determination module 302 is specifically used to: determine the denoised text information based on the denoised sound information; determine the function activation information based on the denoised text information and the preset wake-up word information; determine whether the voice interaction function is activated based on the function activation information; if activated, analyze the denoised text information to determine the user instruction information; analyze the user instruction information to determine the real-time adjustment information and the target lighting information; determine a number of real-time lighting adjustment parameters based on the real-time adjustment information; determine the real-time lighting adjustment strategy based on the real-time lighting adjustment strategy; determine the lighting adjustment information based on the real-time lighting adjustment information; and perform basic instruction adjustments to the lighting of the bathroom lamp based on the lighting adjustment information.

[0074] Optionally, the help requirement determination module 303 is specifically used to: analyze the user command information to determine the user help requirement information; analyze the user help requirement information to determine the help information and receiving area information; determine the help-associated light information based on the receiving area information; determine the bathroom light adjustment information and the associated light adjustment information based on the help-associated light information and the preset help light flashing information; determine the voice help information based on the help information and the receiving area information; and perform linkage help adjustments on the bathroom light and the associated light based on the bathroom light adjustment information, the associated light adjustment information and the voice help information.

[0075] Optionally, the abnormality analysis module 304 is specifically used to: analyze the denoised sound information to determine the sound characteristic value information; determine the sound time domain characteristic information and the sound frequency domain characteristic information based on the sound characteristic value information; determine the short-time energy information of each frame based on the sound time domain characteristic information and the preset sound frame length; analyze the short-time energy information of each frame and the preset energy threshold to determine the short-time energy abnormal sound information; determine the spectrum distribution information based on the sound frequency domain characteristic information; analyze the spectrum distribution information and the preset frequency range to determine the energy proportion within the range; determine the frequency abnormal sound information based on the energy proportion within the range and the preset frequency band energy ratio threshold; determine the abnormal sound feature set based on the short-time energy abnormal sound information and the frequency abnormal sound information.

[0076] Optionally, when determining the short-time energy information according to the sound time domain feature information and the preset sound frame length, the abnormal analysis module 304 is specifically used to: divide the sound time domain feature information into frames according to the preset sound frame length to determine a number of sound frame indexes; determine a number of sound sampling points according to a preset short-time energy sampling interval; determine a short-time energy signal of the sound sampling points according to the sound sampling points; analyze the preset sound frame length, the sound frame index, the sound sampling points and the short-time energy signal of the sampling points to determine the short-time energy information, which is specifically the following formula: ;in, is the current sound frame index, is the preset sound frame length, is the short-time energy information, Indicates the current sound sampling point, is the short-time energy signal of the current sample point; the analyzing the spectrum distribution information and the preset frequency range to determine the energy proportion within the range includes: determining the range maximum value, the range minimum value and the Nyquist frequency according to the preset frequency range; determining a number of frequency sampling points according to the preset frequency sampling interval; determining the sample point frequency signal according to the frequency sampling points; analyzing the range maximum value, the range minimum value, the Nyquist frequency, the frequency sampling points and the sample point frequency signal to determine the energy proportion within the range: ;in, is the energy proportion within the range, is the Nyquist frequency, is the current frequency sampling point, is the current sampling frequency signal, is the minimum value of the range, is the maximum value of the range.

[0077] Optionally, when determining the current abnormal situation according to the abnormal sound feature set, the abnormal analysis module 304 is specifically used to: obtain a historical abnormal sound data set, analyze the historical abnormal sound data set, and determine an abnormal sound classification model; analyze the abnormal sound feature set and the abnormal sound classification model to determine the abnormal type; analyze the frequency abnormal sound information to determine the energy ratio abnormal index; analyze the short-time energy abnormal sound information to determine the short-time energy abnormal index; determine the total number of sound frames according to the time domain feature information and the sound frame length; determine the degree of abnormality according to the energy ratio abnormal index, the short-time energy abnormal index and the total number of sound frames, and calculate according to the following formula: ;in, is the degree of abnormality, is the short-term energy anomaly index, is the energy proportion abnormality indicator, is the total number of frames of the sound, is the short-time energy weight coefficient, is a frequency weight coefficient; and the current abnormal situation is determined according to the abnormal type and the abnormal degree.

[0078] Optionally, when the abnormal analysis module 304 performs linkage warning adjustment on the bathroom light and all related lights according to the current abnormal situation, it is specifically used to: determine the inquiry content according to the current abnormal situation; conduct an initial safety inquiry to the user according to the inquiry content, determine the initial inquiry result, and judge whether the user response information is received according to the initial inquiry result; if the user response information is received, analyze the user response information to determine the user abnormal situation; if the user abnormal situation exists, determine the abnormal light adjustment information according to the current abnormal situation; if the user response information is not received, conduct a secondary safety inquiry to the user according to the preset inquiry interval time and inquiry content, and determine the secondary inquiry result. According to the result of the second inquiry, it is determined whether there is an abnormal situation of the user. According to the result of the second inquiry, if the user still does not respond, it is determined that there is an abnormal emergency situation; if there is no abnormal situation of the user, the real-time usage time of the bathroom and the preset bathroom usage time threshold are obtained, and according to the real-time usage time of the bathroom and the preset bathroom usage time threshold, it is determined whether there is an abnormal usage time situation; if there is an abnormal usage time situation or the abnormal emergency situation, an emergency alarm situation is determined; according to the emergency alarm situation and the preset emergency light adjustment parameters, emergency light adjustment information is determined; according to the abnormal light adjustment information and the emergency light adjustment information, the bathroom light and all related lights are adjusted for linkage warning.

[0079] Optionally, when determining the abnormal light adjustment information according to the current abnormal situation, the abnormal analysis module 304 is specifically used to: obtain the basic brightness of the current lights, and determine the abnormal light brightness adjustment signal according to the basic brightness of the current lights and the abnormality degree, which is specifically the following formula: ; in, is the abnormal light brightness adjustment signal, is the base brightness of the current lights. is the brightness adjustment coefficient, is the abnormality degree; obtaining the basic flickering frequency of the current plurality of lights, and determining the abnormal light flickering frequency adjustment signal according to the current basic flickering frequency of the plurality of lights and the abnormality degree, which is specifically the following formula: ; in, is the abnormal light flashing frequency adjustment signal, is the basic flashing frequency of the current lights. is the flicker frequency adjustment factor, is the abnormality degree; and determining the abnormal light adjustment information according to the abnormal light brightness adjustment signal and the abnormal light flashing frequency adjustment signal.

[0080] The system of this embodiment can be used to execute the method of any of the above embodiments. The implementation principles and technical effects are similar and will not be described in detail here.

Claims

1. A control system and method for bathroom lights based on voice interaction, characterized in that: include: Acquire real-time environmental sound information, perform denoising on the real-time environmental sound information, and determine denoised sound information; Determining user instruction information according to the denoised sound information, analyzing the user instruction information to determine light adjustment information, and performing basic instruction adjustment on the light of the bathroom light according to the light adjustment information; Analyze the user instruction information, determine the user's required help information, and perform linkage help adjustment on the bathroom light and the help-related light according to the required help information; The denoised sound information is analyzed to determine an abnormal sound feature set, a current abnormal situation is determined based on the abnormal sound feature set, and a linkage warning adjustment is performed on the bathroom light and all associated lights based on the current abnormal situation.

2. The method according to claim 1, characterized in that The performing denoising on the real-time environmental sound information to determine the denoised sound information includes: Determining a current noise level according to the real-time environmental sound information; Determining a current denoising intensity according to the current noise level and a preset noise level threshold; Preprocessing and denoising the real-time environmental sound information according to the current denoising strength to determine the denoised sound information; The determining the user instruction information according to the denoised sound information includes: Determining denoised text information based on the denoised sound information; Determining function activation information according to the denoised text information and the preset wake-up word information; Determining whether the voice interaction function is activated according to the function activation information; If activated, the denoised text information is analyzed to determine the user instruction information.

3. The method according to claim 2, characterized in that The analyzing the user instruction information, determining the light adjustment information, and performing basic instruction adjustment on the light of the bathroom light according to the light adjustment information, includes: Analyzing the user instruction information to determine real-time adjustment information and target lighting information; Determining a number of real-time lighting adjustment parameters according to the real-time adjustment information; Determining a real-time lighting adjustment strategy according to the plurality of real-time lighting adjustment parameters and the target lighting information; Determining the lighting adjustment information according to the real-time lighting adjustment strategy; According to the light adjustment information, basic instruction adjustment is performed on the light of the bathroom light.

4. The method according to claim 3, characterized in that The analyzing the user instruction information, determining the user's required help information, and adjusting the bathroom light and the help-related light in a linked manner according to the required help information, includes: Analyze the user instruction information to determine the user required help information; Analyze the user's help requirement information, determine the help request information and receiving area information; Determining help-associated light information according to the receiving area information; Determining bathroom light adjustment information and associated light adjustment information according to the help-associated light information and the preset help-associated light flashing information; Determining voice help information according to the help information and the receiving area information; According to the bathroom light adjustment information, the associated light adjustment information and the voice help information, the bathroom light and the associated light are adjusted in a linked manner for help.

5. The method according to claim 1, characterized in that The analyzing the denoised sound information to determine an abnormal sound feature set includes: Analyze the denoised sound information to determine sound feature value information; Determining the sound time domain feature information and the sound frequency domain feature information according to the sound feature value information; Determining short-time energy information of each frame according to the sound time domain feature information and a preset sound frame length; Analyze the short-time energy information of each frame and the preset energy threshold to determine the short-time energy abnormal sound information; Determining frequency spectrum distribution information according to the sound frequency domain characteristic information; Analyze the spectrum distribution information and the preset frequency range to determine the energy proportion within the range; Determine the frequency abnormal sound information according to the energy proportion within the range and the preset frequency band energy ratio threshold; An abnormal sound feature set is determined according to the short-time energy abnormal sound information and the frequency abnormal sound information.

6. The method according to claim 5, characterized in that The determining of short-time energy information according to the sound time domain feature information and the preset sound frame length includes: According to the preset sound frame length, the sound time domain feature information is divided into frames to determine a plurality of sound frame indexes; Determine a number of sound sampling points according to a preset short-time energy sampling interval; Determine the short-time energy signal of the sound sampling points according to the sound sampling points; The preset sound frame length, the sound frame index, the sound sampling points and the short-time energy signal of the sampling points are analyzed to determine the short-time energy information, which is specifically the following formula: ; in, is the current sound frame index, is the preset sound frame length, is the short-time energy information, Indicates the current sound sampling point, is the short-time energy signal of the current sample point; The analyzing the spectrum distribution information and the preset frequency range to determine the energy proportion within the range includes: According to the preset frequency range, determining a range maximum value, a range minimum value and a Nyquist frequency; According to a preset frequency sampling interval, a number of frequency sampling points are determined; Determine a sampling point frequency signal according to the frequency sampling points; The maximum value of the range, the minimum value of the range, the Nyquist frequency, the frequency sampling points and the sampling point frequency signal are analyzed to determine the energy proportion within the range, which is specifically the following formula: ; in, is the energy proportion within the range, is the Nyquist frequency, is the current frequency sampling point, is the current sampling frequency signal, is the minimum value of the range, is the maximum value of the range.

7. The method according to claim 5, characterized in that Determining the current abnormal situation according to the abnormal sound feature set includes: Acquire a historical abnormal sound data set, analyze the historical abnormal sound data set, and determine an abnormal sound classification model; Analyzing the abnormal sound feature set and the abnormal sound classification model to determine the abnormality type; Analyze the abnormal frequency sound information to determine the abnormal energy ratio index; Analyze the short-time energy abnormal sound information to determine the short-time energy abnormality index; Determining the total number of sound frames according to the time domain feature information and the sound frame length; The degree of abnormality is determined according to the energy proportion abnormality index, the short-time energy abnormality index and the total number of sound frames, and is calculated according to the following formula: ; in, is the degree of abnormality, is the short-term energy anomaly index, is the energy proportion abnormality indicator, is the total number of frames of the sound, is the short-time energy weight coefficient, is the frequency weight coefficient; The current abnormal situation is determined according to the abnormal type and the abnormal degree.

8. The method according to claim 7, characterized in that The step of adjusting the bathroom light and all associated lights for linkage warning according to the current abnormal situation includes: Determine inquiry content according to the current abnormal situation; Conducting an initial security inquiry to the user based on the inquiry content, determining the initial inquiry result, and judging whether a user response information has been received based on the initial inquiry result; If the user response information is received, analyzing the user response information to determine the abnormal situation of the user; If the user abnormal situation exists, determining abnormal lighting adjustment information according to the current abnormal situation; If no response information is received from the user, a second security inquiry is conducted on the user according to a preset inquiry interval and inquiry content, and a second inquiry result is determined. Based on the second inquiry result, it is determined whether the user has an abnormal situation. According to the secondary inquiry result, if the user still does not respond, it is determined that an abnormal emergency situation exists; If there is no abnormal situation of the user, obtain the real-time usage time of the bathroom and the preset bathroom usage time threshold, and determine whether there is an abnormal situation of usage time according to the real-time usage time of the bathroom and the preset bathroom usage time threshold; If the abnormal usage time or the abnormal emergency situation occurs, determine the emergency alarm situation; Determining emergency light adjustment information according to the emergency alarm situation and preset emergency light adjustment parameters; According to the abnormal light adjustment information and the emergency light adjustment information, linkage warning adjustment is performed on the bathroom light and all associated lights.

9. The method according to claim 8, characterized in that The determining abnormal lighting adjustment information according to the current abnormal situation includes: The basic brightness of the current plurality of lights is obtained, and the abnormal light brightness adjustment signal is determined according to the basic brightness of the current plurality of lights and the abnormality degree, which is specifically the following formula: ; in, is the abnormal light brightness adjustment signal, is the base brightness of the current lights. is the brightness adjustment coefficient, is the degree of said abnormality; The basic flickering frequencies of the current plurality of lights are obtained, and the flickering frequency adjustment signal of the abnormal light is determined according to the basic flickering frequencies of the current plurality of lights and the abnormality degree, which is specifically the following formula: ; in, is the abnormal light flashing frequency adjustment signal, is the basic flashing frequency of the current lights. is the flicker frequency adjustment factor, is the degree of said abnormality; The abnormal light adjustment information is determined according to the abnormal light brightness adjustment signal and the abnormal light flickering frequency adjustment signal.

10. A control system for bathroom lights based on voice interaction, characterized in that: include: A denoising module, used to obtain real-time environmental sound information, perform denoising on the real-time environmental sound information, and determine denoised sound information; A basic instruction determination module, used to determine user instruction information according to the denoised sound information, analyze the user instruction information, determine light adjustment information, and perform basic instruction adjustment on the bathroom light according to the light adjustment information; A help demand determination module is used to analyze the user instruction information, determine the user help demand information, and perform linkage help adjustment on the bathroom light and the help-related light according to the help demand information; The abnormality analysis module is used to analyze the denoised sound information, determine an abnormal sound feature set, determine the current abnormal situation based on the abnormal sound feature set, and make linkage warning adjustments to the bathroom light and all related lights based on the current abnormal situation.

Citation Information

Patent Citations

  • Intelligent shower

    CN106200461A

  • Voice recognition control equipment, device, filter device and method

    CN110706698A

  • Intelligent bathroom scene alarm method and device based on user terminal control

    CN117475580A

  • Bath heater switch control method based on sound recognition

    CN118553239A