Earphone wearing early warning method and device, earphone and storage medium
By integrating the photoelectric volume pulse wave sensor and preset memory network architecture in the headphones, the blood oxygen saturation value is calibrated in real time, and personalized headphone wear warning is achieved, solving the problem of insufficient accuracy in the existing technology and ensuring that users use the headphones healthily.
Patent Information
- Application Number
- CN202510396750.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-07-08
AI Technical Summary
The prior art has low accuracy in headphone wear warnings, and it is impossible to provide effective warnings based on individual differences between different users, resulting in excessive fatigue or damage to the ears.
By detecting that the user wears the headset, the user's blood oxygen saturation value is measured by using the photoelectric volume pulse wave sensor, and the preset memory network architecture is used for calibration, and the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value is calculated, and a personalized alarm prompt is made when the percentage is less than the preset threshold.
It improves the accuracy of headphone wear warnings, promptly reminds users to wear reasonably, avoid ear damage, and provides a more considerate and healthy wearing experience.
Smart Images

Figure CN120282056A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of data processing, and particularly to a method and device for headphone wearing warning, headphones and a storage medium. Background Technique
[0002] Headphones are often used in users' daily lives, for example, listening to music, watching videos, and studying. However, in daily use scenarios, wearing headphones for a long time often has the potential problem of causing excessive ear fatigue, and in severe cases, even causing double damage to the ears and hearing. Therefore, accurate warning is required when users wear headphones. Currently, the common method for wearing warning is based on a set fixed duration, for example, 1 hour, and the warning will only be issued when 1 hour is reached. However, for different users, the duration for triggering the warning is different. For example, teenagers wearing headphones for 1 hour will severely compress their ears and the blood circulation will be seriously blocked. Therefore, the accuracy of the above method for wearing warning is relatively low.
[0003] The above content is only used to assist in understanding the technical solution of this application, and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main purpose of this application is to provide a method and device for headphone wearing warning, headphones and a storage medium, aiming to solve the technical problem of relatively low accuracy of wearing warning in the prior art.
[0005] To achieve the above purpose, this application proposes a method for headphone wearing warning, and the method includes:
[0006] After detecting that the user wears the target headphones, determine the target blood oxygen saturation value of the user;
[0007] After controlling the target sensing device to emit multi-dimensional measurement light to the user's skin, determine the current blood oxygen saturation value of the user according to the measurement light absorption data;
[0008] Calculate the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value;
[0009] When the percentage is less than a preset threshold, perform a wearing warning according to the alarm prompt information of the target frequency.
[0010] In an embodiment, the step of determining the target blood oxygen saturation value of the user after detecting that the user wears the target headphones includes:
[0011] After detecting that the user wears the target headphones, obtain the identification information of the user;
[0012] Determine the standard blood oxygen saturation value of the user in different states according to the identification information;
[0013] Detect the current state of the user after wearing the target smart device and the initial value of blood oxygen saturation;
[0014] Determine the target blood oxygen saturation value of the user according to the standard blood oxygen saturation values of the user in different states, the current state, and the initial value of blood oxygen saturation.
[0015] In one embodiment, the step of determining the target blood oxygen saturation value of the user according to the standard blood oxygen saturation values of the user in different states, the current state, and the initial value of blood oxygen saturation includes:
[0016] Based on a preset memory network architecture, train a standard blood oxygen saturation value prediction model according to the standard blood oxygen saturation values of the user in different states;
[0017] Output a target calibration value corresponding to the current state based on the standard blood oxygen saturation value prediction model;
[0018] Calibrate the initial value of blood oxygen saturation according to the target calibration value to obtain the target blood oxygen saturation value of the user.
[0019] In one embodiment, the step of determining the current blood oxygen saturation value of the user according to the measurement light absorption data after controlling the target sensing device to emit multi-dimensional measurement light to the skin of the user includes:
[0020] After controlling the target sensing device to emit multi-dimensional measurement light to the skin of the user in an alternating manner, receive the multi-dimensional measurement light reflected by the skin;
[0021] Determine the measurement light absorption data according to the multi-dimensional measurement light reflected by the skin and the emitted multi-dimensional measurement light;
[0022] Calculate the multi-dimensional measurement light absorption ratio according to the measurement light absorption data;
[0023] Calculate and determine the current blood oxygen saturation value of the user according to the multi-dimensional measurement light absorption ratio.
[0024] In one embodiment, the target frequency includes a first frequency and a second frequency, wherein the second frequency is higher than the first frequency;
[0025] The step of performing a wearing warning according to the alarm prompt information of the target frequency when the percentage is less than a preset threshold includes:
[0026] When the percentage is less than the preset threshold, calculate the difference between the percentage and the preset threshold;
[0027] When the difference is within the first interval, an alarm prompt message with a first frequency is generated, and wearing early warning is performed according to the alarm prompt message with the first frequency;
[0028] When the difference is within the second interval, an alarm prompt message with a second frequency is generated, and wearing early warning is performed according to the alarm prompt message with the second frequency.
[0029] In one embodiment, after the step of calculating the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value, the following is further included:
[0030] Obtain the end time of calculating the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value and the start time of controlling the target sensing device to emit multi-dimensional measurement light to the user's skin;
[0031] Calculate the duration consumed from the target blood oxygen saturation value to the current blood oxygen saturation value according to the start time and the end time;
[0032] Calculate the percentage change rate according to the duration and the percentage;
[0033] When the percentage change rate is greater than the preset rate threshold, wearing early warning is performed according to the alarm prompt message with the second frequency.
[0034] In one embodiment, after the step of calculating the percentage change rate according to the duration and the percentage, the following is further included:
[0035] When the percentage change rate is less than or equal to the preset rate threshold, return to execute the step of calculating the difference between the percentage and the preset threshold.
[0036] In addition, to achieve the above object, the present application further provides a headphone wearing early warning device, and the device includes:
[0037] A determination module, configured to determine the target blood oxygen saturation value of the user after detecting that the user wears the target headphone;
[0038] The determination module is further configured to determine the current blood oxygen saturation value of the user according to the measurement light absorption data after controlling the target sensing device to emit multi-dimensional measurement light to the user's skin;
[0039] A calculation module, configured to calculate the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value;
[0040] An early warning module, configured to perform wearing early warning according to the alarm prompt message with the target frequency when the percentage is less than the preset threshold.
[0041] In addition, to achieve the above object, the present application further provides a headset, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the headset wearing warning method as described above.
[0042] In addition, to achieve the above object, the present application further provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, it implements the steps of the headset wearing warning method as described above.
[0043] One or more technical solutions provided by the present application have at least the following technical effects: after detecting that the user wears the target headset, determining the target blood oxygen saturation value of the user; after controlling the target sensing device to emit multi-dimensional measurement light to the user's skin, determining the current blood oxygen saturation value of the user according to the measurement light absorption data; calculating the percentage of the current blood oxygen saturation value to the target blood oxygen saturation value; when the percentage is less than a preset threshold, performing a wearing warning according to the alarm prompt information of the target frequency. By the above method, after detecting that the user wears the target headset, determining the target blood oxygen saturation value obtained through calibration to accurately reflect the abnormal fluctuation of the blood oxygen saturation, and then calculating the percentage of the current blood oxygen saturation value to the target blood oxygen saturation value, and when it is determined that the percentage is less than the preset threshold, performing a wearing warning, so as to effectively improve the accuracy of the wearing warning, prompt the user to wear the headset correctly and reasonably, and thus avoid damaging the user's ears. Description of the Drawings
[0044] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0045] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0046] Figure 1 It is a schematic flowchart provided for Embodiment 1 of the headset wearing warning method of the present application;
[0047] Figure 2 It is a schematic flowchart provided for Embodiment 2 of the headset wearing warning method of the present application;
[0048] Figure 3 It is a schematic module structure diagram of the headset wearing warning device in the embodiment of the present application;
[0049] Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the headphone wearing warning method in the embodiments of the present application.
[0050] The realization of the purpose, functional features, and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. Specific embodiments
[0051] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a headphone wearing warning device, etc. that can implement the above functions. Hereinafter, taking the headphone wearing warning device as an example, this embodiment and the following embodiments will be described.
[0052] Based on this, the embodiments of the present application provide a headphone wearing warning method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the headphone wearing warning method of the present application.
[0053] In this embodiment, the headphone wearing warning method includes steps S10 to S30:
[0054] Step S10, after detecting that the user wears the target headphone, determine the target blood oxygen saturation value of the user.
[0055] It should be noted that the target headphone can be a head-mounted intelligent headphone or other headphones, and this embodiment does not limit this. A photoplethysmogram (PPG) sensor is built into the position of the target headphone facing the auricle, which is in direct contact with the user's ear skin. The target blood oxygen saturation value refers to the calibrated blood oxygen saturation value. Since the blood oxygen saturation values of different users are different, in order to accurately reflect the abnormal fluctuations of the blood oxygen saturation, after detecting that the user wears the target headphone, the blood oxygen saturation value of the user will be calibrated first. For example, after calibration, the target blood oxygen saturation value A of the user = AD value 100.
[0056] Further, step S10 includes: after detecting that the user wears the target headphone, obtain the identification information of the user; determine the standard blood oxygen saturation values of the user in different states according to the identification information; detect the current state and the initial blood oxygen saturation value of the user after wearing the target intelligent device; determine the target blood oxygen saturation value of the user according to the standard blood oxygen saturation values of the user in different states, the current state, and the initial blood oxygen saturation value.
[0057] It should be understood that the identification information refers to the information used to identify different users, the standard blood oxygen saturation value refers to the optimal blood oxygen saturation value of the user in different states, for example, the walking exercise state, the resting state, etc., and the initial blood oxygen saturation value refers to the blood oxygen saturation value corresponding to the current state after detecting that the user wears the target earphone, that is, the uncalibrated blood oxygen saturation value. Since there are differences in the blood oxygen saturation values of different users, the initial blood oxygen saturation value cannot accurately reflect the abnormal fluctuations of the blood oxygen saturation. At this time, the initial blood oxygen saturation value needs to be further processed.
[0058] Further, the step of determining the target blood oxygen saturation value of the user according to the standard blood oxygen saturation value of the user in different states, the current state, and the initial blood oxygen saturation value includes: based on a preset memory network architecture, training a standard blood oxygen saturation value prediction model according to the standard blood oxygen saturation value of the user in different states; outputting a target calibration value corresponding to the current state based on the standard blood oxygen saturation value prediction model; and calibrating the initial blood oxygen saturation value according to the target calibration value to obtain the target blood oxygen saturation value of the user.
[0059] It can be understood that the preset memory network architecture refers to the network structure used to train the standard blood oxygen saturation value prediction model. In order to effectively improve the accuracy and efficiency of the training model, the preset memory network architecture can be a long short-term memory network architecture, which has the characteristics of capturing time series dependence and jointly analyzing time series synchronization. After training a qualified standard blood oxygen saturation value prediction model, input the feature information corresponding to the current state into the standard blood oxygen saturation value prediction model, and the standard blood oxygen saturation value prediction model outputs a target calibration value corresponding to the current state, and calibrates the initial blood oxygen saturation value to the target blood oxygen saturation value through the target calibration value. For example, if the initial blood oxygen saturation value is 103, after calibration, the target blood oxygen saturation value specific to this user is obtained, achieving the purpose of accurately reflecting the abnormal fluctuations of the blood oxygen saturation.
[0060] Step S20, after controlling the target sensing device to emit multi-dimensional measurement light to the user's skin, determine the current blood oxygen saturation value of the user according to the measurement light absorption data.
[0061] It can be understood that the multi-dimensional measurement light refers to the light used to measure the blood oxygen saturation value of the user. The multi-dimensional measurement light includes but is not limited to red light and infrared light, which can be emitted by the infrared diode of the PPG sensor, and an emission strategy of alternating at different time intervals can be adopted. Since the oxygenated hemoglobin and reduced hemoglobin in the blood have different absorption capabilities for the above multi-dimensional measurement light, the absorption amount of the multi-dimensional measurement light is also different, that is, the current blood oxygen saturation value of the user can be determined according to the measurement light absorption data.
[0062] Step S30: Calculate the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value.
[0063] It should be understood that after determining the current blood oxygen saturation value, calculate the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value. For example, if the current blood oxygen saturation value is 90 and the target blood oxygen saturation value is 100, the calculated percentage is 90%.
[0064] Furthermore, after step S30, it further includes: obtaining the end time of calculating the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value and the start time of controlling the target sensing device to emit multi-dimensional measurement light to the user's skin; calculating the duration consumed from the target blood oxygen saturation value changing to the current blood oxygen saturation value according to the start time and the end time; calculating the percentage change rate according to the duration and the percentage; when the percentage change rate is greater than the preset rate threshold, perform a wearing warning according to the alarm prompt information of the second frequency.
[0065] It can be understood that the end time refers to the time when the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value is calculated, and the start time refers to the time when the target sensing device is controlled to emit multi-dimensional measurement light to the user's skin. After calculating the duration consumed from the target blood oxygen saturation value changing to the current blood oxygen saturation value, calculate the percentage change rate. The greater the percentage change rate, the faster the change in the user's blood oxygen saturation value and the more severely the ear is compressed. That is, when the percentage change rate is greater than the preset rate threshold, the user needs to be reminded to take off the earphone and rest as soon as possible, otherwise the earphone will be severely damaged. That is to say, perform a wearing warning according to the alarm prompt information of the second frequency.
[0066] Furthermore, after the step of calculating the percentage change rate according to the duration and the percentage, it further includes: when the percentage change rate is less than or equal to the preset rate threshold, return to execute the step of calculating the difference between the percentage and the preset threshold.
[0067] It should be understood that when it is determined that the percentage change rate is less than or equal to the preset rate threshold, it indicates that the ear is mildly compressed. At this time, an alarm prompt information needs to be generated according to the interval where the difference between the percentage and the preset threshold is located. For example, if it is in the first interval, generate the alarm prompt information of the first frequency, and if it is in the second interval, generate the alarm prompt information of the second frequency.
[0068] Step S40: When the percentage is less than the preset threshold, perform a wearing warning according to the alarm prompt information of the target frequency.
[0069] It can be understood that when it is determined that the percentage is less than the preset threshold, it indicates that the blood oxygen saturation fluctuates abnormally. At this time, an alarm prompt message with a target frequency is generated and can be played through a speaker to achieve the purpose of timely reminding the user. The alarm prompt message refers to the prompt message for reminding the user to remove the target intelligent device. In different situations, the frequency of the alarm prompt message is different. For the user, when the target intelligent device emits an alarm prompt message with the target frequency, the user will remove the earphone to avoid damage to the user's ear caused by blocked blood circulation.
[0070] Further, the target frequency includes a first frequency and the second frequency, wherein the second frequency is higher than the first frequency; step S40 includes: when the percentage is less than the preset threshold, calculating the difference between the percentage and the preset threshold; when the difference is in the first interval, generating an alarm prompt message with the first frequency and performing a wearing warning according to the alarm prompt message with the first frequency; when the difference is in the second interval, generating an alarm prompt message with the second frequency and performing a wearing warning according to the alarm prompt message with the second frequency.
[0071] It should be understood that the second frequency being higher than the first frequency indicates that the situation of emitting the alarm prompt message with the second frequency is more urgent than that of emitting the alarm prompt message with the first frequency. Among them, the preset threshold can be 95%-100%. At this time, the first interval can be 5%-10%, and the second interval can be greater than 10%. That is, when the difference is in the first interval, an alarm prompt message with the first frequency is generated. At this time, the frequency of the alarm prompt message is relatively gentle, reminding the user to remove the earphone and rest. When the difference is in the second interval, the user's ear is severely compressed and the blood circulation is seriously blocked. An alarm prompt message with the second frequency is generated. At this time, the frequency of the alarm prompt message is urgent, reminding the user to remove the earphone and rest as soon as possible, otherwise it will seriously damage the ear. According to the above alarm prompt message, it can effectively prevent the ear from being in a load state for a long time and bring a more considerate and healthy wearing experience to the user.
[0072] In this embodiment, after detecting that the user wears the target earphone, the target blood oxygen saturation value of the user is determined; after controlling the target sensing device to emit multi-dimensional measurement light to the user's skin, the current blood oxygen saturation value of the user is determined according to the measurement light absorption data; the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value is calculated; when the percentage is less than a preset threshold, a wearing warning is given according to the alarm prompt information of the target frequency. By the above method, after detecting that the user wears the target earphone, the target blood oxygen saturation value obtained through calibration is determined, so as to accurately reflect the abnormal fluctuation of the blood oxygen saturation. Then, the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value is calculated. When it is determined that the percentage is less than the preset threshold, a wearing warning is given, so as to effectively improve the accuracy of the wearing warning, prompt the user to wear the earphone correctly and reasonably, and thus avoid damaging the user's ears.
[0073] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar content as in the above-mentioned first embodiment can be referred to the above introduction and will not be repeated hereinafter. On this basis, please refer to Figure 2 , step S20 includes steps S201 to S204:
[0074] Step S201, after controlling the target sensing device to emit multi-dimensional measurement light to the user's skin in an alternating manner, receive the multi-dimensional measurement light reflected by the skin.
[0075] It should be noted that after the multi-dimensional measurement light passes through the user's skin and is partially absorbed, the remaining multi-dimensional measurement light will be reflected back, and at this time, the multi-dimensional measurement light reflected by the skin is received.
[0076] Step S202, determine the measurement light absorption data according to the multi-dimensional measurement light reflected by the skin and the emitted multi-dimensional measurement light.
[0077] It can be understood that the measurement light absorption data refers to the data of the user's skin absorbing the multi-dimensional measurement light. After receiving the multi-dimensional measurement light reflected by the skin, the multi-dimensional measurement light reflected by the skin is compared with the emitted multi-dimensional measurement light, so as to determine the measurement light absorption data.
[0078] Step S203, calculate the multi-dimensional measurement light absorption ratio according to the measurement light absorption data.
[0079] It should be understood that the measurement light absorption data includes but is not limited to AC component data, DC component data, etc. After determining the measurement light absorption data, calculate the multi-dimensional measurement light absorption ratio, specifically:
[0080]
[0081] Among them, R represents the multi-dimensional measured light absorption ratio, AC 660 represents the AC component data of red light, DC 660 represents the DC component data of red light, AC 940 represents the AC component data of infrared light, DC 940 represents the DC component data of infrared light.
[0082] Step S204: Calculate and determine the current blood oxygen saturation value of the user according to the multi-dimensional measured light absorption ratio.
[0083] It can be understood that after calculating the multi-dimensional measured light absorption ratio, the current blood oxygen saturation of the user is calculated. Specifically:
[0084] SpO2 = 110 - 25×R.
[0085] Among them, SpO2 represents the current blood oxygen saturation, and R represents the multi-dimensional measured light absorption ratio.
[0086] It should be noted that after calculating the current blood oxygen saturation, the current blood oxygen saturation can be mapped to the current blood oxygen saturation value of the user. For example, the current blood oxygen saturation AD value is 90.
[0087] In this embodiment, after controlling the target sensing device to emit multi-dimensional measurement light to the user's skin in an alternating manner, the multi-dimensional measurement light reflected by the skin is received; the measurement light absorption data is determined according to the multi-dimensional measurement light reflected by the skin and the emitted multi-dimensional measurement light; the multi-dimensional measurement light absorption ratio is calculated according to the measurement light absorption data; the current blood oxygen saturation value of the user is calculated and determined according to the multi-dimensional measurement light absorption ratio. In the above manner, based on the different absorption capabilities of oxyhemoglobin and reduced hemoglobin in the blood for multi-dimensional measurement light, the measurement light absorption data is determined according to the multi-dimensional measurement light reflected by the skin and the emitted multi-dimensional measurement light, and after calculating the multi-dimensional measurement light absorption ratio, the current blood oxygen saturation value of the user is calculated according to the multi-dimensional measurement light absorption ratio, thereby effectively improving the accuracy of obtaining the current blood oxygen saturation value.
[0088] This application also provides a headphone wearing warning device. Please refer to Figure 3 The headphone wearing warning device includes:
[0089] Determination module 10, configured to determine the target blood oxygen saturation value of the user after detecting that the user wears the target headphones.
[0090] The determination module 10 is further configured to determine the current blood oxygen saturation value of the user according to the measurement light absorption data after controlling the target sensing device to emit multi-dimensional measurement light to the user's skin.
[0091] A calculation module 20 is configured to calculate the percentage of the current blood oxygen saturation value to the target blood oxygen saturation value.
[0092] An early warning module 30 is configured to perform wearing early warning according to the alarm prompt information of the target frequency when the percentage is less than a preset threshold.
[0093] In this embodiment, after detecting that the user wears the target earphone, the target blood oxygen saturation value of the user is determined; after controlling the target sensing device to emit multi-dimensional measurement light to the skin of the user, the current blood oxygen saturation value of the user is determined according to the measurement light absorption data; the percentage of the current blood oxygen saturation value to the target blood oxygen saturation value is calculated; when the percentage is less than a preset threshold, wearing early warning is performed according to the alarm prompt information of the target frequency. By the above method, after detecting that the user wears the target earphone, the target blood oxygen saturation value obtained through calibration is determined to accurately reflect the abnormal fluctuation of the blood oxygen saturation, and then the percentage of the current blood oxygen saturation value to the target blood oxygen saturation value is calculated. When it is determined that the percentage is less than the preset threshold, wearing early warning is performed, so as to effectively improve the accuracy of wearing early warning, prompt the user to wear the earphone correctly and reasonably, and avoid damaging the user's ears.
[0094] The earphone wearing early warning device provided by this application adopts the earphone wearing early warning method in the above embodiment, which can solve the technical problem of low accuracy of wearing early warning in the prior art. Compared with the prior art, the beneficial effects of the earphone wearing early warning device provided by this application are the same as those of the earphone wearing early warning method provided by the above embodiment, and other technical features in the earphone wearing early warning device are the same as the features disclosed in the above embodiment method, which will not be elaborated here.
[0095] In one embodiment, the determination module 10 is further configured to obtain the identification information of the user after detecting that the user wears the target earphone; determine the standard blood oxygen saturation values of the user in different states according to the identification information; detect the current state of the user after wearing the target intelligent device and the initial blood oxygen saturation value; and determine the target blood oxygen saturation value of the user according to the standard blood oxygen saturation values of the user in different states, the current state and the initial blood oxygen saturation value.
[0096] In one embodiment, the determination module 10 is further configured to train a standard blood oxygen saturation value prediction model based on a preset memory network architecture according to the standard blood oxygen saturation values of the user in different states; output a target calibration value corresponding to the current state based on the standard blood oxygen saturation value prediction model; and calibrate the initial blood oxygen saturation value according to the target calibration value to obtain the target blood oxygen saturation value of the user.
[0097] In one embodiment, the determining module 10 is further configured to, after controlling the target sensing device to emit multi-dimensional measurement light to the user's skin in an alternating manner, receive the multi-dimensional measurement light reflected by the skin; determine measurement light absorption data according to the multi-dimensional measurement light reflected by the skin and the emitted multi-dimensional measurement light; calculate a multi-dimensional measurement light absorption ratio according to the measurement light absorption data; and calculate and determine the current blood oxygen saturation value of the user according to the multi-dimensional measurement light absorption ratio.
[0098] In one embodiment, the calculating module 20 is further configured to obtain the end time for calculating the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value and the start time for controlling the target sensing device to emit multi-dimensional measurement light to the user's skin; calculate the time taken for the target blood oxygen saturation value to change to the current blood oxygen saturation value according to the start time and the end time; calculate a percentage change rate according to the time duration and the percentage; and issue a wearing warning according to the alarm prompt information of the second frequency when the percentage change rate is greater than a preset rate threshold.
[0099] In one embodiment, the calculating module 20 is further configured to return to execute the step of calculating the difference between the percentage and the preset threshold when the percentage change rate is less than or equal to the preset rate threshold.
[0100] In one embodiment, the target frequency includes a first frequency and the second frequency, where the second frequency is higher than the first frequency; the warning module 30 is further configured to calculate the difference between the percentage and the preset threshold when the percentage is less than the preset threshold; generate alarm prompt information of the first frequency and issue a wearing warning according to the alarm prompt information of the first frequency when the difference is within the first interval; and generate alarm prompt information of the second frequency and issue a wearing warning according to the alarm prompt information of the second frequency when the difference is within the second interval.
[0101] This application provides an earphone, 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 earphone wearing warning method in the first embodiment above.
[0102] Next, refer to Figure 4, which shows a schematic structural diagram of a headset suitable for implementing the embodiments of the present application. The headset in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistant), PADs (Portable Application Description), PMPs (Portable Media Player), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The headset shown is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present application.
[0103] As Figure 4 shown, the headset may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may perform various appropriate actions and processes according to a program stored in a ROM (Read Only Memory) 1002 or a program loaded from a storage device 1003 into a RAM (Random Access Memory) 1004. In the RAM 1004, various programs and data required for headset operations are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 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 may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, 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), 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 may allow the headset to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a headset with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be alternatively implemented or had.
[0104] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. The computer program contains program codes for executing the methods shown in the flowcharts. 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 a processing device 1001, the above functions defined in the methods of the disclosed embodiments of the present application are executed.
[0105] The earphone provided by the present application adopts the earphone wearing warning method in the above embodiment, which can solve the technical problem of low accuracy of wearing warning in the prior art. Compared with the prior art, the beneficial effects of the earphone provided by the present application are the same as those of the earphone wearing warning method provided in the above embodiment, and other technical features in the earphone are the same as those disclosed in the previous embodiment method, which will not be elaborated here.
[0106] It should be understood that each part disclosed in the present 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 a suitable manner in any one or more embodiments or examples.
[0107] As described above, the above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0108] The present application provides a computer-readable storage medium with computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the earphone wearing warning method in the above embodiment.
[0109] The computer-readable storage medium provided by this application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. The program code contained on the computer-readable storage medium can 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.
[0110] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The above programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone 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 can 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 can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).
[0111] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems and methods according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as combinations of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0112] The modules described in the embodiments of the present application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation on the unit itself in some cases.
[0113] The readable storage medium provided by the present application is a computer-readable storage medium, and the computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned headphone wearing warning method, which can solve the technical problem of low accuracy of wearing warning in the prior art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as those of the headphone wearing warning method provided by the above embodiments, and will not be elaborated here.
[0114] The above are only some embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structural transformation made by using the content of the specification and drawings of the present application under the technical concept of the present application, or direct / indirect application in other related technical fields, is included in the patent protection scope of the present application.
Claims
1. A method for warning of headphone wearing, characterized in that, The method includes: After detecting that the user wears the target earphone, determining the target blood oxygen saturation value of the user; After controlling the target sensing device to emit multi-dimensional measurement light to the user's skin, determining the current blood oxygen saturation value of the user according to the measurement light absorption data; Calculating the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value; When the percentage is less than a preset threshold, performing a wearing warning according to the alarm prompt information of the target frequency.
2. The method according to claim 1, wherein The step of determining the target blood oxygen saturation value of the user after detecting that the user wears the target earphone includes: After detecting that the user wears the target earphone, obtaining the identification information of the user; Determining the standard blood oxygen saturation values of the user in different states according to the identification information; Detecting the current state of the user after wearing the target smart device and the initial blood oxygen saturation value; Determining the target blood oxygen saturation value of the user according to the standard blood oxygen saturation values of the user in different states, the current state, and the initial blood oxygen saturation value.
3. The method according to claim 2, wherein The step of determining the target blood oxygen saturation value of the user according to the standard blood oxygen saturation values of the user in different states, the current state, and the initial blood oxygen saturation value includes: Based on a preset memory network architecture, training a standard blood oxygen saturation value prediction model according to the standard blood oxygen saturation values of the user in different states; Outputting a target calibration value corresponding to the current state based on the standard blood oxygen saturation value prediction model; Calibrating the initial blood oxygen saturation value according to the target calibration value to obtain the target blood oxygen saturation value of the user.
4. The method according to claim 1, wherein The step of determining the current blood oxygen saturation value of the user according to the measurement light absorption data after controlling the target sensing device to emit multi-dimensional measurement light to the user's skin includes: After controlling the target sensing device to emit multi-dimensional measurement light to the user's skin in an alternating manner, receiving the multi-dimensional measurement light reflected by the skin; Determining the measurement light absorption data according to the multi-dimensional measurement light reflected by the skin and the emitted multi-dimensional measurement light; Calculating a multi-dimensional measurement light absorption ratio according to the measurement light absorption data; Calculating and determining the current blood oxygen saturation value of the user according to the multi-dimensional measurement light absorption ratio.
5. The method according to any one of claims 1 to 4, characterized in that, The target frequency includes a first frequency and a second frequency, wherein the second frequency is higher than the first frequency; The step of performing a wearing warning according to the alarm prompt information of the target frequency when the percentage is less than a preset threshold includes: When the percentage is less than a preset threshold, calculating the difference between the percentage and the preset threshold; When the difference is in the first interval, generating alarm prompt information of the first frequency and performing a wearing warning according to the alarm prompt information of the first frequency; When the difference is in the second interval, generating alarm prompt information of the second frequency and performing a wearing warning according to the alarm prompt information of the second frequency.
6. The method according to claim 1, wherein After the step of calculating the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value, it further includes: Obtain the end time for calculating the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value, and the start time for controlling the target sensing device to emit multi-dimensional measurement light to the user's skin; Calculate the duration taken for the target blood oxygen saturation value to change to the current blood oxygen saturation value based on the start time and the end time; Calculate the percentage change rate based on the duration and the percentage; When the percentage change rate is greater than the preset rate threshold, give a wearing warning according to the alarm prompt information of the second frequency.
7. The method according to claim 6, wherein After the step of calculating the percentage change rate based on the duration and the percentage, it further includes: When the percentage change rate is less than or equal to the preset rate threshold, return to execute the step of calculating the difference between the percentage and the preset threshold.
8. An earphone wearing warning device, characterized in that, The device includes: A determination module, configured to determine the target blood oxygen saturation value of the user after detecting that the user wears the target earphone; The determination module is further configured to determine the current blood oxygen saturation value of the user according to the measurement light absorption data after controlling the target sensing device to emit multi-dimensional measurement light to the user's skin; A calculation module, configured to calculate the percentage of the current blood oxygen saturation value and the target blood oxygen saturation value; A warning module, configured to give a wearing warning according to the alarm prompt information of the target frequency when the percentage is less than the preset threshold.
9. A headphone, characterized in that, The earphone includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the earphone wearing warning method according to any one of claims 1 to 7.
10. 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, and when the computer program is executed by a processor, it implements the steps of the earphone wearing warning method according to any one of claims 1 to 7.