Snore stopping method and device, snore stopping pillow and electronic equipment
Through multiple sound sensors, the airbag is accurately adjusted, which solves the problem of inaccurate adjustment of existing snoring equipment, reduces the risk of misoperation and improves the snoring effect.
Patent Information
- Application Number
- CN202411166468.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-12-03
AI Technical Summary
The existing anti-snoring equipment has the risk of misoperation when adjusting the sleeping position, which is difficult to adjust accurately, resulting in poor results.
Multiple sound sensors are used to combine with the controller to accurately adjust the inflation or deflation of the airbag by identifying the snoring characteristics and locations, and adjust the height of the snoring pillow to ensure that it is only adjusted when there is snoring.
It significantly reduces the risk of misoperation, realizes accurate adjustments to snoring users, quickly and effectively relieves snoring, and improves the anti-snoring effect.
Smart Images

Figure CN119055434A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home, and in particular to a method and device for stopping snoring, a snoring pillow and electronic equipment. Background Art
[0002] Snoring, also known as obstructive sleep apnea-hypopnea syndrome, refers to a condition in which a variety of factors lead to partial or complete obstruction of the upper airway during sleep, thus causing apnea and hypopnea. This condition is closely related to factors such as obesity, age, gender, family history, drinking habits, use of specific drugs, smoking behavior, and related health conditions. Its severity cannot be ignored and can cause complications such as high blood pressure, arrhythmia, cognitive decline, and glucose metabolism disorders.
[0003] There are many ways to treat snoring, including medication, surgical intervention, and cryogenic minimally invasive ablation techniques, as well as monitoring and treatment with the help of professional medical equipment. In addition, adjusting lifestyle habits, such as increasing physical exercise, quitting tobacco and alcohol consumption, properly controlling weight, avoiding the intake of specific drugs, and adopting a side-lying sleeping position, can effectively alleviate snoring symptoms.
[0004] Currently, using sleep aids to adjust sleeping posture has become a common treatment method, aiming to reduce snoring by changing the airway shape of the human body. Such devices may include inflatable bags, air pressure regulating devices, sound sensors and control systems. The system automatically controls the inflation and deflation of the airbags based on the snoring sounds detected by the sound sensors, and then adjusts the head position and improves the airway structure. However, such devices have potential risks of misoperation. Summary of the invention
[0005] In view of this, an object of the present invention is to provide a snoring prevention method, device, snoring prevention pillow and electronic device, which can accurately adjust the height of the snoring prevention pillow used by the snoring person, and more accurately adjust the height of the snoring prevention pillow to avoid overadjustment, thereby greatly reducing the risk of misoperation.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0007] In a first aspect, the present invention provides a method for stopping snoring, which is applied to a controller disposed in an anti-snoring pillow, wherein the anti-snoring pillow further comprises a pneumatic structure and an airbag in communication, wherein the controller is respectively in communication with the pneumatic structure and at least two sound sensors, wherein the sound sensors are respectively disposed on both sides of the anti-snoring pillow, and wherein the method comprises:
[0008] Determine whether there is snoring based on the sound data currently collected by each of the sound sensors;
[0009] If yes, obtaining the snoring position and snoring features according to each of the sound data;
[0010] In the case where the snoring position matches the position of the anti-snoring pillow, selecting at least one airbag as an airbag to be adjusted according to the snoring characteristics, and determining the adjustment amount of each of the airbags to be adjusted;
[0011] For each of the airbags to be adjusted, the pneumatic structure is controlled to inflate or deflate the airbags to be adjusted according to the adjustment amount.
[0012] Optionally, the sound data includes ambient audio;
[0013] The step of judging whether there is snoring in combination with the sound data currently collected by each of the sound sensors comprises:
[0014] For each of the environmental audios, extract the MFCC features corresponding to the environmental audios, input the MFCC features into a pre-trained sound recognition model, and obtain a recognition result using the sound recognition model;
[0015] Determining whether the recognition results of each of the environmental audios indicate the presence of snoring;
[0016] If yes, it is determined that snoring exists.
[0017] Optionally, the sound data includes the capture time of the ambient audio;
[0018] The step of obtaining the snoring position and snoring characteristics according to each of the sound data comprises:
[0019] Calculating the time difference between each capture time, and obtaining the snoring position according to the interval between each sound sensor and the time difference;
[0020] The sound intensity of each of the environmental audios is extracted, and the snoring intensity is obtained according to each of the sound intensities, and the snoring intensity is used as a snoring feature.
[0021] Optionally, the anti-snoring pillow is further provided with a human body detector which is communicatively connected with the controller;
[0022] The step of selecting at least one airbag as the airbag to be adjusted according to the snoring characteristics and determining the adjustment amount of each of the airbags to be adjusted comprises:
[0023] Obtaining a current force area of the anti-snoring pillow according to the human body detection data currently collected by the human body detector;
[0024] Retrieving the anti-snoring pillow state corresponding to each successful anti-snoring of the anti-snoring pillow from a preset historical database; wherein the anti-snoring pillow state includes an initial force area, an air pressure value of each airbag, and an initial sound intensity;
[0025] From the anti-snoring pillow states, select the anti-snoring pillow state in which the initial force area matches the current force area as a reference state;
[0026] Determining whether there is the reference state in which the initial sound intensity matches the snoring feature;
[0027] If so, the airbags whose current air pressure values are inconsistent with the air pressure values in the reference state are taken as the airbags to be adjusted, and the adjustment amount of each of the airbags to be adjusted is obtained according to the current air pressure value and the air pressure value in the reference state.
[0028] Optionally, after the step of determining whether there is a reference state in which the initial sound intensity matches the snoring feature, the method further includes:
[0029] If the reference state in which the initial sound intensity matches the snoring feature does not exist, each of the airbags located in the current force-bearing area is used as an airbag to be adjusted, and a preset adjustment value is used as the adjustment amount of each of the airbags to be adjusted.
[0030] Optionally, after the step of determining whether snoring exists in combination with the sound data currently collected by each sound sensor, the method further includes:
[0031] If there is no snoring, the snoring time of the last snoring is obtained, and the non-snoring time is calculated according to the snoring time and the current time;
[0032] If the non-snoring time is greater than or equal to a preset success threshold, then recording the snoring cessation success information;
[0033] If the non-snoring time is less than a preset success threshold, after receiving the sound data currently collected by each sound sensor, the method returns to the step of determining whether snoring exists by combining the sound data currently collected by each sound sensor.
[0034] Optionally, the anti-snoring pillow is further provided with a human body detector which is communicatively connected with the controller;
[0035] Before the step of combining the sound data currently collected by each sound sensor to determine whether there is snoring, the method further includes:
[0036] The human body detection data currently collected by the human body detector is acquired, and when the human body detection data indicates that the anti-snoring pillow is used, the sound sensor is controlled to enter a working state.
[0037] In a second aspect, the present invention provides an anti-snoring device, which is applied to a controller disposed in an anti-snoring pillow, wherein the anti-snoring pillow further comprises a connected pneumatic structure and an airbag, wherein the controller is respectively in communication with the pneumatic structure and at least two sound sensors, wherein the sound sensors are respectively disposed on both sides of the anti-snoring pillow, and wherein the anti-snoring device comprises a snoring detection module, a feature acquisition module, a first adjustment module, and a second adjustment module;
[0038] The snoring detection module is used to determine whether there is snoring in combination with the sound data currently collected by each of the sound sensors;
[0039] The feature acquisition module is used to acquire the snoring position and snoring features according to each of the sound data;
[0040] The first adjustment module is used to select at least one airbag as an airbag to be adjusted according to the snoring characteristics when the snoring position matches the position of the anti-snoring pillow, and determine the adjustment amount of each of the airbags to be adjusted;
[0041] The second adjustment module is used to control the pneumatic structure to inflate or deflate each of the airbags to be adjusted according to the adjustment amount.
[0042] In a third aspect, the present invention provides an anti-snoring pillow, comprising a sound sensor, a pillow body, and a controller, an airbag, and a pneumatic structure arranged in the pillow body, wherein the sound sensor is arranged on both sides of the pillow body;
[0043] The sound sensor is in communication with the controller, the output end of the controller is connected to the control end of the pneumatic structure, and the pneumatic structure is in communication with the airbag;
[0044] The controller is used to implement the anti-snoring method as described in the first aspect.
[0045] In a fourth aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement the anti-snoring method as described in the first aspect.
[0046] In a fifth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for stopping snoring as described in the first aspect.
[0047] The present invention provides a method, device, snoring prevention pillow and electronic device for stopping snoring, the method comprising: judging whether there is snoring in combination with the sound data currently collected by each sound sensor; if so, obtaining the snoring position and snoring characteristics according to each sound data; in the case where the snoring position matches the position of the snoring prevention pillow, selecting at least one air bag as the air bag to be adjusted according to the snoring characteristics, and determining the adjustment amount of each air bag to be adjusted; for each air bag to be adjusted, controlling the pneumatic structure to inflate or deflate the air bag to be adjusted according to the adjustment amount. In this way, after determining that the current sound is snoring, and determining that the snoring position matches the position of the snoring prevention pillow, that is, the snoring is emitted by the person using the snoring prevention pillow, at least one air bag of the snoring prevention pillow is adjusted to adjust the height of the snoring prevention pillow, and then adjusting the sleeping posture of the person using the snoring prevention pillow to relieve snoring as quickly and effectively as possible. Thereby, it is achieved that the height of the snoring prevention pillow used by the snoring person is accurately adjusted, and the height of the snoring prevention pillow is adjusted more accurately, over-adjustment is avoided, and the risk of misoperation is greatly reduced.
[0048] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0050] Figure 1 A schematic structural diagram of an anti-snoring system provided in an embodiment of the present invention is shown.
[0051] Figure 2 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown.
[0052] Figure 3 One of the flow charts of the anti-snoring method provided in the embodiment of the present invention is shown.
[0053] Figure 4 Shows Figure 3 Schematic diagram of the process of some sub-steps of step 12.
[0054] Figure 5 Shows Figure 3 Schematic diagram of the process flow of some sub-steps of step 14.
[0055] Figure 6 Shows Figure 3 Schematic diagram of the process of some sub-steps of step 16.
[0056] Figure 7 The second flowchart of the method for stopping snoring provided in the embodiment of the present invention is shown.
[0057] Figure 8 A block diagram of an anti-snoring device provided in an embodiment of the present invention is shown.
[0058] Explanation of the reference numerals: 10 - anti-snoring system; 110 - terminal device; 120 - anti-snoring pillow; 130 - controller; 140 - pneumatic structure; 150 - airbag; 160 - sound sensor; 170 - human body detector; 20 - electronic device; 210 - memory; 220 - processor; 230 - communication module; 30 - anti-snoring device; 310 - snoring detection module; 320 - feature acquisition module; 330 - first adjustment module; 340 - second adjustment module. DETAILED DESCRIPTION
[0059] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0060] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.
[0061] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0062] The snoring stopping method provided in the embodiment of the present invention can be applied to Figure 1The anti-snoring system 10 shown includes a terminal device 110 , an anti-snoring pillow 120 , a controller 130 disposed in the anti-snoring pillow 120 , a pneumatic structure 140 , an airbag 150 , a sound sensor 160 and a human body detector 170 .
[0063] There may be at least two sound sensors 160, and the sound sensors 160 may be disposed inside or outside the anti-snoring pillow 120, and there is at least one sound sensor 160 on each side of the anti-snoring pillow 120. When the sound sensors 160 are disposed outside the anti-snoring pillow 120, a group of sound sensors 160 may be connected to the controllers 130 in the anti-snoring pillows 120 by wireless connection methods such as Bluetooth and WiFi. When the sound sensors 160 are disposed inside the anti-snoring pillow 120, the sound sensors 160 may be connected to the controller 130 via a communication bus.
[0064] The anti-snoring pillow 120 includes a pillow body, which is composed of at least a pillowcase and a pillow core. The pneumatic structure 140, the airbag 150, the human body detector 170 and the controller 130 are all arranged in the accommodating cavity in the pillow core. There can be multiple airbags 150, which are arranged at different positions in the pillow core. The pneumatic structure 140 can include an air pump, an air inlet hose, an air outlet hose and an air pressure sensor. The air inlet of each airbag 150 is connected to the air outlet of the air pump through an air inlet hose. The air inlet hose or the air outlet hose of each airbag 150 is connected to a pressure tube fixedly connected to the detection end of the air pressure sensor.
[0065] The pneumatic structure 140 may further include a solenoid valve, and the air inlet hose and the air outlet hose of each airbag 150 are provided with a solenoid valve.
[0066] The controller 130 can be connected to the control end of the air pump, the output end of the human detector 170 and the control end of the solenoid valve through a communication bus. It should be noted that the controller 130 can be a main control chip and its peripheral circuits arranged on a control circuit board, and the main control chip can be an MCU, FPGA, DSP and single-chip microcomputer, etc., which are not limited in this embodiment.
[0067] The terminal device 110 can be connected to the controller 130 via wireless connection methods such as Bluetooth and WiFi, and the terminal device 110 can be, but is not limited to, a wearable portable device such as a mobile phone, a tablet computer, a personal computer, a laptop computer, and a smart watch.
[0068] The controller 130 is used to implement the anti-snoring method provided in the embodiment of the present invention, and to generate a sleep report based on the anti-snoring status of sleep after each sleep, and upload the sleep report to the terminal device 110 .
[0069] Please refer to Figure 2, is a block diagram of an electronic device 20, which may be Figure 1 The controller 130 in the anti-snoring system 10 is shown. The electronic device 20 includes a memory 210, a processor 220 and a communication module 230. The memory 210, the processor 220 and the communication module 230 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.
[0070] The memory 210 is used to store programs or data and can be, but not limited to, a random access memory, a read-only memory, a programmable read-only memory, an erasable read-only memory, an electrically erasable read-only memory, and the like.
[0071] The processor 220 is used to read / write data or programs stored in the memory 210 and execute corresponding functions. For example, Figure 1 In the illustrated anti-snoring system 10 , the processor 220 of the controller 130 executes the computer program stored in the memory 210 to implement the anti-snoring method provided by the embodiment of the present invention.
[0072] The communication module 230 is used to establish a communication connection between the electronic device 20 and other communication terminals through a communication bus or wireless communication, and is used to send and receive data through the communication bus or wireless communication. Figure 1 In the anti-snoring system 10 shown in FIG. 1 , the controller 130 communicates with the Figure 1 The terminal device 110, the pneumatic structure 140 and the sound sensor 160 transmit and receive data.
[0073] It should be understood that Figure 2 The structure shown is only a schematic diagram of the structure of the electronic device 20. The electronic device 20 may also include Figure 2 More or fewer components as shown, or with Figure 2 Different configurations are shown. Figure 2 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0074] Please refer to Figure 3 , an embodiment of the present invention provides a method for stopping snoring, comprising steps 11 to 17. In this embodiment, Figure 1 The controller 130 in the anti-snoring system 10 shown can Figure 2 According to the structure shown, steps 12 to 18 are executed to implement the anti-snoring method.
[0075] Step 12, judging whether there is snoring in combination with the sound data currently collected by each sound sensor. If yes, proceed to step 14.
[0076] Step 14: Obtain the snoring position and snoring features according to each sound data.
[0077] Step 16, when the snoring position matches the position of the anti-snoring pillow, select at least one airbag as an airbag to be adjusted according to the snoring characteristics, and determine the adjustment amount of each airbag to be adjusted.
[0078] Step 18, for each airbag to be adjusted, control the pneumatic structure to inflate or deflate the airbag according to the adjustment amount.
[0079] For example, in combination Figure 1 The anti-snoring system 10 shown, after the sound sensor 160, the controller 130, etc. enter the working state, each sound sensor 160 periodically collects the current sound data of the environment in real time according to the preset collection cycle, and transmits the collected sound data to the controller 130. After receiving the sound data, the controller 130 immediately determines whether there is snoring. If it is determined that there is no snoring, it waits to receive the next sound data sent by the sound sensor 160. If it is determined that there is snoring, the snoring position and snoring characteristics are obtained according to each sound data.
[0080] Thus, the controller 130 matches the snoring location with the location of the anti-snoring pillow 120. If the location is matched to be in the same area, i.e., if it is matched, at least one airbag 150 on the anti-snoring pillow 120 is selected as the airbag 150 to be adjusted according to the snoring characteristics, and the adjustment amount of each airbag 150 to be adjusted is determined. Then, for each airbag 150 to be adjusted, the pneumatic structure 140 is controlled to inflate or deflate the airbag 150 to be adjusted according to the adjustment amount. After the adjustment is completed, the controller 130 waits to receive the next sound data sent by the sound sensor 160, so as to cyclically execute the above process until the person using the anti-snoring pillow 120 ends the use.
[0081] The above-mentioned anti-snoring method, through the above-mentioned steps 12 to 18, after determining that the current sound is snoring, and determining that the position of the snoring matches the position of the anti-snoring pillow, that is, after the snoring is emitted by the person using the anti-snoring pillow, at least one air bag of the anti-snoring pillow is adjusted to adjust the height of the anti-snoring pillow, and then adjust the sleeping posture of the person using the anti-snoring pillow to relieve snoring as quickly and effectively as possible. Thus, it is achieved that the height of the anti-snoring pillow used by the snoring person is accurately adjusted, and the height of the anti-snoring pillow is adjusted more accurately, over-adjustment is avoided, and the risk of misoperation is greatly reduced.
[0082] The sound data collected by the sound sensor 160 may include the ambient audio and the capture time of the ambient audio. Also, the method of determining whether there is snoring in step 12 can be flexibly selected. For example, a machine learning model or a neural network model can be used to identify whether there is snoring in the sound data, or a sound feature analysis method can be used to analyze whether there is snoring. The above method is only an example, and its specific implementation method is not limited.
[0083] In order to make the determination result of whether snoring exists more accurate and reduce the probability of misoperation, the extraction of MFCC features is introduced in step 12, and then the idea of using a pre-trained sound recognition model with snoring recognition function to recognize snoring based on MFCC features is introduced. Figure 4 , step 12 may include steps 121 to 125.
[0084] Step 121, for each ambient audio, extract the MFCC features corresponding to the ambient audio, input the MFCC features into a pre-trained sound recognition model, and obtain a recognition result using the sound recognition model.
[0085] Among them, the process of extracting MFCC features can be: dividing the ambient audio into small time windows; applying discrete Fourier transform to each time window to convert the ambient audio from the time domain to the frequency domain, and obtaining a spectrum corresponding to each time window; using a Mel filter to filter the spectrum to convert the spectrum into a distribution on the Mel frequency scale to simulate human auditory perception; using cepstrum analysis on the spectrum on the Mel frequency scale to obtain a set of cepstrum coefficients, namely MFCC features.
[0086] And, the sound recognition model is a model obtained by training the initial model using sound samples, which can identify whether the sound is snoring or non-snoring. The settings of the initial model and the training method can be flexibly selected. For example, the initial model can be a time-delay neural network model, or a RNN-T model or any other model with sound recognition function, and its specific implementation method is not limited.
[0087] In order to enable the model to learn the ability to model long time series and the ability to learn MFCC features, the ECAPA_TDNN voiceprint recognition model can be selected as the initial model, and a large number of sound samples can be collected through sound recording, audio and video cropping, etc., and each sound sample can be labeled according to whether the sound sample is snoring.
[0088] Then, extract the MFCC features of each sound sample to obtain feature samples, divide all feature samples into a training set and a test set, use the feature samples in the training set as the input of the initial model, use the labels of the sound samples corresponding to the feature samples as the supervisory signal, and use a supervised training method to train the initial model so that the initial model learns the feature differences between snoring and non-snoring. After the training is completed, the trained model is tested with a test set. If the test reaches the set calibration, the model is used as a sound recognition model, otherwise the training continues. In this way, a sound recognition model that identifies whether it is snoring based on the input MFCC features can be obtained. After the sound recognition model is deployed to the controller, when the MFCC features corresponding to the ambient audio are extracted in step 121, the pre-deployed sound recognition model is called, the MFCC features are input into the pre-trained sound recognition model, and the sound recognition model is used to obtain the recognition result of whether it is snoring.
[0089] It should be understood that each MFCC feature of the ambient audio collected by the sound sensor obtains a recognition result respectively.
[0090] Step 122, determining whether the recognition results of each ambient audio all indicate the presence of snoring. If so, executing step 123, if not, executing step 124.
[0091] Step 123, determining whether snoring exists.
[0092] Step 124, determine whether there is snoring.
[0093] Through the above steps 121 to 124 , the controller can quickly and accurately identify whether the sound data currently collected by the sound sensor contains snoring.
[0094] After snoring is identified in the current sound data, the snoring position and snoring features can be obtained in step 14 in a variety of ways. For example, the environmental sounds and their capture times can be input into a pre-trained sound localization model, and the snoring position and snoring features can be obtained using the sound localization model. The snoring position and snoring features can also be obtained using preset rules. Any other method that can perform sound localization and feature extraction can also be used, and the specific implementation method is not limited.
[0095] In order to make the obtained snoring position and snoring features highly accurate, a sound source localization technology based on arrival time difference can be introduced in step 14. Figure 5 , step 14 may include steps 141 to 143.
[0096] Step 141, calculate the time difference between each capture time, and obtain the snoring position according to the distance between each sound sensor and the time difference.
[0097] Here, when Figure 1 When there are two sound sensors 160, the distance difference between the sound source and the two sound sensors 160 can be obtained based on the time difference between any two sound sensors 160, and then based on the distance difference and the spacing between the two sound sensors 160, a hyperbolic function is obtained, and the focus of the hyperbolic function is the two-dimensional coordinate of the snoring position.
[0098] In order to make the snoring location more accurate, the three-dimensional coordinates can be obtained. At this time, the sound sensors 160 can be three or more. Three sound sensors 160 are selected to establish a hyperbolic function in pairs in the manner of obtaining the two-dimensional coordinates of the plane as described above. The focus of each hyperbolic function is a two-dimensional coordinate on a plane, such as the first focus is (x0, y0) and the second focus is (y0, z0). The three-dimensional coordinates of the snoring sound source, i.e., the snoring location, can be obtained by combining the two.
[0099] Step 143: extract the sound intensity of each ambient audio, obtain the snoring intensity according to each sound intensity, and use the snoring intensity as a snoring feature.
[0100] It should be noted that the snoring intensity as a snoring feature is only an example, and it can be replaced by any other characteristic index that can reflect the snoring intensity. In this embodiment, there is no limitation on the measurement index of the snoring feature.
[0101] In addition, the average value of each sound intensity may be used as the snoring intensity, and the snoring intensity may be calculated using other preset rules.
[0102] For example, in order to make the snoring intensity more accurate, any sound sensor 160 can be selected to calculate the distance between the sound sensor 160 and the snoring location, and the snoring intensity at the sound source can be derived based on the relationship between sound intensity attenuation and distance and the sound intensity of the ambient audio collected by the sound sensor 160.
[0103] Through the above steps 141 to 143, the snoring position and snoring intensity can be obtained with high accuracy. At this time, in step 16, the controller 130 can calculate the distance between the snoring position and the anti-snoring pillow 120. If the distance is less than the preset distance threshold, it can be determined that the snoring position matches the position of the anti-snoring pillow 120, otherwise, it does not match. Or it can be determined whether the snoring position is within a preset range with the position of the anti-snoring pillow 120 as the center point. If so, it can be determined that the snoring position matches the position of the anti-snoring pillow 120, otherwise, it does not match.
[0104] When it is determined that the snoring position matches the position of the anti-snoring pillow 120, the method of determining the airbag 150 to be adjusted and the adjustment amount in step 16 can be flexibly selected. For example, all the airbags 150 can be used as the airbags 150 to be adjusted, and the preset single adjustment value can be used as the adjustment amount of the airbag 150 to be adjusted. The airbag 150 to be adjusted and its adjustment amount can also be determined according to the actual pressure area of the anti-snoring pillow 120. The above method is only an example, and its implementation method is not limited.
[0105] In order to make the adjustment more accurate and improve the efficiency of stopping snoring, the concept of determining the airbag to be adjusted and the adjustment amount based on the historical successful snoring stopping state is introduced in step 16. Figure 6 , step 16 may include steps 161 to 165.
[0106] Step 161, obtaining the current force area of the anti-snoring pillow according to the human body detection data currently collected by the human body detector.
[0107] Among them, the human body detector 170 may include an array sensor network, which is composed of multiple pressure detectors such as pressure sensitive units. The array sensor network is set in the use area of the anti-snoring pillow, such as the front and back of the anti-snoring pillow. At this time, the current force area can be determined according to the position of the pressure sensitive unit that detects the pressure.
[0108] Step 162, retrieve the anti-snoring pillow status corresponding to each successful anti-snoring of the anti-snoring pillow from a preset history database.
[0109] The state of the anti-snoring pillow includes the initial force area, the air pressure value of each airbag and the initial sound intensity. The historical database can be a database created in the memory of the controller, which contains the state of the anti-snoring pillow (i.e. the air pressure value of each airbag in the anti-snoring pillow) when each snoring is successfully stopped.
[0110] Step 163, from various anti-snoring pillow states, select the anti-snoring pillow state whose initial force area matches the current force area as the reference state.
[0111] Among them, when the initial force-bearing area is consistent with the current force-bearing area, or the overlapping area between the initial force-bearing area and the current force-bearing area is greater than a preset overlapping threshold, it is considered a match.
[0112] Step 164 , determining whether there is a reference state in which the initial sound intensity matches the snoring feature. If yes, executing step 165 .
[0113] Here, the initial sound intensity refers to the intensity of the snoring before snoring is successfully stopped. Similar to the matching mechanism of the above-mentioned force area, when the initial sound intensity is consistent with the snoring characteristics (i.e., snoring intensity), or when the difference between the initial sound intensity and the snoring characteristics exceeds the preset difference threshold, it is considered a match.
[0114] Step 165, taking the airbags whose current air pressure values are inconsistent with the air pressure values in the reference state as the airbags to be adjusted, and obtaining the adjustment amount of each airbag to be adjusted according to the current air pressure value and the air pressure value in the reference state.
[0115] It should be understood that the difference between the current air pressure value and the air pressure value in the reference state is the adjustment amount of the airbag to be adjusted.
[0116] Through the above steps 161 to 165, if there are successful cases of snoring control in the history, the airbag pressure, that is, the hardness and height of the current snoring control pillow is adjusted according to the state of the historical successful snoring control pillow that best matches the current snoring situation, so as to stop snoring more quickly and efficiently.
[0117] If in step 164, it is determined that there is no reference state in which the initial sound intensity matches the snoring characteristics, that is, there is no historical successful snoring case, or a historical successful case that matches the current snoring situation, please continue to refer to Figure 6 , execute step 166.
[0118] Step 166: each airbag located in the current force-bearing area is used as an airbag to be adjusted, and a preset adjustment value is used as an adjustment amount of each airbag to be adjusted.
[0119] Here, the adjustment value may include a single reduction amount and a single increase amount. At this time, the air pressure value of each airbag to be adjusted is obtained through the air pressure sensor. Furthermore, for each airbag to be adjusted, if the air pressure value of the airbag to be adjusted is greater than or equal to the preset air pressure upper limit value, it means that it is too high. At this time, the preset single reduction amount is used as the adjustment amount. If the air pressure value of the airbag to be adjusted is less than the preset air pressure lower limit value, it means that it is too high. At this time, the preset single increase amount is used as the adjustment amount.
[0120] Alternatively, based on the snoring intensity change characteristics after the previous adjustments during the user's sleep period, determine whether it is more appropriate to adjust the height up or down. For example, if the snoring intensity decreases quickly when adjusted up, the airbag height is adjusted up; if the snoring intensity decreases quickly when adjusted down, the airbag height is adjusted down.
[0121] Therefore, when making adjustments in step 18, the target air pressure value of the airbag to be adjusted is determined based on the adjustment amount, so that during the adjustment process of inflating or deflating the airbag to be adjusted by the air pump, the controller obtains the pressure value detected by the air pressure sensor corresponding to the airbag to be adjusted in real time. When the pressure value reaches the target air pressure value, the solenoid valve on the inflation pipeline or the solenoid valve on the deflation pipeline is controlled to close.
[0122] It should be noted that the above method is only an example, and in actual application, the specific situation of step 166 may be adjusted.
[0123] In addition, in order to let the user know the snoring control status during each sleep, the snoring control method provided in the embodiment of the present invention introduces the concept of judging whether the snoring control is successful and recording the snoring control success information. Figure 7 After step 12, if there is no snoring, steps 13 to 17 are performed. Step 13 is performed after it is determined that there is no snoring.
[0124] Step 13, obtaining the snoring time of the last snoring, and calculating the non-snoring time according to the snoring time and the current time.
[0125] Here, the snoring time of the last snoring refers to the last snoring time during the current use of the anti-snoring pillow.
[0126] Step 15, determine whether the non-snoring time is less than a preset success threshold. If yes, return to step 12, if not, go to step 17.
[0127] Step 15, record the successful information of stopping snoring.
[0128] The snoring stopping success information may include the success time (i.e., the capture time of the last snoring detection) and the snoring duration (the time from the first capture time to the last capture time of the snoring detection during sleep).
[0129] Thus, after the current sleep ends, the controller generates a sleep report in combination with the snoring stopping success information. If snoring is not successfully stopped, a sleep report is generated based on the number of snoring sounds detected and the capture time. Furthermore, the controller can push the sleep report to the user's terminal device for the user to view and learn about the snoring stopping situation.
[0130] In addition, in order to reduce energy consumption, the anti-snoring method provided in the embodiment of the present invention can also realize the function of controlling the power-on or working state of each component. Figure 7 , step 11 may be further included before step 12.
[0131] Step 11, obtaining the human body detection data currently collected by the human body detector, and when the human body detection data indicates that the anti-snoring pillow is used, controlling the sound sensor to enter a working state.
[0132] When the human body detector is a pressure sensor, the human body detection data is a pressure value. If the pressure value is greater than a preset pressure threshold for a period longer than a preset period, it means that the user has fallen asleep. At this time, the sound sensor can be controlled to enter a working state. Similarly, the same method can be used to control the electrical components of the anti-snoring pillow, such as the pressure detector.
[0133] Through the above step 11, after it is determined that the user of the anti-snoring pillow falls asleep, the sound sensor and other electrical components are controlled to work, thereby reducing unnecessary power consumption and computing resource consumption.
[0134] Based on the same concept as the above-mentioned snoring stopping method, refer to Figure 8 The embodiment of the present invention further provides an anti-snoring device 30, which can be deployed in the form of a virtual device (i.e., a software program) Figure 1 The controller 130 in the anti-snoring system 10 shown includes a snoring detection module 310 , a feature acquisition module 320 , a first adjustment module 330 and a second adjustment module 340 .
[0135] The snoring detection module 310 is used to determine whether snoring exists based on the sound data currently collected by each sound sensor.
[0136] The feature acquisition module 320 is used to acquire the snoring position and snoring features according to each sound data.
[0137] The first adjustment module 330 is used to select at least one airbag as an airbag to be adjusted according to the snoring characteristics when the snoring position matches the position of the anti-snoring pillow, and determine the adjustment amount of each airbag to be adjusted.
[0138] The second adjustment module 340 is used to control the pneumatic structure to inflate or deflate each airbag to be adjusted according to the adjustment amount.
[0139] A recording module may also be included, for obtaining the snoring time of the last snoring if there is no snoring, calculating the non-snoring time according to the snoring time and the current time, and recording the snoring stop success information when the non-snoring time is greater than or equal to the preset success threshold. When the non-snoring time is less than the preset success threshold, the snoring detection module 310 continues to work.
[0140] The above-mentioned anti-snoring device 30, through the synergistic effect of the snoring detection module 310, the feature acquisition module 320, the first adjustment module 330 and the second adjustment module 340, determines that the current sound is snoring, and determines that the snoring position matches the position of the anti-snoring pillow, that is, the snoring is emitted by the person using the anti-snoring pillow, and then adjusts at least one air bag of the anti-snoring pillow to adjust the height of the anti-snoring pillow, and then adjusts the sleeping posture of the person using the anti-snoring pillow to relieve snoring as quickly and effectively as possible. In this way, the height of the anti-snoring pillow used by the snoring person can be accurately adjusted, and the height of the anti-snoring pillow can be adjusted more accurately, avoiding over-adjustment, and greatly reducing the risk of misoperation.
[0141] For the specific implementation and effect of the anti-snoring device 30, please refer to the description of the implementation of the anti-snoring method above, such as, for the specific implementation and effect of the snoring detection module 310, please refer to the description of the relevant content of step 12 above, for the specific implementation and effect of the feature acquisition module 320, please refer to the description of the relevant content of step 14 above, for the specific implementation and effect of the first adjustment module 330, please refer to the description of the relevant content of step 16 above, for the specific implementation and effect of the second adjustment module 340, please refer to the description of the relevant content of step 18 above, and will not be repeated here.
[0142] In addition, each module in the above-mentioned anti-snoring device 30 can be implemented in whole or in part by software, hardware, or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor 220 in the electronic device 20 in the form of hardware, or can be stored in the memory 210 of the electronic device 20 in the form of software, so that the processor 220 can call and execute the operations corresponding to the above-mentioned modules to implement the anti-snoring method provided above.
[0143] Based on the same inventive concept, the embodiment of the present invention further provides an anti-snoring pillow 120, referring to Figure 1 , including a sound sensor 160, a pillow body, a controller 130, an airbag 150 and a pneumatic structure 140 arranged in the pillow body, and the sound sensor 160 is arranged on both sides of the pillow body.
[0144] There may be two or more sound sensors 160 , and the sound sensors 160 may be disposed outside the anti-snoring pillow 120 or inside the anti-snoring pillow 120 .
[0145] The sound sensor 160 is connected to the controller 130 by communication bus, blue night, WiFi, etc., and the output end of the controller 130 is connected to the control end of the pneumatic structure 140. In addition, the pneumatic structure 140 is connected to the airbag 150.
[0146] The controller 130 is used to implement the anti-snoring method provided above.
[0147] Here, regarding the structure of the anti-snoring pillow 120 , reference may be made to the above description of the anti-snoring pillow 120 of the anti-snoring system 10 , which will not be described in detail here.
[0148] Based on the same inventive concept as the above-mentioned anti-snoring method, an embodiment of the present invention also provides an electronic device 20, including a processor 220 and a memory 210, the memory 210 stores a computer program that can be executed by the processor 220, and the processor 220 can execute the computer program to implement the anti-snoring method proposed in the embodiment of the present invention.
[0149] The embodiment of the present invention further provides a storage medium on which a computer program is stored. When the computer program is executed by the processor 220, the anti-snoring method proposed in the embodiment of the present invention is implemented.
[0150] In addition, the embodiment of the present invention further provides a computer program product, which includes computer instructions, wherein when the computer instructions are executed by the processor 220, the anti-snoring method proposed in the embodiment of the present invention is implemented.
[0151] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0152] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0153] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory 210 (ROM, Read-Only Memory), random access memory 210 (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0154] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for stopping snoring, characterized in that: The method is applied to a controller disposed in an anti-snoring pillow, wherein the anti-snoring pillow further comprises a pneumatic structure and an air bag connected to each other, wherein the controller is respectively in communication with the pneumatic structure and at least two sound sensors, wherein the sound sensors are respectively disposed on both sides of the anti-snoring pillow, and wherein the method comprises: Determine whether there is snoring based on the sound data currently collected by each of the sound sensors; If yes, obtaining the snoring position and snoring features according to each of the sound data; In the case where the snoring position matches the position of the anti-snoring pillow, selecting at least one airbag as an airbag to be adjusted according to the snoring characteristics, and determining the adjustment amount of each of the airbags to be adjusted; For each of the airbags to be adjusted, the pneumatic structure is controlled to inflate or deflate the airbags to be adjusted according to the adjustment amount.
2. The method for stopping snoring according to claim 1, characterized in that: The sound data includes ambient audio; The step of judging whether there is snoring in combination with the sound data currently collected by each of the sound sensors comprises: For each of the environmental audios, extract the MFCC features corresponding to the environmental audios, input the MFCC features into a pre-trained sound recognition model, and obtain a recognition result using the sound recognition model; Determining whether the recognition results of each of the environmental audios indicate the presence of snoring; If yes, it is determined that snoring exists.
3. The method for stopping snoring according to claim 1, characterized in that: The sound data includes the capture time of the ambient audio; The step of obtaining the snoring position and snoring characteristics according to each of the sound data comprises: Calculating the time difference between each capture time, and obtaining the snoring position according to the interval between each sound sensor and the time difference; The sound intensity of each of the environmental audios is extracted, and the snoring intensity is obtained according to each of the sound intensities, and the snoring intensity is used as a snoring feature.
4. The method for stopping snoring according to any one of claims 1 to 3, characterized in that: The anti-snoring pillow is also provided with a human body detector which is in communication with the controller; The step of selecting at least one airbag as the airbag to be adjusted according to the snoring characteristics and determining the adjustment amount of each of the airbags to be adjusted comprises: Obtaining a current force area of the anti-snoring pillow according to the human body detection data currently collected by the human body detector; Retrieving the anti-snoring pillow state corresponding to each successful anti-snoring of the anti-snoring pillow from a preset historical database; wherein the anti-snoring pillow state includes an initial force area, an air pressure value of each airbag, and an initial sound intensity; From the anti-snoring pillow states, select the anti-snoring pillow state in which the initial force area matches the current force area as a reference state; Determining whether there is the reference state in which the initial sound intensity matches the snoring feature; If so, the airbags whose current air pressure values are inconsistent with the air pressure values in the reference state are taken as the airbags to be adjusted, and the adjustment amount of each of the airbags to be adjusted is obtained according to the current air pressure value and the air pressure value in the reference state.
5. The method for stopping snoring according to claim 4, characterized in that: After the step of determining whether there is the reference state in which the initial sound intensity matches the snoring feature, the method further includes: If the reference state in which the initial sound intensity matches the snoring feature does not exist, each of the airbags located in the current force-bearing area is used as an airbag to be adjusted, and a preset adjustment value is used as the adjustment amount of each of the airbags to be adjusted.
6. The method for stopping snoring according to any one of claims 1 to 3, characterized in that: After the step of determining whether there is snoring in combination with the sound data currently collected by each of the sound sensors, the method further includes: If there is no snoring, the snoring time of the last snoring is obtained, and the non-snoring time is calculated according to the snoring time and the current time; If the non-snoring time is greater than or equal to a preset success threshold, then recording the snoring cessation success information; If the non-snoring time is less than a preset success threshold, after receiving the sound data currently collected by each sound sensor, the method returns to the step of determining whether snoring exists by combining the sound data currently collected by each sound sensor.
7. The method for stopping snoring according to any one of claims 1 to 3, characterized in that: The anti-snoring pillow is also provided with a human body detector which is in communication with the controller; Before the step of combining the sound data currently collected by each sound sensor to determine whether there is snoring, the method further includes: The human body detection data currently collected by the human body detector is acquired, and when the human body detection data indicates that the anti-snoring pillow is used, the sound sensor is controlled to enter a working state.
8. An anti-snoring device, characterized in that: The controller is applied to a snoring prevention pillow, wherein the snoring prevention pillow further comprises a pneumatic structure and an air bag in communication, the controller is respectively in communication with the pneumatic structure and at least two sound sensors, the sound sensors are respectively arranged on both sides of the snoring prevention pillow, and the snoring prevention device comprises a snoring detection module, a feature acquisition module, a first adjustment module and a second adjustment module; The snoring detection module is used to determine whether there is snoring in combination with the sound data currently collected by each of the sound sensors; The feature acquisition module is used to acquire the snoring position and snoring features according to each of the sound data; The first adjustment module is used to select at least one airbag as an airbag to be adjusted according to the snoring characteristics when the snoring position matches the position of the anti-snoring pillow, and determine the adjustment amount of each of the airbags to be adjusted; The second adjustment module is used to control the pneumatic structure to inflate or deflate each of the airbags to be adjusted according to the adjustment amount.
9. An anti-snoring pillow, characterized in that: It includes a sound sensor, a pillow body, and a controller, an air bag and a pneumatic structure arranged in the pillow body, wherein the sound sensor is arranged on both sides of the pillow body; The sound sensor is in communication with the controller, the output end of the controller is connected to the control end of the pneumatic structure, and the pneumatic structure is in communication with the airbag; The controller is used to implement the anti-snoring method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement the anti-snoring method according to any one of claims 1 to 7.
Citation Information
Cited By
Anti-Snoring Smart Pillow with Dynamic 3D Airbag System and Integrated Snoring Detection Integrated Snoring Detection
US20260191676A1
