An intelligent allocation method and system for regional background music in hotels

By using volume sensors and thermal sensing sensors in the hotel area, monitoring noise and flow in real time and dynamically adjusting the rhythm and volume of background music, the problem of existing systems being difficult to respond to changes in traffic is solved, and the consistency of music quality and hotel atmosphere is improved.

CN119724134BActive Publication Date: 2025-06-10JIANGXI MOSS RICE MEDICAL TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510217511.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-06-10
Estimated Expiration
2045-02-26

AI Technical Summary

Technical Problem

The existing hotel smart background music system is difficult to quickly respond to real-time changes in traffic, which affects the music quality and the overall hotel atmosphere.

Method used

The intelligent distribution method based on volume sensors and thermal sensing sensors is adopted to detect the noise intensity and flow information in the hotel area in real time, and dynamically adjust the music rhythm and volume of the background music to match the environmental needs of different areas.

Benefits of technology

It achieves a rapid response to changes in traffic, ensures the stability of music quality and the comfort of the hotel atmosphere, and enhances the coordination between music and the environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119724134B_ABST
    Figure CN119724134B_ABST
Patent Text Reader

Abstract

The present invention provides an intelligent allocation method and system for hotel regional background music, which is applied to the field of data processing. The present invention can accurately perceive the dynamic changes of the environment by using a volume sensor to detect the noise intensity in the hotel area in real time and combining the real-time pedestrian flow data collected by a thermal induction sensor. This collaborative work can ensure that the system quickly adjusts the response when the pedestrian flow changes, thereby reducing the fluctuation of the music quality and ensuring the coherence and comfort of the overall atmosphere. At the same time, when the type and intensity of the background noise in the hotel area change, the music rhythm is automatically adjusted according to the generated sound spectrum. This not only makes the background music more in line with the surrounding environment, but also avoids the music disharmony caused by noise interference, thereby improving the consistency of the music quality and the hotel atmosphere.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of data processing, and in particular to an intelligent distribution method and system for regionalized background music of a hotel. Background Art

[0002] With the advancement of technology, hotels and other commercial places have begun to introduce intelligent systems to automatically adjust background music. Early background music systems were generally timed or preset, but with the development of environmental perception technology, modern background music systems are gradually moving towards automation and intelligence.

[0003] However, the performance of music in different environments is multi-dimensional, and the flow of people will directly affect the atmosphere and needs of the environment. For example, areas with large flow of visitors (such as hotel lobbies, restaurants, etc.) usually require higher volume and more lively music to enhance the atmosphere, while in areas with sparse flow of people (such as corridors, rest areas, etc.), the volume should be appropriately reduced and the music style should be quiet and soft to maintain a comfortable atmosphere. At present, the hotel's intelligent background music system is difficult to respond quickly to real-time changes in the flow of people, and cannot ensure whether the quality of the music and the overall atmosphere of the hotel will be affected. Summary of the invention

[0004] The present invention aims to solve the problem that the intelligent background music system is difficult to quickly respond to the real-time changes in the flow of people, which affects the quality of music and the overall atmosphere of the hotel, and provides an intelligent distribution method and system for regionalized background music in hotels.

[0005] The present invention adopts the following technical means to solve the technical problem:

[0006] The present invention provides an intelligent distribution method for regionalized background music of a hotel, comprising:

[0007] Based on a volume sensor preset in the hotel area, detecting the coverage decibel data of the hotel area within a preset distance;

[0008] Determining whether the coverage decibel data reaches a preset decibel threshold of the hotel area;

[0009] If not, activate the thermal induction sensor preset in the hotel area, collect the flow of people information in the hotel area, identify the background noise change in the hotel area according to the flow of people information, generate the sound spectrum of the hotel area according to the background noise change, and classify the corresponding noise types from the sound spectrum, wherein the noise types specifically include human voice related noise, mechanical equipment noise and environmental external noise;

[0010] Determining whether the noise type exceeds a preset upper limit of the type;

[0011] If not exceeded, based on the preset music style template of the hotel area, dynamically adjust the music rhythm of the background music, detect the regional coordination of the music rhythm, and apply the preset resampling to smoothly transition the background music according to the regional coordination, and adaptively adjust the delay transition duration between different areas, where the music style template specifically includes an activity area, a leisure area, and a meeting area, and the music rhythm specifically includes dynamic music, soft music, and romantic music.

[0012] Further, before the step of collecting the pedestrian flow information of the hotel area and identifying the background noise change of the hotel area according to the pedestrian flow information, it further includes:

[0013] Based on the mobile personnel in the hotel area, apply the preset Kalman filter to track the movement trajectory of the mobile personnel;

[0014] Judge whether the movement trajectory leaves the hotel area;

[0015] If not, then according to the position information of the mobile personnel, count the number of people in the hotel area, calculate the population density in the hotel area based on the number of people, identify the activity pattern of the population density, and dynamically adjust the preset compensation algorithm for the population density based on the preset obstacle positions and the activity pattern in the hotel area to reduce the density calculation deviation in the hotel area.

[0016] Further, in the step of adaptively adjusting the delay transition duration between different areas, it further includes:

[0017] Identify the temporarily divided areas of the hotel area, and collect the types of external music played in adjacent areas from the temporarily divided areas;

[0018] Judge whether the type of external music matches the temporary use of the temporarily divided area;

[0019] If not, then collect the fluctuating decibel value of the external music in the temporarily divided area, dynamically adjust the music fade-in effect in the temporarily divided area based on the fluctuating decibel value, and balance the interference decibel of the external music in the temporarily divided area according to the music fade-in effect.

[0020] Further, in the step of generating the sound spectrum of the hotel area based on the background noise change and dividing the corresponding noise types from the sound spectrum, it further includes:

[0021] Divide the continuous audio signal of the background noise change into several small segment frames, obtain the frequency domain information of the several small segment frames based on the preset duration of the several small segment frames, and extract the corresponding spectral features from the frequency domain information;

[0022] Determine whether the spectral feature matches the noise type;

[0023] If so, calculate the noise intensity of the spectral feature in different frequency bands, generate energy distribution data of the signal frequency region according to the noise intensity, and identify the dominant frequency of the noise intensity based on the energy distribution data.

[0024] Further, in the step of determining whether the covered decibel data reaches the preset decibel threshold of the hotel area, it further includes:

[0025] Based on the preset microphone array in the hotel area, calculate the real-time decibel values within each time window, where the real-time decibel values specifically include the average decibel, the maximum decibel, and the minimum decibel;

[0026] Determine whether the duration of the real-time decibel value reaches a preset period;

[0027] If not, collect the instantaneous decibel of the real-time decibel value through the time window, trigger a preset noise over-limit event according to the instantaneous decibel, and mark the corresponding over-limit attributes from the noise over-limit event, where the over-limit attributes specifically include the over-limit period, the duration, and the over-limit amplitude.

[0028] Further, in the step of determining whether the noise type exceeds the preset type upper limit, it further includes:

[0029] Based on the preset directional sensor in the hotel area, identify the direction source of the noise type within the hotel area;

[0030] Determine whether the direction source is within the preset range of the hotel;

[0031] If not, generate a corresponding noise source from the hotel terminal, calculate the noise signal intensity calculated by the directional sensor according to the noise source, and dynamically adjust the volume upper limit of the background music based on the noise signal intensity and the area size of the hotel area.

[0032] Further, in the step of detecting the covered decibel data of the hotel area within a preset distance based on the preset volume sensor in the hotel area, it further includes:

[0033] Based on the pre-collected decibel data of the hotel area, distinguish the corresponding noise data from the decibel data;

[0034] Determine whether the noise data is synchronously collected to the hotel terminal;

[0035] If not, filter out the preset non-target noise from the noise data according to the preset frequency range of the hotel terminal, and generate a noise intensity distribution map of the hotel area, where the non-target noise specifically includes long-distance noise, reflection noise, and electrical interference noise.

[0036] The present invention also provides an intelligent distribution system for hotel regional background music, including:

[0037] A detection module, configured to detect the covered decibel data of the hotel area within a preset distance based on a volume sensor preset for the hotel area;

[0038] A judgment module, configured to judge whether the covered decibel data reaches the preset decibel threshold of the hotel area;

[0039] An execution module, configured to, if not, activate a thermal induction sensor preset for the hotel area, collect the pedestrian flow information of the hotel area, identify the change in background noise of the hotel area according to the pedestrian flow information, generate a sound spectrum of the hotel area based on the change in background noise, and divide the corresponding noise types from the sound spectrum, where the noise types specifically include human voice-related noise, mechanical equipment noise, and external environmental noise;

[0040] A second judgment module, configured to judge whether the noise types exceed a preset type upper limit;

[0041] A second execution module, configured to, if not exceeded, dynamically adjust the music rhythm of the background music based on a music style template preset for the hotel area, detect the regional coordination of the music rhythm, perform smooth transition on the background music by applying a preset resampling according to the regional coordination, and adaptively adjust the delay transition duration between different regions, where the music style template specifically includes an activity area, a leisure area, and a meeting area, and the music rhythm specifically includes dynamic music, soft music, and romantic music.

[0042] Further, it further includes:

[0043] A tracking module, configured to apply a preset Kalman filter to track the movement trajectory of a moving person based on the moving person within the hotel area;

[0044] A third judgment module, configured to judge whether the movement trajectory leaves the hotel area;

[0045] A third execution module, which, if the answer is no, is configured to count the number of people in the hotel area according to the location information of the moving people, calculate the population density in the hotel area based on the number of people, identify the activity pattern of the population density, and dynamically adjust the compensation algorithm preset for the population density based on the preset obstacle positions and the activity pattern in the hotel area, so as to reduce the density calculation deviation in the hotel area.

[0046] Further, the second execution module further includes:

[0047] An identification unit, configured to identify the temporarily divided areas in the hotel area and collect the types of external music played in adjacent areas from the temporarily divided areas;

[0048] A judgment unit, configured to judge whether the type of external music matches the temporary use of the temporarily divided area;

[0049] An execution unit, which, if the answer is no, is configured to collect the fluctuating decibel value of the external music in the temporarily divided area, dynamically adjust the music fade-in effect in the temporarily divided area based on the fluctuating decibel value, and balance the interference decibel of the external music in the temporarily divided area according to the music fade-in effect.

[0050] The present invention provides an intelligent allocation method and system for background music in a hotel area, which has the following beneficial effects:

[0051] The present invention can accurately sense the dynamic changes of the environment by using a volume sensor to detect the noise intensity in the hotel area in real time and combining the real-time pedestrian flow data collected by a thermal induction sensor. This collaborative work can ensure that the system quickly adjusts its response when the pedestrian flow changes, thereby reducing the fluctuation of the music quality and ensuring the coherence and comfort of the overall atmosphere. At the same time, when the type and intensity of the background noise in the hotel area change, the music rhythm is automatically adjusted according to the generated sound spectrum. This not only makes the background music more compatible with the surrounding environment, but also avoids the disharmony of the music caused by noise interference, thereby improving the music quality and the consistency of the hotel atmosphere. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a schematic flowchart of an embodiment of the intelligent allocation method for background music in a hotel area according to the present invention;

[0053] Figure 2 It is a structural block diagram of an embodiment of the intelligent allocation system for background music in a hotel area according to the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0054] It should be understood that the specific embodiments described herein are merely used to explain the present invention and are not used to limit the present invention. The implementation, functional features, and advantages of the present invention will be further described with reference to the embodiments and the accompanying drawings.

[0055] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0056] Refer to the attached Figure 1 , which is an intelligent allocation method for hotel regional background music in an embodiment of the present invention, including:

[0057] S1: Based on the volume sensors preset in the hotel area, detect the covered decibel data of the hotel area within a preset distance;

[0058] S2: Judge whether the covered decibel data reaches the preset decibel threshold of the hotel area;

[0059] S3: If not, activate the heat induction sensor preset in the hotel area, collect the pedestrian flow information of the hotel area, identify the change of background noise in the hotel area according to the pedestrian flow information, generate the sound spectrum of the hotel area based on the change of background noise, and divide the corresponding noise types from the sound spectrum. Among them, the noise types specifically include human voice-related noise, mechanical equipment noise, and external environmental noise;

[0060] S4: Judge whether the noise type exceeds the preset type upper limit;

[0061] S5: If not, based on the music style template preset in the hotel area, dynamically adjust the music rhythm of the background music, detect the regional coordination of the music rhythm, perform smooth transition on the background music by applying the preset resampling according to the regional coordination, and adaptively adjust the delay transition duration between different regions. Among them, the music style template specifically includes the activity area, the leisure area, and the meeting area, and the music rhythm specifically includes dynamic music, soft music, and romantic music.

[0062] In this embodiment, the system is based on volume sensors pre - installed in the hotel area. It detects the covered decibel data in the hotel area within a pre - set distance, and then the system determines whether these covered decibel data reach the pre - set decibel threshold in the hotel area to execute corresponding steps. For example, when the system determines that the covered decibel data in the hotel area reach the pre - set decibel threshold, the system will consider that the background music currently playing in the hotel area can already cover every corner of the hotel area. The system can adjust the style of the background music according to the current environment and area usage. For example, when the area is in a leisure state, the system can switch to soft or romantic music, while if it is in an activity area, the system can adjust it to dynamic or fast - paced music to meet the atmosphere requirements of different environments. At the same time, it checks whether the noise in the surrounding environment will affect the music experience. If the environmental noise (such as human voices, mechanical equipment, etc.) is significant, the system will further adjust the volume or music type to avoid affecting the clarity of the background music, and monitor and feedback in real - time, continuously tracking the volume and noise data in the hotel area. If the environment undergoes sudden changes, the system can respond in a timely manner, re - adjust the volume or music style to ensure that the music always coordinates with the environment. For example, when the system determines that the covered decibel data in the hotel area do not reach the pre - set decibel threshold, the system will consider that the background music currently playing in the hotel area cannot cover every corner of the hotel area. The system will activate the heat - sensing sensors pre - installed in the hotel area to collect the pedestrian flow information in the hotel area. According to this pedestrian flow information, it identifies the changes in the background noise in the hotel area, generates the sound spectrum of the hotel area based on different background noise changes, and classifies the corresponding noise types from the sound spectrum. The noise types specifically include human - voice - related noise, mechanical equipment noise, and external environmental noise. By analyzing different types of noise (such as human - voice - related noise, mechanical equipment noise, and external noise), the system can identify and classify the background noise to avoid the interference of noise affecting music playback. Each noise type will have different processing methods, which helps to adjust the appropriate volume or music style in high - noise areas to maintain the clarity and comfort of the background music. At the same time, based on the detected noise changes, the system generates a sound spectrum and classifies the noise, which helps to understand the audio situation of the current environment in more detail. This information can provide more accurate data support for subsequent background music adjustment. For example, when the noise is too loud, the system can automatically increase the volume of the music or select a music type with stronger penetration. And according to the real - time pedestrian flow data, the system can determine whether a certain area needs to adjust the volume or rhythm of the music due to changes in the pedestrian flow. For example, when the pedestrian flow is dense, the volume can be appropriately increased, and vice versa, to ensure that the music can meet the passenger flow requirements at different times and maintain the music atmosphere in the hotel. Then the system determines whether the noise types in the sound spectrum exceed the pre - set type upper limit to execute corresponding steps.For example, when the system determines that the types of noise in the sound spectrum exceed the preset upper limit of types, the system will consider that the noise in the current hotel area will affect the normal playback of background music. The system will confirm the types of noise exceeding in the sound spectrum and determine whether these noises belong to "interfering noises", such as excessive mechanical noise, external noise or excessive human voice interference. If multiple noise types exceed the threshold simultaneously, the system will separately judge the intensity of each noise type and the degree of interference to the background music. The noise types with higher intensity or frequent occurrence should be processed preferentially. At the same time, analyze whether the noise exceeding the threshold will affect the playback quality of the background music. For example, excessive mechanical noise may cause distortion in the low-frequency part of the music, and excessive human voices may cover up the melody of the background music. And when the noise type exceeds the threshold, the system first considers increasing the volume of the background music, especially in areas with strong noise interference. By increasing the volume, the background music can offset part of the interference and ensure that the music can be clearly transmitted to all areas. In areas with obvious noise interference, the system can dynamically adjust the music style according to the type of noise. For example, if there is a large amount of human voice noise, the system can automatically select more dynamic music with greater penetration. If it is affected by mechanical noise or external noise, the system can select music with a lower bass or higher low-frequency volume to enhance the permeability of the sound effect; For example, when the system determines that the types of noise in the sound spectrum do not exceed the preset upper limit of types, at this time the system will consider that the noise in the current hotel area will not affect the normal playback of background music. The system will dynamically adjust the music rhythm of the background music based on the pre-set music style template in the hotel area. The music style template specifically includes the activity area, the leisure area and the conference area. The music rhythm specifically includes dynamic music, soft music and romantic music. Detect the regional coordination of the music rhythm, and apply the pre-set resampling to perform smooth transition on the background music according to different regional coordinations, and adaptively adjust the delay transition duration between different regions;The system automatically selects the corresponding music style according to the different functions of the hotel areas (activity area, leisure area, conference area). This matching of functional areas and music styles ensures that the background music can be coordinated with the actual use of the area, creating an atmosphere that meets the area's needs. For example, dynamic music can be played in the activity area to stimulate vitality, soft music in the leisure area to create a relaxing atmosphere, and romantic or neutral music in the conference area to help with concentration. At the same time, it can dynamically detect the environmental changes in the current area, including the number of people and noise level, and automatically adjust the music rhythm. For example, when the activity area is crowded and active, the system automatically switches to a more dynamic music rhythm; conversely, if the number of people decreases, the system can choose a softer rhythm to keep the music consistent with the actual environmental state. And by detecting the music rhythm coordination in different areas and applying smooth transition technology based on the feedback, seamless sound transitions between areas are achieved. For example, the system can adaptively adjust the rhythm and style of the background music between the activity area and the leisure area to ensure that the sound effects in different areas do not produce a sudden feeling. Through resampling, the music quality and rhythm in different areas are ensured to be coordinated and consistent, avoiding broken or unnatural sound changes during music transitions.

[0063] It should be noted that the regional coordination of the music rhythm is detected, and based on the regional coordination, preset resampling is applied to smoothly transition the background music, and the delay transition duration between different areas is adaptively adjusted. The specific example is as follows:

[0064] Suppose there is a large transition area between the hotel lobby (activity area) and the leisure area. The background music in the lobby is fast-paced dynamic electronic dance music (BPM 130), while the background music in the leisure area is soft jazz (BPM 70); when a customer enters the leisure area from the lobby, the change in music rhythm is very obvious. To avoid a sudden feeling, the system needs to achieve a smooth transition through resampling.

[0065] Analyze the audio features. The system first detects the electronic dance music in the lobby, with a BPM of 130, high pitch and spectrum, giving a strong sense of rhythm; the background music in the leisure area is jazz with a BPM of 70, with a softer timbre, slower rhythm, and a more relaxed and quiet overall atmosphere.

[0066] Calculate the adjustment parameters. The system determines that the BPM of the lobby music needs to be slowed down from 130 to 70 during the transition to adapt to the atmosphere of the leisure area; at the same time, the system needs to adjust the rhythm through a time stretching algorithm while ensuring that the pitch remains unchanged, so that the high-energy feeling of the music gradually weakens.

[0067] Subsequently, resampling is applied. Using a time-stretching algorithm, the EDM music in the hall is adjusted from BPM 130 to BPM 100. In this way, the rhythm of the music gradually slows down, but the pitch remains unchanged. Then, the system further slowly adjusts it from BPM 100 to BPM 70 to adapt to the music style of the leisure area. The system keeps the pitch consistent during the process to avoid unnatural changes caused by too low or too high pitch.

[0068] Transition effect. In the transition part of the audio, the system uses a fade technique to gradually reduce the volume of the EDM in the hall and introduce the soft jazz music in the leisure area. Through resampling, the transition part of the audio not only maintains a smooth transition of the rhythm but also does not make the customer feel that the music suddenly interrupts or the sound quality is distorted.

[0069] When the customer enters the leisure area from the hall, the rhythm of the initial EDM music begins to gradually slow down. After a few seconds of transition, the rhythm of the music smoothly decreases from 130 BPM to 70 BPM and finally enters the soft jazz music in the leisure area. The whole process sounds smooth and natural, without obvious rhythm jumps or music disharmony, and the customer can hardly notice the occurrence of the transition.

[0070] In summary, the role of the resampling algorithm in the background music transition by the system is crucial. It can smoothly adjust the rhythm and pitch of the music, avoiding discomfort caused by music style or rhythm differences. By combining time stretching and pitch transformation, the hotel can automatically adjust the background music according to the needs of different areas to enhance the customer's music experience while ensuring the consistency of the overall atmosphere.

[0071] In this embodiment, before the step S3 of collecting the pedestrian flow information of the hotel area and identifying the change of the background noise of the hotel area according to the pedestrian flow information, it further includes:

[0072] S301: Based on the moving people in the hotel area, apply a preset Kalman filter to track the moving trajectories of the moving people.

[0073] S302: Determine whether the moving trajectory leaves the hotel area.

[0074] S303: If not, then according to the position information of the moving people, count the number of people in the hotel area, calculate the population density in the hotel area based on the number of people, identify the activity pattern of the population density, and based on the preset obstacle positions and the activity pattern in the hotel area, dynamically adjust the compensation algorithm preset for the population density to reduce the density calculation deviation in the hotel area.

[0075] In this embodiment, the system tracks the movement trajectories of mobile personnel within the hotel area by applying the pre-set Kalman filter. Then, the system determines whether these movement trajectories leave the hotel area to execute corresponding steps. For example, when the system determines that the movement trajectory of a mobile person has left the hotel area, the system will consider that the person is no longer in the area where background music needs to be adjusted, and the system should make corresponding adjustments. The system will synchronously update the real-time personnel in the hotel area. According to the decrease in real-time personnel, it indicates that the demand for background music playback in this area has decreased or disappeared. The system will appropriately adjust the music playback strategy in this area. At the same time, if there are still a small number of people in the area, the system may not completely stop playing, but lower the volume. For example, after the people in a meeting area leave, the system can lower the volume according to the needs of the remaining people to maintain the adaptability of the ambient music. And when people leave, the system can smoothly adjust the music through audio buffering or fading techniques to avoid abrupt sound effect switching. For example, when the background music switches from dynamic electronic music to relaxing jazz, a smooth transition (fading volume and rhythm) is used so that customers can hardly notice the change. For example, when the system determines that the movement trajectory of a mobile person has not left the hotel area, at this time, the system will consider that the person is still in the area where background music needs to be adjusted, but has changed his own orientation. The system will calculate the number of people in the hotel area in real time according to the position information of the mobile person. Based on these numbers of people, the system will calculate the personnel density in the hotel area, identify the activity patterns of the personnel density, and dynamically adjust the pre-set compensation algorithm for personnel density based on the pre-set obstacle positions and different personnel activity patterns in the hotel area to reduce the density calculation deviation in the hotel area. Based on the calculated personnel density, the system can dynamically adjust the volume and rhythm of the background music according to actual needs. For example, in areas with a large personnel density (such as meeting areas or lobbies), higher volume and more dynamic music can be played, while in areas with a small personnel density (such as rest areas or corridors), softer or quieter music is suitable. At the same time, by combining the personnel density and activity patterns in different areas, the background music can better meet the customer's needs. For example, when a large number of guests suddenly pour into a certain area (such as a restaurant), the system will automatically increase the volume and rhythm according to the density to enhance the atmosphere. When the people leave, the volume will be appropriately lowered to avoid the music being too noisy. And due to the mobility of people, the environment in the hotel area is constantly changing. By tracking personnel activities in real time, combining obstacle data and changes in personnel density in the environment, the system can flexibly respond to each change and optimize the music playback to ensure that the quality of the music remains consistent regardless of how the personnel change.

[0076] It should be noted that, based on the mobile personnel within the hotel area, applying the pre-set Kalman filter to track the movement trajectories of the mobile personnel, specific examples are as follows:

[0077] Suppose a large conference is being held in the lobby of a hotel, and the system needs to use Kalman filtering to track the movement trajectories of the participants in real time; to ensure that the volume adjustment of the background music can adapt to the personnel density and distribution in the lobby, the system needs to accurately know the position and movement trajectory of each participant;

[0078] Initialization: At the start of the conference, the thermal sensors detect the entry of the participants and confirm their positions through video surveillance; for example, when a participant enters the lobby, the system records their initial position, assuming the position is , and the speed is 0; at this time, the Kalman filter initializes its state (position, speed) with this data and starts working;

[0079] Prediction stage: Assume the conference hall is large and the participants move roughly along a fixed route in the lobby; the system uses Kalman filtering to predict the current state based on the previous state (such as the previous position and speed); for example, assume the estimated position at the previous moment is , and the speed is v, the system will predict the position of the person at the next moment ;

[0080] Observation update: Through real-time sensor data (such as thermal sensors or video surveillance), the system obtains the new position of the person; for example, the sensor shows that the current actual observation value is ; since the sensor data may contain errors (such as due to temporary occlusion or perspective issues), the actual position and the predicted position may deviate;

[0081] Filter update: The Kalman filter calculates the error between the predicted position and the actual observed position (referred to as "innovation"), and then feeds this error back into the prediction model to correct the actual position of the person; the Kalman filter adjusts the current predicted position and speed according to the magnitude of the error, and finally outputs a more accurate position of the person;

[0082] Trajectory tracking: As the person moves, the system continuously updates the position of the person based on the prediction and observation values; for example, when the person continues to move, the system continuously tracks their movement trajectory and updates the specific position where the person is located;

[0083] Final application: By accurately tracking the positions of the people, the system can calculate the personnel density in the lobby in real time and dynamically adjust the volume and rhythm of the background music accordingly; for example, when the personnel density in a certain area increases, the system can automatically increase the music volume in that area; when the personnel flow is relatively sparse, the music volume is automatically reduced.

[0084] It should be added that the activity pattern for identifying the personnel density is used to dynamically adjust the compensation algorithm preset for the personnel density based on the preset obstacle positions within the hotel area and the activity pattern, so as to reduce the density calculation deviation in the hotel area. The specific example is as follows:

[0085] In the conference hall of a certain hotel, an international conference was held; the participants of the conference needed to stay and interact in the hall, and the design of the hall included some large conference tables, display boards and other obstacles (such as pillars, temporary display boards, etc.); in order to ensure that the volume and rhythm of the background music match the personnel activities in the hall, the system needed to accurately estimate the personnel density;

[0086] For the identification of the personnel activity pattern, through thermal sensors and video monitoring, the system detected the personnel activity pattern in the hall: in some areas (such as in front of the podium), the personnel were relatively dense and in a static state; while in other areas (such as the interaction area of the participants), it showed a flowing pattern, with personnel moving frequently and at a relatively fast speed;

[0087] Regarding the consideration of obstacles, there are many large tables and display boards in the conference hall, and these obstacles will hinder the flow of personnel; the system can identify these obstacles and adjust the density calculation according to the positions of the obstacles; for example, in areas with more obstacles, the system will consider that the actual activity range of the personnel is smaller, thereby increasing the density estimate in this area;

[0088] For the dynamic adjustment of the compensation algorithm, in dense areas (such as the front row seats), the system uses a lower density calculation weight because most personnel are stationary and the dynamic density is lower; in flowing areas (such as corridors and rest areas), the system uses a higher density calculation weight because although the number of personnel is small, they are moving frequently, so the dynamic density is higher; the system also adjusts the density calculation weights of different areas according to the layout of the obstacles; for example, in areas with large tables, the personnel will be confined around the tables, and the system increases the "density attenuation coefficient" in this area;

[0089] For the optimization of the density calculation result, after dynamic compensation, the system accurately estimates the actual personnel density in different areas of the conference hall, avoiding deviations caused by different obstacles or activity patterns; for example, the system avoids misjudging areas with few but frequently moving personnel as low density, and also avoids misjudging areas with many but stationary personnel as too high density;

[0090] For the adjustment of the background music, based on these accurate personnel density data, the background music system can automatically adjust the music volume and rhythm; for example, in flowing areas, the system may increase the volume of the background music to cover more people; while in dense areas, it may reduce the volume or change the rhythm to avoid the music being too noisy and affecting communication;

[0091] In summary, the system can eliminate the calculation deviation caused by the activity pattern and obstacles through dynamic adjustment of the compensation algorithm, thereby ensuring more accurate estimation of the personnel density in the hotel area. In this way, the background music system can better adapt to the changes in the actual environment and provide a more comfortable auditory experience for guests.

[0092] In this embodiment, in step S5 of adaptively adjusting the delay transition duration between different regions, it further includes:

[0093] S51: Identify the temporarily divided areas of the hotel area, and collect the types of external music played in adjacent areas from the temporarily divided areas;

[0094] S52: Determine whether the type of external music matches the temporary use of the temporarily divided area;

[0095] S53: If not, collect the fluctuating decibel value of the external music in the temporarily divided area, and based on the fluctuating decibel value, dynamically adjust the music fade-in and fade-out effect in the temporarily divided area, and balance the interference decibel of the external music in the temporarily divided area according to the music fade-in and fade-out effect.

[0096] In this embodiment, the system identifies the temporarily divided areas in the hotel area, collects the types of external music played in the adjacent areas from these temporarily divided areas, and then the system determines whether the type of external music matches the temporary use of the temporarily divided areas to execute corresponding steps. For example, when the system determines that the type of external music played in the adjacent areas can match the temporary use of the temporarily divided areas, the system will consider that the music needs of the current temporarily divided area are consistent with the music type of the adjacent areas and can meet the atmosphere and functional requirements of this area. The system will continue to ensure the coordination and smooth transition of music styles between different areas, avoiding the destruction of the environmental atmosphere caused by mismatched music. Because if the external music type matches, the system can avoid unnecessary music switching operations, save energy and improve system efficiency. At the same time, it ensures the coordination of the volume in adjacent areas to avoid conflicts in the background music of different areas. For example, the volume switching between the activity area with a faster music rhythm and the leisure area that requires a quiet atmosphere should be as smooth as possible, and the system should also monitor the effect of music playback in the area and the feedback of guests in real time. If it is found that the background music in the temporary area is not suitable (such as guests do not like the current music style or the environment is too noisy), the system should automatically adjust the music type, rhythm and volume according to data analysis. For example, when the system determines that the type of external music played in the adjacent areas cannot match the temporary use of the temporarily divided areas, at this time, the system will consider that the music needs of the current temporarily divided area are inconsistent with those of the adjacent areas. The system will collect the fluctuating decibel values of the external music in the temporarily divided area and dynamically adjust the music fade-in effect in the temporarily divided area based on different fluctuating decibel values. According to this music fade-in effect, it will balance the interference decibels of the external music in the temporarily divided area. By collecting the fluctuating decibel values in real time and automatically adjusting the fade-in effect according to the change of music, the system can effectively balance the noise interference between different areas, reduce the interference of background music to guests, and improve the user experience. At the same time, through smooth transition and volume fade-in, the system can keep the music in the temporarily divided area consistent with the functional requirements of this area, while reducing the incoordination of the music in the adjacent areas, maintaining the sound coherence and atmosphere consistency of the hotel area. Even if the external music does not completely match the needs of the temporary area, the gradual transition of the music can make the guests' experience more comfortable, avoid abrupt volume changes, and can also be adjusted according to the real-time fluctuating decibel values. It can also dynamically adjust the music according to other changing factors in the environment (such as the number of people, people's activities, etc.). By analyzing and feedback the fluctuations of music in different areas in real time, the system can flexibly optimize the background music playback strategy according to the environmental changes in the temporary area and the adjacent areas, and avoid music conflicts between areas to the greatest extent. Through precise volume adjustment, the system can dynamically adjust the intensity of music playback in different areas, avoid unnecessary waste of music playback, especially in the temporary area, the system can fine-tune according to different volume and rhythm requirements to make the playback effect of music reach the best and avoid waste of energy.

[0097] It should be noted that the fluctuating decibel value of the external music within the temporarily divided area is collected, and based on the fluctuating decibel value, the music fade effect within the temporarily divided area is dynamically adjusted. According to the music fade effect, the interference decibel of the external music within the temporarily divided area is balanced. The specific example is as follows:

[0098] Suppose on the first floor of a hotel, there is a banquet area playing lively and dynamic background music; on the other adjacent side, there is a temporarily divided meeting area. At this time, an important business meeting is being held in the meeting area;

[0099] Problem, the volume of the dynamic music in the external banquet area is relatively large and the rhythm is fast. The guests in the meeting area may feel uncomfortable and unable to concentrate on discussing matters; the system needs to improve the environment in the meeting area by balancing the interference;

[0100] First, collect the fluctuating decibel value of the external music. The system real-time monitors the music volume in the banquet area through the volume sensors set in the meeting area; by analyzing this data, the system finds that the music volume in the banquet area suddenly increases, especially in the low-frequency part during a certain period, causing obvious interference;

[0101] Dynamically adjust the music fade effect based on the fluctuating decibel value. Once it is detected that the music volume in the banquet area exceeds the preset threshold, the system will start the fade adjustment mechanism; the specific adjustments include:

[0102] Volume attenuation: The system automatically reduces the low-frequency part of the volume in the banquet area, reducing the influence of the bass, which can reduce vibration and sound penetration;

[0103] Spectrum adjustment: Enhance the high-frequency part while reducing the output of the low-frequency part to avoid sound penetrating through the wall to the meeting area;

[0104] Rhythm change: When the music rhythm in the banquet area is too fast, the system will slightly reduce the rhythm speed to avoid the overly noisy sound rhythm affecting the atmosphere of the meeting;

[0105] Balance the interference decibel of the external music. After these adjustments, the volume in the banquet area will become milder and the interference will also decrease accordingly; the music influence in the meeting area is minimized. When the meeting continues, the guests are no longer disturbed by the external music and can maintain a better environmental atmosphere;

[0106] To sum up, through the real-time collection and dynamic adjustment of the fluctuating decibel value of the external music, the sound effect in the meeting area is effectively balanced, and the guests' experience is optimized. At the same time, the dynamic music in the banquet area does not completely stop, but is adjusted according to the surrounding environment, so that the needs of the two areas are coordinated.

[0107] In this embodiment, in step S3 of generating the sound spectrum of the hotel area according to the change of the background noise and dividing the corresponding noise types from the sound spectrum, the following steps are further included:

[0108] S31: Divide the continuous audio signal of the background noise change into several small segment frames, obtain the frequency domain information of the several small segment frames based on the preset duration of the several small segment frames, and extract the corresponding spectral features from the frequency domain information;

[0109] S32: Determine whether the spectral features match the noise types;

[0110] S33: If so, calculate the noise intensity of the spectral features in different frequency bands, generate the energy distribution data of the signal frequency region according to the noise intensity, and identify the dominant frequency of the noise intensity based on the energy distribution data.

[0111] In this embodiment, the system divides a continuous audio signal with changing background noise into several small segments of frames. Based on the preset duration of these several small segments of frames, the system obtains the frequency-domain information of these several small segments of frames, extracts the corresponding spectral features from the frequency-domain information, and then the system determines whether the spectral features match the noise types to execute corresponding steps. For example, when the system determines that the spectral features corresponding to the frequency-domain information cannot match the noise types, the system will consider that the characteristics of the current noise are inconsistent with the preset noise types. This situation may mean that the system is facing a new noise source or the noise types exceed the preset classification range. The system will automatically update or expand the noise type classification based on the continuously monitored spectral features, add the new noise pattern to the system's noise library, and at the same time enable the anomaly detection module to compare the known noise types with the current spectral features. If there are significant differences, it can be marked as abnormal noise and processed, and the volume or music style of the background music will be temporarily adjusted to a neutral and gentle mode to avoid further interference with the environment. For example, when the system determines that the spectral features corresponding to the frequency-domain information can match the noise types, at this time the system will consider that the characteristics of the current noise are consistent with the preset noise types. The system will calculate the noise intensity of the spectral features in different frequency bands, generate the energy distribution data of the signal frequency region according to the different noise intensities, and identify the dominant frequency of the noise intensity based on these energy distribution data. By calculating the noise intensity of the spectral features in different frequency bands and generating the energy distribution data, the system can more accurately understand the distribution characteristics of the noise. Each type of noise (such as human voice, mechanical equipment noise, external environmental noise, etc.) usually has different intensity and frequency characteristics in specific frequency bands. For example, the human voice may be more prominent in the middle frequency band, while the mechanical noise may be more significant in the low frequency band. By identifying the dominant frequency of the noise intensity, the system can clearly understand the source and impact of the noise. At the same time, by identifying the dominant frequency of the noise, the system can targetedly adjust the spectrum of the background music. For example, if it is recognized that the mechanical noise in the hotel area is relatively strong in the low frequency band, the system can effectively avoid the frequency band overlap between the noise and the music by adjusting the low frequency part of the background music (such as reducing the volume of the low frequency part or enhancing the high frequency part), thereby ensuring the comfort and clarity of the background music. And after identifying the dominant frequency of the noise intensity, the system can dynamically adjust the music rhythm, volume or sound quality, especially for the area overlapping with the noise frequency band, to reduce the interference of the noise to the guests, which can effectively improve the comfort of the hotel environment and ensure the coordination between the background music and the environmental noise.

[0112] It should be noted that calculating the noise intensity of the spectral features in different frequency bands, generating the energy distribution data of the signal frequency region according to the noise intensity, and identifying the dominant frequency of the noise intensity based on the energy distribution data are specifically exemplified as follows:

[0113] Suppose the noise sensor in the hotel's dining area captures a 10 - second background noise signal; this noise signal is a mixed signal containing multiple noise sources; the system will perform real - time analysis on this noise;

[0114] First, convert the noise signal into frequency - domain information. The system converts the 10 - second time - domain noise signal collected through Fourier transform into frequency - domain information; at this time, the system can obtain a series of frequency data points, which represent the intensity of the noise in different frequency bands;

[0115] Low - frequency band (20Hz - 500Hz): This frequency band mainly contains lower - frequency noise, usually from the low - frequency noise of kitchen operations (such as the knocking sound of cooking utensils, the bass of machines, etc.);

[0116] Mid - frequency band (500Hz - 2000Hz): This frequency band usually contains human voice frequencies, and the conversations between customers will be concentrated in this frequency band;

[0117] High - frequency band (2000Hz - 5000Hz): This frequency band may contain the sound of tableware collisions, the sound of glass collisions, etc.;

[0118] Then, calculate the noise intensity. The system calculates the noise intensity of each frequency band based on the spectrum data obtained from the Fourier transform to obtain the amplitude value of each frequency band; by integrating the amplitude values of each frequency band, the system can calculate the noise intensity of each frequency band;

[0119] Suppose the calculation results of the system's noise intensity are as follows:

[0120] Low - frequency band noise intensity: - 30 dB (low - frequency noise from the kitchen)

[0121] Mid - frequency band noise intensity: - 25 dB (from customer conversations)

[0122] High - frequency band noise intensity: - 40 dB (from tableware collisions)

[0123] Subsequently, generate energy distribution data. Based on the noise intensity of each frequency band, the system will generate an energy distribution diagram to reflect the noise energy of each frequency band; since the mid - frequency band (500Hz - 2000Hz) has a relatively high noise intensity, the system will identify this frequency band as the dominant frequency band of the noise;

[0124] The energy distribution data generated by the system is as follows:

[0125] Low - frequency band energy distribution: accounting for 30% of the total energy

[0126] Mid - frequency band energy distribution: accounting for 50% of the total energy

[0127] High - frequency band energy distribution: accounting for 20% of the total energy

[0128] Immediately identify the dominant frequency of the noise. Through the analysis of the spectrum, the system finds that the middle frequency band (500 Hz - 2000 Hz) has the maximum energy and is identified as the dominant frequency; the system will classify the noise source in this frequency band as "human voice-related noise" and generate corresponding dominant frequency data in this frequency band; after knowing that the dominant frequency is the noise in the middle frequency band, the system will take adjustment measures; in order to mask the human voice noise and create a more comfortable atmosphere, the system can enhance the middle frequency band of the background music and adjust the rhythm of the background music;

[0129] For example,

[0130] Increase the volume of the middle frequency band: By adjusting the equalizer of the audio equipment, increase the volume of the middle frequency band to balance the human voice noise in the restaurant;

[0131] Change the music type: If the background music in the restaurant is soft music, the system may switch to play slightly dynamic music to fill the middle frequency band noise;

[0132] Finally, dynamically balance the interference between the noise and the music. The system can also perform a gradual transition on the music according to the balance requirement between the noise intensity and the background music; for example, when the noise of tableware collision suddenly increases, the system can quickly reduce the interference of the tableware collision sound by automatically increasing the high frequency band of the background music to ensure that customers are not affected by the noise;

[0133] In summary, through the above process, the system can perform feedback adjustment, accurately identify the main noise sources and their frequency characteristics in the restaurant. At the same time, by analyzing the spectrum characteristics, the system identifies the main noise frequency band (such as the conversation sound in the middle frequency band), and according to the dominant frequency of the noise, the system automatically adjusts the background music, enhances certain frequency bands to mask the noise, and creates a more harmonious environment.

[0134] In this embodiment, in step S2 of determining whether the covered decibel data reaches the preset decibel threshold of the hotel area, it further includes:

[0135] S21: Based on the preset microphone array in the hotel area, calculate the real-time decibel values within each time window, where the real-time decibel values specifically include the average decibel, the maximum decibel, and the minimum decibel;

[0136] S22: Determine whether the duration of the real-time decibel value reaches a preset time period;

[0137] S23: If not, collect the instantaneous decibel of the real-time decibel value through the time window, trigger a preset noise over-standard event according to the instantaneous decibel, and mark the corresponding over-standard attributes from the noise over-standard event, where the over-standard attributes specifically include the over-standard time period, the duration, and the over-standard amplitude.

[0138] In this embodiment, the system calculates the real-time decibel values within each time window based on a microphone array pre-set within the hotel area. The real-time decibel values specifically include the average decibel, the maximum decibel, and the minimum decibel. Then, the system determines whether the duration of these real-time decibel values reaches a pre-set time period to execute corresponding steps. For example, when the system determines that the duration of the real-time decibel values within a certain time window can reach the pre-set time period, the system will consider that the background music in the hotel area can continue to play. The system will continuously monitor the real-time decibel values to prevent noise changes in subsequent time windows. If the noise value exceeds the predetermined range or continues to increase, the system can timely adjust the playback strategy of the background music and simultaneously adjust the background music to a stable mode, maintaining a consistent volume, style, and rhythm. For example, in the restaurant area, the volume of the background music can be set to a relatively moderate level to ensure that the music covers all areas and is coordinated with the environment, and the volume of the background music is dynamically adjusted according to the real-time calculated average decibel value. For example, when the decibel value is low, the system can appropriately increase the volume of the background music to cover the entire area, while when the noise level is high, the system may appropriately decrease the volume to avoid the music being too obtrusive or conflicting with the environment. For example, when the system determines that the duration of the real-time decibel values within a certain time window does not reach the pre-set time period, at this time, the system will consider that the background music in the hotel area is difficult to continue playing, and there is noise affecting the normal playback of the background music. The system will collect the instantaneous decibel of the real-time decibel value through the time window, trigger a pre-set noise exceeding standard event according to the different instantaneous decibels, and mark the corresponding exceeding standard attributes from the noise exceeding standard event. The exceeding standard attributes specifically include the exceeding standard time period, the duration, and the exceeding standard amplitude. By collecting the real-time decibel value and analyzing its instantaneous change, the system can timely identify a sudden increase or abnormal fluctuation in the noise level. By marking and recording the noise exceeding standard events (such as the exceeding standard time period, the duration, and the exceeding standard amplitude), it can help hotel managers track and locate the noise interference source, provide more accurate noise data. At the same time, by timely identifying the noise interference, the system can optimize the playback effect of the background music to make it more in line with the needs of customers and the environmental conditions. The continuous background music will not affect the customer experience due to sudden noise interference, thereby enhancing the overall atmosphere of the hotel and increasing the comfort of customers. And by long-term collecting the relevant data of the noise exceeding standard events, the system can generate a trend analysis report of noise management to help the hotel management better understand the noise source and change trend, which is helpful for making better facility planning, environmental design, and sound system optimization in the future.

[0139] It should be noted that by means of the time window, the instantaneous decibel of the real-time decibel value is collected, a pre-set noise exceeding standard event is triggered according to the instantaneous decibel, and the corresponding exceeding standard attributes are marked from the noise exceeding standard event. The specific examples are as follows:

[0140] Suppose in the conference room area of a hotel, during a specific period, the playing of background music is interfered by external noises (such as the noise of kitchen equipment, external traffic noise, etc.); the hotel system sets a noise threshold of 70 decibels, and when the noise exceeds this value, the system will automatically record and process it;

[0141] Suppose the system collects real-time decibel data every 10 seconds and calculates the instantaneous decibel value; for example, during a certain period, the system collects the following decibel data (unit: dB):

[0142] 12:00:00: 68 dB;

[0143] 12:00:10: 72 dB;

[0144] 12:00:20: 74 dB;

[0145] 12:00:30: 75 dB;

[0146] 12:00:40: 76 dB;

[0147] 12:00:50: 73 dB;

[0148] Trigger the noise over-limit event. Within the time window (every 10 seconds), if the instantaneous decibel exceeds the set noise threshold (assuming the threshold is 70 dB), the system will automatically trigger the noise over-limit event;

[0149] During the period from 12:00:10 to 12:00:50, all the decibel values exceed 70 dB. Therefore, the system considers that there is a noise over-limit during this period and marks the over-limit attribute;

[0150] Over-limit period: The system will record the specific time period when the noise over-limit occurs, such as "12:00:10 to 12:00:50";

[0151] Duration: The system will calculate and record the duration of the over-limit event, such as: "40 seconds";

[0152] Over-limit amplitude: The system calculates the difference between each instantaneous decibel value and the threshold. For example, at 12:00:10, the instantaneous decibel is 72 dB, exceeding the threshold of 70 dB, and the over-limit amplitude is 2 dB; at 12:00:20, the instantaneous decibel is 74 dB, and the over-limit amplitude is 4 dB, and so on;

[0153] Based on the recorded excessive noise attributes, the system can trigger corresponding response measures during the periods of excessive noise; for example, the system may adjust the volume of the background music, pause the music playback, or change the type of the background music to reduce the impact of the noise on customers; the system will also generate a noise interference report for the hotel management to view, and the report may include the excessive noise periods, durations, excessive noise amplitudes, and possible interference sources (such as the kitchen, traffic, etc.);

[0154] In summary, through the instantaneous decibel acquisition based on the time window, the triggering of noise excessive events, and the marking of excessive noise attributes, the system can help the hotel identify noise problems in real time and make responses based on detailed noise data. This can not only optimize the playback effect of the background music, but also improve the accuracy of environmental management, provide a scientific noise control solution for the hotel, and enhance the comfort and satisfaction of customers.

[0155] In this embodiment, in step S4 of determining whether the type of the noise exceeds the preset upper limit of the type, it further includes:

[0156] S41: Based on the directional sensors preset in the hotel area, identify the direction source of the type of the noise in the hotel area;

[0157] S42: Determine whether the direction source is within the preset range of the hotel;

[0158] S43: If not, generate a corresponding noise source from the hotel terminal, calculate the noise signal intensity calculated by the directional sensor according to the noise source, and dynamically adjust the upper limit of the volume of the background music based on the noise signal intensity and the area size of the hotel area.

[0159] In this embodiment, the system identifies the direction source of the noise type in the hotel area based on the direction sensors preset in the hotel area, and then the system determines whether the direction source is within the preset range of the hotel to execute corresponding steps; for example, when the system determines that the direction source of the noise type in the hotel area is not within the preset range of the hotel, the system will consider that the noise source comes from outside the hotel area or exceeds the effective monitoring range set within the hotel area. The system can further optimize the hotel's noise control strategy by combining the direction of the noise source and its origin. If it is found that the noise control system in the hotel area often captures noise sources that do not belong to the hotel, it is necessary to re-evaluate the coverage range of the direction sensors and adjust the sensor configuration to enable it to more accurately identify and filter out external noise. At the same time, a noise report is automatically generated, recording the direction source, intensity, duration, and whether it affects the internal environment of the hotel. The hotel management team can analyze the noise impact of the external environment through the report and adjust or optimize the hotel's operation as needed; for example, when the system determines that the direction source of the noise type in the hotel area is within the preset range of the hotel, the system will consider that the noise source comes from within the hotel area. The system will generate a corresponding noise source at the hotel terminal. Based on this noise source, the noise signal intensity calculated by the direction sensor is calculated. According to different noise signal intensities and the area size of the hotel area, the upper limit of the background music volume is dynamically adjusted; the system can identify the noise source in the hotel area through the direction sensor and determine whether it needs to affect the volume adjustment of the background music based on the intensity of the noise source. If the noise source comes from a specific area within the hotel (such as the kitchen, laundry room, etc.), the system can accurately judge and automatically adjust the background music volume in the nearby area to avoid excessive noise affecting the customer experience. At the same time, considering the size of different hotel areas, the system can dynamically adjust the volume upper limit according to the relationship between the noise signal intensity and the area size. For example, in a smaller area (such as a small meeting room or a private space), when the noise is low, the background music volume will be low, while in a larger area (such as the lobby or banquet hall), when the noise is strong, the system will appropriately increase the volume to ensure that the music covers the entire area and avoid external noise interfering with the customer experience. And through detecting the noise source and its intensity for personalized music adjustment, the background music playback modes in different areas and different environments will be more in line with customer needs. For example, in a quiet area (such as the quiet corridor or study of the hotel), the background music will remain at a low volume, while in some activity areas (such as the dance floor, banquet hall, etc.) of the hotel, the volume will be appropriately increased as the noise source changes to ensure that each customer can obtain the best background music experience in different areas.

[0160] In this embodiment, in step S1 of detecting the covered decibel data of the hotel area within a preset distance based on the volume sensor preset in the hotel area, it further includes:

[0161] S11: Based on the pre - collected decibel data of the hotel area, distinguish the corresponding noise data from the decibel data;

[0162] S12: Determine whether the noise data is synchronously collected to the hotel terminal;

[0163] S13: If not, according to the preset frequency range of the hotel terminal, filter out the preset non - target noise from the noise data to generate the noise intensity distribution map of the hotel area, where the non - target noise specifically includes long - distance noise, reflection noise, and electrical interference noise.

[0164] In this embodiment, the system distinguishes the corresponding noise data from the decibel data pre-collected in the hotel area, and then the system determines whether these noise data are synchronously collected to the hotel terminal to perform corresponding steps; for example, when the system determines that the noise data in the decibel data can be synchronously collected to the hotel terminal, the system will consider that the noise information has been accurately captured and successfully transmitted to the hotel terminal for processing. The system will analyze whether the noise will affect the hotel environment. If the noise exceeds the preset noise threshold, the system will activate an automatic noise management mechanism, such as adjusting the background music volume, activating noise suppression measures, etc. For example, when the noise comes from the guest room corridor or the meeting room, the system may automatically increase the volume of the background music, or activate the environmental noise isolation equipment. At the same time, based on the synchronous update of the noise data, the background music of each area of the hotel is adjusted. For example, if the noise in a certain area reaches a certain intensity, the system can automatically increase the volume of the background music in that area to balance the impact of environmental noise on customers. On the contrary, if the noise is low, the background music volume can be lowered to maintain a quiet and comfortable environment, and a response is made when initially identifying and synchronizing the noise data. The system can also continuously monitor the noise changes and optimize according to the change trend. For example, if the noise intensity in an area fluctuates at different time periods, the system can automatically adjust the noise management strategy to ensure long-term comfort and environmental quality; for example, when the system determines that the noise data in the decibel data cannot be synchronously collected to the hotel terminal, at this time the system will consider that the noise information cannot be prepared to be captured. The system will filter out the preset non-target noises from the noise data according to the preset frequency range of the hotel terminal. The non-target noises specifically include long-distance noises, reflected noises, and electrical interference noises, and generate a noise intensity distribution map of the hotel area; by filtering out long-distance noises, reflected noises, and electrical interference noises, the system can ensure that only the noise data related to the hotel area is processed, which helps to exclude unnecessary noise interference, avoid misjudgment or incorrect noise source analysis, thereby improving the data accuracy and the accuracy of noise analysis. At the same time, when the noise information cannot be fully synchronized, the system can still obtain the general noise distribution situation through filtering and data processing. This enables the system to continuously monitor the hotel environment and still be able to respond without complete noise data, such as dynamically adjusting the volume of the background music or turning on the noise suppression equipment, so as to ensure that the comfort of customers is not affected. And by filtering out unnecessary noise types, the system can reduce the amount of data to be processed. This can not only reduce the computational and storage burden, but also improve the data processing speed, ensuring the efficiency of real-time monitoring and adjustment. Especially in a hotel environment with multiple areas and multiple sensors, reducing the interference of non-target noises helps to make decisions more quickly and accurately.

[0165] Reference appendix Figure 2 , which is an intelligent distribution system for hotel regional background music in an embodiment of the present invention, includes:

[0166] The detection module 10 is configured to detect the covered decibel data of the hotel area within a preset distance based on a volume sensor preset for the hotel area;

[0167] The judgment module 20 is configured to judge whether the covered decibel data reaches a preset decibel threshold of the hotel area;

[0168] The execution module 30 is configured to, if not, activate a thermal induction sensor preset for the hotel area, collect the pedestrian flow information of the hotel area, identify the change in background noise of the hotel area according to the pedestrian flow information, generate a sound spectrum of the hotel area based on the change in background noise, and divide corresponding noise types from the sound spectrum, where the noise types specifically include human voice-related noise, mechanical equipment noise, and external environmental noise;

[0169] The second judgment module 40 is configured to judge whether the noise types exceed a preset upper limit of types;

[0170] The second execution module 50 is configured to, if not exceeded, dynamically adjust the music rhythm of the background music based on a music style template preset for the hotel area, detect the regional coordination of the music rhythm, perform smooth transition on the background music by applying a preset resampling according to the regional coordination, and adaptively adjust the delay transition duration between different regions, where the music style template specifically includes an activity area, a leisure area, and a conference area, and the music rhythm specifically includes dynamic music, soft music, and romantic music.

[0171] In this embodiment, the detection module 10 detects the covered decibel data in the hotel area based on the volume sensors pre-set in the hotel area within a pre-set distance, and then the judgment module 20 determines whether these covered decibel data reach the decibel threshold pre-set for the hotel area to execute corresponding steps; for example, when the system determines that the covered decibel data in the hotel area reach the pre-set decibel threshold, the system will consider that the background music currently played in the hotel area can already cover every corner of the hotel area. The system can adjust the style of the background music according to the current environment and area usage. For example, when the area is in a leisure state, the system can switch to soft or romantic music, and if it is in the activity area, the system can adjust it to dynamic or fast-paced music to meet the atmosphere requirements of different environments. At the same time, it checks whether the noise in the surrounding environment will affect the music experience. If the environmental noise (such as human voices, mechanical equipment, etc.) is relatively significant, the system will further adjust the volume or music type to avoid affecting the clarity of the background music, and monitor and feedback in real time, continuously tracking the volume and noise data in the hotel area. If the environment undergoes sudden changes, the system can respond in a timely manner, re-adjust the volume or music style to ensure that the music always coordinates with the environment; for example, when the system determines that the covered decibel data in the hotel area do not reach the pre-set decibel threshold, the execution module 30 at this time will consider that the background music currently played in the hotel area cannot cover every corner of the hotel area. The system will activate the heat induction sensors pre-set in the hotel area to collect the pedestrian flow information in the hotel area. According to this pedestrian flow information, it identifies the changes in the background noise in the hotel area, generates the sound spectrum of the hotel area based on different background noise changes, and divides the corresponding noise types from the sound spectrum. The noise types specifically include human voice-related noise, mechanical equipment noise, and external environmental noise; by analyzing different types of noise (such as human voice-related noise, mechanical equipment noise, and external noise), the system can identify and classify the background noise to avoid the interference of noise affecting the music playback. Each noise type will have different processing methods, which helps to adjust the appropriate volume or music style in high-noise areas to maintain the clarity and comfort of the background music. At the same time, based on the detected noise changes, the system generates the sound spectrum and classifies the noise, which helps to more carefully understand the audio situation of the current environment. This information can provide more accurate data support for subsequent background music adjustment. For example, when the noise is too loud, the system can automatically increase the volume of the music or select a more penetrating music type, and according to the real-time pedestrian flow data, the system can determine whether a certain area needs to adjust the volume or rhythm of the music due to changes in the pedestrian flow. For example, when the pedestrian flow is dense, the volume can be appropriately increased, and vice versa, to ensure that the music can meet the passenger flow requirements at different times and maintain the music atmosphere in the hotel; then the second judgment module 40 determines whether the noise types in the sound spectrum exceed the pre-set type upper limit to execute corresponding steps;For example, when the system determines that the types of noise in the sound spectrum exceed the preset upper limit of types, the system will consider that the noise in the current hotel area will affect the normal playback of the background music. The system will confirm the types of noise exceeding the limit in the sound spectrum and determine whether these noises belong to "interfering noises", such as excessive mechanical noise, external noise or excessive human voice interference. If multiple noise types exceed the threshold simultaneously, the system will separately judge the intensity of each noise type and the degree of interference to the background music. The noise types with higher intensity or frequent occurrence should be processed preferentially. At the same time, it analyzes whether the noise exceeding the threshold will affect the playback quality of the background music. For example, excessive mechanical noise may cause distortion in the low-frequency part of the music, and excessive human voices may cover up the melody of the background music. And when the noise type exceeds the threshold, the system first considers increasing the volume of the background music, especially in areas with strong noise interference. By increasing the volume, the background music can offset part of the interference and ensure that the music can be clearly transmitted to all areas. In areas with obvious noise interference, the system can dynamically adjust the music style according to the type of noise. For example, if there is a large amount of human voice noise, the system can automatically select more dynamic music with greater penetration. If it is affected by mechanical noise or external noise, the system can select music with a lower pitch or a higher low-frequency volume to enhance the permeability of the sound effect. For example, when the system determines that the types of noise in the sound spectrum do not exceed the preset upper limit of types, at this time, the second execution module 50 will consider that the noise in the current hotel area will not affect the normal playback of the background music. The system will dynamically adjust the music rhythm of the background music based on the preset music style template in the hotel area. The music style template specifically includes the activity area, the leisure area and the conference area. The music rhythm specifically includes dynamic music, soft music and romantic music. It detects the regional coordination of the music rhythm and applies the preset resampling to smoothly transition the background music according to different regional coordinations, and adaptively adjusts the delay transition duration between different regions;The system automatically selects the corresponding music style according to the different functions of the hotel areas (activity area, leisure area, conference area). The matching of the functional area and the music style ensures that the background music can be coordinated with the actual use of the area, creating an atmosphere that meets the area's needs. For example, dynamic music can be played in the activity area to stimulate vitality, soft music in the leisure area to create a relaxing atmosphere, and romantic or neutral music in the conference area to help with concentration. At the same time, it can dynamically detect the environmental changes in the current area, including the number of people and the noise level, and automatically adjust the music rhythm. For example, when the number of people in the activity area is dense and active, the system automatically switches to a more dynamic music rhythm. Conversely, if the number of people decreases, the system can select a soft rhythm to keep the music consistent with the actual environmental state. And by detecting the music rhythm coordination in different areas and applying smooth transition technology based on its feedback, seamless audio transitions between areas can be achieved. For example, the system can adaptively adjust the rhythm and style of the background music between the activity area and the leisure area to ensure that the audio effects in different areas do not produce a sudden feeling. Through resampling, the music quality and rhythm in different areas are ensured to be coordinated and consistent, avoiding broken or unnatural audio changes during music transitions.

[0172] In this embodiment, it further includes:

[0173] A tracking module for applying a preset Kalman filter to track the movement trajectory of the moving personnel based on the moving personnel within the hotel area;

[0174] A third judgment module for judging whether the movement trajectory leaves the hotel area;

[0175] A third execution module for, if not, counting the number of people in the hotel area according to the position information of the moving personnel, calculating the population density in the hotel area based on the number of people, identifying the activity pattern of the population density, and dynamically adjusting the compensation algorithm preset for the population density based on the preset obstacle positions and the activity pattern in the hotel area to reduce the density calculation deviation in the hotel area.

[0176] In this embodiment, the system tracks the movement trajectory of mobile personnel within the hotel area by applying the pre-set Kalman filter based on the mobile personnel within the hotel area. Then, the system determines whether these movement trajectories leave the hotel area to execute corresponding steps. For example, when the system determines that the movement trajectory of a mobile personnel has left the hotel area, the system will consider that the person is no longer in the area where background music needs to be adjusted, and the system should make corresponding adjustments. The system will synchronously update the real-time personnel in the hotel area. According to the decrease in real-time personnel, it indicates that the demand for background music playback in this area has decreased or disappeared. The system will appropriately adjust the music playback strategy in this area. At the same time, if there are still a small number of people in the area, the system may not completely stop playing, but reduce the volume. For example, after the people in a meeting area leave, the system can reduce the volume according to the needs of the remaining people to maintain the adaptability of the ambient music. And when people leave, the system can smoothly adjust the music through audio buffering or fade techniques to avoid abrupt sound effect switching. For example, when the background music switches from dynamic electronic music to relaxing jazz, a smooth transition (fading volume and rhythm) is used so that customers can hardly notice the change. For example, when the system determines that the movement trajectory of a mobile personnel has not left the hotel area, at this time, the system will consider that the person is still in the area where background music needs to be adjusted, but has just changed its own orientation. The system will count the number of people in the hotel area in real time according to the position information of the mobile personnel. Based on these numbers of people, calculate the population density in the hotel area, identify the activity patterns of the population density, and dynamically adjust the pre-set compensation algorithm for population density based on the pre-set obstacle positions and different people's activity patterns in the hotel area to reduce the density calculation deviation in the hotel area. The system can dynamically adjust the volume and rhythm of the background music according to the calculated population density. For example, areas with a large population density (such as meeting areas or lobbies) can play music with a higher volume and a more dynamic rhythm, while areas with a small population density (such as rest areas or corridors) are suitable for playing softer or quieter music. At the same time, by combining the population density and activity patterns of different areas, the background music can better meet the needs of customers. For example, when a large number of guests suddenly pour into a certain area (such as a restaurant), the system will automatically increase the volume and rhythm according to the density to enhance the atmosphere. When people leave, the volume will be appropriately reduced to avoid the music being too noisy. And due to the mobility of people, the environment in the hotel area will constantly change. The system can flexibly respond to each change and optimize the music playback by tracking people's activities in real time, combining obstacle data in the environment and changes in population density, ensuring that the quality of the music remains consistent regardless of how people move.

[0177] In this embodiment, the second execution module further includes:

[0178] An identification unit, configured to identify the temporarily divided areas of the hotel area and collect the types of external music played in adjacent areas from the temporarily divided areas;

[0179] A judgment unit, configured to judge whether the external music type matches the temporary use of the temporarily divided area;

[0180] An execution unit, configured to, if not, collect the fluctuating decibel value of the external music in the temporarily divided area, dynamically adjust the music fade effect in the temporarily divided area based on the fluctuating decibel value, and balance the interference decibel of the external music in the temporarily divided area according to the music fade effect.

[0181] In this embodiment, the system identifies the temporarily divided areas in the hotel area, collects the types of external music played in the adjacent areas from these temporarily divided areas, and then the system determines whether the type of external music matches the temporary use of the temporarily divided areas to execute corresponding steps. For example, when the system determines that the type of external music played in the adjacent areas can match the temporary use of the temporarily divided areas, the system will consider that the music requirements in the current temporarily divided area are consistent with the music type in the adjacent areas and can meet the atmosphere and functional requirements of this area. The system will continue to ensure the coordination and smooth transition of music styles between different areas, avoiding the destruction of the environmental atmosphere caused by mismatched music. Because if the external music type matches, the system can avoid unnecessary music switching operations, save energy and improve system efficiency. At the same time, it ensures the coordination of the volume in adjacent areas to avoid conflicts in the background music of different areas. For example, the volume switching between the activity area with a faster music rhythm and the leisure area that requires a quiet atmosphere should be as smooth as possible, and the system also monitors the effect of music playback in the area and the feedback from guests in real time. If it is found that the background music in the temporary area is not suitable (such as guests not liking the current music style or the environment being too noisy), the system should automatically adjust the music type, rhythm and volume according to data analysis. For example, when the system determines that the type of external music played in the adjacent areas cannot match the temporary use of the temporarily divided areas, at this time the system will consider that the music requirements in the current temporarily divided area are inconsistent with those in the adjacent areas. The system will collect the fluctuating decibel values of the external music in the temporarily divided area and, based on different fluctuating decibel values, dynamically adjust the music fade-in effect in the temporarily divided area. According to this music fade-in effect, it balances the interference decibels of the external music in the temporarily divided area. By collecting the fluctuating decibel values in real time and automatically adjusting the fade-in effect according to the change of music, the system can effectively balance the noise interference between different areas, reduce the interference of the background music to guests, and improve the user experience. At the same time, through smooth transition and volume fade-in, the system can keep the music in the temporarily divided area consistent with the functional requirements of this area, while reducing the disharmony of the music in the adjacent areas, maintaining the sound coherence and atmosphere consistency of the hotel area. Even if the external music does not completely match the requirements of the temporary area, the gradual transition of the music can make the guests' experience more comfortable, avoiding sudden volume changes, and can also be adjusted according to the real-time fluctuating decibel values. It can also dynamically adjust the music according to other changing factors in the environment (such as the number of people, people's activities, etc.). By analyzing and feedback the fluctuations of music in real time in different areas, the system can flexibly optimize the background music playback strategy according to the environmental changes in the temporary area and the adjacent areas, and avoid music conflicts between areas to the greatest extent. And through precise volume adjustment, the system can dynamically adjust the intensity of music playback in different areas, avoiding waste of unnecessary music playback. Especially in the temporary area, the system can fine-tune according to different volume and rhythm requirements to make the playback effect of the music reach the best and avoid waste of energy.

[0182] In this embodiment, the execution module further includes:

[0183] An extraction unit, configured to divide the continuous audio signal with background noise variation into several small segment frames, obtain the frequency-domain information of the several small segment frames based on the preset duration of the several small segment frames, and extract corresponding spectral features from the frequency-domain information;

[0184] A second determination unit, configured to determine whether the spectral features match the noise type;

[0185] A second execution unit, configured to, if so, calculate the noise intensity of the spectral features in different frequency bands, generate energy distribution data of the signal frequency region according to the noise intensity, and identify the dominant frequency of the noise intensity based on the energy distribution data.

[0186] In this embodiment, the system divides the continuous audio signal with background noise changes into several small segment frames. Based on the preset duration of these several small segment frames, the frequency-domain information of these several small segment frames is obtained, and the corresponding spectral features are extracted from the frequency-domain information. Then, the system determines whether the spectral features match the noise types to execute the corresponding steps. For example, when the system determines that the spectral features corresponding to the frequency-domain information cannot match the noise types, the system will consider that the characteristics of the current noise are inconsistent with the preset noise types. This situation may mean that the system is facing a new noise source, or the noise types exceed the preset classification range. The system will automatically update or expand the noise type classification based on the continuously monitored spectral features, add the new noise pattern to the noise library of the system, and at the same time enable the anomaly detection module to compare the known noise types with the current spectral features. If there are significant differences, it can be marked as abnormal noise and processed, and the volume or music style of the background music will be temporarily adjusted to a neutral and gentle mode to avoid further interference with the environment. For example, when the system determines that the spectral features corresponding to the frequency-domain information can match the noise types, at this time the system will consider that the characteristics of the current noise are consistent with the preset noise types. The system will calculate the noise intensity of the spectral features in different frequency bands, generate the energy distribution data of the signal frequency region according to the different noise intensities, and identify the dominant frequency of the noise intensity based on these energy distribution data. By calculating the noise intensity of the spectral features in different frequency bands and generating the energy distribution data, the system can more accurately understand the distribution characteristics of the noise. Each type of noise (such as human voice, mechanical equipment noise, external environmental noise, etc.) usually has different intensity and frequency characteristics in a specific frequency band. For example, the human voice may be more prominent in the middle frequency band, while the mechanical noise may be more significant in the low frequency band. By identifying the dominant frequency of the noise intensity, the system can clearly understand the source and impact of the noise. At the same time, by identifying the dominant frequency of the noise, the system can adjust the spectrum of the background music targeted. For example, if it is identified that the mechanical noise in the hotel area is relatively strong in the low frequency band, the system can effectively avoid the frequency band overlap between the noise and the music by adjusting the low frequency part of the background music (such as reducing the volume of the low frequency part or enhancing the high frequency part), so as to ensure the comfort and clarity of the background music. And after the dominant frequency of the noise intensity is identified, the system can dynamically adjust the music rhythm, volume or sound quality, especially for the area overlapping with the noise frequency band, to reduce the interference of the noise to the guests, which can effectively improve the comfort of the hotel environment and ensure the coordination between the background music and the environmental noise.

[0187] In this embodiment, the judgment module further includes:

[0188] A calculation unit, configured to calculate the real-time decibel values within each time window based on the preset microphone array in the hotel area, where the real-time decibel values specifically include the average decibel, the maximum decibel, and the minimum decibel;

[0189] A third judgment unit, configured to judge whether the duration of the real-time decibel value reaches a preset time period;

[0190] A third execution unit, configured to, if the judgment result is negative, collect the instantaneous decibel of the real-time decibel value through the time window, trigger a preset noise exceeding standard event according to the instantaneous decibel, and mark corresponding exceeding standard attributes from the noise exceeding standard event, wherein the exceeding standard attributes specifically include an exceeding standard time period, a duration, and an exceeding standard amplitude.

[0191] In this embodiment, the system calculates the real-time decibel values within each time window based on a pre-installed microphone array in the hotel area. The real-time decibel values specifically include the average decibel, the maximum decibel, and the minimum decibel. Then, the system determines whether the duration of these real-time decibel values reaches a pre-set time period to execute corresponding steps. For example, when the system determines that the duration of the real-time decibel values within a certain time window can reach the pre-set time period, the system will consider that the background music in the hotel area can continue to play. The system will continuously monitor the real-time decibel values to prevent noise changes in subsequent time windows. If the noise value exceeds the predetermined range or continues to increase, the system can timely adjust the playback strategy of the background music and simultaneously adjust the background music to a stable mode, maintaining a consistent volume, style, and rhythm. For example, in the restaurant area, the volume of the background music can be set to a relatively moderate level to ensure that the music covers all areas and is coordinated with the environment, and the volume of the background music can be dynamically adjusted according to the real-time calculated average decibel value. For example, when the decibel value is low, the system can appropriately increase the volume of the background music to cover the entire area, while when the noise level is high, the system may appropriately reduce the volume to avoid the music being too obtrusive or conflicting with the environment. For example, when the system determines that the duration of the real-time decibel values within a certain time window does not reach the pre-set time period, the system will consider that the background music in the hotel area is difficult to continue playing and there is noise affecting the normal playback of the background music. The system will collect the instantaneous decibel of the real-time decibel value through the time window and trigger a pre-set noise exceeding standard event according to different instantaneous decibels, and mark the corresponding exceeding standard attributes from the noise exceeding standard event. The exceeding standard attributes specifically include the exceeding standard time period, the duration, and the exceeding standard amplitude. By collecting the real-time decibel value and analyzing its instantaneous change, the system can timely identify a sudden increase or abnormal fluctuation in the noise level. By marking and recording the noise exceeding standard events (such as the exceeding standard time period, the duration, and the exceeding standard amplitude), it can help hotel managers track and locate the noise interference source, provide more accurate noise data. At the same time, by timely identifying the noise interference, the system can optimize the playback effect of the background music to make it more in line with the needs of customers and the environmental conditions. The continuous background music will not affect the customer experience due to sudden noise interference, thereby enhancing the overall atmosphere of the hotel and increasing the comfort of customers. And by long-term collecting the relevant data of the noise exceeding standard events, the system can generate a trend analysis report of noise management to help the hotel management better understand the noise source and change trend, which is helpful for making better facility planning, environmental design, and sound system optimization in the future.

[0192] In this embodiment, the second judgment module further includes:

[0193] A second identification unit, configured to identify the direction source of the noise type within the hotel area based on the directional sensor preset in the hotel area;

[0194] The fourth judgment unit is used to judge whether the direction source is within the preset range of the hotel;

[0195] The fourth execution unit is used to, if not, generate a corresponding noise source from the hotel terminal, calculate the noise signal intensity calculated by the directional sensor according to the noise source, and dynamically adjust the volume upper limit of the background music according to the noise signal intensity and the area size of the hotel area.

[0196] In this embodiment, the system identifies the direction source of the noise type in the hotel area based on the pre-set directional sensors in the hotel area, and then the system determines whether the direction source is within the preset range of the hotel to execute corresponding steps; for example, when the system determines that the direction source of the noise type in the hotel area is not within the preset range of the hotel, the system will consider that the noise source comes from outside the hotel area or exceeds the effective monitoring range set within the hotel area. The system can combine the direction of the noise source and its source to further optimize the noise control strategy of the hotel. If it is found that the noise control system in the hotel area often captures noise sources that do not belong to the hotel, it is necessary to re-evaluate the coverage range of the directional sensors and adjust the sensor configuration to enable it to more accurately identify and filter out external noise. At the same time, a noise report is automatically generated, recording the direction source, intensity, duration, and whether it affects the internal environment of the hotel. The hotel management team can analyze the noise impact of the external environment through the report and adjust or optimize the hotel operation as needed; for example, when the system determines that the direction source of the noise type in the hotel area is within the preset range of the hotel, the system will consider that the noise source comes from within the hotel area. The system will generate a corresponding noise source at the hotel terminal. Based on this noise source, the noise signal intensity calculated by the directional sensor is calculated. According to different noise signal intensities and the area size of the hotel area, the upper limit of the background music volume is dynamically adjusted; the system can identify the noise source in the hotel area through the directional sensor and determine whether it needs to affect the background music volume adjustment based on the intensity of the noise source. If the noise source comes from a specific area within the hotel (such as the kitchen, laundry room, etc.), the system can accurately judge and automatically adjust the background music volume in the nearby area to avoid excessive noise affecting the customer experience. At the same time, considering the size of different hotel areas, the system can dynamically adjust the volume upper limit according to the relationship between the noise signal intensity and the area size. For example, in a smaller area (such as a small meeting room or a private space), when the noise is low, the background music volume will be low, while in a larger area (such as the lobby or banquet hall), when the noise is strong, the system will appropriately increase the volume to ensure that the music covers the entire area and avoid external noise interfering with the customer experience. And through detecting the noise source and its intensity for personalized music adjustment, the background music playback modes in different areas and different environments will be more in line with customer needs. For example, in a quiet area (such as the quiet corridor or study of the hotel), the background music will remain at a low volume, while in some activity areas (such as the dance floor, banquet hall, etc.) of the hotel, the volume will be appropriately increased as the noise source changes to ensure that each customer can obtain the best background music experience in different areas.

[0197] In this embodiment, the detection module further includes:

[0198] A distinguishing unit, configured to distinguish corresponding noise data from the decibel data based on the decibel data pre-collected in the hotel area;

[0199] A fifth determination unit, configured to determine whether the noise data is synchronously collected to the hotel terminal;

[0200] A fifth execution unit, configured to, if not, filter out preset non-target noises from the noise data according to a preset frequency range of the hotel terminal, and generate a noise intensity distribution map of the hotel area, where the non-target noises specifically include long-distance noises, reflection noises, and electrical interference noises.

[0201] In this embodiment, the system distinguishes the corresponding noise data from the decibel data pre-collected in the hotel area, and then the system determines whether these noise data are synchronously collected to the hotel terminal to execute corresponding steps; for example, when the system determines that the noise data in the decibel data can be synchronously collected to the hotel terminal, the system will consider that the noise information has been accurately captured and successfully transmitted to the hotel terminal for processing. The system will analyze whether the noise will affect the hotel environment. If the noise exceeds the preset noise threshold, the system will activate an automatic noise management mechanism, such as adjusting the background music volume, starting noise suppression measures, etc. For example, when the noise comes from the guest room corridor or the meeting room, the system may automatically increase the volume of the background music, or activate environmental noise isolation equipment. At the same time, based on the synchronous update of the noise data, the background music in each area of the hotel is adjusted. For example, if the noise in a certain area reaches a certain intensity, the system can automatically increase the volume of the background music in that area to balance the impact of environmental noise on customers. On the contrary, if the noise is low, the background music volume can be lowered to maintain a quiet and comfortable environment. And it responds when initially identifying and synchronizing noise data, and can also continuously monitor noise changes and optimize according to the change trend. For example, if the noise intensity in an area fluctuates at different time periods, the system can automatically adjust the noise management strategy to ensure long-term comfort and environmental quality; for example, when the system determines that the noise data in the decibel data cannot be synchronously collected to the hotel terminal, at this time the system will consider that the noise information cannot be accurately captured. The system will filter out the preset non-target noises from the noise data according to the preset frequency range of the hotel terminal. The non-target noises specifically include long-distance noises, reflected noises, and electrical interference noises, and generate a noise intensity distribution map of the hotel area; by filtering out long-distance noises, reflected noises, and electrical interference noises, the system can ensure that only the noise data related to the hotel area is processed, which helps to exclude unnecessary noise interference, avoid misjudgment or incorrect noise source analysis, thereby improving data accuracy and the accuracy of noise analysis. At the same time, when the noise information cannot be fully synchronized, the system can still obtain a general noise distribution situation through filtering and data processing, which enables the system to continuously monitor the hotel environment and still be able to respond without complete noise data, such as dynamically adjusting the volume of the background music or turning on noise suppression equipment, so as to ensure that the comfort of customers is not affected. And by filtering out unnecessary noise types, the system can reduce the amount of data to be processed. This can not only reduce the computing and storage burden, but also improve the speed of data processing, ensure the efficiency of real-time monitoring and adjustment. Especially in a hotel environment with multiple areas and multiple sensors, reducing the interference of non-target noises helps to make decisions more quickly and accurately.

[0202] Although embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of the present invention, and the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for intelligently distributing regional background music in a hotel, characterized in that: The following steps are involved: Based on a volume sensor preset in the hotel area, detecting the coverage decibel data of the hotel area within a preset distance; Determining whether the coverage decibel data reaches a preset decibel threshold of the hotel area; If not, activate the thermal induction sensor preset in the hotel area, collect the flow of people information in the hotel area, identify the background noise change in the hotel area according to the flow of people information, generate the sound spectrum of the hotel area according to the background noise change, and classify the corresponding noise types from the sound spectrum, wherein the noise types specifically include human voice related noise, mechanical equipment noise and environmental external noise; Determining whether the noise type exceeds a preset upper limit of the type; If it does not exceed the limit, the music rhythm of the background music is dynamically adjusted based on the preset music style template of the hotel area, and the regional coordination of the music rhythm is detected. According to the regional coordination, the preset resampling is applied to smoothly transition the background music, and the delayed transition duration between different areas is adaptively adjusted, wherein the music style template specifically includes activity area, leisure area and meeting area, and the music rhythm specifically includes dynamic music, soft music and romantic music.

2. The intelligent distribution method of hotel regional background music according to claim 1, characterized in that: Before the step of collecting the flow of people information of the hotel area and identifying the change of background noise in the hotel area according to the flow of people information, the method further includes: Based on the mobile personnel in the hotel area, a preset Kalman filter is applied to track the moving trajectory of the mobile personnel; Determining whether the movement trajectory leaves the hotel area; If not, then count the number of people in the hotel area based on the location information of the mobile personnel, calculate the population density in the hotel area based on the number of people, identify the activity pattern of the population density, and dynamically adjust the preset compensation algorithm for the population density based on the preset obstacle positions and the activity pattern in the hotel area to reduce the density calculation deviation of the hotel area.

3. The intelligent distribution method of hotel regional background music according to claim 1, characterized in that: The step of adaptively adjusting the delay transition duration between different areas also includes: Identify the temporary division area of ​​the hotel area, and collect the external music type played in the adjacent area from the temporary division area; Determining whether the external music type matches the temporary purpose of the temporarily divided area; If not, the fluctuating decibel value of the external music in the temporarily divided area is collected, and based on the fluctuating decibel value, the music gradient effect in the temporarily divided area is dynamically adjusted, and according to the music gradient effect, the interference decibel of the external music in the temporarily divided area is balanced.

4. The intelligent distribution method of hotel regional background music according to claim 1 is characterized in that: The step of generating a sound spectrum of the hotel area according to the background noise change and classifying corresponding noise types from the sound spectrum further includes: Dividing the continuous audio signal with background noise changes into a number of small segments of frames, acquiring frequency domain information of the number of small segments of frames based on preset durations of the number of small segments of frames, and extracting corresponding spectrum features from the frequency domain information; Determining whether the frequency spectrum characteristics match the noise type; If yes, then the noise intensity of the spectrum feature in different frequency bands is calculated, and according to the noise intensity, energy distribution data of the signal frequency region is generated, and according to the energy distribution data, the dominant frequency of the noise intensity is identified.

5. The intelligent distribution method of hotel regional background music according to claim 1 is characterized in that: The step of determining whether the coverage decibel data reaches the preset decibel threshold of the hotel area also includes: Based on the microphone array preset in the hotel area, calculate the real-time decibel value in each time window, wherein the real-time decibel value specifically includes the average decibel, the maximum decibel and the minimum decibel; Determine whether the duration of the real-time decibel value reaches a preset period; If not, the instantaneous decibel of the real-time decibel value is collected through the time window, and the preset noise exceeding event is triggered according to the instantaneous decibel, and the corresponding exceeding attributes are marked from the noise exceeding event, wherein the exceeding attributes specifically include the exceeding time period, duration and exceeding amplitude.

6. The intelligent distribution method of hotel regional background music according to claim 1 is characterized in that: The step of determining whether the noise type exceeds a preset upper limit of the type further includes: Based on a directional sensor preset in the hotel area, identifying the direction source of the noise type in the hotel area; Determining whether the direction source is within a preset range of the hotel; If not, a corresponding noise source is generated from the hotel terminal, and the noise signal strength calculated by the directional sensor is calculated according to the noise source. The upper limit of the volume of the background music is dynamically adjusted according to the noise signal strength and the area size of the hotel area.

7. The intelligent distribution method of hotel regional background music according to claim 1 is characterized in that: The step of detecting the coverage decibel data of the hotel area within a preset distance based on the volume sensor preset in the hotel area also includes: Based on the pre-collected decibel data of the hotel area, distinguishing corresponding noise data from the decibel data; Determine whether the noise data is synchronously collected to the hotel terminal; If not, the preset non-target noise is filtered out from the noise data according to the frequency range preset by the hotel terminal to generate a noise intensity distribution map of the hotel area, wherein the non-target noise specifically includes long-distance noise, reflection noise and electrical interference noise.

8. An intelligent distribution system for regional background music in a hotel, characterized in that: include: A detection module, used to detect the coverage decibel data of the hotel area within a preset distance based on a volume sensor preset in the hotel area; A judgment module, used to judge whether the coverage decibel data reaches a preset decibel threshold of the hotel area; an execution module, configured to, if not, activate a preset thermal induction sensor in the hotel area, collect information on the flow of people in the hotel area, identify changes in background noise in the hotel area according to the flow of people information, generate a sound spectrum in the hotel area according to the background noise changes, and classify corresponding noise types from the sound spectrum, wherein the noise types specifically include human voice-related noise, mechanical equipment noise, and external environmental noise; A second judgment module is used to judge whether the noise type exceeds a preset type upper limit; The second execution module is used to dynamically adjust the music rhythm of the background music based on the preset music style template of the hotel area if it has not been exceeded, detect the regional coordination of the music rhythm, apply preset resampling to smoothly transition the background music according to the regional coordination, and adaptively adjust the delayed transition duration between different areas, wherein the music style template specifically includes activity area, leisure area and meeting area, and the music rhythm specifically includes dynamic music, soft music and romantic music.

9. The intelligent distribution system for hotel regional background music according to claim 8, characterized in that: Also includes: A tracking module, used for tracking the moving trajectory of the moving personnel in the hotel area by applying a preset Kalman filter; A third judgment module is used to judge whether the movement track leaves the hotel area; The third execution module is used for, if not, counting the number of people in the hotel area according to the location information of the mobile personnel, calculating the population density in the hotel area based on the number of people, identifying the activity pattern of the population density, and dynamically adjusting the preset compensation algorithm for the population density based on the preset obstacle positions and the activity pattern in the hotel area, so as to reduce the density calculation deviation of the hotel area.

10. The intelligent distribution system for hotel regional background music according to claim 8, characterized in that: The second execution module also includes: An identification unit, used for identifying the temporary division area of ​​the hotel area, and collecting the type of external music played in the adjacent area from the temporary division area; A judging unit, used for judging whether the external music type matches the temporary purpose of the temporarily divided area; The execution unit is used to collect the fluctuating decibel value of the external music in the temporarily divided area if not, dynamically adjust the music gradient effect in the temporarily divided area based on the fluctuating decibel value, and balance the interference decibel of the external music in the temporarily divided area according to the music gradient effect.

Citation Information

Patent Citations

  • Method and system for automatically adjusting multimedia volume according to different scene modes

    CN104135705A

  • Sound effect control method and device and computing equipment

    CN119520893A