Noise detection method, wearable device and storage medium

By setting up microphones and posture sensors in wearable devices, and using historical sleep duration and motion information to collect and process noise data, the problem of increased power consumption in long-term noise detection is solved, and efficient and personalized sleep environment noise assessment is achieved.

CN115132225BActive Publication Date: 2024-10-25GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202210424201.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-20
Publication Date
2024-10-25
Estimated Expiration
2042-04-20

AI Technical Summary

Technical Problem

Long-term noise detection will greatly increase the power consumption of electronic devices and affect the efficiency and accuracy of sleep environment noise measurement.

Method used

Provide a noise detection method that sets a microphone in a wearable device, determines a preset time interval based on the user's historical sleep duration collection, collects audio data only during sleep state, and obtains motion information through a gesture sensor to confirm the sleep state. Perform noise analysis and filtering, and calculate target noise data to evaluate environmental noise quality.

Benefits of technology

While ensuring the accuracy of noise detection, it reduces the power consumption of wearable devices, reduces unnecessary audio data collection, improves the service life of the device and personalizes sleep environment noise assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115132225B_ABST
    Figure CN115132225B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a noise detection method, a wearable device and a storage medium, which are applied to the field of noise detection technology and can solve the problem that long-term noise detection will greatly increase the power consumption of electronic devices. A microphone is provided in the wearable device, and the method includes: when it is detected that the user is in a sleeping state, a plurality of audio data corresponding to a plurality of moments are collected through the microphone at preset time intervals, and the preset time interval is determined according to the user's historical sleep duration set; the plurality of audio data are processed to obtain the target noise data corresponding to each moment; according to the target noise data corresponding to each moment, the target environmental noise quality when the user is in a sleeping state is determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of noise detection technology, and in particular, to a noise detection method, a wearable device, and a storage medium. Background Art

[0002] Environmental noise is one of the important factors that affect people's sleep. Severe environmental noise can cause insomnia, fatigue, memory loss, etc. Therefore, measuring and evaluating the noise in the sleeping environment can be used to guide the improvement of the quality of the sleeping environment. At present, some electronic devices can measure the noise in the sleeping environment by collecting audio data, but long-term noise detection will greatly increase the power consumption of electronic devices. Summary of the invention

[0003] The embodiments of the present application provide a noise detection method, a wearable device, and a storage medium to solve the problem that long-term noise detection will significantly increase the power consumption of electronic devices.

[0004] In a first aspect, a noise detection method is provided, wherein a microphone is provided in a wearable device, and the method comprises: when a user is detected to be in a sleeping state, collecting a plurality of audio data corresponding to a plurality of moments respectively through the microphone at a preset time interval, wherein the preset time interval is determined according to a historical sleep duration set of the user;

[0005] Processing the multiple audio data to obtain target noise data corresponding to each moment;

[0006] The target environmental noise quality when the user is in a sleeping state is determined according to the target noise data corresponding to each moment.

[0007] As an optional implementation, in the first aspect of the embodiment of the present application, when it is detected that the user is in a sleeping state, before collecting multiple audio data corresponding to multiple moments through the microphone at preset time intervals, the method further includes:

[0008] Acquire a pre-stored historical sleep duration set of the user and a preset number of noise measurements, wherein the historical sleep duration set includes at least one historical sleep duration;

[0009] Determining a historical average sleep duration according to the at least one historical sleep duration;

[0010] A preset time interval is determined according to the historical average sleep duration and the preset number of noise measurements.

[0011] As an optional implementation, in the first aspect of the embodiment of the present application, the wearable device is provided with a posture sensor, and when it is detected that the user is in a sleeping state, the microphone collects multiple audio data corresponding to multiple moments at preset time intervals, including:

[0012] Acquiring the posture data of the wearable device in real time through the posture sensor;

[0013] Determining the action information of the user according to the posture data;

[0014] When it is determined according to the action information that the user is in a sleeping state, the plurality of audio data corresponding to the plurality of moments are collected respectively by the microphone at the preset time intervals.

[0015] As an optional implementation manner, in the first aspect of the embodiment of the present application, after determining the action information of the user according to the posture data, the method further includes:

[0016] Determine the sleep start time and sleep end time of the user according to the action information;

[0017] Determining the current sleep duration of the user according to the sleep start time and the sleep end time;

[0018] The historical sleep duration set is updated according to the current sleep duration to obtain an updated sleep duration set, wherein the historical sleep duration set includes historical sleep durations that are ranked a preset number of times in order of storage time from recent to far.

[0019] As an optional implementation manner, in the first aspect of the embodiment of the present application, the processing of the multiple audio data to obtain the target noise data corresponding to each moment includes:

[0020] Performing noise analysis on the multiple audio data respectively to obtain initial noise data corresponding to each audio data;

[0021] The initial noise data corresponding to each audio data is filtered to obtain the target noise data corresponding to each audio data, and each target noise data corresponds to each moment in one-to-one correspondence.

[0022] As an optional implementation manner, in the first aspect of the embodiment of the present application, determining the target environmental noise quality when the user is in a sleeping state according to the target noise data corresponding to each moment includes:

[0023] Determining average noise data according to the target noise data corresponding to each moment;

[0024] The target environmental noise range in which the average noise data is located is determined, and the target environmental noise quality corresponding to the target environmental noise range is determined according to a correspondence between a preset environmental noise range and environmental noise quality.

[0025] As an optional implementation manner, in the first aspect of the embodiment of the present application, after determining the target environmental noise quality when the user is in a sleeping state according to the target noise data corresponding to each moment, the method further includes:

[0026] Determine, according to the target noise data corresponding to each moment, a maximum noise value and a minimum noise value when the user is in a sleeping state;

[0027] The maximum noise value, the minimum noise value and the target environmental noise quality are output.

[0028] In a second aspect, a wearable device is provided, wherein a microphone is provided in the wearable device, and the wearable device comprises: an acquisition module, which is used to collect a plurality of audio data corresponding to a plurality of moments through the microphone at a preset time interval when a user is detected to be in a sleeping state, wherein the preset time interval is determined according to a historical sleep duration set of the user;

[0029] A processing module, used for processing the multiple audio data to obtain target noise data corresponding to each moment;

[0030] The processing module is further used to determine the target environmental noise quality when the user is in a sleeping state according to the target noise data corresponding to each moment.

[0031] In a third aspect, a wearable device is provided, wherein a microphone is provided in the wearable device, and the wearable device comprises:

[0032] A memory storing executable program code;

[0033] a processor coupled to the memory;

[0034] The processor calls the executable program code stored in the memory to execute the noise detection method in the first aspect of the embodiment of the present application.

[0035] In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program, wherein the computer program enables a computer to execute the noise detection method in the first aspect of the embodiment of the present application. The computer-readable storage medium includes a ROM / RAM, a magnetic disk or an optical disk, etc.

[0036] According to a fifth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer is caused to execute part or all of the steps of any one of the methods according to the first aspect.

[0037] According to a sixth aspect, an application publishing platform is provided, wherein the application publishing platform is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes part or all of the steps of any one method of the first aspect.

[0038] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0039] In the embodiment of the present application, a microphone is provided in the wearable device. When it is detected that the user is in a sleeping state, the wearable device can collect multiple audio data corresponding to multiple moments through the microphone according to a preset time interval, and the preset time interval is determined according to the user's historical sleep duration set; then the wearable device can process the multiple audio data to obtain the target noise data corresponding to each moment, and determine the target environmental noise quality when the user is in a sleeping state according to the target noise data corresponding to each moment. In this scheme, a microphone is provided in the wearable device, and it is not necessary to collect audio data with the help of an external device; and the wearable device does not need to collect audio data for noise detection all the time, but only needs to collect audio data once every period of time, and the interval duration is determined according to the user's historical sleep duration set, so that the wearable device can determine the time interval of this audio collection according to the user's previous sleep duration, while ensuring the accuracy of noise detection, it can also reflect the personalization of audio collection, and reduce the power consumption of the wearable device, alleviating the power consumption pressure of the wearable device. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 This is a schematic diagram of a noise detection method provided in an embodiment of the present application. Figure 1 ;

[0042] Figure 2 This is a schematic diagram of a noise detection method provided in an embodiment of the present application. Figure 2 ;

[0043] Figure 3 This is a schematic diagram of a wearable device provided in an embodiment of the present application. Figure 1 ;

[0044] Figure 4 This is a schematic diagram of a wearable device provided in an embodiment of the present application. Figure 2 . DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] The terms "first" and "second" and the like in the description and claims of the present invention are used to distinguish different objects rather than to describe a specific order of the objects.

[0047] The terms "including" and "having" and any variations thereof in the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0048] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0049] The wearable device involved in the embodiments of the present application may be a smart watch, a smart bracelet, a watch phone, a smart anklet, a smart earring, a smart necklace, a smart headset, etc., and the embodiments of the present application are not limited thereto.

[0050] The execution subject of the noise detection method provided in the embodiment of the present application can be the above-mentioned wearable device, or it can be a functional module and / or functional entity in the wearable device that can implement the noise detection method. The specific can be determined according to actual use requirements, and the embodiment of the present application is not limited. The following takes a wearable device as an example to exemplarily illustrate the noise detection method provided in the embodiment of the present application.

[0051] like Figure 1 As shown, an embodiment of the present application provides a noise detection method, which may include the following steps:

[0052] 101. When it is detected that the user is in a sleeping state, a plurality of audio data corresponding to a plurality of moments are collected through a microphone at preset time intervals.

[0053] In the embodiment of the present application, a microphone is provided in the wearable device, and the wearable device can collect audio data from the user or the environment through the microphone. When the wearable device detects that the user is sleeping, the microphone can collect an audio data at each collection time according to a preset time interval, thereby obtaining multiple audio data corresponding to multiple time points, and the multiple time points correspond to the multiple audio data one by one.

[0054] It should be noted that the duration of each audio data may be a fixed duration or a random duration, which is not limited in the embodiments of the present application.

[0055] In some embodiments, the preset time interval can be set by the wearable device based on the user's historical sleep duration set. Since the number of noise detections during sleep can be set arbitrarily, there is a certain correspondence between the preset time interval and the historical sleep duration in the historical sleep duration set. The historical sleep duration set may include at least one historical sleep duration of the user.

[0056] Optionally, in order to improve the accuracy of noise detection, the number of noise detections performed by the wearable device during the user's sleep may generally be greater than or equal to a number threshold, for example, at least three noise detections may be performed.

[0057] Since the sleep duration of a user will not differ much during a period of time, determining the current detection time interval based on the historical sleep duration included in the historical sleep duration set can effectively avoid the situation where the user has insufficient audio data due to waking up, and can improve the accuracy of noise detection.

[0058] 102. Process the multiple audio data to obtain target noise data corresponding to each moment.

[0059] In an embodiment of the present application, after the wearable device collects multiple audio data, each audio data can be processed to obtain the target noise data corresponding to each moment.

[0060] In some embodiments, when the user is sleeping, the microphone will not only collect sounds in the environment, but also sounds made by the user himself. Therefore, the wearable device can process the audio data, filter out other sounds (such as: the sound of teeth grinding and snoring made by the user himself, the sound of the microphone of the wearable device when it is running, etc.), and obtain target noise data, which can be the environmental noise during the user's sleep.

[0061] Optionally, processing multiple audio data to obtain target noise data corresponding to each moment may specifically include: performing noise analysis on the multiple audio data respectively to obtain initial noise data corresponding to each audio data; filtering the initial noise data corresponding to each audio data to obtain target noise data corresponding to each audio data.

[0062] In an embodiment of the present application, the wearable device can perform noise analysis and filtering on each audio data to obtain the target noise data corresponding to each moment.

[0063] Among them, each target noise data corresponds to each moment one by one.

[0064] As a specific implementation, the multiple audio data collected by the microphone of the wearable device are all pulse code modulation (PCM) data. The PCM data is an uncompressed audio sampling data stream, which is a standard digital audio data converted from an analog signal through sampling, quantization, and encoding.

[0065] The wearable device can perform noise analysis on the audio data corresponding to each moment in the PCM data format to obtain the initial noise data corresponding to each moment; then the wearable device can perform a-weighted filtering on the initial noise data to calculate the target noise data, which can be used to indicate the decibel level of the ambient noise.

[0066] It should be noted that, since the human ear has different perception abilities for noise in different frequency bands, it is most sensitive to the intermediate frequencies of about 500 Hz (Hertz) to 6 kHz, and less sensitive to low and high frequencies. In order to simulate the different sensitivities of human hearing at different frequencies, frequency weighting can simulate the auditory characteristics of the human ear and correct the electrical signal to an approximate value of the sense of hearing. Three frequency weighting networks can be set in the sound level meter: a, c and z frequency weighting. a weighting simulates the response of the human ear to sound, so that the middle and low frequency bands of the electrical signal have a greater attenuation. The a weighting filter covers a frequency range of 20 Hz to 20 kHz; the c weighted sound level simulates the frequency characteristics of high-intensity noise; and the z weighting is a horizontal response to the frequency range of 20 Hz to 20 kHz. In an embodiment of the present application, the wearable device can use a weighting filter to process the initial noise data, thereby calculating the target noise data corresponding to each audio data, and the target noise data also corresponds to the moment one by one.

[0067] Through this optional implementation method, the wearable device can perform noise analysis and filtering on the audio data to obtain the target noise data corresponding to each moment, so that the wearable device can filter out other sounds except the ambient sound collected by the microphone, and the a-weighted filtering can simulate the characteristics of the human ear having different sensitivities to sounds of different frequencies, so that the measured decibel level can better reflect the impact of noise on human sleep, thereby improving the accuracy of noise detection by the wearable device.

[0068] 103. Determine the target environmental noise quality when the user is in a sleeping state according to the target noise data corresponding to each moment.

[0069] In an embodiment of the present application, after the wearable device obtains the target noise data corresponding to each moment, it can determine the quality of the ambient noise during the user's sleep based on the target noise data corresponding to each moment.

[0070] Optionally, the target environmental noise quality when the user is in a sleeping state is determined based on the target noise data corresponding to each moment, which may specifically include: determining the average noise data based on the target noise data corresponding to each moment; determining the target environmental noise range in which the average noise data is located, and determining the target environmental noise quality corresponding to the target environmental noise range based on the correspondence between a preset environmental noise range and the environmental noise quality.

[0071] In an embodiment of the present application, the wearable device can take the average value of the target noise data corresponding to each moment as the average noise data during the user's sleep, and determine the target environmental noise quality corresponding to the target environmental noise range in which the average noise data is located based on the correspondence between the preset environmental noise range and the environmental noise quality.

[0072] Among them, the environmental noise quality can include multiple levels, such as quiet, normal, high and high. Each level can correspond to an environmental noise range. The environmental noise range can be set by the user or determined by the wearable device according to commonly used noise standards. The embodiments of this application are not limited to this.

[0073] For example, assuming that the ambient noise range corresponding to quiet sleeping environment quality is 0-30dB (decibel), the ambient noise range corresponding to normal sleeping environment quality is 30dB-40dB, the ambient noise range corresponding to high sleeping environment quality is 40dB-55dB, and the ambient noise range corresponding to high sleeping environment quality is above 55dB. The wearable device detects and obtains target noise data at four moments, namely: the target noise data at the first moment is 55dB, the target noise data at the second moment is 40dB, the target noise data at the third moment is 15dB, and the target noise data at the fourth moment is 36dB. The wearable device can take the average of the four target noise data to obtain an average noise data of 36.5dB, which is within the range of 30dB-40dB. Therefore, the target ambient noise quality of the user during sleep is normal.

[0074] In this optional implementation, the wearable device can pre-set the correspondence between the ambient noise range and the ambient noise quality. After determining the average value of multiple target noise data, the target ambient noise quality during sleep can be determined based on the target ambient noise range in which the average value lies. The target ambient noise quality obtained in this way can better represent the average noise situation of the entire sleep process, thereby improving the accuracy of noise detection.

[0075] The embodiment of the present application provides a noise detection method, wherein a microphone is provided in a wearable device, and when it is detected that the user is in a sleeping state, the wearable device can collect multiple audio data corresponding to multiple moments through the microphone at preset time intervals, and the preset time interval is determined according to the user's historical sleep duration set; then the wearable device can process the multiple audio data to obtain the target noise data corresponding to each moment, and determine the target environmental noise quality when the user is in a sleeping state according to the target noise data corresponding to each moment. In this scheme, a microphone is provided in the wearable device, and it is not necessary to collect audio data with the help of an external device; and the wearable device does not need to collect audio data all the time for noise detection, but only needs to collect audio data once every period of time, and the interval duration is determined according to the user's historical sleep duration set, so that the wearable device can determine the time interval of this audio collection according to the user's previous sleep duration, while ensuring the accuracy of noise detection, it can also reflect the personalization of audio collection, and reduce the power consumption of the wearable device, alleviating the power consumption pressure of the wearable device.

[0076] Embodiment 2

[0077] like Figure 2 As shown, the embodiment of the present application provides a noise detection method, which may also include the following steps:

[0078] 201. Obtain a pre-stored historical sleep duration set of a user and a preset number of noise measurements.

[0079] In an embodiment of the present application, the historical sleep duration set may include at least one historical sleep duration, and each historical sleep duration refers to the duration from the start time of each sleep to the end time of each sleep. In order to improve the accuracy of noise detection, the wearable device generally can detect noise more than or equal to a threshold number of times during the user's sleep. For example, at least three noise detections can be performed.

[0080] 202. Determine a historical average sleep duration based on at least one historical sleep duration.

[0081] In an embodiment of the present application, the wearable device may average at least one historical sleep duration included in the historical sleep duration set to obtain a historical average sleep duration.

[0082] Optionally, since the historical average sleep duration is fixed, the wearable device may also adjust the preset number of noise measurements according to the historical average sleep duration when determining the preset number of noise measurements.

[0083] For example, if the historical average sleep time is longer, the preset number of noise measurements can be set larger, that is, the wearable device collects audio data more times during the user's sleep; if the historical average sleep time is shorter, the preset number of noise measurements can be set smaller, that is, the wearable device collects audio data less times during the user's sleep.

[0084] Optionally, the wearable device may also adjust the preset number of noise measurements according to the current power status, thereby determining the preset time interval.

[0085] For example, if the current battery level of the wearable device is high, the preset number of noise measurements can be set to a larger value, that is, the wearable device collects audio data more times during the user's sleep; if the current battery level of the wearable device is low, the preset number of noise measurements can be set to a smaller value, that is, the wearable device collects audio data less times during the user's sleep.

[0086] Optionally, the wearable device may also determine a preset number of noise measurements based on historical noise detection quality, and the historical noise detection quality may be used to indicate the accuracy of the wearable device's previous noise detection.

[0087] For example, if the historical noise detection quality is low, the preset number of noise measurements can be set to a larger value, that is, the wearable device collects audio data more times during the user's sleep to increase the number of samples and improve the accuracy of noise detection; if the historical noise detection quality is high, the preset number of noise measurements can be set to a smaller value, that is, the wearable device collects audio data less times during the user's sleep to reduce the power consumption of the wearable device.

[0088] In the above-mentioned multiple optional implementations, the wearable device can adjust the preset noise measurement times according to multiple factors. Among them, adjusting the preset noise measurement times according to the historical average sleep duration can make the wearable device evenly distribute the collection of each audio data to avoid frequent collection of audio data within a period of time; among them, adjusting the preset noise measurement times according to the power situation can avoid the wearable device from running out of power due to multiple audio data collections; among them, adjusting the preset noise measurement times according to the historical noise detection quality can avoid the situation where the noise detection is inaccurate due to less audio data and lower audio quality. The above-mentioned multiple optional implementations provide multiple methods for determining the preset noise measurement times, which are more in line with the actual needs of life, effectively improve the intelligence level of audio data collection, and also improve the accuracy of noise detection.

[0089] 203. Determine a preset time interval according to the historical average sleep duration and the preset number of noise measurements.

[0090] In an embodiment of the present application, the wearable device can determine the preset time interval based on the ratio between the historical average sleep duration and the preset number of noise measurements.

[0091] For example, assuming that the preset number of noise measurements is 5 times and the historical average sleep time is 7.6 hours, the wearable device can use the ratio between 7.6 hours and 5 times to determine the preset time interval, that is, the preset time interval = 7.6 hours / 5 times = 1.52 hours / time, that is, the wearable device can collect the audio data corresponding to the current time through the microphone once every 1.52 hours.

[0092] Optionally, the preset time interval may not be evenly distributed. Audio data may be collected once when the user just starts to fall asleep, and once when it is predicted that the user is about to wake up based on historical sleep duration. Audio data may be collected at any time during sleep.

[0093] 204. The posture data of the wearable device is obtained in real time through the posture sensor.

[0094] In an embodiment of the present application, a posture sensor is provided in the wearable device, and the wearable device can obtain the posture data of the wearable device in real time through the posture sensor.

[0095] It should be noted that the posture data may include: acceleration data, gyroscope data, etc. Since the wearable device is an electronic device worn by the user, the wearable device can convert the posture data into the user's posture data through model calculation.

[0096] 205. Determine the user's action information based on the posture data.

[0097] In an embodiment of the present application, after the wearable device obtains the posture data, the user's motion information can be determined through a sleep monitoring algorithm.

[0098] It should be noted that when the user is in a sleeping state, the body is motionless most of the time, that is, the motion information is static; when the user is not in a sleeping state, the body will move, that is, the posture data of the wearable device will also change all the time; therefore, the wearable device can determine the user's motion information through the posture data, and further determine whether the user is in a sleeping state.

[0099] Optionally, after determining the user's motion information based on the posture data, it can also include: determining the user's sleep start time and sleep end time based on the motion information; determining the user's current sleep duration based on the sleep start time and sleep end time; and updating the historical sleep duration set based on the current sleep duration to obtain an updated sleep duration set.

[0100] In an embodiment of the present application, after the wearable device determines the action information, it can know whether the user is in a sleeping state or a non-sleeping state. The same wearable device can also determine the start time and end time of the user's sleep, and calculate the current sleep duration of the user's sleep process; the historical sleep duration set includes at least one historical sleep duration. After the wearable device obtains the current sleep duration, it can use the current sleep duration to update the historical sleep duration set, that is, the current sleep duration can be added to the historical sleep duration set.

[0101] Optionally, the historical sleep duration set includes the historical sleep duration of the most recent preset number of times, that is, the number of historical sleep durations included in the historical sleep duration set is fixed. Therefore, after the wearable device adds the current sleep duration to the historical sleep duration set, it is necessary to delete the historical sleep duration with the earliest saved time in the historical sleep duration set to ensure that the number of historical sleep durations in the historical sleep duration set remains unchanged.

[0102] Exemplarily, assuming that the preset number of times is 5 times, the historical sleep duration set includes: the first historical sleep duration saved on March 10 is 8 hours, the second historical sleep duration saved on March 11 is 7 hours, the third historical sleep duration saved on March 12 is 7.3 hours, the fourth historical sleep duration saved on March 13 is 5.8 hours, and the fifth historical sleep duration saved on March 14 is 9.6 hours. The wearable device obtains the user's sleep duration of 7.8 hours on March 15. The wearable device can save 7.8 hours to the historical sleep duration set and delete the first historical sleep duration of 8 hours saved on March 10, so that the updated sleep duration set is: the second historical sleep duration saved on March 11 is 7 hours, the third historical sleep duration saved on March 12 is 7.3 hours, the fourth historical sleep duration saved on March 13 is 5.8 hours, the fifth historical sleep duration saved on March 14 is 9.6 hours, and the current sleep duration saved on March 15 is 7.8 hours.

[0103] Through this optional implementation, the wearable device can update the historical sleep duration set according to each sleep duration to ensure that the historical sleep duration set always stores the most recent sleep duration, which is more convincing for calculating the preset time interval.

[0104] 206. When it is determined according to the action information that the user is in a sleeping state, a plurality of audio data corresponding to a plurality of moments are collected through a microphone at preset time intervals.

[0105] 207. Process the multiple audio data to obtain target noise data corresponding to each moment.

[0106] 208. Determine the target environmental noise quality when the user is in a sleeping state according to the target noise data corresponding to each moment.

[0107] In the embodiment of the present application, for the description of steps 206 to 208, please refer to the detailed description of steps 101 to 103 in the first embodiment, and the embodiment of the present application will not be repeated.

[0108] 209. Determine the maximum noise value and the minimum noise value when the user is in a sleeping state according to the target noise data corresponding to each moment.

[0109] In an embodiment of the present application, after the user finishes sleeping, the wearable device can integrate the target noise data corresponding to each moment during the sleep process, and select the maximum noise value and the minimum noise value therefrom.

[0110] 210. Output the maximum noise value, the minimum noise value and the target environmental noise quality.

[0111] In an embodiment of the present application, the specific method for the wearable device to output the maximum noise value, the minimum noise value and the target environmental noise quality may be to display the maximum noise value, the minimum noise value and the target environmental noise quality on the display screen of the wearable device; or the maximum noise value, the minimum noise value and the target environmental noise quality may be sent to a terminal device associated with the wearable device, so that the terminal device displays the maximum noise value, the minimum noise value and the target environmental noise quality; or the maximum noise value, the minimum noise value and the target environmental noise quality may be sent to a cloud server, so that the cloud server evaluates the user's environment according to the maximum noise value, the minimum noise value and the target environmental noise quality during each sleep process, etc., which is not limited to the embodiments of the present application.

[0112] An embodiment of the present application provides a noise detection method, in which a microphone is provided in a wearable device. The wearable device can determine a preset time interval in advance according to a historical sleep duration set and a preset number of noise measurements, and obtain the user's motion information according to a posture sensor in real time to determine the user's sleep state. When it is detected that the user is in a sleep state, the wearable device can collect multiple audio data corresponding to multiple moments through the microphone according to the preset time interval; then the wearable device can process the multiple audio data to obtain target noise data corresponding to each moment, and determine the target environmental noise quality when the user is in a sleep state according to the target noise data corresponding to each moment, and output the maximum noise value, the minimum noise value and the target environmental noise quality. In this solution, a microphone is provided in the wearable device, so that audio data can be collected without the aid of external equipment. Moreover, the wearable device does not need to collect audio data all the time for noise detection. It only needs to collect audio data once at a certain period of time. The interval is determined based on the user's historical sleep duration set and the preset number of noise measurements. In this way, the wearable device can determine the time interval for this audio collection based on the user's previous sleep duration and the amount of audio data required. While ensuring the accuracy of noise detection, it can also reflect the personalization of audio collection, reduce the power consumption of the wearable device, and alleviate the power consumption pressure of the wearable device.

[0113] Embodiment 3

[0114] like Figure 3 As shown, an embodiment of the present application provides a wearable device, in which a microphone is provided. The wearable device includes:

[0115] The acquisition module 301 is used to collect multiple audio data corresponding to multiple moments through a microphone at preset time intervals when it is detected that the user is in a sleeping state. The preset time interval is determined according to a historical sleep duration set of the user;

[0116] The processing module 302 is used to process the multiple audio data to obtain the target noise data corresponding to each moment;

[0117] The processing module 302 is further configured to determine the target environmental noise quality when the user is in a sleeping state according to the target noise data corresponding to each moment.

[0118] Optionally, the acquisition module 301 is further used to acquire a pre-stored historical sleep duration set of the user and a preset number of noise measurements, where the historical sleep duration set includes at least one historical sleep duration;

[0119] The processing module 302 is further configured to determine a historical average sleep duration according to at least one historical sleep duration;

[0120] The processing module 302 is further configured to determine a preset time interval according to the historical average sleep duration and the preset number of noise measurements.

[0121] Optionally, the acquisition module 301 is specifically used to acquire the posture data of the wearable device in real time through a posture sensor;

[0122] The processing module 302 is specifically used to determine the user's action information according to the posture data;

[0123] The acquisition module 301 is specifically configured to collect a plurality of audio data corresponding to a plurality of moments through a microphone at preset time intervals when it is determined according to the action information that the user is in a sleeping state.

[0124] Optionally, the processing module 302 is further configured to determine the user's sleep start time and sleep end time according to the motion information;

[0125] The processing module 302 is further used to determine the current sleep duration of the user according to the sleep start time and the sleep end time;

[0126] The processing module 302 is further used to update the historical sleep duration set according to the current sleep duration to obtain an updated sleep duration set, wherein the historical sleep duration set includes the historical sleep durations that are ranked in the order of storage time from recent to far and are ranked the first by a preset number of times.

[0127] Optionally, the processing module 302 is specifically configured to perform noise analysis on the multiple audio data respectively to obtain initial noise data corresponding to each audio data;

[0128] The processing module 302 is specifically used to filter the initial noise data corresponding to each audio data to obtain the target noise data corresponding to each audio data, and each target noise data corresponds to each moment one by one.

[0129] Optionally, the processing module 302 is specifically configured to determine average noise data according to the target noise data corresponding to each moment;

[0130] The processing module 302 is specifically configured to determine a target environmental noise range in which the average noise data is located, and determine a target environmental noise quality corresponding to the target environmental noise range according to a correspondence between a preset environmental noise range and environmental noise quality.

[0131] Optionally, the processing module 302 is further configured to determine a maximum noise value and a minimum noise value when the user is in a sleeping state according to the target noise data corresponding to each moment;

[0132] The processing module 302 is further configured to output a maximum noise value, a minimum noise value, and a target environmental noise quality.

[0133] In the embodiment of the present application, each module can implement the noise detection method provided in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0134] like Figure 4 As shown, an embodiment of the present application further provides a wearable device, in which a microphone is provided. The wearable device may include:

[0135] A memory 401 storing executable program codes;

[0136] a processor 402 coupled to the memory 401;

[0137] The processor 402 calls the executable program code stored in the memory 401 to execute the noise detection method performed by the wearable device in the above-mentioned method embodiments.

[0138] An embodiment of the present application provides a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute part or all of the steps of the method in the above method embodiments.

[0139] An embodiment of the present application also provides a computer program product, wherein when the computer program product runs on a computer, the computer is enabled to execute part or all of the steps of the methods in the above method embodiments.

[0140] An embodiment of the present application also provides an application publishing platform, wherein the application publishing platform is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes part or all of the steps of the method in the above method embodiments.

[0141] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present invention. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0142] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0143] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0144] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0145] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above methods of various embodiments of the present invention.

[0146] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

Claims

1. A noise detection method, characterized in that: Applied to a wearable device, wherein a microphone is provided in the wearable device, the method comprises: When it is detected that the user is in a sleeping state, a plurality of audio data corresponding to a plurality of moments are collected respectively by the microphone at a preset time interval, wherein the preset time interval is determined according to a historical sleep duration set of the user; Processing the multiple audio data to obtain target noise data corresponding to each moment; Determining the target environmental noise quality when the user is in a sleeping state according to the target noise data corresponding to each moment; When it is detected that the user is in a sleeping state, before collecting a plurality of audio data corresponding to a plurality of moments through the microphone at preset time intervals, the method further includes: Acquire a pre-stored historical sleep duration set of the user and a preset number of noise measurements, wherein the historical sleep duration set includes at least one historical sleep duration; Determining a historical average sleep duration according to the at least one historical sleep duration; Determining a preset time interval according to the historical average sleep duration and the preset number of noise measurements; The wearable device is provided with a posture sensor, and when it is detected that the user is in a sleeping state, the microphone collects multiple audio data corresponding to multiple moments at preset time intervals, including: Acquiring the posture data of the wearable device in real time through the posture sensor; Determining the action information of the user according to the posture data; When it is determined according to the action information that the user is in a sleeping state, collecting the multiple audio data corresponding to the multiple moments respectively through the microphone at the preset time intervals; After determining the action information of the user according to the posture data, the method further includes: Determine the sleep start time and sleep end time of the user according to the action information; Determining the current sleep duration of the user according to the sleep start time and the sleep end time; The historical sleep duration set is updated according to the current sleep duration to obtain an updated sleep duration set, wherein the historical sleep duration set includes historical sleep durations that are ranked a preset number of times in order of storage time from recent to far.

2. The method according to claim 1, characterized in that The processing of the plurality of audio data to obtain target noise data corresponding to each moment includes: Performing noise analysis on the multiple audio data respectively to obtain initial noise data corresponding to each audio data; The initial noise data corresponding to each audio data is filtered to obtain the target noise data corresponding to each audio data, and each target noise data corresponds to each moment in one-to-one correspondence.

3. The method according to any one of claims 1 or 2, characterized in that: The determining, according to the target noise data corresponding to each moment, the target environmental noise quality when the user is in a sleeping state includes: Determining average noise data according to the target noise data corresponding to each moment; The target environmental noise range in which the average noise data is located is determined, and the target environmental noise quality corresponding to the target environmental noise range is determined according to a correspondence between a preset environmental noise range and environmental noise quality.

4. The method according to any one of claims 1 or 2, characterized in that: After determining the target environmental noise quality when the user is in a sleeping state according to the target noise data corresponding to each moment, the method further includes: Determine, according to the target noise data corresponding to each moment, a maximum noise value and a minimum noise value when the user is in a sleeping state; The maximum noise value, the minimum noise value and the target environmental noise quality are output.

5. A wearable device, characterized in that: The wearable device is provided with a microphone, and the wearable device comprises: An acquisition module, configured to collect a plurality of audio data corresponding to a plurality of moments through the microphone at preset time intervals when it is detected that the user is in a sleeping state, wherein the preset time intervals are determined according to a historical sleep duration set of the user; A processing module, used for processing the multiple audio data to obtain target noise data corresponding to each moment; The processing module is further used to determine the target environmental noise quality when the user is in a sleeping state according to the target noise data corresponding to each moment; When it is detected that the user is in a sleeping state, before collecting a plurality of audio data corresponding to a plurality of moments through the microphone at preset time intervals, the acquisition module is further specifically used to: Acquire a pre-stored historical sleep duration set of the user and a preset number of noise measurements, wherein the historical sleep duration set includes at least one historical sleep duration; Determining a historical average sleep duration according to the at least one historical sleep duration; Determining a preset time interval according to the historical average sleep duration and the preset number of noise measurements; The wearable device is provided with a posture sensor. When it is detected that the user is in a sleeping state, the microphone is used to collect multiple audio data corresponding to multiple moments at preset time intervals. The acquisition module is further specifically used to: Acquiring the posture data of the wearable device in real time through the posture sensor; Determining the action information of the user according to the posture data; When it is determined according to the action information that the user is in a sleeping state, collecting the multiple audio data corresponding to the multiple moments respectively through the microphone at the preset time intervals; After determining the action information of the user according to the posture data, the acquisition module is further specifically used to: Determine the sleep start time and sleep end time of the user according to the action information; Determining the current sleep duration of the user according to the sleep start time and the sleep end time; The historical sleep duration set is updated according to the current sleep duration to obtain an updated sleep duration set, wherein the historical sleep duration set includes historical sleep durations that are ranked a preset number of times in order of storage time from recent to far.

6. A wearable device, characterized in that: The wearable device is provided with a microphone, and the wearable device comprises: A memory storing executable program code; and a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the noise detection method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the noise detection method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Intelligent wearable equipment and control method thereof

    CN106073710A

  • Sleep monitoring method and device

    CN106236013A

  • Sleep state determination system and method based on motions and heart rate

    CN106725383A

  • Human body sleep state monitoring method and device

    CN108992040A

  • Dynamic masking with dynamic parameters

    CN113439446A