Emergency reminding method, earphone device, storage medium and computer program product

By detecting the wearer's motion status and extracting emergency sound signals, the problem of earphone devices blocking emergency sounds is solved, safety reminders in motion are realized, and safety hazards are reduced.

CN118540622APending Publication Date: 2024-08-23WEIFANG GOERTEK ELECTRONICS CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410684147.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The noise reduction function of the headset device will block emergency sound signals around the user, making it difficult for the user to detect emergency situations around them, posing safety risks.

Method used

By detecting whether the wearer is in motion, if detected, the emergency sound signal of the surrounding environment is extracted, and a reminder sound signal is generated and output to ensure that the user is aware of the emergency. This method uses the heart rate detection module and the inertia detection module to determine the motion status, the sound collection module extracts the emergency sound signal, and generates the reminder sound signal through the processor.

Benefits of technology

It effectively identifies and reminds the wearer of emergency sound signals in the surrounding environment, reducing safety risks caused by the headset device blocking emergency sounds, and ensuring that users can promptly detect surrounding emergencies while in motion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540622A
    Figure CN118540622A
Patent Text Reader

Abstract

The invention discloses an emergency reminding method, earphone equipment, a storage medium and a computer program product, and relates to the technical field of earphone equipment.The emergency reminding method is applied to the earphone equipment and specifically comprises the steps that whether a wearer is in a motion state or not is detected; if it is detected that the wearer is in the motion state, an emergency sound signal in the surrounding environment of the wearer is extracted; and generating a reminding sound signal based on the emergency sound signal, and outputting the reminding sound signal to remind the wearer. According to the invention, the technical effect that the earphone equipment can identify the emergency sound signal in the surrounding environment of the wearer is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of earphone devices, and in particular to an emergency reminder method, an earphone device, a storage medium and a computer program product. Background Art

[0002] With the continuous development of the headphone industry, headphone devices with noise reduction function have become an important device that more and more users cannot obtain in their daily lives, and it has become commonplace for users to wear headphone devices during daily walking or running.

[0003] In the related art, when a user is in a state of exercise such as walking or running, if he wears a headphone device, the noise reduction function of the headphone device will shield the emergency sound signals around the user, such as vehicle horns, making it difficult for the user to perceive the emergency situation around him, thereby posing certain safety hazards to the user.

[0004] Therefore, how to reduce the safety risks faced by users when wearing headphone devices has become a technical problem that urgently needs to be solved in the industry. Summary of the invention

[0005] The main purpose of this application is to provide an emergency reminder method, headphone device, storage medium and computer program product, aiming to solve the technical problem in the related art that the noise reduction function in the headphone device will shield the emergency sound signals around the user, making it difficult for the user to perceive the emergency situation around him or her.

[0006] To achieve the above object, the present application proposes an emergency reminder method, which is applied to a headphone device and includes:

[0007] Detect whether the wearer is in motion;

[0008] If it is detected that the wearer is in motion, extracting emergency sound signals in the wearer's surroundings;

[0009] A warning sound signal is generated based on the emergency sound signal, and the warning sound signal is output to warn the wearer.

[0010] In one embodiment, the earphone device is configured with a heart rate detection module and an inertia detection module, and the step of detecting whether the wearer is in motion includes:

[0011] Detecting the real-time heart rate value of the wearer through the heart rate detection module, and detecting the real-time motion parameters of the wearer through the inertia detection module;

[0012] Whether the wearer is in a state of exercise is determined according to the real-time heart rate value and the real-time exercise parameter.

[0013] In one embodiment, the heart rate detection module includes a sound detection unit, and the step of detecting the real-time heart rate value of the wearer by the heart rate detection module includes:

[0014] Detecting an initial low-frequency heart sound signal in the ear canal of the wearer by the sound detection unit, and filtering the initial low-frequency heart sound signal to obtain a target heart sound signal;

[0015] The heart sound signal features of the target heart sound signal are extracted, and the real-time heart rate value of the wearer is determined according to the heart sound signal features.

[0016] In one embodiment, before the step of detecting the real-time heart rate value of the wearer by the heart rate detection module, the method further includes:

[0017] Obtaining physiological parameter information input by the wearer;

[0018] The heart rate interval setting scheme corresponding to the wearer is determined according to the physiological parameter information, and the step of detecting the real-time heart rate value of the wearer by the heart rate detection module is performed.

[0019] In one embodiment, the heart rate detection module further includes an air pressure detection unit, and the step of detecting the real-time heart rate value of the wearer by the heart rate detection module further includes:

[0020] Detecting the low-frequency air pressure signal in the ear canal of the wearer by the air pressure detection unit;

[0021] Extracting an air pressure signal feature corresponding to the low-frequency air pressure signal, and determining a plurality of air pressure signal peaks contained in the air pressure signal feature;

[0022] The real-time heart rate value of the wearer is determined according to the peak interval duration generated between the multiple peaks of the air pressure signal.

[0023] In one embodiment, the step of determining whether the wearer is in a state of exercise according to the real-time heart rate value and the real-time exercise parameter comprises:

[0024] Obtaining a heart rate status score according to the real-time heart rate value, and determining a preset first weight value corresponding to the heart rate status score;

[0025] Obtaining a motion state score according to the real-time motion parameter, and determining a preset second weight value corresponding to the motion state score;

[0026] Obtain a real-time state score value based on the heart rate state score, the preset first weight value, the exercise state score, and the preset second weight value;

[0027] When the real-time state score value is greater than or equal to a preset state score threshold, it is determined that the wearer is in a motion state.

[0028] In one embodiment, the earphone device is further configured with a sound collection module, and the step of extracting the emergency sound signal in the wearer's surrounding environment includes:

[0029] Extracting a plurality of ambient sound signals in the wearer's surrounding environment through the sound collection module, and extracting the ambient sound features corresponding to each of the plurality of ambient sound signals;

[0030] Comparing the preset multiple reference emergency sound feature information and the multiple environmental sound features in sequence to obtain multiple comparison results;

[0031] A target sound feature is determined from the multiple environmental sound features according to the multiple comparison results, and an environmental sound signal corresponding to the target sound feature is determined as an emergency sound signal.

[0032] In one embodiment, the earphone device is communicatively connected to a mobile terminal device held by the wearer;

[0033] After the step of determining the ambient sound signal corresponding to the target sound feature as an emergency sound signal, the method further includes:

[0034] Determine multiple signal receiving times of the sound collection module, wherein the signal receiving time is the time when multiple sound collection units in the sound collection module each collect the emergency sound signal;

[0035] Determine the sound source location information corresponding to the emergency sound signal based on the plurality of signal reception times;

[0036] Generate warning information according to the sound source location information, and output the warning information to the mobile terminal device to remind the wearer through the mobile terminal device.

[0037] In one embodiment, after the step of detecting whether the wearer is in motion, the method further comprises:

[0038] If it is detected that the wearer is not in motion, a target noise signal in the wearer's surrounding environment is acquired through a sound collection module;

[0039] A noise reduction sound signal is generated based on the target noise signal, and the noise reduction sound signal is output.

[0040] In addition, to achieve the above-mentioned purpose, the present application also proposes a headphone device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the emergency reminder method described above.

[0041] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the emergency reminder method described above are implemented.

[0042] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the emergency reminder method described above are implemented.

[0043] The emergency reminder method, headphone device, storage medium and computer program product proposed in the present application are applied to the headphone device, which detects whether the wearer is in motion; if the wearer is detected to be in motion, the emergency sound signal in the wearer's surrounding environment is extracted; a reminder sound signal is generated based on the emergency sound signal, and the reminder sound signal is output to remind the wearer.

[0044] In this way, the present application solves the technical problem in the related art that the noise reduction function in the headphone device will shield the emergency sound signals around the user, making it difficult for the user to perceive the emergency situations around him or her. That is, the present application enables the headphone device to recognize the emergency sound signals contained in the wearer's surroundings when it detects that the wearer is in motion, and reminds the wearer based on the emergency sound signals. This enables the wearer to perceive the emergency sound signals in the surroundings when wearing the headphone device and in motion, and to recognize the surrounding emergency situations based on the emergency sound signals, thereby achieving the technical effect of enabling the headphone device to recognize the emergency sound signals in the wearer's surroundings, so that the headphone device can remind the wearer. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0047] Figure 1 A flowchart of the first embodiment of the emergency reminder method of this application is provided;

[0048] Figure 2 A schematic diagram of the earphone structure of an earphone device involved in an embodiment of the emergency reminder method of the present application;

[0049] Figure 3 This is a schematic diagram of the side structure of the earphone device involved in the first embodiment of the emergency reminder method of the present application;

[0050] Figure 4 This is a schematic diagram of the front structure of the earphone device involved in the first embodiment of the emergency reminder method of the present application;

[0051] Figure 5 A schematic diagram of the device structure of the hardware operating environment involved in the emergency reminder method in the embodiment of the present application;

[0052] Figure 6 This is a brief flowchart of the emergency reminder method for this application.

[0053] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0054] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0055] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0056] In this embodiment, for the convenience of description, the following is Figure 2 The earphone device with a heart sound microphone, a noise reduction microphone, a call microphone, an inertial sensor, an air pressure detection device, a processor, a battery and a speaker is described as the execution subject, and the overall concept of the emergency reminder method of this application is proposed here. It is understood that please refer to Figure 3 and Figure 4 ,in, Figure 3 This is a schematic diagram of the side structure of the earphone device involved in an embodiment of the emergency reminder method of this application. Figure 4 Schematic diagram of the front structure of the earphone device involved in the first embodiment of the emergency reminder method of the present application; Figure 3As shown, the noise reduction microphone is configured on the earphone body of the earphone device, and is mainly used to identify emergency sound signals in the wearer's environment and generate noise reduction sound signals in the noise reduction mode. It can be understood that the number of noise reduction microphones can be only one or more; in addition, the inertial sensor can be configured at any position in the earphone device, and is mainly used to collect motion parameters such as acceleration of the wearer during movement; in addition, as Figure 3 As shown in FIG. 1 , the call microphone is configured on the earphone body of the earphone device, and is mainly used to recognize the voice signal emitted by the wearer when the earphone device is in the call mode; in addition, as shown in FIG. Figure 4 As shown in FIG. 1 , the cardiac sound microphone is configured in the earplug of the headphone device, and is mainly used to collect low-frequency cardiac sound signals in the ear canal of the wearer; in addition, as shown in FIG. Figure 4 As shown, the speaker is configured in the earplug of the headphone device, and is mainly used to output sound signals; in addition, the processor is configured in the headphone body of the headphone device, and is mainly used to establish a connection with the mobile phone device held by the wearer, and play the audio signal transmitted by the mobile phone device, and process the signal data sent by each microphone and inertial sensor; in addition, the battery is configured in the headphone body of the headphone device to power the headphone device.

[0057] Based on the above-mentioned earphone device, the overall concept of the emergency reminder method of the present application is proposed here.

[0058] With the continuous development of the headphone industry, headphone devices with noise reduction function have become an important device that more and more users cannot obtain in their daily lives, and it has become common for users to wear headphone devices during daily walking or running. In related technologies, when a user is in a state of exercise such as walking or running, if he wears a headphone device, the noise reduction function of the headphone device will shield the emergency sound signals around the user, such as vehicle horns, making it difficult for the user to detect the emergency around him, which in turn brings certain safety hazards to the user.

[0059] In response to the above phenomenon, the present application provides an emergency reminder method, which is applied to a headphone device, and the method includes: detecting whether the wearer is in motion; if it is detected that the wearer is in motion, extracting an emergency sound signal in the wearer's surrounding environment; generating a reminder sound signal based on the emergency sound signal, and outputting the reminder sound signal to remind the wearer.

[0060] In this way, the present application solves the technical problem in the related art that the noise reduction function in the headphone device will shield the emergency sound signals around the user, making it difficult for the user to perceive the emergency situations around him or her. That is, the present application enables the headphone device to recognize the emergency sound signals contained in the wearer's surroundings when it detects that the wearer is in motion, and reminds the wearer based on the emergency sound signals. This enables the wearer to perceive the emergency sound signals in the surroundings when wearing the headphone device and in motion, and to recognize the surrounding emergency situations based on the emergency sound signals, thereby achieving the technical effect of enabling the headphone device to recognize the emergency sound signals in the wearer's surroundings, so that the headphone device can remind the wearer.

[0061] Based on the overall concept of the emergency reminder method of the present application, the embodiment of the present application provides an emergency reminder method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the emergency reminder method of the present application.

[0062] In this embodiment, the emergency reminder method is applied to a headphone device. The emergency reminder method includes steps S10 to S30:

[0063] Step S10: Detect whether the wearer is in motion;

[0064] In this embodiment, when the headphone device is in operation, it first detects the wearer to detect whether the wearer is in a walking or running state.

[0065] Exemplarily, for example, when the wearer wears the headphone device, the headphone device first calls its own configured detection module to detect the wearer, thereby obtaining the wearer's body state parameters, and then determines whether the wearer is in a stationary state, or in a moving state of walking or running based on the body state parameters.

[0066] In this way, the headphone device can identify the wearer's motion state, thereby determining whether the user is in a stationary state or in motion.

[0067] In a feasible implementation manner, the earphone device is configured with a heart rate detection module and an inertia detection module, and the above step S10 may specifically include steps S101 to S102:

[0068] Step S101: detecting the real-time heart rate value of the wearer through the heart rate detection module, and detecting the real-time motion parameters of the wearer through the inertia detection module;

[0069] Step S102: determining whether the wearer is in a state of exercise according to the real-time heart rate value and the real-time exercise parameter.

[0070] In this embodiment, when the headphone device is running, the headphone device first calls the heart rate detection module configured by itself to detect the wearer's ear canal, thereby determining the wearer's real-time heart rate value through the wearer's ear canal. At the same time, the headphone device determines the wearer's real-time motion parameters through the inertial detection module configured by itself. Afterwards, the headphone device determines whether the wearer is in a walking or running state based on the real-time heart rate value and the real-time motion parameters.

[0071] Exemplarily, for example, when the headphone device is running, the headphone device first calls its own configured heart rate detection module to detect the wearer's ear canal, thereby determining the wearer's real-time heart rate value through the wearer's ear canal. At the same time, the headphone device calls the inertial sensor configured on the headphone body to collect the wearer's acceleration value during the detection period, and filters the acceleration value to obtain an acceleration waveform. The inertial detection module then identifies the acceleration peaks contained in the acceleration waveform, and determines the peak interval duration between multiple acceleration peaks, and then determines the number of steps the wearer has moved during the detection period based on the peak interval duration. Afterwards, the headphone device determines whether the wearer is currently in a stationary state, or in a moving state of walking or running based on the real-time heart rate value and the number of steps.

[0072] In this way, the headphone device can identify the wearer's motion state, thereby determining whether the user is in a stationary state or in motion.

[0073] In a feasible implementation, the heart rate detection module includes a sound detection unit, and the step of "detecting the real-time heart rate value of the wearer by the heart rate detection module" in the above step S101 may specifically include steps S1011 to S1012:

[0074] Step S1011: detecting an initial low-frequency heart sound signal in the ear canal of the wearer by the sound detection unit, and filtering the initial low-frequency heart sound signal to obtain a target heart sound signal;

[0075] Step S1012: extracting the heart sound signal features of the target heart sound signal, and determining the real-time heart rate value of the wearer according to the heart sound signal features.

[0076] It should be noted that the sound detection unit may specifically be the above-mentioned heart sound microphone, such as Figure 4 As shown, the heart sound microphone can be configured in the earplug of the headphone device to collect the low-frequency confidence signal in the wearer's ear canal; in addition, the low-frequency heart sound signal is a low-frequency sound signal generated by changes in the artery in the wearer's ear canal.

[0077] In this embodiment, when the earphone device calls the heart rate detection module to detect the wearer's real-time heart rate signal, it first calls the sound detection unit configured in the heart rate detection module to collect the initial low-frequency sound signal in the wearer's ear canal. The sound detection unit then filters the initial low-frequency sound signal to obtain a target heart sound signal that can indicate heart sounds. Thereafter, the sound detection unit inputs the acquired target heart sound signal into a processor configured in the earphone device, so that the processor extracts the heart sound signal features contained in the target heart sound signal, and determines the heart sound signal peak contained in the target heart sound signal based on the heart sound signal features. The processor then calculates the wearer's real-time heart rate value based on the heart sound signal peak.

[0078] Exemplarily, for example, when the earphone device calls the heart rate detection module to detect the wearer's real-time heart rate value, it first calls the heart sound microphone configured in the earplug to collect the initial low-frequency heart sound signal in the wearer's ear canal. The heart sound microphone then calls a preset filtering algorithm to filter the initial low-frequency heart sound signal, thereby extracting the target heart sound signal generated by the internal artery of the ear canal during the change process. After that, the heart sound microphone inputs the acquired target heart sound signal into the processor configured in the earphone device, so that the processor extracts the heart sound signal features contained in the target heart sound signal, and identifies the signal peaks and other signal intervals contained in the heart sound signal features based on the frequency domain characteristics of the heart sound signal. The processor calculates the time interval between two adjacent signal peaks based on the signal peaks, and determines the corresponding cardiac cycle length of the wearer based on the time interval, and then calculates the wearer's real-time heart rate value based on the cardiac cycle length.

[0079] In this way, the headphone device can determine the wearer's real-time heart rate value through the wearer's ear canal by calling the heart rate detection module configured by itself to detect the wearer's ear canal.

[0080] In a feasible implementation manner, the heart rate detection module further includes the step of "detecting the real-time heart rate value of the wearer by the heart rate detection module" in the above step S101 of the air pressure detection unit, which may specifically include steps S1013 to S1015:

[0081] Step S1013: detecting a low-frequency air pressure signal in the ear canal of the wearer through the air pressure detection unit;

[0082] Step S1014: extracting the air pressure signal feature corresponding to the low-frequency air pressure signal, and determining a plurality of air pressure signal peaks contained in the air pressure signal feature;

[0083] Step S1015 determines the real-time heart rate value of the wearer according to the peak interval duration generated between the multiple peaks of the air pressure signal.

[0084] It should be noted that the air pressure signal is a low-frequency air pressure signal caused inside the ear canal when the volume of the ear canal cavity changes due to changes in the arteries near the wearer's ear canal; in addition, the air pressure detection unit can specifically be the above-mentioned air pressure sensor.

[0085] In this embodiment, when the headphone device calls the heart rate detection module to detect the wearer's real-time heart rate signal, it can also call the air pressure detection unit configured in the heart rate detection module to detect the wearer's ear canal, thereby obtaining the low-frequency air pressure signal generated in the wearer's ear canal. After that, the air pressure detection unit inputs the obtained low-frequency air pressure signal into the above-mentioned processor, and the processor extracts the air pressure signal characteristics of the low-frequency air pressure signal, and determines the multiple air pressure signal peaks contained in the low-frequency air pressure signal based on the air pressure signal characteristics. Finally, the processor calculates the wearer's real-time heart rate value based on the peak interval duration generated between the multiple air pressure signal peaks.

[0086] Exemplarily, for example, when the headphone device calls the heart rate detection module to detect the wearer's real-time heart rate value, in addition to collecting the low-frequency heart sound signal in the wearer's ear canal through the above-mentioned heart sound microphone to determine the real-time heart rate value, it can also call the air pressure sensor configured in the earplug to detect the wearer's ear canal, thereby detecting the low-frequency air pressure signal generated by arterial changes in the wearer's ear canal. The air pressure sensor then inputs the low-frequency air pressure signal to the processor. Thereafter, the processor processes the low-frequency air pressure signal to extract the peak value, time interval and other air pressure signal characteristics contained in the low-frequency air pressure signal. The processor determines multiple air pressure signal peaks contained in the low-frequency air pressure signal based on each air pressure signal characteristic. Finally, the processor determines the peak interval duration between any two adjacent air pressure signal peaks, and calculates the wearer's real-time heart rate value based on the peak interval duration.

[0087] In this way, the headphone device can determine the wearer's real-time heart rate value through the wearer's ear canal by calling the heart rate detection module configured by itself to detect the wearer's ear canal.

[0088] In a feasible implementation manner, the above step S102 may specifically include steps S1021 to S1024:

[0089] Step S1021: obtaining a heart rate status score according to the real-time heart rate value, and determining a preset first weight value corresponding to the heart rate status score;

[0090] Step S1022: obtaining a motion state score according to the real-time motion parameter, and determining a preset second weight value corresponding to the motion state score;

[0091] Step S1023: obtaining a real-time state score value based on the heart rate state score, the preset first weight value, the exercise state score, and the preset second weight value;

[0092] Step S1024: When the real-time state score value is greater than or equal to a preset state score threshold, it is determined that the wearer is in a motion state.

[0093] It should be noted that the heart rate status score is a score obtained by the headphone device based on the heart rate interval in which the wearer's real-time heart rate value is located, and is used to indicate the degree of change in the wearer's heart rate. It is understandable that when the wearer is in different degrees of exercise, the corresponding heart rate value is in different heart rate intervals. In addition, the exercise status score is a score obtained by the headphone device based on the exercise parameter interval in which the wearer's real-time exercise parameters are located, and is used to indicate the degree of change in the wearer's exercise. It is understandable that when the wearer takes different steps within a certain period of time, the corresponding exercise parameters are in different exercise parameter intervals.

[0094] In addition, the preset first weight value is the proportion of the heart rate status score in the preset status score value calculation formula. Similarly, the preset second weight value is the proportion of the exercise status score in the preset status score value calculation formula. It can be understood that the specific values ​​of the preset first weight value and the preset second weight value can be set by technical personnel according to their own needs, and this application does not impose any restrictions on this.

[0095] In this embodiment, after the headphone device obtains the real-time heart rate value and real-time motion parameters of the wearer, the headphone device first determines the heart rate interval in which the real-time heart rate value is located, and determines the heart rate score value corresponding to the heart rate interval as the heart rate state score, and then reads the preset first weight value corresponding to the heart rate state score. At the same time, the headphone device determines the motion parameter interval in which the real-time motion parameter is located, and determines the motion parameter score value corresponding to the motion parameter interval as the motion state score, and then reads the preset second weight value corresponding to the motion state score. Thereafter, the headphone device calculates the real-time state score value indicating the current state of the wearer according to the heart rate state score, the preset first weight value, the motion state score, and the preset second weight value. Finally, the headphone device obtains a preset state score threshold for distinguishing whether the wearer is in a motion state, and compares the real-time state score value with the preset state score threshold to obtain a comparison result, and then when it is determined that the comparison result is that the real-time state score value is greater than or equal to the preset state score threshold, it is determined that the wearer is in a motion state.

[0096] Exemplarily, for example, after obtaining the real-time heart rate value and the number of steps of the wearer, the processor first obtains a first mapping table including multiple reference heart rate intervals and reference heart rate score values ​​corresponding to each of the multiple reference heart rate intervals, and the processor further queries the first mapping table based on the real-time heart rate value, thereby determining the target heart rate interval where the real-time heart rate value is located in the multiple reference heart rate intervals, and the processor further determines the reference heart rate score value corresponding to the target heart rate interval in the first mapping table as a heart rate state score that can indicate the heart rate state of the wearer, and the processor thereby determines a first weight value corresponding to the heart rate state score in a preset state score value calculation formula;

[0097] At the same time, the processor obtains a second mapping table including multiple reference step intervals and reference motion score values ​​corresponding to each of the multiple reference step intervals, and queries the second mapping table based on the moving step number, thereby determining the target step interval where the moving step number is located in the multiple reference step intervals, and the processor further determines the reference motion score corresponding to the target step interval in the second mapping table as a motion state score that can indicate the wearer's motion degree, and the processor thereby determines a second weight value corresponding to the motion state score in a preset state score value calculation formula;

[0098] Afterwards, the processor substitutes the heart rate state score, the preset first weight value, the motion state score, and the preset second weight value into the state score calculation formula for calculating the wearer's motion state to determine the real-time state score value = the preset first weight value * heart rate state score + the preset second weight value * motion state score. Finally, the processor obtains the preset state score threshold for distinguishing whether the wearer is in a stationary state or in a motion state, and compares the real-time state score value with the preset state score threshold to obtain a comparison result. When the processor determines that the comparison result is that the real-time state score value is greater than or equal to the preset state score threshold, it determines that the wearer is in a motion state, and when the processor determines that the comparison result is that the real-time state score value is less than the preset state score threshold, it determines that the wearer is in a stationary state.

[0099] It should be noted that, in this embodiment and another embodiment, in addition to determining whether the wearer is in motion based on the real-time heart rate parameter and the real-time motion parameter, the headphone device can also determine whether the wearer is in motion based only on the real-time heart rate parameter, or only on the real-time motion parameter. For example, after the processor obtains the real-time heart rate value, the processor obtains the heart rate threshold used to indicate whether the wearer's heart rate is in motion, and compares the real-time heart rate value with the heart rate threshold, so that when it is determined that the real-time heart rate value is greater than or equal to the heart rate threshold, it is determined that the wearer is in motion; similarly, after obtaining the wearer's real-time motion parameter, the processor can also obtain the motion parameter threshold used to indicate whether the wearer's motion parameter reaches the motion state, and compares the real-time motion parameter with the motion parameter threshold, so that when it is determined that the real-time motion parameter is greater than or equal to the motion parameter threshold, it is determined that the wearer is in motion.

[0100] In this way, the headphone device can accurately determine whether the wearer is in a state of exercise through real-time heart rate values ​​and / or real-time motion parameters.

[0101] Step S20: if it is detected that the wearer is in motion, extracting the emergency sound signal in the wearer's surroundings;

[0102] It should be noted that the emergency sound signal is a sound signal generated by dangerous sound sources around the wearer. It is understandable that the emergency sound signal includes but is not limited to: vehicle horns, vehicle collision sounds, engine sounds, etc., which may be ignored by the wearer and may cause certain dangers to the wearer himself.

[0103] In this embodiment, when the headphone device detects that the wearer is in motion, it calls its own configured sound collection module to detect the wearer's surrounding environment, thereby obtaining various ambient sound signals in the surrounding environment, and then extracting emergency sound signals emitted by dangerous sound sources that pose a certain threat to the wearer from the various ambient sound signals.

[0104] Exemplarily, for example, when the headphone device determines that the wearer is in a walking or running state, the headphone device first calls its own configured noise reduction microphone to collect all ambient sound signals in the wearer's surrounding environment, and inputs all ambient sound signals into the processor, which then processes all ambient sound signals to extract emergency sound signals contained in all ambient sound signals that are emitted by dangerous sound sources that pose a certain threat to the wearer.

[0105] In this way, the headphone device can automatically detect sound signals emitted by dangerous sound sources in the wearer's surrounding environment when the wearer is in motion.

[0106] In a feasible implementation manner, the earphone device is further configured with a sound collection module, and the step of "extracting the emergency sound signal in the wearer's surrounding environment" in the above step S20 may specifically include steps S201 to S203:

[0107] Step S201: extracting a plurality of ambient sound signals in the wearer's surrounding environment through the sound collection module, and extracting ambient sound features corresponding to each of the plurality of ambient sound signals;

[0108] Step S202: sequentially comparing a plurality of preset reference emergency sound feature information with a plurality of the environmental sound features to obtain a plurality of comparison results;

[0109] Step S203: determining a target sound feature from the plurality of environmental sound features according to the plurality of comparison results, and determining the environmental sound signal corresponding to the target sound feature as an emergency sound signal.

[0110] In this embodiment, after determining that the wearer is in motion, the headphone device calls its own configured sound collection module to detect the wearer's surrounding environment, thereby collecting ambient sound signals emitted by multiple different sound sources contained in the surrounding environment, and inputting the multiple ambient sound signals into the processor, which then extracts the ambient sound features contained in each of the multiple ambient sound signals. After that, the processor compares the preset multiple baseline emergency sound feature information with the multiple ambient sound features to obtain multiple comparison results. Finally, based on the multiple comparison results, the processor screens out a target ambient sound feature that is consistent with any baseline emergency sound feature information from the multiple ambient sound features, and determines the ambient sound signal corresponding to the target ambient sound feature as an emergency sound signal.

[0111] Exemplarily, for example, when the earphone device determines that the wearer is in a running or walking state, it further calls the noise reduction microphone configured on the earphone body to detect the wearer's surrounding environment, thereby collecting ambient sound signals emitted by multiple sound sources in the surrounding environment, and inputting the multiple ambient sound signals into the processor. The processor then extracts the ambient sound features contained in each of the multiple ambient sound signals. Thereafter, the processor obtains multiple preset baseline emergency sound feature information, and compares the multiple baseline emergency sound feature information with the multiple ambient sound features in turn to obtain multiple comparison results. Finally, the processor screens the multiple ambient sound features based on the multiple comparison results, thereby determining a target ambient sound feature that matches a certain baseline emergency sound feature information among the multiple ambient sound features, and then determines the ambient sound signal corresponding to the target ambient sound feature as an emergency sound signal.

[0112] In this way, the headphone device can automatically detect sound signals emitted by dangerous sound sources in the wearer's surrounding environment when the wearer is in motion.

[0113] Step S30: generating a warning sound signal based on the emergency sound signal, and outputting the warning sound signal to remind the wearer;

[0114] In this embodiment, after extracting the emergency sound signal, the earphone device amplifies the emergency sound signal to generate a warning sound signal, and plays the warning sound signal through the sound output module configured by itself to prompt the wearer.

[0115] Exemplarily, for example, after extracting the emergency sound signal, the headphone device obtains a preset sound amplification factor, and amplifies the emergency sound signal according to the sound amplification factor to obtain a warning sound signal. The headphone device inputs the warning sound signal into its own configured speaker to play the amplified warning sound signal through the speaker, thereby alerting the wearer that there is danger around.

[0116] In addition, in another feasible embodiment, after extracting each ambient sound signal, the headphone device can also input each ambient sound signal into its own configured audio recognition neural network model, so as to identify whether there is an emergency sound signal in each ambient sound signal through the audio recognition neural network model. Afterwards, if the audio recognition neural network model identifies that there is an emergency sound signal in each ambient sound signal, the beam amplitude of the emergency sound signal can be compensated to increase the volume of the emergency sound signal, and the post-emergency sound signal with the increased volume can be input into the speaker in the headphone device, so as to play the post-emergency sound signal with the increased volume through the speaker to alert the wearer that there is danger around.

[0117] In addition, in this embodiment and another embodiment, before the headphone device inputs the extracted environmental sound signals into the audio recognition neural network model, it can also first obtain multiple preset emergency sound signals for training and the audio tags corresponding to the multiple preset emergency sound signals. After that, the headphone device associates the multiple preset emergency sound signals with the audio tags corresponding to the multiple preset emergency sound signals to obtain an emergency sound signal sample set. At the same time, the headphone device associates the multiple environmental noise signals with the preset interference audio tags to obtain an interference sound signal sample set. Finally, the headphone device trains the preset neural network model with the emergency sound signal sample set and the interference sound signal sample set to obtain a converged audio recognition neural network model. The headphone device can thus accurately and efficiently train the converged audio recognition neural network model, thereby facilitating the subsequent accurate identification of the emergency sound signals contained in each environmental sound signal through the converged audio recognition neural network model.

[0118] In this embodiment, when the headphone device is in operation, it first detects the wearer to detect whether the wearer is in a walking or running state. Then, when the headphone device detects that the wearer is in a moving state, it calls the sound collection module configured by itself to detect the surrounding environment of the wearer, thereby obtaining various environmental sound signals in the surrounding environment, and then extracts the emergency sound signal emitted by the dangerous sound source that poses a certain threat to the wearer from the various environmental sound signals. Finally, the headphone device amplifies the emergency sound signal to generate a warning sound signal, and plays the warning sound signal through the sound output module configured by itself to prompt the wearer.

[0119] In this way, the present application solves the technical problem in the related art that the noise reduction function in the headphone device will shield the emergency sound signals around the user, making it difficult for the user to perceive the emergency situations around him or her. That is, the present application enables the headphone device to recognize the emergency sound signals contained in the wearer's surroundings when it detects that the wearer is in motion, and reminds the wearer based on the emergency sound signals. This enables the wearer to perceive the emergency sound signals in the surroundings when wearing the headphone device and in motion, and to recognize the surrounding emergency situations based on the emergency sound signals, thereby achieving the technical effect of enabling the headphone device to recognize the emergency sound signals in the wearer's surroundings, so that the headphone device can remind the wearer.

[0120] Based on the first embodiment of the present application, a second embodiment of the present application is proposed. In the second embodiment of the present application, the same or similar contents as those of the above-mentioned embodiment 1 can be referred to the above introduction and will not be repeated later. On this basis, before step S101, the emergency reminder method of the present application also includes steps A10 to A20:

[0121] Step A10: Obtaining physiological parameter information input by the wearer;

[0122] Step A20: determining the heart rate interval setting scheme corresponding to the wearer according to the physiological parameter information, and executing the step of detecting the real-time heart rate value of the wearer through the heart rate detection module.

[0123] It should be noted that the physiological parameter information is parameter information that can calculate the wearer's suitable heart rate range. It can be understood that the physiological parameter information can specifically be parameters such as age and average resting heart rate. This application does not limit the specific category of the physiological parameter information.

[0124] In this embodiment, before detecting the real-time heart rate value of the wearer, the headphone device may also first obtain the age value input by the wearer. After that, the headphone device inputs the age value into the processor, and the processor determines the target heart rate range that can be used to judge that the wearer is in a state of exercise based on the age value, and generates a heart rate range setting plan based on the target heart rate range. The processor then controls the heart rate detection module to detect the wearer's heart rate value.

[0125] Exemplarily, for example, before the headphone device calls the heart sound microphone to collect the low-frequency heart sound signal in the wearer's ear canal, the wearer can input his or her age value through a mobile device connected to the headphone device, and send the age value to the headphone device. The headphone device then inputs the age into the processor. Thereafter, the processor obtains a preset heart rate mapping table that stores multiple base ages and base heart rate ranges corresponding to the multiple base ages. The processor then queries the heart rate mapping table based on the age value, thereby determining a target heart rate range that can be used to judge whether the wearer is in a state of exercise, and generates a heart rate range setting plan based on the target heart rate range. The processor then controls the heart rate detection module to detect the wearer's heart rate value.

[0126] In this way, the headphone device can find a target heart rate range suitable for judging whether the wearer is in a state of exercise by obtaining the wearer's physiological parameter information, and set the judgment conditions for judging whether the wearer is in a state of exercise according to the target heart rate range, thereby avoiding the situation where the headphone device cannot accurately judge whether the wearer is in a state of exercise based on the wearer's heart rate value in certain scenarios due to physical differences between different wearers.

[0127] Based on the first embodiment and / or the second embodiment of the present application, the third embodiment of the present application is proposed here. In the third embodiment of the present application, the same or similar contents as the above embodiments can be referred to the above description and will not be repeated later. On this basis, the earphone device and the mobile terminal device held by the wearer are connected in communication; after step S30, the emergency reminder method of the present application also includes steps B10 to B30:

[0128] Step B10: determining multiple signal receiving times of the sound collection module, wherein the signal receiving time is the time when multiple sound collection units in the sound collection module each collect the emergency sound signal;

[0129] Step B20: determining the sound source location information corresponding to the emergency sound signal based on the plurality of signal reception times;

[0130] Step B30: Generate warning information according to the sound source location information, and output the warning information to the mobile terminal device to remind the wearer through the mobile terminal device.

[0131] In this embodiment, after extracting the emergency sound signal, the headphone device first determines the signal reception time when each of the multiple sound collection units in the sound collection module configured by itself collects the emergency sound signal. Then, the headphone device determines the time difference between the multiple signal reception times, and calculates the sound source position information based on the time difference and the position information corresponding to each of the multiple sound collection units. Finally, the headphone device calculates the distance between the dangerous sound source and the wearer based on the sound source position information, and generates prompt information based on the distance information, and then sends the prompt information to the mobile terminal device held by the wearer, so as to output the prompt information through the mobile terminal device, thereby reminding the wearer.

[0132] Exemplarily, for example, after the headphone device recognizes that the surrounding environment contains an emergency sound signal, it further determines the signal reception time when each of the multiple noise reduction microphones configured by itself collects the emergency sound signal, and sends each signal reception time to the processor. Thereafter, the processor determines the distance information between the dangerous sound source corresponding to the emergency sound signal and each noise reduction microphone based on the signal collection time corresponding to each noise reduction microphone. At the same time, the processor reads the storage device to obtain the microphone distance information between each noise reduction microphone, and then determines the accurate location information of the dangerous sound source based on each distance information and each microphone distance information. Finally, the processor determines the distance value between the dangerous sound source and the wearer based on the accurate location information, and generates a warning message based on the distance value, and then sends the warning message with the distance value to the mobile phone terminal held by the wearer, so that the warning message is displayed to the user through the control interface in the mobile phone terminal to remind the user of the location of the dangerous sound source.

[0133] In this way, when the headphone device detects the presence of a dangerous sound source around the wearer, it can promptly determine the location information of the dangerous sound source, and determine the distance value between the dangerous sound source and the wearer based on the location information, and then generate warning information based on the distance value, thereby providing the wearer with a more detailed reminder.

[0134] Based on the various embodiments of the present application, a fourth embodiment of the present application is proposed here. In the fourth embodiment of the present application, the same or similar contents as the above embodiments can be referred to the above description and will not be repeated later. On this basis, the earphone device and the mobile terminal device held by the wearer are connected in communication; after step S10, the emergency reminder method of the present application also includes steps C10 to C20:

[0135] Step C10: if it is detected that the wearer is not in motion, acquiring a target noise signal in the wearer's surrounding environment through a sound collection module;

[0136] Step C20: generating a noise reduction sound signal based on the target noise signal, and outputting the noise reduction sound signal.

[0137] In this embodiment, when the headphone device detects that the wearer is not in motion, it calls the sound collection device configured by itself to collect various sound signals around the wearer, and integrates the various sound signals as a target noise signal. Thereafter, the headphone device inputs the target noise signal into the processor, which extracts the noise signal characteristics of the target noise signal and generates a noise reduction sound signal based on the noise signal characteristics. The headphone device then plays the noise reduction sound signal to offset the target noise signal through the noise reduction sound signal, thereby eliminating the noise heard by the wearer.

[0138] Exemplarily, for example, when the headphone device detects that the wearer is not in a state of exercise such as running or walking, it calls the noise reduction microphone configured by itself to collect various sound signals in the wearer's surrounding environment, thereby integrating the various sound signals to generate a target noise signal. After that, the headphone device inputs the generated noise signal into the processor, which extracts the noise signal characteristics of the target noise signal, and based on the noise signal characteristics, generates a noise reduction sound signal with the same frequency and amplitude as the target noise signal, but a phase difference of 180°. The processor then inputs the noise reduction sound signal into the speaker, thereby playing the noise reduction sound signal through the speaker to offset the target noise signal through the noise reduction sound signal and complete the noise reduction operation.

[0139] In this way, when the headphone device detects that the wearer is in a stationary state, it can generate a noise reduction signal based on the noise signal in the surrounding environment, and neutralize the noise signal in the surrounding environment through the noise reduction signal, thereby improving the sound quality heard by the wearer.

[0140] For example, to help understand the implementation process of the emergency reminder method obtained by combining the present embodiment with the above embodiments, please refer to Figure 6 , Figure 6 A brief flowchart of an emergency reminder method is provided, specifically:

[0141] In this embodiment, when the earphone device is running, the heart sound microphone configured by itself is first called to collect the low-frequency heart sound signal in the ear canal of the wearer, and the real-time heart rate value of the wearer is obtained according to the low-frequency heart sound signal. At the same time, the earphone device calls the inertial sensor configured by itself to detect the number of steps generated by the wearer during the detection period. After that, the earphone device inputs the real-time heart rate value and the number of steps into the processor configured by itself, so that the processor determines the heart rate interval in which the real-time heart rate value is located, and obtains the heart rate state score according to the heart rate interval. At the same time, the processor determines the step interval in which the number of steps is located, and obtains the motion state score according to the step interval. After that, the processor determines the preset first weight value corresponding to the heart rate state score in the state score value calculation formula, and the preset second weight value corresponding to the motion state score in the state score value calculation formula, and calculates the real-time state score value corresponding to the wearer according to the heart rate state score, the preset first weight value, the motion state score, and the preset second weight value. When the processor determines that the real-time state score value is greater than or equal to the preset state score threshold, it determines that the wearer is in motion.

[0142] Afterwards, the headphone device collects various ambient sound signals in the wearer's surrounding environment through its own noise reduction microphone, and filters out emergency sound signals emitted by dangerous sound sources from various ambient sound signals. Finally, the headphone device amplifies the emergency sound signal to generate a prompt sound signal, and inputs the prompt sound signal to its own configured speaker, so that the prompt sound signal is played through the speaker, thereby reminding the wearer that there are safety risks around him.

[0143] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the emergency reminder method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0144] The present application provides an earphone device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the emergency reminder method in the above-mentioned embodiment 1.

[0145] Reference below Figure 5 , which shows a schematic diagram of the structure of an earphone device suitable for implementing an embodiment of the present application. The earphone device in the embodiment of the present application may include but is not limited to an earphone device internally configured with a heart sound microphone, a noise reduction microphone, a call microphone, an inertial sensor, an air pressure detection device, a processor, a battery, and a speaker. Figure 5 The headphone device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0146] like Figure 5 As shown, the headphone device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the headphone device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the headset device to communicate with other devices wirelessly or wired to exchange data. Although the headset device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0147] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0148] The headphone device provided by the present application adopts the emergency reminder method in the above embodiment, which can solve the technical problem in the related art that the noise reduction function in the headphone device will shield the emergency sound signals around the user, making it difficult for the user to perceive the emergency situation around him. Compared with the prior art, the beneficial effects of the headphone device provided by the present application are the same as the beneficial effects of the emergency reminder method provided by the above embodiment, and the other technical features in the headphone device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0149] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0150] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0151] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the emergency reminder method in the above-mentioned embodiment.

[0152] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0153] The computer-readable storage medium may be included in the headphone device; or may exist independently without being assembled into the headphone device.

[0154] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the headphone device, the headphone device: detects whether the wearer is in motion; if the wearer is detected to be in motion, extracts the emergency sound signal in the wearer's surrounding environment; generates a reminder sound signal based on the emergency sound signal, and outputs the reminder sound signal to remind the wearer.

[0155] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0156] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0157] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0158] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned emergency reminder method, and can solve the technical problem in the related art that the noise reduction function in the headphone device will shield the emergency sound signals around the user, making it difficult for the user to perceive the emergency situation around him. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the emergency reminder method provided by the above-mentioned embodiment, which will not be repeated here.

[0159] The present application also provides a computer program product, including a computer program, which implements the steps of the emergency reminder method as described above when executed by a processor.

[0160] The computer program product provided by the present application can solve the technical problem in the related art that the noise reduction function in the earphone device will shield the emergency sound signals around the user, making it difficult for the user to perceive the emergency situation around him. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the emergency reminder method provided by the above embodiment, which will not be repeated here.

[0161] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. An emergency reminder method, characterized in that: The emergency reminder method is applied to a headphone device, and the method comprises: Detect whether the wearer is in motion; If it is detected that the wearer is in motion, extracting emergency sound signals in the wearer's surroundings; A warning sound signal is generated based on the emergency sound signal, and the warning sound signal is output to warn the wearer.

2. The method according to claim 1, characterized in that The earphone device is provided with a heart rate detection module and an inertia detection module, and the step of detecting whether the wearer is in a state of motion comprises: Detecting the real-time heart rate value of the wearer through the heart rate detection module, and detecting the real-time motion parameters of the wearer through the inertia detection module; Whether the wearer is in a state of exercise is determined according to the real-time heart rate value and the real-time exercise parameter.

3. The method according to claim 2, characterized in that The heart rate detection module includes a sound detection unit, and the step of detecting the real-time heart rate value of the wearer by the heart rate detection module includes: Detecting an initial low-frequency heart sound signal in the ear canal of the wearer by the sound detection unit, and filtering the initial low-frequency heart sound signal to obtain a target heart sound signal; The heart sound signal features of the target heart sound signal are extracted, and the real-time heart rate value of the wearer is determined according to the heart sound signal features.

4. The method according to claim 2, characterized in that Before the step of detecting the real-time heart rate value of the wearer by the heart rate detection module, the method further includes: Obtaining physiological parameter information input by the wearer; The heart rate interval setting scheme corresponding to the wearer is determined according to the physiological parameter information, and the step of detecting the real-time heart rate value of the wearer by the heart rate detection module is performed.

5. The method according to claim 2, characterized in that The heart rate detection module further includes an air pressure detection unit, and the step of detecting the real-time heart rate value of the wearer by the heart rate detection module further includes: Detecting the low-frequency air pressure signal in the ear canal of the wearer by the air pressure detection unit; Extracting an air pressure signal feature corresponding to the low-frequency air pressure signal, and determining a plurality of air pressure signal peaks contained in the air pressure signal feature; The real-time heart rate value of the wearer is determined according to the peak interval duration generated between the multiple peaks of the air pressure signal.

6. The method according to claim 2, characterized in that The step of judging whether the wearer is in a state of exercise according to the real-time heart rate value and the real-time exercise parameter comprises: Obtaining a heart rate status score according to the real-time heart rate value, and determining a preset first weight value corresponding to the heart rate status score; Obtaining a motion state score according to the real-time motion parameter, and determining a preset second weight value corresponding to the motion state score; Obtain a real-time state score value based on the heart rate state score, the preset first weight value, the exercise state score, and the preset second weight value; When the real-time state score value is greater than or equal to a preset state score threshold, it is determined that the wearer is in a motion state.

7. The method according to claim 1, characterized in that The earphone device is also equipped with a sound collection module, and the step of extracting the emergency sound signal in the wearer's surrounding environment includes: Extracting a plurality of ambient sound signals in the wearer's surrounding environment through the sound collection module, and extracting the ambient sound features corresponding to each of the plurality of ambient sound signals; Comparing the preset multiple reference emergency sound feature information and the multiple environmental sound features in sequence to obtain multiple comparison results; A target sound feature is determined from the multiple environmental sound features according to the multiple comparison results, and an environmental sound signal corresponding to the target sound feature is determined as an emergency sound signal.

8. The method according to claim 7, characterized in that The earphone device is connected to the mobile terminal device held by the wearer in communication; After the step of determining the ambient sound signal corresponding to the target sound feature as an emergency sound signal, the method further includes: Determine multiple signal receiving times of the sound collection module, wherein the signal receiving time is the time when multiple sound collection units in the sound collection module each collect the emergency sound signal; Determine the sound source location information corresponding to the emergency sound signal based on the plurality of signal reception times; Generate warning information according to the sound source location information, and output the warning information to the mobile terminal device to remind the wearer through the mobile terminal device.

9. The method according to claim 1, characterized in that After the step of detecting whether the wearer is in motion, the method further comprises: If it is detected that the wearer is not in motion, a target noise signal in the wearer's surrounding environment is acquired through a sound collection module; A noise reduction sound signal is generated based on the target noise signal, and the noise reduction sound signal is output.

10. An earphone device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the emergency alert method according to any one of claims 1 to 9.

11. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the emergency reminder method according to any one of claims 1 to 9 are implemented.

12. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the emergency alert method according to any one of claims 1 to 9 are implemented.

Citation Information

Cited By

  • An alarm management system for earphones

    WO2026231073A1