Intelligent sleep aiding system based on environmental influence detection
By detecting environmental impacts in real time, generating reverse sound waves and blending them with background music for playback, the problem of traditional sleep aid systems affecting user sleep when music switches when noise changes is solved, achieving a more stable intelligent sleep aid effect.
Patent Information
- Application Number
- CN202510800297.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-16
- Publication Date
- 2025-09-12
AI Technical Summary
When traditional sleep-aid music systems face real-time changes in noise, the music switches unnaturally, affecting the user's sleep, causing forced mobilization of attention resources, destroying the relaxation state, prolonging the latency period to fall asleep, and affecting the sleep-aid effect.
By detecting environmental impacts in real time, it generates reverse sound waves with a phase opposite to the noise and blends them with background music to offset noise interference. It also adjusts the pitch, speed, timbre, volume and reverberation of the reverse sound waves to adapt to the background music, ensuring the continuity and regularity of the sleeping environment.
Without changing the sleep-aiding music, the impact of noise on the sleeping environment is reduced, the intelligent sleep-aiding effect is improved, and the stability and comfort of the user's sleeping environment are ensured.
Smart Images

Figure CN120617752A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent environmental detection and sleep-aiding technology, and more particularly to an intelligent sleep-aiding system based on environmental impact detection. Background Art
[0002] Healthy sleep has become a major health concern for most people these days. From work pressure to household chores, modern people face increasing stress, leading to declining sleep quality, which in turn impacts their health and daily lives.
[0003] Chinese patent application number CN202411775683.8 publicly provides a comprehensive intelligent environment control method based on sleep aid, including: first, based on the user's heart rate and skin resistance, evaluating the stability of the sleep state, automatically adjusting the light brightness and color temperature, and creating a suitable sleeping atmosphere. The system recommends suitable music types based on the type of environmental noise, and accurately recommends sleep music based on the user's preference feedback on each music. At the same time, it monitors the decibels of environmental noise in real time and dynamically adjusts the music volume to ensure the harmonious coexistence of music and environmental noise, creating a more comfortable and quiet sleeping environment for users, and improving the user's sleep quality in multiple dimensions.
[0004] In the above technical solution, the ambient noise type at each monitoring time point is associated with the preset music type matching rules, and then the music type is recommended to each user. However, traditional sleep-aid music systems usually adopt a static matching strategy to generate fixed music according to the current noise characteristics, which is difficult to cope with real-time changes in noise. When the noise changes significantly in a short period of time, the system may be forced to interrupt the current music playback and switch to a new track, resulting in incomplete music clips and broken rhythm. When the user is in a resting state, the unnatural switching of music will trigger an instantaneous alert response of the auditory system, resulting in forced mobilization of attention resources and destruction of the relaxation state. Moreover, frequent music switching breaks the continuity and regularity required for sleep induction. Fragmented music will intensify sympathetic nerve excitement, prolong the latency period of falling asleep, and affect the sleep-aiding effect of the environment and user experience. Summary of the Invention
[0005] The purpose of the present invention is to provide an intelligent sleep aid system based on environmental impact detection to solve the problems raised in the above background technology: In order to achieve the above object, the present invention provides the following technical solutions: An intelligent sleep-aiding system based on environmental impact detection includes a collection module for collecting various information about the user's sleeping environment in real time; The execution module is used to analyze various environmental information and dynamically adjust the information; The frequency domain analysis module converts the noise time domain signal collected by the acquisition module into a frequency domain signal to extract the amplitude, phase and frequency components of the noise; A conversion processing module is used to rotate the phase of the noise signal by 180 degrees according to the extracted noise amplitude, phase and frequency, thereby generating a sound wave with a phase opposite to that of the noise; A reverse signal synthesis module is used to adjust the amplitude of the reverse sound wave so that the amplitude of the reverse sound wave is equal to the amplitude of the noise, thereby generating a reverse sound wave with the same amplitude and opposite phase as the noise; The real-time fusion module receives the generated reverse sound waves and adjusts the various indices of the reverse sound waves in steps. The processed noise can be naturally integrated into the background music. The release module releases the reverse sound waves generated by the reverse signal synthesis module in reverse order to offset the original noise, and releases the reverse sound waves adjusted and processed by the real-time fusion module in the forward order to naturally blend into the background music broadcast.
[0006] By adopting the above technical solution, compared with traditional music-assisted sleep, this sleep aid system, when noise is generated in the sleeping environment, the system generates a reverse sound wave to offset the noise source, thereby ensuring the user's sleeping environment. At the same time, after processing the reverse sound wave, it is integrated with the currently playing background music and played at the same time. Without changing the current sleep-aid music, the impact of noise on the sleeping environment is reduced, thereby improving the intelligent sleep-aid effect of the environment.
[0007] Preferably, the acquisition module includes: a humidity acquisition unit, a temperature acquisition unit, a light acquisition unit and a noise acquisition unit; The humidity collection unit collects the humidity of the sleeping environment through the humidity sensor, and then adjusts the working state of the silent humidifier and the silent dryer through the execution module, thereby adjusting the indoor humidity in real time; The temperature acquisition unit collects the temperature of the sleeping environment through the temperature sensor, and controls the working state of the air conditioner through the execution module, thereby adjusting the indoor temperature in real time; The light collection unit collects the light intensity of the sleeping environment through the light sensor, and adjusts the light intensity and closes the curtains through the execution module, thereby adjusting the indoor light in real time; The noise collection unit collects noise from all directions of the sleeping environment through a matrix surround array microphone, and transmits the collected noise signal to the frequency domain analysis module.
[0008] Preferably, the real-time fusion module includes a receiving unit, a taking unit, a comparison and screening unit, an adjustment unit and a time sequence unit; The receiving unit is used to receive the reverse sound waves generated by the reverse signal synthesis module. The sampling unit obtains the background music data of the current music player in real time and simultaneously tracks the playback progress. Based on the historical playback records of the song, the system will intelligently analyze the characteristics of the current time period and combine it with the preset music structure algorithm to achieve accurate prediction and automatic arrangement of the next background music segment.
[0009] Preferably, the comparison and screening unit will accurately match and extract the audio segment with the closest spectrum characteristics from the background music of the currently playing track based on the reverse sound wave characteristic analysis and combined with the historical records of the currently playing music. The reverse sound wave spectrum is , the spectrum of the selected music background clip is , the frequency weight is , the spectrum similarity calculation formula is: ; Total similarity score: ; in represents a discrete frequency variable.
[0010] Preferably, the time sequence unit includes a speech rate alignment unit, a segment alignment unit and a real-time dynamic interaction unit; The segment alignment unit time-aligns and sequence-aligns the reverse sound wave characteristics with the audio segment with the closest extracted frequency characteristics, and the speech rate alignment unit matches the speech rate of the reverse sound wave to the playback speed of the audio segment with the closest extracted frequency characteristics.
[0011] Preferably, the segment alignment unit performs time alignment on the reverse sound wave characteristics and the audio segment with the closest extracted frequency characteristics, selects the reverse sound wave sampling points and uses Indicates that the sampling points corresponding to the closest fragments are selected and used Indicates that the alignment path is , the time warping alignment formula is: ; Among them, the spectrum distance is , the time smoothing term is , constrained temporal continuity, is the smoothing weight coefficient.
[0012] Preferably, the segment alignment unit sequentially aligns the reverse sound wave characteristics with the audio segment with the closest extracted frequency characteristics, and selects the reverse sound wave segment label sequence as , select the closest fragment structure tag sequence as , the sequential alignment calculation formula is: ; in, Represents the structural transfer legitimacy indicator function.
[0013] Preferably, the real-time dynamic interaction unit is used to adjust parameters during the dynamic interaction between the reverse sound wave and the background music, and the error threshold is set to , the error calculation formula is: ; in represents the ambient noise signal, Represents the reverse acoustic wave signal generated by the system, Represents the original background music signal, The processed background music signal, represents the weight coefficient of dynamic delay, Indicates system processing delay. When the calculated error value is less than When the calculated error value is greater than When the reverse sound waves are aligned, the time and sequence alignment needs to be adjusted again.
[0014] Preferably, the adjustment unit includes a pitch adjustment unit, a speed adjustment unit, a timbre adjustment unit, a volume adjustment unit and a reverberation adjustment unit; The pitch adjustment unit adjusts the pitch of the reverse sound wave through the pitch shifter to adapt to the pitch of the currently playing background music; The speed adjustment unit adjusts the speed of the reverse sound wave by using a time expansion tool, adjusting the speed percentage and time length to adapt to the speed of the currently playing background music; The timbre adjustment unit adjusts the gain or decay of the timbre frequency band of the reverse sound wave through an equalizer, which is suitable for the timbre of the currently playing background music; The volume adjustment unit adjusts the volume of different sound sources of the reverse sound wave through the mixing console to adapt to the volume of the currently playing background music; The reverberation adjustment unit adjusts the reverberation intensity of the reverse sound wave through the reverberation plug-in to adapt to the reverberation of the background music played previously.
[0015] Preferably, the release module includes a reverse release unit, a forward release unit and a music playing unit; The reverse release unit plays reverse sound waves through the speaker array to cancel out the noise sound waves, and the direction of the speaker is the same as the direction of the noise source. The forward release unit plays the processed reverse sound waves through the speaker array and merges them with the background music. The music playing unit plays sleep-inducing music through the music playing device.
[0016] Compared with the prior art, the present invention has the following beneficial effects: 1) When this intelligent sleep aid system based on environmental impact detection is used, compared with traditional music-assisted sleep, when noise is generated in the sleeping environment, the system generates a reverse sound wave to offset the noise source, ensuring the user's sleeping environment. At the same time, after processing the reverse sound wave, it is integrated with the currently playing background music and played simultaneously. Without changing the current sleep-aid music, the impact of noise on the sleeping environment is reduced, thereby improving the intelligent sleep-aiding effect of the environment.
[0017] 2) When this intelligent sleep-aiding system based on environmental impact detection is in use, the pitch of the reverse sound wave is adjusted by the pitch adjustment unit, the speed adjustment unit adjusts the speed of the reverse sound wave, the timbre adjustment unit adjusts the gain or attenuation of the timbre frequency band of the reverse sound wave to suit the timbre of the currently playing background music, the volume adjustment unit adjusts the volume of different sound sources of the reverse sound wave to suit the volume of the currently playing background music, and the reverberation adjustment unit adjusts the reverberation intensity of the reverse sound wave so that when the processed reverse sound wave is emitted, its pitch, speed, timbre, volume and reverberation are adapted to the currently playing background music, thereby preventing the difference between the reverse sound wave and the playing music from affecting the user's sleep and further improving the intelligent sleep-aiding effect of the environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is the overall flow chart of the intelligent sleep aid system based on environmental impact detection; Figure 2 This is the overall diagram of the acquisition module of the intelligent sleep aid system based on environmental impact detection; Figure 3 This is the overall diagram of the real-time fusion module of the intelligent sleep aid system based on environmental impact detection; Figure 4 This is the overall diagram of the adjustment unit of the intelligent sleep aid system based on environmental impact detection; Figure 5 This is the overall diagram of the time sequence units of the intelligent sleep aid system based on environmental impact detection; Figure 6 This is the overall diagram of the release unit of the intelligent sleep aid system based on environmental impact detection. DETAILED DESCRIPTION
[0019] Example 1: Please refer to Figure 1 - Figure 6An intelligent sleep aid system based on environmental impact detection includes an acquisition module for real-time acquisition of various information about the user's sleeping environment, an execution module for analyzing various environmental information and dynamically adjusting the information, a frequency domain analysis module for converting the noise time domain signal collected by the acquisition module into a frequency domain signal for extracting the amplitude, phase and frequency components of the noise, a conversion processing module for rotating the phase of the noise signal by 180° based on the extracted noise amplitude, phase and frequency to generate a sound wave with an opposite phase to the noise, a reverse signal synthesis module for adjusting the amplitude of the reverse sound wave so that the amplitude of the reverse sound wave is equal to the noise amplitude, and then generating a reverse sound wave with the same amplitude and opposite phase as the noise, a real-time fusion module for receiving the generated reverse sound wave and performing step-by-step adjustment processing on the reverse sound wave on various indexes, so that the processed noise can be naturally integrated into the background music, and a release module for releasing the reverse sound wave generated by the reverse signal synthesis module in reverse direction to offset the original noise, and then releasing the reverse sound wave adjusted and processed by the real-time fusion module in the forward direction to naturally integrate into the background music broadcast.
[0020] The receiving unit in the real-time fusion module collects the reverse sound wave signal, and the sampling unit obtains the background music data of the current music player in real time and tracks the playback progress synchronously. Based on the historical playback records of the song, the system will intelligently analyze the characteristics of the current time period, and the comparison and screening unit will screen out the most similar background music clips in the currently playing background music according to the characteristics of the reverse sound wave. Then, the time sequence unit will align the reverse sound wave with the most similar background music clip in time and sequence to form a positive alignment of fusion playback. One reverse sound wave and another reverse sound wave are released through two speakers at the same time. At this time, one of the reverse sound waves is released in the direction of the noise source through the speaker in the reverse release unit. The forward sound wave and the released reverse sound wave cancel each other out with the noise, reducing the interference of noise on the sleeping environment. The other reverse sound wave is processed by the real-time fusion module and released into the sleeping environment through the speaker in the forward release unit and the background music played by the current music player. Compared with traditional music-assisted sleep, this sleep-aid system, when noise is generated in the sleeping environment, generates a reverse sound wave to cancel the source of noise to ensure the user's sleeping environment. At the same time, after processing the reverse sound wave, it is merged with the currently playing background music and played at the same time. Without changing the current sleep-aid music, the impact of noise on the sleeping environment is reduced, thereby improving the intelligent sleep-aid effect of the environment.
[0021] The acquisition module includes: humidity acquisition unit, temperature acquisition unit, light acquisition unit and noise acquisition unit; The humidity collection unit collects the humidity of the sleeping environment through a humidity sensor (the humidity sensor is a conventional humidity sensor in the prior art), and then adjusts the working status of the silent humidifier and silent dryer through the execution module, thereby adjusting the indoor humidity in real time to provide the user with a sleeping environment with suitable humidity. The temperature acquisition unit collects the temperature of the sleeping environment through a temperature sensor (the temperature sensor is a conventional temperature sensor in the prior art), and controls the working state of the air conditioner through the execution module, thereby adjusting the indoor temperature in real time to provide the user with a sleeping environment with a suitable temperature. The light collection unit collects the light intensity of the sleeping environment through a light sensor (the light sensor is a conventional light sensor in the prior art), and adjusts the light intensity and closes the curtains through the execution module, thereby adjusting the indoor light in real time to provide the user with a sleeping environment that is suitable for the light. The noise collection unit collects noise from all directions of the sleeping environment through a matrix surround array of microphones, and transmits the collected noise signals to the frequency domain analysis module.
[0022] The real-time fusion module includes a receiving unit, a taking unit, a comparison and screening unit, an adjustment unit and a time sequence unit; The receiving unit is used to receive the reverse sound waves generated by the reverse signal synthesis module. The sampling unit obtains the background music data of the current music player in real time and tracks the playback progress synchronously. Based on the historical playback records of the song, the system will intelligently analyze the characteristics of the current time period and combine it with the preset music structure algorithm to achieve accurate prediction and automatic arrangement of the next background music segment.
[0023] The comparison and screening unit will analyze the reverse sound wave characteristics and combine the current music history to accurately match and extract the audio clip with the closest spectrum characteristics from the background music of the current song. The reverse sound wave spectrum is , the spectrum of the selected music background clip is , the frequency weight is , the spectrum similarity calculation formula is: ; Total similarity score: ; in represents a discrete frequency variable.
[0024] The time sequence unit includes a speech rate alignment unit, a segment alignment unit, and a real-time dynamic interaction unit; The segment alignment unit time-aligns and sequence-aligns the reverse sound wave characteristics with the audio segment with the closest extracted frequency characteristics, and the speech rate alignment unit matches the speech rate of the reverse sound wave to the playback speed of the audio segment with the closest extracted frequency characteristics.
[0025] The segment alignment unit time-aligns the reverse sound wave characteristics with the audio segment with the closest extracted frequency characteristics, selects the reverse sound wave sampling points and uses Indicates that the sampling points corresponding to the closest fragments are selected and used Indicates that the alignment path is , the time warping alignment formula is: ; Among them, the spectrum distance is , the time smoothing term is , constrained temporal continuity, is the smoothing weight coefficient.
[0026] The segment alignment unit sequentially aligns the reverse sound wave characteristics with the audio segment with the closest extracted frequency characteristics, and selects the reverse sound wave segment label sequence as , select the closest fragment structure tag sequence as , the sequential alignment calculation formula is: ; in, Represents the structural transfer legitimacy indicator function.
[0027] The real-time dynamic interaction unit is used to adjust parameters during the dynamic interaction between the reverse sound wave and the background music, and the error threshold is set to , the error calculation formula is: ; in represents the ambient noise signal, Represents the reverse acoustic wave signal generated by the system, Represents the original background music signal, The processed background music signal, represents the weight coefficient of dynamic delay, Indicates system processing delay. When the calculated error value is less than When the calculated error value is greater than When the reverse sound waves are aligned, the time and sequence alignment needs to be adjusted again.
[0028] The release module includes a reverse release unit, a forward release unit and a music playing unit; The reverse release unit plays reverse sound waves through the speaker array to cancel out the noise sound waves, and the direction of the speaker is the same as the direction of the noise source. The forward release unit plays the processed reverse sound waves through the speaker array and merges them with the background music. The music playback unit plays sleep-inducing music through the music playback device.
[0029] The use steps of the present invention are as follows: when the intelligent sleep aid system based on environmental impact detection is used, the acquisition module performs real-time detection of the user's sleeping environment, and detects the humidity, temperature, light intensity and noise in the room through the humidity sensor, temperature sensor, light intensity sensor and microphone. The execution module adjusts the user's sleeping environment by controlling the operation of the silent humidifier and the silent dryer. The execution module regulates the operation of the air conditioner to adjust the temperature of the user's sleeping environment in real time. The execution module adjusts the illumination intensity of the light and closes the curtains to adjust the light intensity of the user's sleeping environment. The microphone collects the noise signal and transmits it to the frequency domain analysis module. The frequency domain analysis module extracts the amplitude, phase and frequency components of the noise and transmits it to the conversion processing module in the form of an electrical signal. The conversion processing module rotates the phase of the noise signal by 180° to generate a sound wave with a phase opposite to the noise. The reverse signal synthesis module adjusts the amplitude of the reverse sound wave to generate a reverse sound wave with the same amplitude and opposite phase as the noise. The receiving unit in the real-time fusion module collects the reverse sound wave signal. The sampling unit obtains the background music data of the current music player in real time and synchronously tracks the playback progress. Based on the historical playback of the track Record, the system will intelligently analyze the characteristics of the current time period, and the comparison and screening unit will screen out the most similar background music clips in the currently playing background music according to the characteristics of the reverse sound wave. Then, the reverse sound wave will be aligned with the most similar background music clip in time and order through the time sequence unit to form a positive alignment of fusion playback. One reverse sound wave and another reverse sound wave are released through two speakers at the same time. At this time, one of the reverse sound waves is released in the direction of the noise source through the speaker in the reverse release unit. The released reverse sound wave and the noise cancel each other out, reducing the interference of noise on the sleep environment. The other reverse sound wave is processed by the real-time fusion module and released into the sleep environment through the speaker in the forward release unit, integrating the background music played by the current music player. Compared with traditional music-assisted sleep, this sleep aid system, when noise is generated in the sleep environment, the system generates a reverse sound wave to offset the noise source to ensure the user's sleep environment. At the same time, after processing the reverse sound wave, it is merged with the currently playing background music and played simultaneously. Without changing the current sleep-aid music, the impact of noise on the sleep environment is reduced, thereby improving the intelligent sleep-aid effect of the environment.
[0030] Example 2: Please refer to Figure 1 - Figure 6, combined with the basis of Example 1, the difference is that the adjustment unit includes a pitch adjustment unit, a speed adjustment unit, a timbre adjustment unit, a volume adjustment unit and a reverberation adjustment unit. The pitch adjustment unit adjusts the pitch of the reverse sound wave through a pitch shifter to adapt to the pitch of the currently playing background music. The speed adjustment unit adjusts the speed of the reverse sound wave through a time stretching tool, adjusts the speech rate percentage and time length, and adapts to the speech rate of the currently playing background music. The timbre adjustment unit adjusts the gain or attenuation of the timbre frequency band of the reverse sound wave through an equalizer, which is suitable for the timbre of the currently playing background music. The volume adjustment unit adjusts the volume of different sound sources of the reverse sound wave through a mixing console to adapt to the volume of the currently playing background music. The reverberation adjustment unit adjusts the reverberation intensity of the reverse sound wave through a reverberation plug-in to adapt to the reverberation of the currently playing background music.
[0031] The steps of using the present invention are as follows: when the intelligent sleep-aiding system based on environmental impact detection is in use, the reverse sound wave and the currently playing background music are integrated and played in Example 1, but it is necessary to further adjust the matching of the reverse sound wave with the playback device when it is emitted, and the pitch of the reverse sound wave is adjusted by the pitch adjustment unit, the speed of sound adjustment unit adjusts the speed of sound of the reverse sound wave, and the timbre adjustment unit adjusts the gain or decay of the timbre frequency band of the reverse sound wave to be suitable for the timbre of the currently playing background music, the volume adjustment unit adjusts the volume of different sound sources of the reverse sound wave to adapt to the volume of the currently playing background music, and the reverberation adjustment unit adjusts the reverberation intensity of the reverse sound wave, so that when the processed reverse sound wave is emitted, its pitch, speed of sound, timbre, volume and reverberation are adapted to the currently playing background music, so as to prevent the difference between the reverse sound wave and the played music from affecting the user's sleep, thereby further improving the intelligent sleep-aiding effect of the environment.
[0032] The above shows and describes the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions are merely preferred examples of the present invention and are not intended to limit the present invention. Various changes and improvements may be made to the present invention without departing from the spirit and scope of the present invention. Such changes and improvements fall within the scope of the present invention. The scope of protection claimed in the present invention is defined by the appended claims and their equivalents.
Claims
1. An intelligent sleep-aiding system based on environmental impact detection, characterized by: The system includes: The collection module is used to collect various information about the user's sleeping environment in real time; The execution module is used to analyze various environmental information and dynamically adjust the information; The frequency domain analysis module converts the noise time domain signal collected by the acquisition module into a frequency domain signal to extract the amplitude, phase and frequency components of the noise; A conversion processing module is used to rotate the phase of the noise signal by 180 degrees according to the extracted noise amplitude, phase and frequency, thereby generating a sound wave with a phase opposite to that of the noise; A reverse signal synthesis module is used to adjust the amplitude of the reverse sound wave so that the amplitude of the reverse sound wave is equal to the amplitude of the noise, thereby generating a reverse sound wave with the same amplitude and opposite phase as the noise; The real-time fusion module receives the generated reverse sound waves and adjusts the various indices of the reverse sound waves in steps. The processed noise can be naturally integrated into the background music. The release module releases the reverse sound waves generated by the reverse signal synthesis module in reverse order to offset the original noise, and releases the reverse sound waves adjusted and processed by the real-time fusion module in the forward order to naturally blend into the background music broadcast.
2. The intelligent sleep-aiding system based on environmental impact detection according to claim 1, characterized in that: The acquisition module includes: a humidity acquisition unit, a temperature acquisition unit, a light acquisition unit and a noise acquisition unit; The humidity collection unit collects the humidity of the sleeping environment through the humidity sensor, and then adjusts the working state of the silent humidifier and the silent dryer through the execution module, thereby adjusting the indoor humidity in real time; The temperature acquisition unit collects the temperature of the sleeping environment through the temperature sensor, and controls the working state of the air conditioner through the execution module, thereby adjusting the indoor temperature in real time; The light collection unit collects the light intensity of the sleeping environment through the light sensor, and adjusts the light intensity and closes the curtains through the execution module, thereby adjusting the indoor light in real time; The noise collection unit collects noise from all directions of the sleeping environment through a matrix surround array microphone, and transmits the collected noise signal to the frequency domain analysis module.
3. The intelligent sleep-aiding system based on environmental impact detection according to claim 1, characterized in that: The real-time fusion module includes a receiving unit, a taking unit, a comparison and screening unit, an adjustment unit and a time sequence unit; The receiving unit is used to receive the reverse sound waves generated by the reverse signal synthesis module. The sampling unit obtains the background music data of the current music player in real time and simultaneously tracks the playback progress. Based on the historical playback records of the song, the system will intelligently analyze the characteristics of the current time period and combine it with the preset music structure algorithm to achieve accurate prediction and automatic arrangement of the next background music segment.
4. The intelligent sleep-aiding system based on environmental impact detection according to claim 3, characterized in that: The comparison and screening unit will accurately match and extract the audio segment with the closest spectrum characteristics from the background music of the currently playing track based on the reverse sound wave characteristic analysis and the current music history record. The reverse sound wave spectrum is , the spectrum of the selected music background fragment is , the frequency weight is , the spectrum similarity calculation formula is: ; Total similarity score: ; in represents a discrete frequency variable.
5. The intelligent sleep-aiding system based on environmental impact detection according to claim 3, characterized in that: The time sequence unit includes a speech rate alignment unit, a segment alignment unit and a real-time dynamic interaction unit; The segment alignment unit time-aligns and sequence-aligns the reverse sound wave characteristics with the audio segment with the closest extracted frequency characteristics, and the speech rate alignment unit matches the speech rate of the reverse sound wave to the playback speed of the audio segment with the closest extracted frequency characteristics.
6. The intelligent sleep-aiding system based on environmental impact detection according to claim 5, characterized in that: The segment alignment unit time-aligns the reverse sound wave characteristics with the audio segment with the closest extracted frequency characteristics, selects the reverse sound wave sampling points and uses Indicates that the sampling point corresponding to the closest segment is selected and used Indicates that the alignment path is , the time warping alignment formula is: ; Among them, the spectrum distance is , the time smoothing term is , constrained temporal continuity, is the smoothing weight coefficient.
7. The intelligent sleep-aiding system based on environmental impact detection according to claim 5, characterized in that: The segment alignment unit sequentially aligns the reverse sound wave characteristics with the audio segment with the closest extracted frequency characteristics, and selects the reverse sound wave segment label sequence as , select the closest fragment structure tag sequence as , the sequential alignment calculation formula is: ; in, Represents the structural transfer legitimacy indicator function.
8. The intelligent sleep-aiding system based on environmental impact detection according to claim 5, characterized in that: The real-time dynamic interaction unit is used to adjust parameters during the dynamic interaction between the reverse sound wave and the background music, and the error threshold is set to , the error calculation formula is: ; in represents the ambient noise signal, Represents the reverse acoustic wave signal generated by the system, Represents the original background music signal, The processed background music signal, represents the weight coefficient of dynamic delay, Indicates system processing delay. When the calculated error value is less than When the calculated error value is greater than When the reverse sound waves are aligned, the time and sequence alignment needs to be adjusted again.
9. The intelligent sleep-aiding system based on environmental impact detection according to claim 3, characterized in that: The adjustment unit includes a pitch adjustment unit, a speed adjustment unit, a timbre adjustment unit, a volume adjustment unit and a reverberation adjustment unit; The pitch adjustment unit adjusts the pitch of the reverse sound wave through the pitch shifter to adapt to the pitch of the currently playing background music; The speed adjustment unit adjusts the speed of the reverse sound wave by using a time expansion tool, adjusting the speed percentage and time length to adapt to the speed of the currently playing background music; The timbre adjustment unit adjusts the gain or decay of the timbre frequency band of the reverse sound wave through an equalizer, which is suitable for the timbre of the currently playing background music; The volume adjustment unit adjusts the volume of different sound sources of the reverse sound wave through the mixing console to adapt to the volume of the currently playing background music; The reverberation adjustment unit adjusts the reverberation intensity of the reverse sound wave through the reverberation plug-in to adapt to the reverberation of the background music played previously.
10. The intelligent sleep-aiding system based on environmental impact detection according to claim 1, characterized in that: The release module includes a reverse release unit, a forward release unit and a music playing unit; The reverse release unit plays reverse sound waves through the speaker array to cancel out the noise sound waves, and the direction of the speaker is the same as the direction of the noise source. The forward release unit plays the processed reverse sound waves through the speaker array and merges them with the background music. The music playing unit plays sleep-inducing music through the music playing device.
Citation Information
Patent Citations
Intelligent comprehensive environment regulation and control method based on sleep aiding
CN119310870A
Health protection system and method based on electrical stimulation awakening and active noise reduction
CN117914340A
Indoor noise reduction and sleep aiding system, method and device
CN118692442A
Immersive sleep-aiding music synthesis method and immersive sleep-aiding music synthesis system fusing environment sound
CN119097813A
Head-wearing sleep-aiding sleep monitor
CN213129424U