A snoring sound source identification method, identification device and pillow system
By analyzing the pressure and audio signals of the deformable elements inside the pillow, matching snoring and pressure data, and identifying the source of snoring, the problem of inaccurate identification of the source of snoring in multi-person sleep environments is solved, and precise snoring intervention is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHANGZHOU SOLEX SMART HOME CO LTD
- Filing Date
- 2023-06-16
- Publication Date
- 2026-07-31
AI Technical Summary
Current technology cannot accurately identify the source of snoring in multi-person sleep environments, leading to misintervention or ineffective intervention.
By acquiring pressure and audio signals from the deformable elements inside the pillow, analyzing peak snoring data and pressure data, matching the sources of snoring and pressure, and identifying the source of snoring as the pillow user.
It enables accurate identification of the source of snoring, avoids misintervention in non-snorers, and improves the accuracy of snoring intervention.
Smart Images

Figure CN119139070B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of snoring detection technology, and in particular to a snoring source identification method, identification device and pillow system. Background Technology
[0002] Snoring is a common sleep phenomenon in humans, especially after excessive fatigue or after smoking or drinking alcohol. Most people consider snoring a sign of sound and deep sleep. However, for some, snoring can seriously threaten their health and life. Furthermore, snoring can cause significant disruption to others' lives, frequently disturbing their rest and affecting their sleep environment. Sleep monitoring can effectively identify and address snoring.
[0003] Existing technologies generally employ single-detection models for snoring identification. Reference document 1, "A Snoring Monitoring Method and System Based on Deep Learning Algorithm and Corresponding Electric Bed Control Method and System" (Application No. 202110803746.6), discloses using a pre-trained deep learning model for deep feature extraction and classification to categorize each audio segment into audio slices containing snoring and those not containing snoring. Reference document 1 directly uses a neural network to judge MFCC feature data without identifying background noise. Reference document 2, "A Snoring Signal Recognition Method" (Application No. 201910834050.2), discloses using a k-means clustering algorithm to identify snoring and non-snoring sounds.
[0004] Existing methods simply identify snoring by analyzing and processing audio signals that may include snoring. However, when two or more people are sleeping together, the source of the snoring cannot be identified, making it impossible to intervene with anti-snoring devices or causing false interventions. Summary of the Invention
[0005] To address the aforementioned technical problems, this invention provides a snoring source identification method, identification device, and pillow system, which can accurately identify whether the source of snoring is the pillow user, thereby enabling more precise intervention and avoiding scenarios where the sleeping partner snores while the pillow user does not, yet the pillow intervenes.
[0006] The present invention adopts the following technical solution:
[0007] On the one hand, a method for identifying snoring sources, characterized by comprising:
[0008] Acquire pressure signals from the deformable elements inside the pillow;
[0009] Acquire audio signals;
[0010] When the number of snoring sounds contained in the audio signal within a certain window length is greater than the preset number of snoring sounds, the peak value data of the snoring sounds within the window length and the pressure data of the air pressure signal within the window length are obtained; the pressure data includes at least one of peak data and trough data;
[0011] Based on snoring peak data and pressure data, the source of snoring and pressure is matched. If a match is found, the source of the snoring is identified as the pillow user.
[0012] Preferably, the deformable element inside the pillow includes at least one; when the number of deformable elements is greater than one, acquiring the pressure signal of the deformable element inside the pillow specifically includes:
[0013] Obtain the pressure signals of all deformable elements, and select the pressure signal of the deformable element with the highest pressure for analysis.
[0014] Preferably, after acquiring the audio signal, the process further includes:
[0015] Filter the audio signal.
[0016] Preferably, after acquiring the pressure signal from the deformation element inside the pillow, the method further includes:
[0017] The pressure signal is smoothed and filtered.
[0018] Preferably, the snoring peak data includes at least one of the following: the location of the snoring peak point, the number of snoring peak points, and the duration of snoring;
[0019] The trough data includes at least one of the following: pressure trough location, number of pressure troughs, and pressure trough amplitude;
[0020] The peak data includes at least one of the following: pressure peak location, number of pressure peaks, and pressure peak amplitude.
[0021] Preferably, based on snoring peak data and pressure data, source matching of snoring and pressure is performed, specifically including:
[0022] The snoring peak data and pressure data are compared to determine whether the difference between the snoring peak and the pressure trough or pressure peak is within a preset range, or whether the difference between the snoring peak and the pressure trough and pressure peak is within a preset range. If they are, the snoring and pressure are considered to match; otherwise, the snoring and pressure are considered to be mismatched.
[0023] Preferably, the peak snoring data and pressure data are compared to determine whether the difference between the peak snoring point and the pressure trough or pressure peak falls within a preset range, or whether the differences between the peak snoring point and both the pressure trough and pressure peak fall within preset ranges. Specifically, this includes:
[0024] When the number of snoring peaks equals the sum of the number of pressure troughs and the number of pressure peaks, the average difference between the pressure troughs and the snoring peaks is calculated as the first average difference, and the average difference between the pressure peaks and the snoring peaks is calculated as the second average difference.
[0025] The average of the first and second differences is summed and then averaged.
[0026] Determine if the average value is less than the first preset error; if so, determine if the snoring and pressure match.
[0027] Preferably, the peak snoring data and pressure data are compared to determine whether the difference between the peak snoring point and the pressure trough or pressure peak falls within a preset range, or whether the differences between the peak snoring point and both the pressure trough and pressure peak fall within preset ranges. Specifically, this includes:
[0028] When the number of snoring peaks is equal to the number of pressure troughs, the average of the sum of the differences between the pressure troughs and the snoring peaks is calculated, and the average of the differences between the pressure peaks and the snoring peaks is calculated as the third average difference.
[0029] Determine whether the average value is less than the second preset error and whether the average value of the third difference is greater than the second preset error. If so, determine that the snoring and pressure are matched.
[0030] Preferably, the peak snoring data and pressure data are compared to determine whether the difference between the peak snoring point and the pressure trough and / or pressure peak falls within a preset error range, specifically including:
[0031] When the number of snoring peaks is equal to the number of pressure peaks, the average of the sum of the differences between the pressure peaks and the snoring peaks is calculated, and the average of the differences between the pressure troughs and the snoring peaks is calculated as the fourth average difference.
[0032] Determine whether the average value is less than the third preset error and whether the average value of the fourth difference is greater than the third preset error. If so, determine that the snoring and pressure match.
[0033] On the other hand, a snoring source identification device includes:
[0034] The pressure signal acquisition module is used to acquire the pressure signal of the deformation element inside the pillow;
[0035] Audio signal acquisition module, used to acquire audio signals;
[0036] The signal selection module is used to acquire peak snoring data within a certain window length and pressure data within the same window length when the number of snoring sounds contained in the audio signal within a certain window length is greater than a preset number of snoring sounds; the pressure data includes at least one of peak data and trough data.
[0037] The snoring source identification module is used to match the source of snoring and pressure based on snoring peak data and pressure data. If a match is found, the source of the snoring is identified as the pillow user.
[0038] In another aspect, a pillow system includes a pillow, a deformable element disposed within the pillow, a pressure signal acquisition device, and a snoring sound acquisition device; it also includes: the aforementioned snoring source identification device; the snoring sound acquisition device is disposed inside, outside, or around the pillow; the pressure signal acquisition device is connected to the deformable element; the pressure signal acquisition module is connected to the pressure signal acquisition device for acquiring pressure signals from the deformable element within the pillow; and the audio signal acquisition module is connected to the snoring sound acquisition device for acquiring audio signals.
[0039] Preferably, the pillow system further includes an air pump box and a control device; the air pump box is used to inflate / deflate the deformable element; the control device is used by the snoring source identification device to control the air pump box to inflate / deflate the deformable element when it identifies the snoring source as the pillow user.
[0040] The present invention has the following beneficial effects:
[0041] (1) The snoring source identification method of the present invention collects pressure values and snoring audio during the user's sleep state, thereby obtaining pressure signals and audio signals. The pressure value is the internal pressure value of the deformable element caused by snoring; the audio signal corresponds to the decibel value of snoring at a given time; when the pressure value trough / peak and the peak value of snoring meet certain conditions, it is determined that the person on the pillow is snoring; thus, more precise intervention can be carried out to avoid the scenario where the sleeping partner snores but the pillow user does not snore, yet the pillow intervenes.
[0042] (2) The present invention compares and analyzes the number of snoring peaks with the number of pressure troughs, the number of pressure peaks, and the sum of the number of pressure troughs and pressure peaks. When the set error range is met in any scenario, the snoring and pressure source are considered to be the same, and it is determined that the person on the pillow is snoring. The possibility of various scenarios is taken into account, making the identification accurate and reliable.
[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Attached Figure Description
[0044] Figure 1 This is a flowchart of the snoring source identification method according to an embodiment of the present invention;
[0045] Figure 2 This is a schematic diagram of the filter pressure signal and the filtered pressure signal according to an embodiment of the present invention;
[0046] Figure 3 This is a schematic diagram showing the alignment of peaks and troughs when matching snoring and pressure in an embodiment of the present invention.
[0047] Figure 4 This is a schematic diagram of trough alignment when matching snoring and pressure in an embodiment of the present invention;
[0048] Figure 5 This is a schematic diagram of peak alignment when matching snoring and pressure in an embodiment of the present invention;
[0049] Figure 6 This is a schematic diagram illustrating the mismatch between snoring and pressure according to an embodiment of the present invention;
[0050] Figure 7 This is a schematic diagram of the audio signal and pressure signal when there is no snoring, according to an embodiment of the present invention;
[0051] Figure 8 This is a schematic diagram of audio and pressure signals when no one is using the pillow, according to an embodiment of the present invention.
[0052] Figure 9 This is a structural block diagram of the snoring source identification device according to an embodiment of the present invention;
[0053] Figure 10 This is an exploded view of the pillow system according to an embodiment of the present invention;
[0054] Figure 11 This is a schematic diagram of the pillow system according to an embodiment of the present invention. Detailed Implementation
[0055] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0056] In the description of this invention, it should be noted that the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0057] In the description of this invention, it should be noted that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0058] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the step identifiers S101, S102, S103, etc. are used only for convenience of description and do not indicate the execution order. The corresponding execution order can be adjusted.
[0059] See Figure 1 As shown in the figure, this embodiment of a snoring source identification method includes:
[0060] S101, Obtain the pressure signal of the deformation element inside the pillow;
[0061] S102, acquire audio signal;
[0062] S103, when the number of snoring sounds contained in the audio signal within a certain window length is greater than the preset number of snoring sounds, acquire the peak value data of the snoring sounds within the window length, and acquire the pressure data of the air pressure signal within the window length; the pressure data includes at least one of peak data and trough data;
[0063] S104, based on snoring peak data and pressure data, matches the source of snoring and pressure. If a match is found, the source of the snoring is identified as the pillow user.
[0064] Specifically, steps S101 to S104 of the snoring source identification method can be implemented using a pillow system and / or a smart terminal device, as long as these devices have the function of acquiring sound (such as a microphone) and / or the function of a processor (such as a microcontroller). Specifically, in one embodiment, one terminal can be responsible for acquisition (such as the pillow system acquiring pressure signals and audio signals), and another terminal can be responsible for processing (such as a mobile phone terminal analyzing the acquired signals). In this scenario, the pillow system and the smart terminal can communicate through a network. In another embodiment, both acquisition and analysis are performed by a single terminal. This embodiment does not impose any restrictions on the specific type of terminal device. Furthermore, the smart terminal device can be a mobile phone, tablet computer, wearable device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), etc. This embodiment does not impose any restrictions on the specific type of terminal device.
[0065] In this embodiment, the pressure signal is acquired by a pressure sensor, which specifically collects the change in internal pressure value of the deformable element caused by the user's vibration (such as snoring); the audio monitor collects the audio signal caused by snoring, specifically the decibel value of snoring at the corresponding time. After acquiring the pressure signal and audio signal, the pressure sensor and audio monitor report them.
[0066] Specifically, the deformable element can be an airbag, air bag, or water bag, etc. Airbags and air bags can measure air pressure signals, or in other words, measure the gas pressure inside the airbag or air bag. Water bags can measure water pressure signals, or in other words, measure the water pressure inside the water bag. In addition, the pressure signal can also include gravity signals, etc.
[0067] Furthermore, the deformable elements are disposed inside the pillow and may include one or more, each with a pressure sensor for pressure acquisition. When multiple deformable elements are included, the pressure signal and audio signal of the deformable element with the highest pressure value are selected for analysis.
[0068] In this embodiment, after acquiring the pressure signal, it is necessary to perform smoothing filtering on the pressure signal. Specifically, SG filtering is applied to the acquired pressure signal. SG filtering, short for Savitzky-Golay filtering, is used for data smoothing; the processing effect is shown in [reference needed]. Figure 2 As shown.
[0069] Furthermore, in order to prevent other audio signals besides snoring from appearing, the acquired audio signal can be filtered to remove other audio signals. Any existing method can be used, and this embodiment does not impose any restrictions.
[0070] In this embodiment, a specified window length interval can be selected to analyze the pressure signal and audio signal. When the number of snoring sounds contained in the audio signal within the monitoring window reaches the expected number of snoring sounds, snorenums (which varies with the monitoring window length), the peak snoring data within the monitoring window and the pressure data within that window length are calculated.
[0071] Specifically, the snoring peak data includes at least one of the following: the location of the snoring peak point (t1, t2, t3...tn2), the number of snoring peak points S, and the snoring (average) duration T; it may also include the period Tv and the loudness Av.
[0072] The pressure data (peak data and trough data) includes at least one of the following: pressure trough location (valley1, valley2, valley3...valleyn1), number of pressure troughs n1, pressure trough amplitude AP1, pressure peak location (peak1, peak2, peak3...peakn2), number of pressure peaks n2, pressure peak amplitude AP2, pressure period TP, etc.
[0073] The number of snoring peaks S, the number of pressure troughs n1, and the number of pressure peaks n2 were compared.
[0074] See Figure 3 As shown, when the number of snoring peaks S is equal to the sum of the number of pressure troughs n1 and the number of pressure peaks n2, the average difference between the pressure troughs and the snoring peaks is calculated as the first average difference Diff1, and the average difference between the pressure peaks and the snoring peaks is calculated as the second average difference Diff2.
[0075] The sum of the average of the first difference and the average of the second difference is then averaged as Diff.
[0076] Determine if the average value is less than the first preset error; if so, determine if the snoring and pressure match.
[0077] Specifically, here, the average value Diff = (Diff1 + Diff2) / 2;
[0078] Diff1 = the average difference between the trough of the corresponding pressure signal and the peak of the snoring sound;
[0079] Diff2 = the average difference between the peak of the corresponding pressure signal and the peak of the snoring sound;
[0080] First preset error = error + T / 2.
[0081] When Diff < error + T / 2, it is determined that both the snoring sound and the pressure peak and trough match, and the source of the snoring sound is identified as the pillow user. When moving Diff to align it respectively in the direction closer to the pressure peak or trough, the aligned signal schematic diagram as shown in Figure 3 can be obtained.
[0082] The error here is the error range defined according to requirements and actual situations, and this embodiment does not limit it.
[0083] As shown in Figure 4 when the number S of snoring peak points is equal to the number n1 of pressure troughs, calculate the average value Diff1 of the accumulated differences between the pressure troughs and the snoring peak points, and calculate the average value of the differences between the pressure peaks and the snoring peak points as the third average difference Diff2;
[0084] Judge whether the average value Diff1 is less than the second preset error, and whether the third average difference Diff2 is greater than the second preset error. If so, it is determined that the snoring sound and the pressure match.
[0085] Specifically, here, let
[0086] diff1 = |corresponding pressure signal trough value - snoring peak value|
[0087] Diff1 = the average value of the accumulated differences between the corresponding pressure signal troughs and the snoring peak points, that is
[0088]
[0089] Diff2 = the average value of the differences between the corresponding pressure signal peaks and the snoring peak points;
[0090] When Diff1 < error + T / 2 < Diff2, it is determined that the snoring sound and the pressure trough match;
[0091] Move Diff1 in the direction closer to the pressure trough and align it.
[0092] When Diff1 < error + T / 2 < Diff2, it is determined that the snoring sound and the pressure trough match, and the source of the snoring sound is identified as the pillow user. When moving Diff1 to align it in the direction closer to the pressure trough, the aligned signal schematic diagram as shown in Figure 4 can be obtained.
[0093] The error here is the error range defined according to requirements and actual situations, and this embodiment does not limit it.
[0094] As shown in Figure 5As shown, the snoring peak data and the pressure data are compared to determine whether the difference between the snoring peak point and the pressure trough and / or pressure peak belongs to a preset error range, specifically including:
[0095] When the number S of snoring peak points is equal to the number n2 of pressure peaks, calculate the average value Diff2 of the accumulated differences between the pressure peaks and the snoring peak points, and calculate the average value of the differences between the pressure troughs and the snoring peak points as the fourth average difference Diff1;
[0096] Judge whether the average value Diff2 is less than the third preset error, and whether the fourth average difference Diff1 is greater than the third preset error. If so, it is judged that the snoring and the pressure match.
[0097] Specifically, here, let
[0098] diff2 = |corresponding pressure signal wave peak value - snoring peak value|
[0099] Diff2 = the average value of the accumulated differences between the corresponding pressure signal trough and the snoring peak point, that is
[0100]
[0101] Diff1 = the average value of the differences between the corresponding pressure signal peak and the snoring peak point;
[0102] When Diff2 < error + T / 2 < Diff1, it is judged that the snoring and the pressure wave peak match;
[0103] Move Ddiff2 in the direction closer to the pressure peak and align.
[0104] When Diff2 < error + T / 2 < Diff1, it is judged that the snoring and the pressure wave peak match, and the source of the snoring is identified as the pillow user. After moving Diff2 in the direction closer to the pressure peak and aligning, the aligned signal schematic diagram as shown in Figure 5 can be obtained.
[0105] The error here is the error range defined according to needs and actual situations, and this embodiment does not make restrictions.
[0106] See Figure 6 shown, which is a situation that does not conform to Figures 3-5 any of the scenarios, that is, the snoring and the pressure do not match.
[0107] See Figure 7 shown, which is a schematic diagram of the audio signal and the pressure signal when the pillow user does not snore, that is, there is no snoring. At this time, there are no obvious snoring peak points in the audio signal, but there are certain peaks and troughs in the pressure signal.
[0108] See Figure 8 The diagram shows the audio and pressure signals when no one is using the pillow. At this time, there is no obvious peak in the audio signal and no obvious peaks or troughs in the pressure signal.
[0109] See Figure 9 As shown, this embodiment also discloses a snoring source identification device, including:
[0110] The pressure signal acquisition module 1001 is used to acquire the pressure signal of the deformation element inside the pillow.
[0111] Audio signal acquisition module 1002 is used to acquire audio signals;
[0112] The signal selection module 1003 is used to acquire peak snoring data within a certain window length and pressure data within the same window length when the number of snoring sounds contained in the audio signal within a certain window length is greater than a preset number of snoring sounds; the pressure data includes at least one of peak data and trough data.
[0113] The snoring source identification module 1004 is used to match the source of snoring and pressure based on snoring peak data and pressure data. If a match is found, the source of the snoring is identified as the pillow user.
[0114] Other specific implementations of a snoring source identification device and the same snoring source identification method will not be described again in this embodiment.
[0115] Specifically, according to embodiments of this disclosure, the process described above can be implemented as a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform any of the above-described snoring source identification methods.
[0116] In exemplary embodiments of this disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. A program product capable of implementing the methods described above is stored thereon. In some possible implementations, various aspects of this disclosure may also be implemented as a program product including program code, which, when run on a terminal device, causes the terminal device to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of this disclosure.
[0117] Further, see Figure 10 and Figure 11As shown, this embodiment also includes a pillow system, comprising a pillow 110, a deformable element 111 disposed within the pillow 110, a pressure signal acquisition device 112, and a snoring sound acquisition device 113; further comprising: the aforementioned snoring source identification device (not shown in the figure); the snoring sound acquisition device 113 may be disposed inside, outside, or around the pillow 110; the pressure signal acquisition device 112 is connected to the deformable element 111; the pressure signal acquisition module is connected to the pressure signal acquisition device 112 for acquiring the pressure signal of the deformable element 111 within the pillow 110; and the audio signal acquisition module is connected to the snoring sound acquisition device 113 for acquiring audio signals.
[0118] In this embodiment, the snoring sound acquisition device 113 is disposed inside the pillow 110. In other embodiments, the snoring sound acquisition device 113 may be disposed on the outer shell of the pillow 110 or around the pillow 110. Correspondingly, the snoring source identification device may also be disposed inside, outside, or around the pillow 110. In this case, it can be electrically connected to the pressure signal acquisition device 112 and the snoring sound acquisition device 113. In addition, the snoring source identification device may also be disposed on a smart terminal device, such as a mobile phone or computer, and connected to the pressure signal acquisition device 112 and the snoring sound acquisition device 113 via a network. The specific arrangement can be adjusted according to the actual application, and this embodiment does not impose specific limitations.
[0119] Furthermore, the pillow system also includes an air pump box 114 and a control device 115; the air pump box 114 is used to inflate / deflate the deformable element 111; the control device 115 is used by the snoring source identification device to control the air pump box 114 to inflate / deflate the deformable element 111 when it identifies the snoring source as the user of the pillow 110. The air pump box 114 and the pillow 110 are connected by an air tube 116.
[0120] The control device 115 uses certain principles to control the air pump box 114 to inflate / de-inflate the deformable element 111, which can be understood as intervening in the snoring of the user of the snoring pillow 110. The specific implementation of the snoring intervention by controlling the deformable element 111 can be carried out in any way of the prior art, and this embodiment does not impose any restrictions.
[0121] The above description is merely a preferred embodiment of the present invention; however, the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and its improved concepts, should be covered within the scope of protection of the present invention.
Claims
1. A snoring sound source identification method, characterized by, include: Acquire pressure signals from the deformable elements inside the pillow; Acquire audio signals; When the number of snoring sounds contained in the audio signal within a certain window length is greater than the preset number of snoring sounds, the peak snoring data within that window length and the pressure data within that window length are obtained; the pressure data includes at least one of peak data and trough data; the peak snoring data includes the location and number of peak snoring sounds, the peak data includes the location and number of pressure peaks, and the trough data includes the location and number of pressure troughs; Based on snoring peak data and pressure data, the source of snoring and pressure is matched. If a match is found, the source of the snoring is identified as the pillow user, specifically including: The snoring peak data and pressure data are compared. When the number of snoring peaks equals the sum of the number of pressure troughs and the number of pressure peaks, the average time difference between the pressure troughs and the snoring peaks is calculated as the first average difference, and the average time difference between the pressure peaks and the snoring peaks is calculated as the second average difference. The first average difference and the second average difference are summed and averaged. It is then determined whether this average is less than a first preset error. If it is, the snoring and pressure are considered to be matched. or, The snoring peak data and pressure data are compared. When the number of snoring peaks is equal to the number of pressure troughs, the average value of the time difference between the pressure troughs and the snoring peaks is calculated, and the average value of the time difference between the pressure peaks and the snoring peaks is calculated as the third average difference. It is then determined whether the average value is less than the second preset error and whether the third average difference is greater than the second preset error. If so, it is determined that the snoring and pressure are matched. or, The snoring peak data and pressure data are compared. When the number of snoring peaks is equal to the number of pressure peaks, the average value of the time difference between the pressure peaks and snoring peaks is calculated, and the average value of the time difference between the pressure troughs and snoring peaks is calculated as the fourth average difference. It is then determined whether the average value is less than the third preset error and whether the fourth average difference is greater than the third preset error. If so, it is determined that the snoring and pressure are matched.
2. The snoring sound source identification method of claim 1, wherein The pillow contains at least one deformable element; when the number of deformable elements is greater than one, acquiring the pressure signal of the deformable element within the pillow specifically includes: Obtain the pressure signals of all deformable elements, and select the pressure signal of the deformable element with the highest pressure for analysis.
3. The snoring sound source identification method of claim 1, wherein After acquiring the audio signal, the following is also included: Filter the audio signal.
4. The snoring sound source identification method of claim 1, wherein, After acquiring the pressure signal from the deformable element inside the pillow, the process also includes: The pressure signal is smoothed and filtered.
5. The snoring source identification method according to claim 1, characterized in that, The peak snoring data also includes: snoring duration; The trough data also includes: pressure trough amplitude; The peak data also includes: pressure peak amplitude.
6. A snoring source identification device, characterized in that, include: The pressure signal acquisition module is used to acquire the pressure signal of the deformation element inside the pillow; Audio signal acquisition module, used to acquire audio signals; The signal selection module is used to acquire snoring peak data and pressure data within a certain window length when the number of snoring sounds contained in the audio signal within a certain window length is greater than a preset number of snoring sounds; the pressure data includes at least one of peak data and trough data; the snoring peak data includes the location and number of snoring peak points, the peak data includes the location and number of pressure peaks, and the trough data includes the location and number of pressure troughs; The snoring source identification module is used by users to match the source of snoring and pressure based on snoring peak data and pressure data. If a match is found, the source of the snoring is identified as the pillow user. The snoring source identification module is specifically used for: The snoring peak data and pressure data are compared. When the number of snoring peaks equals the sum of the number of pressure troughs and the number of pressure peaks, the average time difference between the pressure troughs and the snoring peaks is calculated as the first average difference, and the average time difference between the pressure peaks and the snoring peaks is calculated as the second average difference. The first average difference and the second average difference are summed and averaged. It is then determined whether this average is less than a first preset error. If it is, the snoring and pressure are considered to be matched. or, The snoring peak data and pressure data are compared. When the number of snoring peaks is equal to the number of pressure troughs, the average value of the time difference between the pressure troughs and the snoring peaks is calculated, and the average value of the time difference between the pressure peaks and the snoring peaks is calculated as the third average difference. It is then determined whether the average value is less than the second preset error and whether the third average difference is greater than the second preset error. If so, it is determined that the snoring and pressure are matched. or, The snoring peak data and pressure data are compared. When the number of snoring peaks is equal to the number of pressure peaks, the average value of the time difference between the pressure peaks and snoring peaks is calculated, and the average value of the time difference between the pressure troughs and snoring peaks is calculated as the fourth average difference. It is then determined whether the average value is less than the third preset error and whether the fourth average difference is greater than the third preset error. If so, it is determined that the snoring and pressure are matched.
7. A pillow system, comprising a pillow, a deformable element disposed within the pillow, a pressure signal acquisition device, and a snoring sound acquisition device; characterized in that, It also includes: the snoring source identification device as described in claim 6; the snoring acquisition device is disposed inside or outside the pillow; the pressure signal acquisition device is connected to the deformable element; the pressure signal acquisition module is connected to the pressure signal acquisition device for acquiring the pressure signal of the deformable element inside the pillow; and the audio signal acquisition module is connected to the snoring acquisition device for acquiring audio signals.
8. The pillow system of claim 7, wherein, It also includes an air pump box and a control device; the air pump box is used to inflate / de-inflate the deformable element; the control device is used by the snoring source identification device to control the air pump box to inflate / de-inflate the deformable element when it identifies the snoring source as the pillow user.