Sleep aid device and control method thereof
By using the shared audio signals in the sleep aid device to generate relevant audio, vibration and magnetic sleep aid signals, the problem of limited effects of a single sleep aid method is solved, and better sleep aid effect and adaptability are achieved.
Patent Information
- Application Number
- CN202211706106.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2042-12-29
AI Technical Summary
Among the existing sleep aid devices, a single sleep aid method has limited effects and is difficult to achieve better sleep aid effects. There is no correlation between different sleep aid signals, which may lead to worse sleep aid effects.
A control method for sleep aiding equipment and sleep aiding equipment is proposed. The shared audio signal is used to generate audio sleep aiding signal, vibration sleep aiding signal and magnetic sleep aiding signal. By extracting the characteristic parameters of the audio signal, a relevant sleep aiding signal is generated to improve the sleep aiding effect.
Generate a relevant sleep aid signal through the shared audio signal, which avoids the defect of superposition of simple functions, improves the sleep aid effect, and enhances the adaptability to different users.
Smart Images

Figure CN115944828B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of massage devices, and in particular to sleep aid devices and control methods for sleep aid devices. Background Art
[0002] With the continuous acceleration of the modern life rhythm, the pressure on people from all aspects such as life, work, and study is constantly increasing. The increasingly fierce industry competition and the time-consuming lifestyle are constantly impacting and threatening people's physical and mental health. More and more people have sleep disorders and need to rely on various sleep aid means to assist sleep. Insomnia is a common manifestation of sleep disorders. Insomnia may cause harm such as memory loss, premature aging, and decreased body immunity. Severe insomnia for a long time may also cause mental disorders, hypertension, etc. Therefore, the damage of insomnia to human health is getting greater and greater.
[0003] In the related art, sleep aid methods include playing sleep aid music or using a body-sensing massage device for sleep aid. However, for some users, a single sleep aid method has limited effects and it is difficult to achieve a good sleep aid effect. Summary of the Invention
[0004] This application aims to solve at least one of the technical problems existing in the prior art. To this end, embodiments of this application propose a sleep aid device and a control method for the sleep aid device, providing related sleep aid methods to improve the sleep aid effect.
[0005] To achieve the above object, a first aspect of embodiments of this application proposes a sleep aid device, including:
[0006] A signal source for generating an audio signal;
[0007] An audio sleep aid sub-device connected to the signal source for generating an audio sleep aid signal according to the audio signal;
[0008] A processing unit connected to the signal source for extracting characteristic parameters of the audio signal;
[0009] A magnetic sleep aid sub-device connected to the processing unit for generating a magnetic sleep aid signal according to the characteristic parameters.
[0010] In one embodiment, the audio sleep aid sub-device includes: an audio amplification unit and an audio playback unit;
[0011] The audio amplification unit is connected to the signal source for power-amplifying the audio signal to obtain the audio sleep aid signal;
[0012] The audio playback unit is connected to the audio amplification unit for playing the audio sleep aid signal.
[0013] In one embodiment, the processing unit is configured to extract the energy feature of the audio signal and extract the feature parameter according to the energy feature.
[0014] In one embodiment, the energy feature includes one or more of: short-time energy feature, short-time average amplitude feature, short-time zero-crossing rate feature, Mel frequency cepstral coefficient feature, endpoint detection feature, envelope feature, short-time power spectrum feature.
[0015] In one embodiment, the feature parameter includes: an audio amplitude parameter and an audio duration parameter. The sleep aid device further includes: a vibration sleep aid sub-device, and the vibration sleep aid sub-device is connected to the processing unit and is configured to generate a vibration sleep aid signal according to the feature parameter;
[0016] The vibration sleep aid sub-device includes: an oscillator driving unit and a vibration oscillator;
[0017] The oscillator driving unit is connected to the processing unit and is configured to generate an oscillator driving signal according to the audio amplitude parameter and the audio duration parameter;
[0018] The vibration oscillator is connected to the oscillator driving unit and is configured to generate vibration according to the oscillator driving signal to form the vibration sleep aid signal.
[0019] In one embodiment, the feature parameter includes: an audio duration parameter. The magnetic sleep aid sub-device includes: a magnetic driving circuit and a magnetic induction coil;
[0020] The magnetic driving circuit is connected to the processing unit and is configured to generate a coil driving signal according to the audio duration parameter;
[0021] The magnetic induction coil is connected to the magnetic driving circuit and is configured to rotate according to the coil driving signal to generate an alternating magnetic field to form the magnetic sleep aid signal.
[0022] In one embodiment, the magnetic driving circuit includes: a DC driving unit and an H-bridge driving unit. The H-bridge driving circuit includes a motor, and the motor is connected to the magnetic induction coil;
[0023] The DC driving unit is connected to the processing unit and is configured to generate a DC driving signal according to the audio duration parameter;
[0024] The H-bridge driving unit is connected to the DC driving unit and is configured to drive the motor to rotate according to the DC driving signal to generate the coil driving signal.
[0025] In one embodiment, the DC driving unit includes: a DC regulated power supply;
[0026] The DC regulated power supply is connected to the processing unit and is configured to generate the DC drive signal according to the audio duration parameter based on a preset reference voltage.
[0027] In one embodiment, the DC drive signal is a square wave signal.
[0028] In one embodiment, the processing unit is configured to generate the characteristic parameter of the audio signal according to a preset frequency band.
[0029] To achieve the above object, a second aspect of the embodiments of the present application provides a control method, which is applied to the sleep aid device according to any one of the first aspect. The method includes:
[0030] Obtain the working mode information of the user and the selected audio signal, where the working mode information includes one or more of: audio sleep aid mode, vibration sleep aid mode, and magnetic sleep aid mode;
[0031] If the working mode information is the audio sleep aid mode, generate the audio sleep aid signal according to the audio signal;
[0032] If the working mode information is the vibration sleep aid mode, generate the vibration sleep aid signal according to the characteristic parameter of the audio signal;
[0033] If the working mode information is the magnetic sleep aid mode, generate the magnetic sleep aid signal according to the characteristic parameter of the audio signal.
[0034] In one embodiment, after obtaining the working mode information of the user, the method further includes:
[0035] Extract the energy feature of the audio signal;
[0036] Extract the characteristic parameter of the audio signal according to the energy feature.
[0037] In one embodiment, the energy feature includes one or more of: short-time energy feature, short-time average amplitude feature, short-time zero-crossing rate feature, Mel frequency cepstral coefficient feature, endpoint detection feature, envelope feature, short-time power spectrum feature.
[0038] The embodiments of the present application have at least the following beneficial effects:
[0039] The sleep aid device and the control method thereof provided by the embodiments of the present application. The sleep aid device includes a signal source for generating an audio signal, an audio sleep aid sub-device, a processing unit, and a magnetic sleep aid sub-device. The audio sleep aid sub-device generates an audio sleep aid signal according to the audio signal and extracts the characteristic parameters of the audio signal. The magnetic sleep aid sub-device generates a magnetic sleep aid signal according to the characteristic parameters. The embodiments of the present application generate an audio sleep aid signal and a magnetic sleep aid signal by using a shared audio signal. The different sleep aid signals are not simply a functional superposition, but are correlated, which is convenient for improving the sleep aid effect. Description of the Drawings
[0040] Figure 1 It is a schematic diagram of the sleep aid device provided by the embodiments of the present application.
[0041] Figure 2 is Figure 1 The schematic diagram of the audio sleep aid sub-device in
[0042] Figure 3 is Figure 1 The schematic diagram of the vibration sleep aid sub-device in
[0043] Figure 4 It is a schematic diagram of the oscillator drive signal provided by the embodiments of the present application.
[0044] Figure 5 is Figure 1 The schematic diagram of the magnetic sleep aid sub-device in
[0045] Figure 6 is Figure 5 The schematic diagram of the magnetic drive circuit in
[0046] Figure 7 It is a schematic diagram of the H-bridge drive circuit provided by the embodiments of the present application.
[0047] Figure 8 It is a schematic diagram of the DC drive signal provided by the embodiments of the present application.
[0048] Figure 9 It is a schematic diagram of the sleep aid device provided by another embodiment of the present application.
[0049] Figure 10 It is a flowchart of the control method provided by the embodiments of the present application.
[0050] Figure 11 It is a flowchart of the control method provided by another embodiment of the present application.
[0051] Figure 12 It is a schematic diagram of the structure of the control device provided by an embodiment of the present application.
[0052] Figure 13 It is a schematic diagram of the hardware structure of the electronic device provided by an embodiment of the present application.
[0053] Reference numerals: sleep aid device 10, signal source 100, audio sleep aid sub-device 200, processing unit 300, vibration sleep aid sub-device 400, magnetic sleep aid sub-device 500, audio amplification unit 210, audio playback unit 220, oscillator drive unit 410, vibration oscillator 420, magnetic drive circuit 510, magnetic induction coil 520, DC drive unit 511, H-bridge drive unit 512, motor 513. Detailed implementation manners
[0054] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0055] It should be noted that although functional module division is performed in the device schematic diagram and the logical sequence is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order from the module division in the device or the sequence in the flowchart.
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0057] In order to better understand the technical solutions provided by this application, the terms appearing herein will be correspondingly described as follows:
[0058] H-bridge: An electronic circuit whose shape resembles the letter H and consists of 4 triodes forming the 4 vertical legs of the H. It can reverse the voltage across the load or output terminals connected to it / reverse the current direction, and is commonly used in inverters (DC-AC conversion, i.e., converting direct current to alternating current). By opening and closing the switches, it can invert direct current into alternating current of a certain frequency or variable frequency to drive an AC motor.
[0059] Duty cycle: It refers to the proportion of the energized time relative to the total time within a pulse cycle. Its basic meaning is the ratio of the time occupied by the pulse to the total time during a continuous working period, or in a periodic phenomenon, the ratio of the time during which a certain phenomenon occurs to the total time.
[0060] With the continuous acceleration of the modern life rhythm, the pressure on people from all aspects such as life, work, and study is constantly increasing. The increasingly fierce industry competition and the time-sensitive lifestyle continuously impact and threaten people's physical and mental health. More and more people have sleep disorders and need to rely on various sleep aids to assist in sleeping. Insomnia is a common manifestation of sleep disorders. Insomnia may cause harm such as memory loss, premature aging, and decreased body immunity. Severe insomnia for a long time may also cause mental disorders, hypertension, etc. Therefore, the damage of insomnia to human health is getting greater and greater.
[0061] Considering that different groups of people have different requirements for the sleep environment: some people need soothing sounds to relax their mood and assist in sleeping, some people need to soothe their muscles through physical sensation massage to assist in sleeping, and some people are more sensitive to sounds or other external stimuli and need a non-sensory way to assist in sleeping. Therefore, in related technologies, there are ways to assist in sleeping by playing sleep-aid music or using a physical sensation massager to assist in sleeping. For some users, a single sleep-aid method has limited effects and it is difficult to achieve the sleep-aid effect. Currently, some solutions simply stack different sleep-aid methods. For example, sleep-aid products that combine sound and physical sensation vibration, but the sleep-aid signals in the simple stacking method have no correlation and will cause certain interference, resulting in a worse sleep-aid effect.
[0062] Based on this, the embodiments of the present application provide a sleep-aid device and a control method for the sleep-aid device. The sleep-aid device includes a signal source for generating an audio signal, an audio sleep-aid sub-device, a processing unit, and a magnetic sleep-aid sub-device. The audio sleep-aid sub-device generates an audio sleep-aid signal according to the audio signal, and the magnetic sleep-aid sub-device generates a magnetic sleep-aid signal according to the characteristic parameters. The embodiments of the present application use a shared audio signal to generate an audio sleep-aid signal and a magnetic sleep-aid signal. The different sleep-aid signals are not simply a functional stack, but are correlated, which is convenient for improving the sleep-aid effect.
[0063] The embodiments of the present application provide a sleep-aid device and a control method for the sleep-aid device, which are specifically described through the following embodiments. First, the control method in the embodiments of the present application is described.
[0064] First, the sleep-aid device in the embodiments of the present application is described below.
[0065] Referring to Figure 1 , the sleep-aid device 10 in the embodiments of the present application includes:
[0066] A signal source 100, wherein the signal source 100 is used to generate an audio signal.
[0067] In some embodiments, the audio signal includes regular sound wave signals such as voice signals, music signals, or sound effect signals. The audio signal can be original audio data (e.g., audiobooks, radio dramas, etc.), or can be extracted from video data. In one embodiment, the user can select the corresponding audio signal, and the signal source 100 generates the selected audio signal.
[0068] In some embodiments, the audio signal contains energy features, which are used to characterize the energy information contained in the audio signal. For example, the energy features include one or more of the following: short-time energy feature, short-time average amplitude feature, short-time zero-crossing rate feature, endpoint detection feature, Mel frequency cepstral coefficient feature, envelope feature, and short-time power spectrum feature.
[0069] In the above embodiments, the short-time energy feature is the energy of a frame of audio signal, which is the sum of the squares of the signals within the frame. For example, if the audio signal is x(t), after frame division and windowing, n frames of short-time energy features En can be obtained, expressed as:
[0070]
[0071] where w(n) represents the window function, the window length is N, and the window function can be a rectangular window, a Hamming window, etc.
[0072] In the above embodiments, the short-time average amplitude feature has the same function as the short-time energy feature, and is used to measure the change in the amplitude of the audio signal, and thus reflect the change in the energy of the audio signal. For example, if the audio signal is x(t), after frame division and windowing, n frames of short-time average amplitude features Mn can be obtained, expressed as:
[0073]
[0074] where w(n) represents the window function, the window length is N, and the window function can be a rectangular window, a Hamming window, etc.
[0075] In the above embodiments, the short-time zero-crossing rate feature is the number of times the waveform of a frame of audio signal crosses the zero value. For a continuous audio signal, the short-time zero-crossing rate feature means the number of times the time-domain waveform of the audio signal passes through the time axis. For a discrete audio signal, the short-time zero-crossing rate feature means the number of times the signs of adjacent sampling points change. For example, if the audio signal is x(t), after frame division and windowing, n frames of short-time zero-crossing rate features Zn can be obtained, expressed as:
[0076] Zn = sgn[x(n)] - sgn[x(n - 1)] * w(n)
[0077] where sgn() represents the sign function. When x is greater than or equal to 0, the value of the sign function sgn(x) is 1. When x is less than 0, the value of the sign function sgn(x) is -1.
[0078] In the above embodiments, the endpoint detection feature is used to characterize the endpoint information in the audio signal. The endpoint detection process is described as follows: First, the audio signal x(t) is framed to obtain n frames of speech, and the short-time energy of each frame of speech is calculated. When obtaining the endpoint detection feature, if the short-time energy of several consecutive frames in the front part of the audio signal is lower than a pre-specified energy value threshold, and the short-time energy of the next several consecutive frames is greater than this energy value threshold, then the place where the speech energy value increases in the audio signal is the front endpoint of the speech. Similarly, if the short-time energy of several consecutive frames of speech is relatively large, and the short-time energy of the subsequent several frames becomes smaller and lasts for a certain duration, it can be considered that the place where the short-time energy decreases is the back endpoint of the speech. In this embodiment, at least one endpoint information in the audio signal is obtained in combination with the endpoint detection process, and the endpoint detection feature is obtained according to the endpoint information.
[0079] In the above embodiments, the envelope feature refers to the envelope information of the audio signal. The envelope points corresponding to each frame of speech can be obtained according to the short-time energy feature of each frame of the audio signal, and all the envelope points are connected to form an envelope line representing the envelope relationship, thus constituting the envelope feature.
[0080] In some embodiments, the short-time power spectrum feature is used to characterize the frequency domain feature of the audio signal. Since the audio signal can be regarded as a short-time stationary signal, the speech after framing is subjected to Fourier transform to obtain the short-time Fourier transform, and the spectrum of each frame of speech in the audio signal is obtained based on the short-time Fourier transform, thus obtaining the short-time power spectrum feature.
[0081] In some embodiments, the audio signal can be represented as a spectrogram. Since the spectrogram is often very large, in order to obtain sound features of a suitable size, the spectrogram is transformed into a Mel spectrum through the Mel scale. The Mel scale (mel-scale), also known as the Mel scale, is a scale based on the perceptual judgment of pitch by listeners that are equally spaced from each other. Since humans are better at detecting low-frequency differences than high-frequency differences. For example, humans can easily distinguish the difference between 500Hz and 1000Hz, but even if the distance between them is the same, it is very difficult to distinguish the difference between 10000Hz and 10500Hz. Therefore, the concept of the Mel scale is proposed. The reference point definition between the Mel scale and the normal frequency is: The pitch of 1000 mel is specified as the tone of 1000Hz, which is more than 40 db above the listener's threshold; above 500Hz, the listener judges larger and larger intervals to generate equally spaced pitch increments. The Mel spectrum is the spectrogram obtained by converting the frequency to the Mel scale. In this embodiment, the calculation process of the Mel-frequency cepstral coefficient feature is as follows: The short-time power spectrum of the current frame of speech passes through a Mel filter, the short-time power spectrum is converted into a logarithmic Mel energy spectrum on the Mel scale, and then decorrelation is performed to obtain the Mel-frequency cepstral coefficient feature.
[0082] As can be seen from the above, in the embodiments of the present application, a variety of energy features can be extracted from the audio signal, and then the energy features are parameterized to obtain corresponding feature parameters.
[0083] In some embodiments, referring to Figure 1 , the sleep aid device 10 further includes an audio sleep aid sub-device 200. The audio sleep aid sub-device 200 is connected to the signal source 100 and is configured to receive the audio signal generated by the signal source 100 and generate an audio sleep aid signal according to the audio signal.
[0084] In some embodiments, referring to Figure 2 , the audio sleep aid sub-device 200 includes: an audio amplification unit 210 and an audio playback unit 220. The audio amplification unit 210 is connected to the signal source 100, and the audio playback unit 220 is connected to the audio amplification unit 210.
[0085] In some embodiments, since the audio signal may be a music file, and the audio signal is an analog signal, which is a low-voltage signal, such as a voltage of 3V - 5V. Therefore, in order to improve the sleep aid effect, the audio amplification unit 210 is used to perform power amplification on the audio signal generated by the signal source 100. In some embodiments, the audio amplification unit 210 is an operational amplifier, which can perform power amplification on the audio signal according to a predetermined amplification factor to obtain an amplified audio sleep aid signal. The predetermined amplification factor here can be obtained according to the user's set parameters, or the comfortable amplification factors of different characteristic populations can be obtained through statistical analysis. The population characteristics can be age, gender, etc. It can be understood that the preset amplification factor can also be an adaptively adjusted value, that is, the preset amplification factor at different times during playback can be adjusted and changed. This embodiment does not make specific limitations on the predetermined amplification factor.
[0086] The audio playback unit 220 plays the received audio sleep aid signal to provide the function of audio sleep aid for the user. Among them, the audio playback unit 220 can be an earphone, a speaker, or a horn, etc. The audio sleep aid signal aids sleep in the form of sound, and the audio file can be selected according to the user's preference to generate the audio sleep aid signal, such as music or cross talk. In addition, this embodiment can also control the playback time of the audio sleep aid signal according to the preset playback duration. The preset playback duration here can be set by the user or the preset playback durations of different characteristic populations can be obtained through statistical analysis. The population characteristics can be age, gender, etc. When the preset playback duration arrives and it is estimated that the user is in a sleeping state, the audio playback unit 220 stops playing the audio sleep aid signal.
[0087] In some embodiments, referring to Figure 1, the sleep aid device 10 further includes a processing unit 300, which is connected to the signal source 100 and is used to extract the characteristic parameters of the audio signal generated by the signal source 100.
[0088] Referring to the above embodiments, the energy characteristics include one or more of short-time energy characteristics, short-time average amplitude characteristics, short-time zero-crossing rate characteristics, Mel frequency cepstral coefficient characteristics, endpoint detection characteristics, envelope characteristics, and short-time power spectrum characteristics. Correspondingly, the characteristic parameters include one or more of short-time energy characteristic parameters, short-time average amplitude characteristic parameters, short-time zero-crossing rate characteristic parameters, Mel frequency cepstral coefficient characteristic parameters, endpoint detection characteristic parameters, envelope characteristic parameters, and short-time power spectrum characteristic parameters. The embodiments of the present application do not limit the types of energy characteristics, and can be selected according to actual needs.
[0089] For example, when the energy characteristic is the short-time energy characteristic, the characteristic parameter extracted by the processing unit 300 is the short-time energy characteristic parameter, and the short-time energy characteristic parameter includes: audio amplitude parameter and audio duration parameter. The audio duration parameter can be obtained from the duration of the audio file. Dividing the duration according to the preset frame length can obtain multiple frames. The audio amplitude parameter can be obtained according to the short-time energy characteristic. The short-time energy characteristic parameter can be in the form of an array, and the size of the array is the number of frames of the audio file, that is, the audio duration parameter, and the element value is the short-time energy value of the current frame, that is, the audio amplitude parameter. Other characteristic parameters are similar. The processing unit 300 extracts the energy characteristic information of the audio file and parameterizes it to obtain the characteristic parameter, which is convenient for generating the associated magnetic sleep aid signal and vibration sleep aid signal according to the characteristic parameter later. It can be understood that the processing unit 300 can be a processor with logical operation functions, such as an MCU chip with programmable logic. The present embodiment does not specifically limit the form of the processing unit 300.
[0090] In some embodiments, referring to Figure 1 , in order to further improve the sleep aid effect, the sleep aid device 10 may further include a vibration sleep aid sub-device 400, which is connected to the processing unit 300 and is used to generate a vibration sleep aid signal according to the characteristic parameters extracted by the processing unit 300.
[0091] Referring to Figure 3 , the vibration sleep aid sub-device 400 includes: an oscillator driving unit 410 and a vibration oscillator 420. Among them, the oscillator driving unit 410 is connected to the processing unit 300, and the vibration oscillator 420 is connected to the oscillator driving unit 410.
[0092] In some embodiments, the oscillator driving unit 410 generates an oscillator driving signal according to the audio amplitude parameter and the audio duration parameter in the characteristic parameters, and the oscillator driving signal is used to drive the vibration oscillator 420 to vibrate.
[0093] Reference Figure 4 As shown in Figure 4 , the oscillator driving signal includes a signal amplitude and a signal duration. The dotted line in the figure shows the envelope of the audio signal. The duration of the audio signal is T, the time range is from t1 to tn+Δt, the frame duration is Δt, and it is framed to obtain n speech frames. The feature parameters extracted after framing are expressed as: [[s1,(t1,t1+Δt)],[s2,(t2,t2+Δt)],…,[sn,(tn,tn+Δt)]], where [si,(ti,ti+Δt)] represents that the audio amplitude of the i-th speech frame is si, and the duration of this speech frame is: (ti,ti+Δt). Figure 4 Taking 20 speech frames as an example for illustration, the oscillator driving unit 410 is used to generate Figure 4 the oscillator driving signal shown in Figure 4 according to the duration and audio amplitude of each speech frame.
[0094] In some embodiments, the vibrating oscillator 420 is connected to the oscillator driving unit 410 and is used to generate vibrations according to the oscillator driving signal to form a vibration-assisted sleep signal. The vibrating oscillator 420 can generate vibrations according to the duration and audio amplitude of each speech frame in the oscillator driving signal within different time intervals (different speech frames). The intensity of the vibration is related to the audio amplitude, and the duration of the vibration at this vibration intensity is the duration of the speech frame. The vibrating oscillator 420 generates a vibration-assisted sleep signal according to the oscillator driving signal. It can be understood that the vibration-assisted sleep signal refers to the vibration state of the vibrating oscillator 420, such as the vibration intensity and duration.
[0095] In some embodiments, the oscillator driving unit 410 also amplifies the oscillator driving signal. Specifically, since a relatively large voltage is required to drive the vibrating oscillator 420, for example, the oscillator driving signal is amplified to 12V-24V to facilitate the vibrating oscillator 420 to generate a vibration-assisted sleep signal.
[0096] In an implementation scenario, for some users, compared with the sound-assisted sleep of the audio-assisted sleep method, the tactile-assisted sleep generated by the vibration-assisted sleep has a more obvious effect on them. For example, the vibrating oscillator 420 can be a massage oscillator, which generates a regular vibration-assisted sleep signal at the vibration intensity corresponding to this speech frame through massage during the vibration duration to achieve the massage-assisted sleep effect. For example, performing temple massage, scalp massage or neck and shoulder massage, etc.
[0097] In some embodiments, referring to Figure 1 Figure 1 , the sleep assistance device 10 further includes a magnetic sleep assistance sub-device 500. The magnetic sleep assistance sub-device 500 is connected to the processing unit 300 and is used to generate a magnetic sleep assistance signal according to the feature parameters.
[0098] Reference Figure 5, the magnetic sleep aid sub-device 500 includes: a magnetic drive circuit 510 and a magnetic induction coil 520, where the magnetic drive circuit 510 is connected to the processing unit 300, and the magnetic induction coil 520 is connected to the magnetic drive circuit 510.
[0099] In some embodiments, the magnetic drive circuit 510 generates a coil drive signal according to the audio duration parameter in the characteristic parameters. Here, the audio duration parameter is the duration parameter of the entire audio file, that is, a coil drive signal is generated within the duration of the audio file. The magnetic induction coil 520 is connected to the magnetic drive circuit 510 and rotates according to the coil drive signal to generate an alternating magnetic field to form a magnetic sleep aid signal. It can be understood that within the playback duration of the audio file, the magnetic induction coil 520 rotates to generate an alternating magnetic field.
[0100] In some embodiments, referring to Figure 6 , the magnetic drive circuit 510 includes: a DC drive unit 511 and an H-bridge drive unit 512, where the H-bridge drive circuit 512 includes: a motor 513, and the motor 513 is connected to the magnetic induction coil 520. The DC drive unit 511 is connected to the processing unit 300 and is used to generate a DC drive signal according to the audio duration parameter. The H-bridge drive unit 512 is connected to the DC drive unit 511 and drives the motor 513 to rotate according to the DC drive signal to generate a coil drive signal.
[0101] Referring to Figure 7 , the H-bridge drive circuit 512 includes: a first-direction triode group and a second-direction triode group. When the first-direction triode group is turned on, the motor 513 rotates in the first direction; when the second-direction triode group 515 is turned on, the motor 513 rotates in the second direction. Here, the first direction and the second direction are opposite. For example, the first direction is defined as forward rotation and the second direction is defined as reverse rotation.
[0102] Specifically, referring to Figure 7 , the first-direction triode group includes: a first triode Q1 and a fourth triode Q4. The collectors of the first triode Q1 and the fourth triode Q4 are connected to the motor 513. The emitters of the first triode Q1 and the fourth triode Q4 are connected to the power supply to receive the voltage Vcc. The bases of the first triode Q1 and the fourth triode Q4 are connected to the DC drive unit 511 to receive the DC drive signal sent by the DC drive unit 511 to adjust the direction of the current flowing through the motor 513, thereby driving the motor 513 to rotate forward.
[0103] Referring to Figure 7, the second-direction triode includes: a second triode Q2 and a third triode Q3. The collectors of the second triode Q2 and the third triode Q3 are connected to the vibrator. The emitters of the second triode Q2 and the third triode Q3 are connected to the power supply to receive the voltage Vcc. The bases of the second triode Q2 and the third triode Q3 are connected to the DC driving unit 511 to receive the DC driving signal sent by the DC driving unit 511, so as to adjust the direction of the current flowing through the motor 513, thereby driving the motor 513 to reverse.
[0104] As can be seen from the above, in this embodiment, the H-bridge driving unit 512 adjusts the direction of the current in the motor 513 according to the DC driving signal, thereby changing the rotation direction of the motor 513 and generating a coil driving signal. Furthermore, the magnetic induction coil 520 is connected to the motor 513 and rotates forward or backward according to the coil driving signal. When the magnetic induction coil 520 rotates, it cuts the magnetic force lines. Since the rotation direction changes, an alternating magnetic field is generated to obtain a magnetic sleep-aid signal, which is used to change the environmental magnetic field of the user. The magnetic sleep-aid signal acts on the cerebral cortex using the alternating magnetic field to generate an induced current in the human body itself, so as to change the action potential of the neurons in the cerebral cortex, thereby regulating cerebral metabolism and nerve activities, and further alleviating insomnia symptoms and improving sleep time and sleep quality.
[0105] In some embodiments, the DC driving unit 511 is a DC regulated power supply, which is connected to the processing unit 300 and is used to generate a DC driving signal according to a preset reference voltage. The preset reference voltage can be set according to the actual situation and can be 3V - 5V.
[0106] Refer to Figure 8 , the DC driving signal is a square wave signal. For example, if the preset reference voltage is 5V, the positive-direction amplitude of the square wave signal is +5V, and the negative-direction amplitude is -5V. When the square wave signal changes from positive to negative or from negative to positive, the rotation direction of the motor will switch accordingly. It can be understood that the H-bridge driving circuit 512 makes multiple switches between forward and reverse rotations within the duration of the audio signal according to the DC driving signal. For example, as shown in the figure, it switches 5 times within the duration, that is, forward - reverse - forward - reverse - forward - forward, including three cycles. Within each cycle, it switches from forward to reverse once. The duration of forward rotation and the duration of reverse rotation in the three cycles can be different, that is, the duty cycle of the square wave signal in each cycle is different. The total duration of forward rotation and the total duration of reverse rotation sum up to the duration of the audio signal. The number of switches here, as well as the duration of forward rotation and the duration of reverse rotation each time when switching, can be set according to requirements, and this embodiment does not make specific limitations on this.
[0107] In some embodiments, considering the comfort of the user experience, it is necessary to remove the high-frequency signals from the audio signal. For example, the low- and mid-frequency audio signals have a better sleep-aiding effect for the user. Therefore, when the audio signal is high-frequency, the processing unit will filter out the high-frequency components in the audio signal and generate characteristic parameters of the audio signal for the low- and mid-frequency signals.
[0108] In some embodiments, the low-frequency range includes 40 Hz - 80 Hz, the mid-frequency range includes 160 Hz - 1280 Hz, and the high-frequency range includes 2560 Hz - 5120 Hz. It should be understood that the frequency band range of the audio signal is only for illustration and does not represent a limitation thereon.
[0109] It should be understood that the sleep-aiding device according to the embodiments of the present application can provide a sleep-aiding combination mode of audio sleep-aiding combined with magnetic sleep-aiding, or can also include a sleep-aiding combination mode of audio sleep-aiding, vibration sleep-aiding combined with magnetic sleep-aiding. The present embodiment does not make specific limitations thereon.
[0110] Referring to Figure 9 , the sleep-aiding device includes a signal source 100. The signal source 100 generates an audio signal, and then the audio signal is divided into two branches.
[0111] The first branch enters the audio sleep-aiding sub-device 200. The audio sleep-aiding sub-device 200 includes an audio amplification unit 210 and an audio playback unit 220. The audio amplification unit 210 receives the audio signal and amplifies its power to obtain an audio sleep-aiding signal. The audio playback unit 220 plays the received audio sleep-aiding signal. The sleep-aiding mode provided for the user is: audio sleep-aiding, realizing sound-sensation sleep-aiding.
[0112] The second branch enters the processing unit 300 to extract the characteristic parameters of the energy characteristics. The extracted characteristic parameters include: audio amplitude parameter and audio duration parameter.
[0113] Among them, the vibration sleep-aiding sub-device 400 receives the characteristic parameters and generates an oscillator drive signal according to the audio amplitude parameter and audio duration parameter in the characteristic parameters. The vibration oscillator vibrates according to the oscillator drive signal. Specifically, the vibration oscillator 420 can generate a vibration sleep-aiding signal according to the duration of each speech frame and the audio amplitude in the oscillator drive signal, and the sleep-aiding mode provided for the user is: vibration sleep-aiding, realizing touch-sensation sleep-aiding.
[0114] The magnetic sleep-aiding sub-device 500 generates a coil drive signal according to the audio duration parameter in the characteristic parameters. The magnetic induction coil 520 rotates according to the coil drive signal to generate an alternating magnetic field to form a magnetic sleep-aiding signal, and the sleep-aiding mode provided for the user is: magnetic sleep-aiding, realizing non-sensation sleep-aiding.
[0115] As described above, the sleep aid device according to the embodiments of the present application can utilize the same audio signal to generate associated audio sleep aid signals, vibration sleep aid signals, and magnetic sleep aid signals, achieving the coordinated unity of sound sense sleep aid, touch sense sleep aid, and non-sense sleep aid.
[0116] In one embodiment, the sleep aid modes include: audio sleep aid, magnetic sleep aid, and vibration sleep aid. A classification model for the sleep aid mode selection model can be constructed. During the use of the sleep aid device, with the user's informed consent, the physical sign parameters of the user before and after sleep aid can be continuously collected within a preset time period, such as parameters like body temperature, heart rate, blood pressure, etc. Parameter intervals are set, different physical sign parameters are quantified, and training samples are constructed. In this embodiment, the physical sign parameters before sleep aid in the training samples are used as the input information of the model, and the physical sign parameters after sleep aid are corresponded to the currently selected sleep aid mode to obtain sample labels.
[0117] Taking the heart rate as an example for illustration, for example, multiple groups of usage data of a user are collected, the heart rates before and after sleep aid are quantified, and divided into 3 different levels. At the same time, according to the sleep information, the sleep quality of level 3 is excellent, the sleep quality of level 2 is medium, and the sleep quality of level 1 is poor. For example: Usage data 1: pre-heart rate level 1 (audio sleep aid) - post-heart rate 3 (excellent sleep quality); Usage data 2: pre-heart rate level 1 (magnetic sleep aid) - post-heart rate 2 (medium sleep quality); Usage data 3: pre-heart rate level 1 (vibration sleep aid) - post-heart rate 1 (poor sleep quality). Therefore, sample 1 is obtained based on usage data 1 - 3. The input information of sample 1 is pre-heart rate level 1, and the label is audio sleep aid. It can be understood that if two sleep aid modes are carried out simultaneously, the output label is also two sleep aid modes. Different sleep aid modes can be quantified and represented. For example, audio sleep aid is represented as 01, magnetic sleep aid is represented as 02, vibration sleep aid is represented as 03, audio sleep aid + magnetic sleep aid is represented as 12, audio sleep aid + vibration sleep aid is represented as 13, vibration sleep aid + magnetic sleep aid is represented as 23, vibration sleep aid + magnetic sleep aid + audio sleep aid is represented as 123. This embodiment does not make specific limitations on this.
[0118] Then, the training samples are input into the sleep aid mode selection model to obtain the sleep aid mode output information. The sleep aid mode output information is compared with the sample labels, and the model parameters of the sleep aid mode selection model are adjusted to obtain a trained sleep aid mode selection model. It can be understood that this sleep aid mode selection model can recommend a suitable sleep aid mode according to the current physical sign parameters. The suitable sleep aid mode can be one or a combination of more than one. Through this method, this embodiment improves the adaptability of the sleep aid device to different individuals or different environments, and at the same time reduces unnecessary energy consumption while improving the sleep aid effect.
[0119] It can be understood that the sleep aid device only needs to have the functional components of the above embodiments, and may also include components other than the above functional components. The product form is not specifically limited in this embodiment, and the product form may be a sleep aid pillow, a sitting massage device, a wearable sleep aid device, etc.
[0120] In the technical solution provided by the embodiment of the present application, the sleep aid device includes a signal source for generating an audio signal, an audio sleep aid sub-device, a processing unit, a vibration sleep aid sub-device, and a magnetic sleep aid sub-device. The signal source provides an audio signal as a reference source. The audio sleep aid sub-device generates an audio sleep aid signal according to the audio signal, extracts the characteristic parameters of the audio signal, and the vibration sleep aid sub-device generates a vibration sleep aid signal according to the characteristic parameters; the magnetic sleep aid sub-device generates a magnetic sleep aid signal according to the characteristic parameters. The embodiment of the present application uses the shared audio signal to generate the audio sleep aid signal, the vibration sleep aid signal, and the magnetic sleep aid signal. There is a correlation between different sleep aid signals instead of a simple function superposition, which is convenient for improving the sleep aid effect.
[0121] The embodiment of the present application also provides a control method for a sleep aid device, which is applied to the sleep aid device in the above embodiment. Figure 10 It is an optional flowchart of the control method provided by the embodiment of the present application. Figure 1 The method in may include but is not limited to steps S1010 to S1040. At the same time, it can be understood that this embodiment does not specifically limit Figure 10 the order of steps S1010 to S1040 in, and the order of steps can be adjusted according to actual needs, or some steps can be reduced or added.
[0122] Step S1010: Obtain the working mode information of the user and the selected audio signal.
[0123] In some embodiments, the user, that is, the user of the sleep aid device, the working mode information includes one or more of: the audio sleep aid mode, the vibration sleep aid mode, and the magnetic sleep aid mode. For example, corresponding buttons can be installed on the sleep aid device or through relevant software to obtain the sleep aid mode selection result of the user. The user can choose one of them, or can also choose the other two or three associated methods to obtain a better sleep aid effect. This embodiment does not specifically limit the combination method of the working modes, and the user selects a suitable working mode according to his own needs.
[0124] In some embodiments, the user can select the corresponding audio signal or upload the audio signal by himself.
[0125] Step S1020: If the working mode information is the audio sleep aid mode, generate an audio sleep aid signal according to the audio signal.
[0126] In some embodiments, when the working mode information is the audio sleep aid mode, the audio signal generated by the signal source is power-amplified to obtain an audio sleep aid signal, and the audio sleep aid signal is played.
[0127] In some embodiments, if the following vibration sleep aid mode or magnetic sleep aid mode is selected, it is necessary to extract the energy characteristics of the audio signal and obtain characteristic parameters according to the energy characteristics. The energy characteristics include: one or more of short-time energy characteristics, short-time average amplitude characteristics, short-time zero-crossing rate characteristics, endpoint detection characteristics, Mel frequency cepstral coefficient characteristics, envelope characteristics, and short-time power spectrum characteristics. The characteristic parameters include: audio amplitude parameters and audio duration parameters.
[0128] Step S1030: If the working mode information is the vibration sleep aid mode, generate a vibration sleep aid signal according to the characteristic parameters of the audio signal.
[0129] In some embodiments, an oscillator drive signal is generated according to the audio amplitude parameters and audio duration parameters, and the vibration oscillator is driven according to the oscillator drive signal to generate vibration to form a vibration sleep aid signal.
[0130] Step S1040: If the working mode information is the magnetic sleep aid mode, generate a magnetic sleep aid signal according to the characteristic parameters of the audio signal.
[0131] In some embodiments, a coil drive signal is generated according to the audio duration parameters, and the magnetic induction coil is driven according to the coil drive signal to rotate to generate an alternating magnetic field to form a magnetic sleep aid signal.
[0132] It can be understood that the control method of the embodiments of the present application can be completed by the processing unit of the sleep aid device or by a separate processor. This embodiment does not make specific limitations on this.
[0133] Refer to Figure 11 , which is the control flow chart of the control method of the sleep aid device.
[0134] First, the audio signal is divided into two branches.
[0135] If the audio sleep aid mode is turned on, the audio signal enters the first branch for power amplification to obtain an audio sleep aid signal, and then the audio sleep aid signal is played to provide the audio sleep aid function for the user and realize sound-sensation sleep aid.
[0136] If the vibration sleep aid mode or the magnetic sleep aid mode is turned on, the audio signal enters the second branch into the processing unit to extract the characteristic parameters of the energy characteristics of the audio signal. The extracted characteristic parameters include: audio amplitude parameters and audio duration parameters.
[0137] When the vibration sleep aid mode is turned on, the oscillator drive unit receives the characteristic parameters, generates an oscillator drive signal according to the audio amplitude parameter and the audio duration parameter in the characteristic parameters, and the vibration oscillator vibrates according to the oscillator drive signal to generate a vibration sleep aid signal, providing the user with the function of vibration sleep aid and realizing tactile sleep aid.
[0138] When the magnetic sleep aid mode is turned on, the magnetic drive circuit generates a coil drive signal according to the audio duration parameter in the characteristic parameters, and the magnetic induction coil rotates according to the coil drive signal to generate an alternating magnetic field to form a magnetic sleep aid signal, providing the user with the function of magnetic sleep aid and realizing non-sensory sleep aid.
[0139] As can be seen from the above, the embodiment of the present application uses the shared audio signal to generate the audio sleep aid signal, the vibration sleep aid signal and the magnetic sleep aid signal. The different sleep aid signals are not simply a functional superposition, but there is a correlation, which is convenient for improving the sleep aid effect.
[0140] The embodiment of the present application also provides a control device, which can implement the control method of the above sleep aid device. Refer to Figure 12 and the device includes:
[0141] An acquisition module 1210, configured to acquire the working mode information of the user, and the working mode information includes one or more of: audio sleep aid mode, vibration sleep aid mode, and magnetic sleep aid mode.
[0142] An audio sleep aid module 1220, configured to generate an audio sleep aid signal if the working mode information is the audio sleep aid mode.
[0143] A vibration sleep aid module 1230, configured to generate a vibration sleep aid signal if the working mode information is the vibration sleep aid mode.
[0144] A magnetic sleep aid module 1240, configured to generate a magnetic sleep aid signal if the working mode information is the magnetic sleep aid mode.
[0145] The specific implementation manner of the control device in this embodiment is basically the same as that of the above control method, and will not be elaborated here.
[0146] The embodiment of the present application also provides an electronic device, including:
[0147] At least one memory;
[0148] At least one processor;
[0149] At least one program;
[0150] The program is stored in a memory, and a processor executes the at least one program to implement the control method described above in this application. The electronic device may be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA for short), an in-vehicle computer, etc.
[0151] Please refer to Figure 13 , Figure 13 which schematically shows the hardware structure of an electronic device according to another embodiment. The electronic device includes:
[0152] A processor 1301, which can be implemented in ways such as a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application;
[0153] A memory 1302, which can be implemented in forms such as a ROM (Read Only Memory), a static storage device, a dynamic storage device, or a RAM (Random Access Memory). The memory 1302 can store an operating system and other application programs. When implementing the technical solutions provided in the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 1302 and are called by the processor 1301 to execute the control method of the embodiments of this application;
[0154] An input / output interface 1303, which is used to implement information input and output;
[0155] A communication interface 1304, which is used to implement communication interaction between this device and other devices. Communication can be achieved through a wired method (such as USB, network cable, etc.) or through a wireless method (such as a mobile network, WIFI, Bluetooth, etc.); and
[0156] A bus 1305, which transmits information between various components of the device (such as the processor 1301, the memory 1302, the input / output interface 1303, and the communication interface 1304);
[0157] Among them, the processor 1301, the memory 1302, the input / output interface 1303, and the communication interface 1304 achieve communication connections with each other inside the device through the bus 1305.
[0158] The embodiments of the present application also provide a storage medium, which is a computer-readable storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the above control method is implemented.
[0159] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely provided with respect to the processor, and these remote memories can be connected to the processor through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0160] The sleep aid device and the control method of the sleep aid device proposed by the embodiments of the present application. The sleep aid device includes a signal source for generating an audio signal, an audio sleep aid sub-device, a processing unit, a vibration sleep aid sub-device, and a magnetic sleep aid sub-device. The audio sleep aid sub-device generates an audio sleep aid signal according to the audio signal, extracts the characteristic parameters of the audio signal, and the vibration sleep aid sub-device generates a vibration sleep aid signal according to the characteristic parameters; the magnetic sleep aid sub-device generates a magnetic sleep aid signal according to the characteristic parameters. The embodiments of the present application use a shared audio signal to generate an audio sleep aid signal, a vibration sleep aid signal, and a magnetic sleep aid signal. There is a correlation between different sleep aid signals, rather than a simple functional superposition, which is convenient for improving the sleep aid effect.
[0161] The embodiments described in the embodiments of the present application are to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art will know that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
[0162] Those skilled in the art can understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figures, or combine some steps, or different steps.
[0163] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0164] Those of ordinary skill in the art will understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or a suitable combination thereof.
[0165] As used in the specification of this application and the above-mentioned drawings, the terms "first", "second", "third", "fourth", etc. (if any) are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of this application described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0166] It should be understood that in this application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects and indicates that there can be three relationships. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist simultaneously. Here, A and B can be singular or plural. The character " / " generally means that the associated objects before and after are in an "or" relationship. "At least one (one) of the following" or a similar expression means any combination of these items, including any combination of single items (ones) or plural items (ones). For example, at least one (one) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0167] In several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the above-mentioned unit division is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling, direct coupling, or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of devices or units can be in electrical, mechanical, or other forms.
[0168] The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0169] In addition, each functional unit in various embodiments of the present application may be integrated in a processing unit, may exist separately as individual physical units, or two or more units may be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0170] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in various embodiments of the present application. The aforementioned storage medium includes: various media that can store programs such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.
[0171] The preferred embodiments of the embodiments of the present application have been described above with reference to the accompanying drawings. However, this does not limit the scope of the rights of the embodiments of the present application. Any modification, equivalent replacement, and improvement made by those skilled in the art without departing from the scope and essence of the embodiments of the present application shall fall within the scope of the rights of the embodiments of the present application.
Claims
1. A sleep aid device, characterized in that, Comprising: A signal source for generating an audio signal, the audio signal including a plurality of speech frames; An audio sleep aid sub-device connected to the signal source for generating an audio sleep aid signal according to the audio signal; A processing unit connected to the signal source for extracting characteristic parameters of the audio signal, the characteristic parameters including: an audio amplitude parameter and an audio duration parameter; A magnetic sleep aid sub-device including: a magnetic drive circuit and a magnetic induction coil, the magnetic drive circuit being connected to the processing unit for generating a coil drive signal according to the audio duration parameter; the magnetic induction coil being connected to the magnetic drive circuit for rotating according to the coil drive signal to generate an alternating magnetic field to form a magnetic sleep aid signal; the magnetic drive circuit including: a DC drive unit and an H-bridge drive circuit, the H-bridge drive circuit including a motor, the motor being connected to the magnetic induction coil; the DC drive unit being connected to the processing unit for generating a DC drive signal according to the audio duration parameter; the H-bridge drive circuit being connected to the DC drive unit for driving the motor to rotate according to the DC drive signal to generate the coil drive signal; A vibration sleep aid sub-device including: an oscillator drive unit and a vibration oscillator, the oscillator drive unit being connected to the processing unit for generating an oscillator drive signal according to the audio amplitude parameter and the audio duration parameter, the vibration oscillator being connected to the oscillator drive unit for generating vibration according to the oscillator drive signal to form a vibration sleep aid signal, the oscillator drive signal including the signal amplitude and signal duration of each of the speech frames.
2. The sleep aid device according to claim 1, characterized in that, The audio sleep aid sub-device includes: an audio amplification unit and an audio playback unit; The audio amplification unit is connected to the signal source for power-amplifying the audio signal to obtain the audio sleep aid signal; The audio playback unit is connected to the audio amplification unit for playing the audio sleep aid signal.
3. The sleep aid device according to claim 1, characterized in that, The processing unit is used for extracting the energy characteristics of the audio signal and extracting the characteristic parameters according to the energy characteristics.
4. The sleep aid device according to claim 3, characterized in that, The energy characteristics include one or more of: short-time energy characteristics, short-time average amplitude characteristics, short-time zero-crossing rate characteristics, Mel frequency cepstral coefficient characteristics, endpoint detection characteristics, envelope characteristics, short-time power spectrum characteristics.
5. The sleep aid device according to claim 1, characterized in that, The DC drive unit includes: a DC regulated power supply; The DC regulated power supply is connected to the processing unit for generating the DC drive signal according to the audio duration parameter according to a preset reference voltage.
6. The sleep aid device according to claim 1, characterized in that, The DC drive signal is a square wave signal.
7. The sleep aid device according to claim 1, characterized in that, The processing unit is used for generating the characteristic parameters of the audio signal according to a preset frequency band.
8. A control method for a sleep aid device, characterized in that, Applied to the sleep aid device according to any one of claims 1 to 7, the method includes: Obtaining the working mode information of the user and the selected audio signal, the working mode information including at least two of: an audio sleep aid mode, a vibration sleep aid mode, and a magnetic sleep aid mode; If the working mode information is the audio sleep aid mode, generating the audio sleep aid signal according to the audio signal; If the working mode information is the vibration-assisted sleep mode, generate the vibration-assisted sleep signal according to the characteristic parameters of the audio signal; If the working mode information is the magnetic-assisted sleep mode, generate the magnetic-assisted sleep signal according to the characteristic parameters of the audio signal.
9. The control method for a sleep aid device according to claim 8, characterized in that, After obtaining the working mode information of the user, the method further includes: Extract the energy feature of the audio signal; Extract the characteristic parameters of the audio signal according to the energy feature.
10. The control method for a sleep aid device according to claim 9, characterized in that, The energy feature includes one or more of the following: short-time energy feature, short-time average amplitude feature, short-time zero-crossing rate feature, Mel frequency cepstral coefficient feature, endpoint detection feature, envelope feature, short-time power spectrum feature.
Citation Information
Patent Citations
Variation magnetic field therapy health care mattress with music playing and sound wave synchronous massage
CN110367743A