Snore recognition method, system and device and storage medium
Obtaining cardiac shock signals through piezoelectric ceramic sensors and analyzing vibration signals within a specific frequency range solves the problems of privacy security and environmental noise interference in existing snoring identification methods, and improves the accuracy and safety of snoring identification.
Patent Information
- Application Number
- CN202410784528.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-24
AI Technical Summary
Existing snoring recognition methods rely on sleep audio collection, which has privacy and security risks, and the recognition accuracy is poor under the interference of environmental noise.
Obtain the cardiac shock signal of the target person through the piezoelectric ceramic sensor, extract the vibration signal in the frequency range of 20-45Hz and 2-6Hz, calculate the zero-crossing rate and energy value of the signal frame, determine whether there is snoring behavior, and avoid affecting the sleep audio collection and environmental noise interference.
It improves the accuracy of snoring recognition, protects users' privacy and security, avoids interference from environmental sounds, and enhances the reliability of recognition.
Smart Images

Figure CN118680550A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of signal processing technology, and in particular to a snoring recognition method, system, device and storage medium. Background Art
[0002] Snoring is the sound produced by airway obstruction during sleep, with a decibel level of about 50-80dB. Snoring may lead to poor sleep quality and even sleep apnea, which can affect cardiovascular health in severe cases. Therefore, snoring needs to be detected and prevented.
[0003] Most existing snoring recognition methods are based on the sound of snoring for detection and judgment. On the one hand, such methods need to collect the audio of the person being detected while sleeping, which brings certain privacy and security risks to users. On the other hand, they rely on a quiet sleeping environment. When there is ambient sound with a frequency similar to that of snoring, it is easy to cause false detection, affecting the accuracy of snoring recognition. The above problems need to be solved urgently. Summary of the invention
[0004] The purpose of the present invention is to solve one of the technical problems existing in the prior art to at least a certain extent.
[0005] Therefore, an object of an embodiment of the present invention is to provide a snoring recognition method, which improves the accuracy of snoring recognition and protects the privacy and security of users.
[0006] Another object of the embodiments of the present invention is to provide a snoring recognition system.
[0007] In order to achieve the above technical objectives, the technical solutions adopted by the embodiments of the present invention include:
[0008] In a first aspect, an embodiment of the present invention provides a snoring recognition method, comprising the following steps:
[0009] Acquire the target person's cardiac shock signal;
[0010] Extracting a first vibration signal within a first frequency range and a second vibration signal within a second frequency range according to the heartbeat signal;
[0011] Determine a first zero-crossing rate and a first energy value of a signal frame of the first vibration signal, and determine a second energy value of a signal frame of the second vibration signal;
[0012] Whether the target person is snoring is determined according to the first zero-crossing rate, the first energy value, and the second energy value.
[0013] Furthermore, in one embodiment of the present invention, the step of obtaining the cardiac signal of the target person includes:
[0014] Acquiring the cardiac impulse signal through a piezoelectric ceramic sensor;
[0015] Wherein, the piezoelectric ceramic sensor is arranged inside the mattress and is located between the pre-calibrated human shoulder position and human waist position.
[0016] Further, in one embodiment of the present invention, the first frequency range is 20 to 45 Hz, the second frequency range is 2 to 6 Hz, and the extracting of the first vibration signal within the first frequency range and the second vibration signal within the second frequency range according to the heart ballistometry signal includes:
[0017] The heartbeat signal is filtered by a preset second-order Butterworth bandpass filter to extract a signal component within 20 to 45 Hz as the first vibration signal;
[0018] The heart ballistic signal is filtered by a preset third-order Butterworth bandpass filter to extract a signal component within 2 to 6 Hz as the second vibration signal.
[0019] Further, in one embodiment of the present invention, determining a first zero-crossing rate and a first energy value of a signal frame of the first vibration signal, and determining a second energy value of a signal frame of the second vibration signal, comprises:
[0020] Performing window interception on the first vibration signal to obtain a plurality of first sampling points, and calculating the first zero-crossing rate and the first energy value of each signal frame of the first vibration signal according to the first sampling points;
[0021] The second vibration signal is windowed to obtain a plurality of second sampling points, and the second energy value of each signal frame of the second vibration signal is calculated according to the second sampling points.
[0022] Further, in one embodiment of the present invention, determining whether the target person has snoring behavior according to the first zero-crossing rate, the first energy value, and the second energy value includes:
[0023] When the first zero-crossing rate is greater than a preset first threshold, determining that a current signal frame of the first vibration signal is a first signal frame, and determining a moment corresponding to the first signal frame as a first moment;
[0024] Determine whether the first vibration signal has a second signal frame at a second moment, so that the first zero-crossing rate corresponding to a signal frame preceding the second signal frame is greater than the first threshold, the first zero-crossing rate corresponding to the second signal frame is less than the first threshold, the signal duration from the first moment to the second moment is greater than a preset second threshold and less than a preset third threshold, the average value of the first zero-crossing rate within the signal duration is greater than or equal to the first threshold, the average value of the first energy value within the signal duration is greater than a preset fourth threshold, the maximum value of the first energy value within the signal duration is less than a preset fifth threshold, and the maximum value of the second energy value within the signal duration is less than a preset sixth threshold;
[0025] If the second signal frame at the second moment exists, it is determined that the target person has snoring behavior during the signal duration; if the second signal frame at the second moment does not exist, it is determined that the target person does not have snoring behavior.
[0026] Further, in one embodiment of the present invention, the first threshold is 18, the second threshold is 6s, the third threshold is 12s, the fourth threshold is 0.02J, the fifth threshold is 50J, and the sixth threshold is 100J.
[0027] Further, in one embodiment of the present invention, the determining whether the target person has snoring behavior according to the first zero-crossing rate, the first energy value, and the second energy value further includes:
[0028] When the first zero-crossing rates are all less than or equal to the first threshold, it is determined that the target person does not have snoring behavior.
[0029] In a second aspect, an embodiment of the present invention provides a snoring recognition system, including:
[0030] A signal acquisition module, used to acquire the cardiac shock signal of the target person;
[0031] A signal extraction module, configured to extract a first vibration signal within a first frequency range and a second vibration signal within a second frequency range according to the heart ballistometry signal;
[0032] a signal processing module, configured to determine a first zero-crossing rate and a first energy value of a signal frame of the first vibration signal, and determine a second energy value of a signal frame of the second vibration signal;
[0033] An identification module is used to determine whether the target person has snoring behavior according to the first zero-crossing rate, the first energy value, and the second energy value.
[0034] In a third aspect, an embodiment of the present invention provides a snoring recognition device, comprising:
[0035] at least one processor;
[0036] at least one memory for storing at least one program;
[0037] When the at least one program is executed by the at least one processor, the at least one processor implements the above-mentioned snoring recognition method.
[0038] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, in which a program executable by a processor is stored. When the program executable by the processor is executed by the processor, it is used to perform the above-mentioned snoring recognition method.
[0039] The advantages and beneficial effects of the present invention will be partly given in the following description, partly become apparent from the following description, or be understood through the practice of the present invention:
[0040] The embodiment of the present invention obtains the cardiac percussion signal of the target person, extracts a first vibration signal within a first frequency range and a second vibration signal within a second frequency range based on the cardiac percussion signal, determines the first zero-crossing rate and the first energy value of the signal frame of the first vibration signal, and determines the second energy value of the signal frame of the second vibration signal, and determines whether the target person is snoring based on the first zero-crossing rate, the first energy value, and the second energy value. The embodiment of the present invention extracts the first vibration signal reflecting the snoring characteristics and the second vibration signal reflecting the body movement waveform through the cardiac percussion signal, and determines whether the target person is snoring based on the first zero-crossing rate and the first energy value of the signal frame of the first vibration signal and the second energy value of the signal frame of the second vibration signal. On the one hand, there is no need to collect the sleep audio of the user, thereby protecting the privacy and security of the user. On the other hand, it avoids the interference of ambient sound on snoring recognition, thereby improving the accuracy of snoring recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solution in the embodiments of the present invention, the following introduction is made to the drawings required for use in the embodiments of the present invention. It should be understood that the drawings introduced below are only for the convenience of clearly describing some embodiments of the technical solution of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 A flowchart of a snoring recognition method provided by an embodiment of the present invention;
[0043] Figure 2 A schematic diagram of a waveform of a second-order Butterworth bandpass filter provided by an embodiment of the present invention;
[0044] Figure 3 A schematic diagram of the waveform of a third-order Butterworth bandpass filter provided by an embodiment of the present invention;
[0045] Figure 4 A structural block diagram of a snoring recognition system provided by an embodiment of the present invention;
[0046] Figure 5 This is a structural block diagram of a snoring recognition device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and are not to be construed as limitations of the present invention. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0048] In the description of the present invention, the meaning of "a plurality" is two or more. If there is a description of "a first" or "a second", it is only used to distinguish the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features. In addition, unless otherwise defined, all technical and scientific terms used in this article have the same meaning as those generally understood by technicians in this technical field. In the embodiment of the present invention, the cloth to be cut can be a textile cloth.
[0049] Reference Figure 1 The embodiment of the present invention provides a snoring recognition method, which specifically includes the following steps:
[0050] S101. Acquire a cardiac arrest signal of a target person.
[0051] As an optional implementation, obtaining the cardiac signal of the target person includes:
[0052] S1011, obtaining a heartbeat signal through a piezoelectric ceramic sensor;
[0053] The piezoelectric ceramic sensor is arranged inside the mattress and is located between the pre-calibrated human shoulder position and the human waist position.
[0054] Specifically, in the embodiment of the present invention, a piezoelectric ceramic sensor is arranged in the mattress to collect the ballistocardial signal of the target person.
[0055] In some optional embodiments, the signal sampling frequency of the piezoelectric ceramic sensor is set to 100 Hz.
[0056] In some optional embodiments, the human shoulder position corresponding to the target person's shoulder and the human waist position corresponding to his waist when he is sleeping are pre-calibrated on the mattress, and then the piezoelectric ceramic sensor is set between the human shoulder position and the human waist position; in addition, the piezoelectric ceramic sensors are symmetrically set on the left and right sides of the mattress.
[0057] S102: Extract a first vibration signal within a first frequency range and a second vibration signal within a second frequency range according to the heart ballistometry signal.
[0058] As an optional implementation, the first frequency range is 20 to 45 Hz, the second frequency range is 2 to 6 Hz, and the first vibration signal within the first frequency range and the second vibration signal within the second frequency range are extracted according to the heart ballistometry signal, including:
[0059] S1021, filtering the heart ballistogalactometry signal by using a preset second-order Butterworth bandpass filter, and extracting a signal component within 20 to 45 Hz as a first vibration signal;
[0060] S1022: Filter the heartbeat signal using a preset third-order Butterworth bandpass filter to extract a signal component within 2 to 6 Hz as a second vibration signal.
[0061] Specifically, the embodiment of the present invention extracts a waveform of 20 to 45 Hz as the first vibration signal through a second-order Butterworth bandpass filter, and extracts a waveform of 2 to 6 Hz as the second vibration signal through a third-order Butterworth bandpass filter. The first vibration signal is used to reflect the snoring characteristics, and the second vibration signal is used to reflect the body movement waveform.
[0062] Design a second-order bandpass filter with a filtering frequency of 20 to 45 Hz. First, normalize the filtering frequency to obtain the filter frequency region parameter of [0.4, 0.9]. Set the sampling rate to 100 Hz and the order to 2. Figure 2 The waveform diagram of the second-order Butterworth bandpass filter provided by the embodiment of the present invention is shown. It can be seen that after the signal passes through the filter, the frequency components of 20 to 45 Hz in the signal pass through, while other frequency components are greatly attenuated.
[0063] Design a third-order bandpass filter with a filter frequency of 2 to 6 Hz. First, normalize the filter frequency to obtain the filter frequency region parameter of [0.04, 0.12]. Set the sampling rate to 100 Hz and the order to 3. Figure 3The waveform diagram of the third-order Butterworth bandpass filter provided by the embodiment of the present invention is shown. It can be seen that after the signal passes through the filter, the components with frequencies of 2 to 6 Hz in the signal pass through, while other frequency components are greatly attenuated.
[0064] S103: Determine a first zero-crossing rate and a first energy value of a signal frame of the first vibration signal, and determine a second energy value of a signal frame of the second vibration signal.
[0065] Further as an optional implementation manner, determining a first zero-crossing rate and a first energy value of a signal frame of the first vibration signal, and determining a second energy value of a signal frame of the second vibration signal includes:
[0066] S1031, performing window interception on the first vibration signal to obtain a plurality of first sampling points, and calculating a first zero-crossing rate and a first energy value of each signal frame of the first vibration signal according to the first sampling points;
[0067] S1032: Perform window interception on the second vibration signal to obtain a plurality of second sampling points, and calculate a second energy value of each signal frame of the second vibration signal according to the second sampling points.
[0068] Specifically, for the first vibration signal of 20 to 45 Hz and the second vibration signal of 2 to 6 Hz, a 0.64 s window capture analysis is used, with 64 sampling points in one window, to calculate the first zero-crossing rate and the first energy value of each signal frame of the first vibration signal, and to calculate the second energy value of each signal frame of the second vibration signal.
[0069] The energy value is calculated as follows:
[0070] E = ∫x 2 (t)dt
[0071] Where E represents the energy value, x(t) represents the amplitude of the signal at time t, and the integration time is 0.64s.
[0072] The formula for calculating the zero-crossing rate is as follows:
[0073] ZCR=(1 / N)*sum(|sign(x[i])-sign(x[i-1])|)
[0074]
[0075] Wherein, ZCR represents the zero-crossing rate, x[i] represents the sampling value of the signal in the i-th time interval, sign represents the sign, and N=64 represents the number of sampling points in a 0.64s window.
[0076] S104. Determine whether the target person is snoring according to the first zero-crossing rate, the first energy value, and the second energy value.
[0077] As an optional implementation, determining whether the target person has snoring behavior according to the first zero-crossing rate, the first energy value, and the second energy value includes:
[0078] S1041, when the first zero-crossing rate is greater than a preset first threshold, determining that the current signal frame of the first vibration signal is a first signal frame, and determining the moment corresponding to the first signal frame as a first moment;
[0079] S1042, determining whether the first vibration signal has a second signal frame at the second moment, so that the first zero-crossing rate corresponding to the previous signal frame of the second signal frame is greater than the first threshold, the first zero-crossing rate corresponding to the second signal frame is less than the first threshold, the signal duration from the first moment to the second moment is greater than the preset second threshold and less than the preset third threshold, the average value of the first zero-crossing rate within the signal duration is greater than or equal to the first threshold, the average value of the first energy value within the signal duration is greater than the preset fourth threshold, the maximum value of the first energy value within the signal duration is less than the preset fifth threshold, and the maximum value of the second energy value within the signal duration is less than the preset sixth threshold;
[0080] S1043. If there is a second signal frame at the second moment, determine that the target person has snoring behavior during the signal duration; if there is no second signal frame at the second moment, determine that the target person does not have snoring behavior.
[0081] As a further optional implementation, the first threshold is 18, the second threshold is 6s, the third threshold is 12s, the fourth threshold is 0.02J, the fifth threshold is 50J, and the sixth threshold is 100J.
[0082] As an optional implementation, determining whether the target person has snoring behavior according to the first zero-crossing rate, the first energy value, and the second energy value further includes:
[0083] S1044: When the first zero-crossing rates are all less than or equal to the first threshold, it is determined that the target person does not snore.
[0084] Specifically, when the first zero-crossing rate of the current signal frame of the first vibration signal at a certain moment is greater than a preset first threshold (18), the current signal frame of the first vibration signal is taken as the first signal frame, and the current moment is taken as the first moment, that is, the start time of snoring recognition. For the moment after the first moment and the signal frame after the first signal frame, it is determined whether there is a second signal frame at a second moment, and the following conditions are met:
[0085] 1) A first zero-crossing rate of a frame preceding the second signal frame is greater than a first threshold (18);
[0086] 2) A first zero-crossing rate of the second signal frame is less than a first threshold (18);
[0087] 3) The signal duration from the first signal frame to the second signal frame (i.e., from the first moment to the second moment) is greater than the second threshold (6s) and less than the third threshold (12s);
[0088] 4) The average value of the first zero-crossing rates of all signal frames between the first signal frame and the second signal frame (i.e., within the signal duration) is greater than a first threshold value (18);
[0089] 5) The average value of the first energy values of all signal frames between the first signal frame and the second signal frame (i.e., within the signal duration) is greater than the fourth threshold value (0.02 J), and the maximum value is less than the fifth threshold value (50 J);
[0090] 6) The maximum value of the second energy values of all signal frames between the first moment and the second moment (ie within the signal duration) is less than the sixth threshold (100 J).
[0091] If there is a second signal frame at a second moment that meets the above conditions, it means that the snoring characteristics in the heart beat signal of the target person between the first moment and the second moment are obvious, and no obvious body movement occurs, thereby eliminating the influence of body movement caused by the target person's body movement, turning over and other behaviors on the recognition of snoring behavior, and it can be determined that the target person has snoring behavior during this period.
[0092] The above is an explanation of the method steps of the embodiment of the present invention. It can be understood that the embodiment of the present invention extracts the first vibration signal reflecting the snoring characteristics and the second vibration signal reflecting the body motion waveform through the heart impact signal, and combines the first zero-crossing rate and the first energy value of the signal frame of the first vibration signal and the second energy value of the signal frame of the second vibration signal to determine whether the target person has snoring behavior. On the one hand, there is no need to collect the user's sleep audio, which protects the user's privacy and security. On the other hand, it avoids the interference of environmental sound on snoring recognition and improves the accuracy of snoring recognition.
[0093] Reference Figure 4 , an embodiment of the present invention provides a snoring recognition system, comprising:
[0094] A signal acquisition module, used to acquire the cardiac shock signal of the target person;
[0095] A signal extraction module, configured to extract a first vibration signal within a first frequency range and a second vibration signal within a second frequency range according to the heart ballistometry signal;
[0096] A signal processing module, used to determine a first zero-crossing rate and a first energy value of a signal frame of the first vibration signal, and to determine a second energy value of a signal frame of the second vibration signal;
[0097] The recognition module is used to determine whether the target person has snoring behavior according to the first zero-crossing rate, the first energy value and the second energy value.
[0098] The contents of the above method embodiments are all applicable to the present system embodiments. The functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0099] Reference Figure 5 , an embodiment of the present invention provides a snoring recognition device, comprising:
[0100] at least one processor;
[0101] at least one memory for storing at least one program;
[0102] When the at least one program is executed by the at least one processor, the at least one processor implements the snoring recognition method.
[0103] The contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0104] An embodiment of the present invention further provides a computer-readable storage medium, in which a program executable by a processor is stored. When the program executable by the processor is executed by the processor, it is used to perform the above-mentioned snoring recognition method.
[0105] A computer-readable storage medium according to an embodiment of the present invention can execute a snoring recognition method provided by an embodiment of the present invention, can execute any combination of implementation steps of the embodiment of the method, and has the corresponding functions and beneficial effects of the method.
[0106] The embodiment of the present invention also discloses a computer program product or a computer program, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes Figure 1 The method shown.
[0107] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the above-mentioned boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.
[0108] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified to the contrary, one or more of the above-mentioned functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.
[0109] If the above functions are implemented in the form of software functional units 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 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 above methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0110] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0111] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the above-mentioned program is printed, since the above-mentioned program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or processing in other suitable ways as necessary, and then stored in a computer memory.
[0112] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0113] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0114] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
[0115] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A snoring recognition method, characterized in that: The following steps are involved: Acquire the target person's cardiac shock signal; Extracting a first vibration signal within a first frequency range and a second vibration signal within a second frequency range according to the heartbeat signal; Determine a first zero-crossing rate and a first energy value of a signal frame of the first vibration signal, and determine a second energy value of a signal frame of the second vibration signal; Whether the target person is snoring is determined according to the first zero-crossing rate, the first energy value, and the second energy value.
2. A snoring recognition method according to claim 1, characterized in that: The step of obtaining the cardiac signal of the target person includes: Acquiring the cardiac impulse signal through a piezoelectric ceramic sensor; Wherein, the piezoelectric ceramic sensor is arranged inside the mattress and is located between the pre-calibrated human shoulder position and human waist position.
3. A snoring recognition method according to claim 1, characterized in that: The first frequency range is 20 to 45 Hz, the second frequency range is 2 to 6 Hz, and the first vibration signal within the first frequency range and the second vibration signal within the second frequency range are extracted according to the heart ballistic signal, including: The heart ballistogalactometry signal is filtered by a preset second-order Butterworth bandpass filter to extract a signal component within 20 to 45 Hz as the first vibration signal; The heart ballistic signal is filtered by a preset third-order Butterworth bandpass filter to extract a signal component within 2 to 6 Hz as the second vibration signal.
4. A snoring recognition method according to claim 1, characterized in that: The determining of a first zero-crossing rate and a first energy value of a signal frame of the first vibration signal, and determining a second energy value of a signal frame of the second vibration signal, comprises: Performing window interception on the first vibration signal to obtain a plurality of first sampling points, and calculating the first zero-crossing rate and the first energy value of each signal frame of the first vibration signal according to the first sampling points; The second vibration signal is windowed to obtain a plurality of second sampling points, and the second energy value of each signal frame of the second vibration signal is calculated according to the second sampling points.
5. A snoring recognition method according to claim 1, characterized in that: The determining whether the target person has snoring behavior according to the first zero-crossing rate, the first energy value, and the second energy value includes: When the first zero-crossing rate is greater than a preset first threshold, determining that a current signal frame of the first vibration signal is a first signal frame, and determining a moment corresponding to the first signal frame as a first moment; Determine whether the first vibration signal has a second signal frame at a second moment, so that the first zero-crossing rate corresponding to a signal frame preceding the second signal frame is greater than the first threshold, the first zero-crossing rate corresponding to the second signal frame is less than the first threshold, the signal duration from the first moment to the second moment is greater than a preset second threshold and less than a preset third threshold, the average value of the first zero-crossing rate within the signal duration is greater than or equal to the first threshold, the average value of the first energy value within the signal duration is greater than a preset fourth threshold, the maximum value of the first energy value within the signal duration is less than a preset fifth threshold, and the maximum value of the second energy value within the signal duration is less than a preset sixth threshold; If the second signal frame at the second moment exists, it is determined that the target person has snoring behavior during the signal duration; if the second signal frame at the second moment does not exist, it is determined that the target person does not have snoring behavior.
6. A snoring recognition method according to claim 5, characterized in that: The first threshold is 18, the second threshold is 6s, the third threshold is 12s, the fourth threshold is 0.02J, the fifth threshold is 50J, and the sixth threshold is 100J.
7. A snoring recognition method according to claim 5 or 6, characterized in that: The determining whether the target person has snoring behavior according to the first zero-crossing rate, the first energy value, and the second energy value also includes: When the first zero-crossing rates are all less than or equal to the first threshold, it is determined that the target person does not have snoring behavior.
8. A snoring recognition system, characterized in that: include: A signal acquisition module, used to acquire the cardiac shock signal of the target person; A signal extraction module, configured to extract a first vibration signal within a first frequency range and a second vibration signal within a second frequency range according to the heart ballistometry signal; a signal processing module, configured to determine a first zero-crossing rate and a first energy value of a signal frame of the first vibration signal, and determine a second energy value of a signal frame of the second vibration signal; An identification module is used to determine whether the target person has snoring behavior according to the first zero-crossing rate, the first energy value, and the second energy value.
9. A snoring recognition device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements a snoring recognition method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The program executable by the processor is used to perform a snoring recognition method according to any one of claims 1 to 7 when executed by the processor.
Citation Information
Cited By
Intelligent mattress, snoring detection method and device thereof and computer storage medium
CN121622011A
