Wearing detection method and wearable device
By using green light data feature extraction and multi-level detection methods, combined with infrared light, temperature and acceleration data, the problem of low accuracy in wear detection of wearable devices has been solved, and accurate identification of wear status in different scenarios has been achieved.
Patent Information
- Application Number
- CN202210946262.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-08
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-08-08
AI Technical Summary
Existing wear detection methods based on infrared signals for wearable devices have low accuracy in different scenarios and cannot achieve flexible wear detection.
By extracting features from green light data and inputting the feature values of green light data into a preset model, combined with infrared light, temperature and acceleration data, multi-level wearing status detection is performed to exclude non-wearing scenarios and improve detection accuracy and stability.
It enables accurate detection of the wearing status of wearable devices in different scenarios, improves the accuracy and stability of wearing detection, and reduces the false judgment rate.
Smart Images

Figure CN117562522B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a wearing detection method and a wearable device. Background Art
[0002] At present, with the development of terminal technology, terminal devices have become a part of people's work and life. In order to meet the needs of users for their own health management, more terminal devices can support users to monitor human body data. For example, users can use wearable devices to detect human body data. Specifically, the wearable device can start measuring the user's heart rate, breathing rate or blood oxygen and other human characteristics when the wearing detection passes. Among them, the wearing detection is used to detect whether the wearable device is worn by a living organism with life characteristics.
[0003] Generally, wearable devices can perform wearing detection based on infrared signals. For example, the wearable device can use infrared signals to detect the distance between the wearable device and human skin, and determine that the wearable device is being worn by the user when the distance is close, or determine that the wearable device is not being worn by the user when the distance is far.
[0004] However, in some scenarios, the accuracy of the above-mentioned wearing detection method using infrared signals is low. Summary of the invention
[0005] The embodiments of the present application provide a wearing detection method and a wearable device, so that the wearable device can obtain green light data for indicating the heart rate condition detected when the wearable device is worn, and obtain a characteristic value for characterizing the wearing state of the wearable device through feature extraction of the green light data, and then input the characteristic value into a preset model to obtain a more accurate wearing detection result.
[0006] In the first aspect, the embodiment of the present application provides a wearing detection method, which includes: the wearable device collects target data; the target data includes green light data, and the green light data is used to indicate the heart rate detected when the wearable device is worn; the wearable device extracts features from the target data to obtain feature values related to the wearing state; the wearable device inputs the feature values into a preset model to obtain a first wearing detection result; the first wearing detection result is used to indicate whether the wearable device is in a wearing state. In this way, the wearable device can obtain green light data for indicating the heart rate detected when the wearable device is worn, and obtain feature values for characterizing the wearing state of the wearable device through feature extraction of the green light data, and then input the feature values into the preset model to obtain a more accurate wearing detection result.
[0007] In a possible implementation, the characteristic value includes: a first characteristic value obtained based on green light data, the first characteristic value includes one or more of the following: green light AC component, green light DC component, green light time domain autocorrelation coefficient, green light frequency domain maximum, mean of green light adjacent peak ordinate difference, standard deviation of green light adjacent peak ordinate difference, mean of green light adjacent peak abscissa difference, standard deviation of green light adjacent peak abscissa difference, mean of green light peak ordinate, or number of green light time domain peaks. In this way, the wearable device can simulate the heart rate characteristics detected when the user wears the wearable device through the first characteristic value, and then the wearable device can realize accurate detection of the wearing status in different scenarios based on the extraction of the first characteristic value.
[0008] In a possible implementation manner, the target data further includes one or more of the following: infrared light data, temperature data, or acceleration data.
[0009] In a possible implementation, the eigenvalue also includes one or more of the following: a second eigenvalue obtained based on infrared light data, a third eigenvalue obtained based on temperature data, or a fourth eigenvalue obtained based on acceleration data; wherein the second eigenvalue includes one or more of the following: an infrared light AC component, an infrared light DC component, or an infrared light time domain autocorrelation coefficient; the third eigenvalue includes: a temperature mean; and the fourth eigenvalue includes: a combined velocity mean. In this way, the wearable device can distinguish whether the wearable device is worn by the user or by other objects during the wearing detection process through the second eigenvalue, take the influence of temperature on the heart rate during the wearing detection process into account through the third eigenvalue, and take the influence of exercise on the heart rate during the wearing detection process into account through the fourth eigenvalue. Thus, the wearable device can realize accurate detection of the wearing status in different scenarios based on the extraction of the eigenvalue.
[0010] In a possible implementation, the wearable device extracts features from the target data, including: when the wearable device determines that the mean value of the ambient light data is less than or equal to the first threshold, the temperature data meets the preset temperature range, and / or the mean value of the infrared light data is less than or equal to the second threshold, the wearable device extracts features from the target data. In this way, the wearable device can also use infrared light data, ambient light data, and temperature data for wearing detection, excluding various scenarios that do not meet the wearing requirements, such as the wearable device not being in contact with the human body, the wearable device being placed on an object, and the wearable device having a loose strap, thereby improving the accuracy of the wearing recognition method.
[0011] In a possible implementation, the method further includes: when the wearable device determines that the first target service and / or the second target service is not detected, the wearable device determines the first wearing detection result as the second wearing detection result; wherein the first target service is a task executed when the wearable device is worn, and the second target task is a task executed when the wearable device is not worn. In this way, the wearable device can improve the stability of the wearing detection method based on service detection.
[0012] In one possible implementation, the first target service includes one or more of the following: heart rate detection service, blood oxygen detection service, respiratory rate detection service, service for monitoring motion status, or service for monitoring sleep status; the second target service includes one or more of the following: charging service, or service for indicating the ejection of a wristband.
[0013] In a possible implementation, the wearable device determines that the first target service and / or the second target service are not detected, including: the wearable device determines that the first target service is not detected, the second target service is not detected, and / or detects that the wearable device is not in motion. In this way, the wearable device can increase the stability of the wearing detection method based on the detection of the service and the detection of the motion state.
[0014] In a possible implementation, the method further includes: when the wearable device determines that the first target task is detected, the wearable device determines that the second wearing detection result is that the wearable device is in a wearing state; and / or, when the wearable device determines that the second target task is detected, the wearable device determines that the second wearing detection result is that the wearable device is in a non-wearing state. In this way, the wearable device can improve the stability of the wearing detection method based on the detection of the service.
[0015] In a possible implementation, the method further includes: when the second wearing detection result is that the wearable device is in a wearing state, the wearable device starts the target function. In this way, the wearable device can continue to execute the target function when it is detected that the wearing state is satisfied, thereby improving the accuracy of the wearable device in detecting the target function.
[0016] In a possible implementation, the preset model includes: a first preset model and a second preset model, the first preset model is different from the second preset model, the wearable device inputs the characteristic value into the preset model, and obtains the first wearing detection result, including: the wearable device inputs the characteristic value into the first preset model and the second preset model respectively, and obtains the first detection result corresponding to the first preset model and the second detection result corresponding to the second preset model; the wearable device obtains the first wearing detection result based on the first detection result and the second detection result. In this way, the wearable device can distinguish whether the user wears the wearable device or other objects wear the wearable device through the preset model, and use the two preset models to improve the stability and accuracy of the wearing detection method.
[0017] In a second aspect, an embodiment of the present application provides a wearing detection device, including a collection unit for collecting target data; the target data includes green light data, and the green light data is used to indicate the heart rate detected when the wearable device is worn; a processing unit is used to extract features of the target data to obtain feature values related to the wearing state; the processing unit is also used to input the feature values into a preset model to obtain a first wearing detection result; the first wearing detection result is used to indicate whether the wearable device shown is in a wearing state.
[0018] In one possible implementation, the characteristic value includes: a first characteristic value obtained based on green light data, the first characteristic value includes one or more of the following: a green light AC component, a green light DC component, a green light time domain autocorrelation coefficient, a green light frequency domain maximum, a mean of the vertical coordinate difference of adjacent green light peaks, a standard deviation of the vertical coordinate difference of adjacent green light peaks, a mean of the horizontal coordinate difference of adjacent green light peaks, a standard deviation of the horizontal coordinate difference of adjacent green light peaks, a mean of the vertical coordinate of the green light peaks, or the number of green light time domain peaks.
[0019] In a possible implementation manner, the target data further includes one or more of the following: infrared light data, temperature data, or acceleration data.
[0020] In a possible implementation, the eigenvalue also includes one or more of the following: a second eigenvalue obtained based on infrared light data, a third eigenvalue obtained based on temperature data, or a fourth eigenvalue obtained based on acceleration data; wherein the second eigenvalue includes one or more of the following: an infrared light AC component, an infrared light DC component, or an infrared light time domain autocorrelation coefficient; the third eigenvalue includes: a temperature mean; and the fourth eigenvalue includes: a combined velocity mean.
[0021] In one possible implementation, the wearable device performs feature extraction on the target data, including: when the wearable device determines that the mean of the ambient light data is less than or equal to a first threshold, the temperature data satisfies a preset temperature range, and / or the mean of the infrared light data is less than or equal to a second threshold, the wearable device performs feature extraction on the target data.
[0022] In one possible implementation, when the wearable device determines that the first target business and / or the second target business is not detected, the processing unit is also used to determine the first wearing detection result as the second wearing detection result; wherein the first target business is a task performed when the wearable device is worn, and the second target task is a task performed when the wearable device is not worn.
[0023] In one possible implementation, the first target service includes one or more of the following: heart rate detection service, blood oxygen detection service, respiratory rate detection service, service for monitoring motion status, or service for monitoring sleep status; the second target service includes one or more of the following: charging service, or service for indicating the ejection of a wristband.
[0024] In a possible implementation, the wearable device determines that the first target service and / or the second target service are not detected, including: the wearable device determines that the first target service is not detected, the second target service is not detected, and / or detects that the wearable device is not in motion.
[0025] In one possible implementation, when the wearable device determines that the first target task is detected, the processing unit is further used to determine that the second wearing detection result is that the wearable device is in a worn state; and / or, when the wearable device determines that the second target task is detected, the processing unit is further used to determine that the second wearing detection result is that the wearable device is in a non-worn state.
[0026] In a possible implementation manner, when the second wearing detection result is that the wearable device is in a wearing state, the processing unit is further configured to start the target function.
[0027] In one possible implementation, the preset model includes: a first preset model and a second preset model, the first preset model is different from the second preset model, and the processing unit is also used to input the characteristic values into the first preset model and the second preset model respectively to obtain a first detection result corresponding to the first preset model and a second detection result corresponding to the second preset model; the processing unit is also used to obtain a first wearing detection result based on the first detection result and the second detection result.
[0028] In a third aspect, an embodiment of the present application provides a wearable device, including a processor and a memory, the memory being used to store code instructions; the processor being used to run the code instructions so that the wearable device executes the wearing detection method described in the first aspect or any one of the implementations of the first aspect.
[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed, the computer executes the wearing detection method described in the first aspect or any implementation of the first aspect.
[0030] In a fifth aspect, a computer program product includes a computer program. When the computer program is executed, the computer executes the wearing detection method as described in the first aspect or any one of the implementations of the first aspect.
[0031] It should be understood that the third to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of a scenario provided for an embodiment of the present application;
[0033] Figure 2 A schematic diagram of the principle of wearing detection based on a PPG module provided in an embodiment of the present application;
[0034] Figure 3 A schematic diagram of a PPG module structure based on 2LED+8PD provided in an embodiment of the present application;
[0035] Figure 4 A schematic diagram of the structure of a wearable device provided in an embodiment of the present application;
[0036] Figure 5 A schematic diagram of the architecture of a wearing detection method provided in an embodiment of the present application;
[0037] Figure 6 A flowchart of a wearing detection method provided in an embodiment of the present application;
[0038] Figure 7 A flowchart of another wearing detection method provided in an embodiment of the present application;
[0039] Figure 8 A flowchart of another wearing detection method provided in an embodiment of the present application;
[0040] Fig. 9 A schematic diagram of the structure of a wearing detection device provided in an embodiment of the present application;
[0041] Fig.10 A schematic diagram of the hardware structure of another wearable device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first value and the second value are only used to distinguish different values, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.
[0043] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0044] In the present application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
[0045] At present, with the development of terminal technology, terminal devices have become a part of people's work and life. In order to meet the needs of users for their own health management, many terminal devices can support users to monitor human body data. Specifically, wearable devices can start measuring the user's heart rate, respiratory rate or blood oxygen and other human characteristics when the wearing detection passes.
[0046] For example, Figure 1 A schematic diagram of a scenario provided in an embodiment of the present application. It is understandable that, in the embodiment of the present application, the wearable device is a smart watch as an example for illustration, and the example does not constitute a limitation on the embodiment of the present application.
[0047] like Figure 1 As shown in FIG. 1 , a user can use a smart watch to measure the user's body characteristics during exercise. Figure 1 In the case of normal wearing of the smart watch as shown in a in FIG. 1 , the smart watch can perform wearing detection, and measure the user's heart rate after the wearing detection passes, and then the smart watch can display the detection result on the screen as shown in FIG. Figure 1 In the interface shown in b. Figure 1 The interface shown in b in the figure may include: a curve for indicating heart rate changes, and a heart rate value, such as the heart rate value may be 108 beats / minute. The interface may also display: the highest heart rate is 158 beats / minute, the lowest heart rate is 62 beats / minute, and the resting heart rate may be 67 beats / minute. The interface may also display other contents, which are not limited in the embodiments of the present application.
[0048] Furthermore, the wearable device displays Figure 1 In the case of the interface shown in b in FIG. 1 , when the wearable device receives the operation of the user taking off the wearable device, the wearable device may display the following Figure 1 The interface shown in c in the figure. Figure 1 The interface shown in c in the figure may indicate that the heart rate cannot be detected at present. Other contents displayed in the interface may be Figure 1 The interface shown in b is similar and will not be repeated here.
[0049] Typically, a wearable device can perform wearing detection based on a PPG module in the wearable device. For example, Figure 2 A schematic diagram of the principle of wearing detection based on a PPG module provided in an embodiment of the present application. PPG can be understood as a detection method for detecting blood volume changes in living tissue by means of photoelectric means. Figure 2 As shown, the PPG module 204 may include at least one PD, such as PD203 , and at least one LED, such as LED202 .
[0050] exist Figure 2 In a corresponding embodiment, the wearable device can use the LED 202 in the PPG module 204 to emit a light signal corresponding to a preset current value, and the light signal is irradiated to the skin tissue (or understood as blood or blood vessels in the skin tissue) 201, and the PD203 is used to receive the light signal reflected back through the skin tissue 201. The PD203 converts the light signal into an electrical signal, and after analog to digital conversion (A / D), the electrical signal is converted into a digital signal (or called a PPG signal) that can be used by the wearable device.
[0051] Furthermore, the wearing detection method is described by taking the PPG signal as an infrared signal as an example. For example, when the wearable device detects that the received infrared signal is greater than the infrared signal threshold, the distance between the wearable device and the human skin is relatively close, and the wearable device is in a state of being worn by the user; or, when the wearable device detects that the received infrared signal is less than or equal to the infrared signal threshold, the distance between the wearable device and the human skin is relatively far, and the wearable device is in a state of not being worn by the user.
[0052] However, when the wearable device is placed on other objects, or when the wearable device is in an environment with dim light or strong light, the accuracy of the above-mentioned wearing detection method based on infrared signals is low, and it is impossible to achieve flexible detection of the wearable device in different scenarios.
[0053] In possible implementations, the user's skin depth, hair coverage, and the tightness with which the user wears the wearable device may affect the accuracy of the above-mentioned wearing detection method.
[0054] In view of this, an embodiment of the present application provides a wearing detection method, wherein a wearable device collects target data; the target data includes green light data, and the green light data is used to indicate the heart rate detected when the wearable device is worn; the wearable device can obtain a feature value for accurately characterizing the wearing state of the wearable device by extracting features of the target data; further, the wearable device inputs the feature value into a preset model to obtain a more accurate wearing detection result; the wearing detection result is used to indicate whether the wearable device shown is in a wearing state.
[0055] In the embodiment of the present application, the wearable device includes a PPG module, and the PPG module may include at least one PD and at least one LED, and the LED may be a three-color LED of red light, green light and infrared light. The PPG module described in the embodiment of the present application may include 2 LEDs and 8 PDs.
[0056] For example, Figure 3 A schematic diagram of a PPG module structure based on 2LED+8PD provided in an embodiment of the present application. Figure 3 As shown, a circular PPG module may be provided in the wearable device, and the circular PPG module may include: 2 three-color LEDs and 8 PDs. Specifically, the innermost side of the PPG module is two three-color LEDs, and the two three-color LEDs can be used to emit light signals, such as red light, green light, and infrared light; and the outer side of the two three-color LEDs is provided with 8 PDs in a surrounding structure. Figure 3As shown, the two three-color-in-one LEDs may include: LED1 and LED2. The eight PDs in a surrounding structure may include: PD1, PD2, PD3, PD4, PD5, PD6, PD7 and PD8.
[0057] Specifically, when using the 2LED+8PD PPG module for wearing detection, at least one of the two LEDs can emit a light signal, and at least one of the eight PDs can obtain the light signal reflected back by the skin tissue, and then the wearable device can perform wearing detection based on the light signal obtained by at least one of the eight PDs.
[0058] It can be understood that during the wearing detection process, the wearable device can use one of the 8 PDs to obtain a light signal, or use a pair of PDs (for example, two PDs) among the 8 PDs to obtain a light signal, or use all of the 8 PDs to obtain a light signal, which is not limited in the embodiments of the present application.
[0059] In an embodiment of the present application, the wearable device may also perform wearing detection based on an optical signal obtained by at least one of the eight PDs, data detected by other sensors, and / or business conditions performed by the wearable device.
[0060] Understandably, Figure 3 The structure of the PPG module described in the specification is only an example. In a possible manner, the structure of the PPG module may also be 2LED+4PD or 3LED+6PD, etc., which is not limited in the embodiments of the present application.
[0061] It is understandable that the wearable device in the embodiment of the present application may include: a smart watch, a smart bracelet, a smart glove, or a smart belt, etc. The specific technology and specific device form used by the wearable device in the embodiment of the present application are not limited.
[0062] In order to better understand the embodiments of the present application, the structure of the wearable device of the embodiments of the present application is introduced below. Figure 4 A schematic diagram of the structure of a wearable device provided in an embodiment of the present application.
[0063] The wearable device may include a processor 110, an internal memory 121, a universal serial bus (USB) interface, a charging management module 140, a power management module 141, an antenna, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a sensor module 180, a button 190, an indicator 192, a camera 193, and a display screen 194. The sensor module 180 may include a gyroscope sensor 180B, a barometer 180C, an acceleration sensor 180E, a proximity light sensor 180G, a temperature sensor 180J, a touch sensor 180K, and an ambient light sensor 180L.
[0064] It is understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the wearable device. In other embodiments of the present application, the wearable device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0065] The processor 110 may include one or more processing units. Different processing units may be independent devices or integrated into one or more processors. The processor 110 may also be provided with a memory for storing instructions and data.
[0066] The charging management module 140 is used to receive charging input from a charger, which may be a wireless charger or a wired charger. The power management module 141 is used to connect the charging management module 140 to the processor 110 .
[0067] The wireless communication function of the wearable device can be implemented through an antenna, a mobile communication module 150, a wireless communication module 160, a modem processor, and a baseband processor.
[0068] Antennas are used to transmit and receive electromagnetic wave signals. Antennas in wearable devices can be used to cover single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0069] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to wearable devices. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through an antenna, filter, amplify, etc. the received electromagnetic waves, and transmit them to a modulation and demodulation processor for demodulation.
[0070] The wireless communication module 160 can provide wireless communication solutions for wearable devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), etc.
[0071] The wearable device implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.
[0072] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the wearable device may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0073] The wearable device can realize the shooting function through an ISP, a camera 193, a video codec, a GPU, a display 194, and an application processor.
[0074] The camera 193 is used to capture static images or videos. In some embodiments, the wearable device may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0075] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 can include a program storage area and a data storage area.
[0076] The wearable device can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, and the application processor.
[0077] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The speaker 170A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The wearable device can listen to music or listen to hands-free calls through the speaker 170A. The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. When the wearable device answers a call or voice message, the voice can be answered by placing the receiver 170B close to the human ear.
[0078] The gyro sensor 180B can be used to determine the motion posture of the wearable device. In the embodiment of the present application, the gyro sensor 180B and the acceleration sensor 180E can be used together to detect the motion state of the wearable device.
[0079] The barometer 180C is used to measure air pressure. In some embodiments, the wearable device can calculate the altitude through the air pressure value measured by the barometer 180C to assist positioning and navigation.
[0080] The acceleration sensor 180E can detect the magnitude of the acceleration of the wearable device in various directions (generally three axes). In the embodiment of the present application, the acceleration sensor 180E is used to detect whether the wearable device is in motion. The three axes can be the X-axis, the Y-axis, and the Z-axis.
[0081] The proximity light sensor 180G may include a light emitting diode (LED) and a light detector, for example, the light detector may be a photodiode (PD). In an embodiment of the present application, the LED may be a three-color LED, which may emit red light, green light, infrared light and other light sources; the PD may be used to receive light signals and process the light signals into electrical signals. For example, in a scenario where a wearable device is used for wearing detection, the PD may receive light signals reflected back from skin tissue.
[0082] The ambient light sensor 180L is used to sense the brightness of the ambient light. The temperature sensor 180J is used to detect the temperature of the wearable device. In the embodiment of the present application, the temperature sensor is used to detect the temperature of the environment in which the wearable device is located.
[0083] The touch sensor 180K is also called a “touch control device.” The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch control screen.”
[0084] The button 190 includes a power button, a volume button, etc. The button 190 may be a mechanical button. It may also be a touch button. The wearable device may receive the button input and generate a key signal input related to the user settings and function control of the wearable device. The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, message, missed call, notification, etc.
[0085] In possible implementations, other hardware modules may also be provided in the wearable device. The hardware structure provided in the embodiment of the present application is merely an example and does not constitute a limitation on the embodiment of the present application.
[0086] The following specific embodiments are used to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0087] For example, Figure 5 This is a schematic diagram of the architecture of a wearing detection method provided in an embodiment of the present application. Figure 5 As shown, the architecture of the wearing detection method may include multiple functional modules, for example: a sensor data acquisition module 501, a primary wearing detection module 502, a feature extraction module 503, a secondary wearing detection module 504, and a wearing state correction module (or also called a tertiary wearing detection module) 505.
[0088] In the sensor data acquisition module 501, the wearable device can use various types of sensors to collect data respectively. For example, the wearable device can use an acceleration sensor to detect acceleration data, use a gyroscope sensor to detect gyroscope data (or angular acceleration data), use a temperature sensor to detect temperature data, and use a proximity light sensor to detect infrared light data, green light data, and ambient light data.
[0089] In a possible implementation, the ambient light data may be data detected by the PD when the LED in the proximity light sensor is not emitting light; or, the ambient light data may also be collected using a sensor such as an ambient light sensor. The method for obtaining ambient light data is not limited in the embodiments of the present application.
[0090] In the primary wearing detection module 502, the wearable device can use infrared light data and green light data to perform primary wearing detection, and use temperature data to filter out situations where the user is not wearing the wearable device during the primary wearing detection process.
[0091] In the feature extraction module 503, the wearable device may perform signal filtering on the collected data to filter out noise; further, the wearable device may perform feature extraction on the filtered data to obtain a feature value.
[0092] The characteristic value may include one or more of the following: green light AC component F1, green light DC component F2, infrared light AC component F3, infrared light DC component F4, green light time domain autocorrelation coefficient F5, infrared light time domain autocorrelation coefficient F6, green light frequency domain maximum value F7, temperature mean F8, mean value F9 of the vertical coordinate difference of adjacent green light peaks, standard deviation F10 of the vertical coordinate difference of adjacent green light peaks, mean value F11 of the horizontal coordinate difference of adjacent green light peaks, standard deviation F12 of the horizontal coordinate difference of adjacent green light peaks, mean value F13 of the vertical coordinate of the green light peaks, number F14 of the green light time domain peaks, or mean value F15 of the combined velocity, etc. The description of the above characteristic values can be found in Figure 7 The corresponding embodiments will not be described in detail here.
[0093] It can be understood that the 15 characteristic values provided in the embodiment of the present application are only used as an example, and the characteristic values may also include other parameter values, which are not limited in the embodiment of the present application.
[0094] In the secondary wearing detection module 504, the wearable device can input the feature values into the decision tree classification model and the logistic regression (LR) classification model respectively to obtain the detection results corresponding to the two classification models respectively, and obtain the secondary wearing detection results based on the detection results corresponding to the two classification models respectively.
[0095] In the wearing state correction module 505, the wearable device can obtain a final wearing detection result by detecting the current service state, detecting the service state transition, and the secondary wearing detection result.
[0096] It is understandable that the embodiments of the present application do not limit the order of the primary wearing detection, the secondary wearing detection, and the wearing state correction. In a possible implementation, the wearable device may also first perform the wearing state correction process, and then perform the primary wearing detection and the secondary wearing detection, which is not limited in the embodiments of the present application.
[0097] It is understandable that wearable devices can be based on Figure 5 One or more of the multi-level wearing detection methods shown are used to perform wearing detection, so that the wearing detection method can be used in a variety of scenarios and the accuracy of the wearing detection method is improved.
[0098] exist Figure 5 Based on the corresponding embodiment, in a possible implementation, the method for performing wearing detection by the primary wearing detection module 502 in the wearable device can be referred to Figure 6 The corresponding embodiments.
[0099] For example, Figure 6A flowchart of a wearing detection method provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the wearing detection method may include the following steps:
[0100] S601: The wearable device obtains infrared light data, ambient light data, and temperature data within a first time period.
[0101] In an embodiment of the present application, the first time period may be 1 second. Specifically, the wearable device may obtain N infrared light data, N ambient light data, and N temperature data within 1 second. Further, the wearable device may obtain the infrared light mean value corresponding to the N infrared light data, and the ambient light mean value corresponding to the N ambient light data.
[0102] Exemplarily, the wearable device may execute the step shown in S601 when detecting that the user turns on the target function; or the wearable device may periodically execute the step shown in S601 according to a pre-set instruction. The target function may be: a function for monitoring heart rate, a function for monitoring blood oxygen, a function for detecting respiratory rate, a function for recording sleep status, a function for recording exercise status, etc.
[0103] S602: The wearable device determines whether the temperature data meets a preset temperature range.
[0104] In an embodiment of the present application, when the wearable device determines that N temperature data all meet the preset range, the wearable device can execute the step shown in S603; or, when the wearable device determines that at least one temperature data among the N temperature data does not meet the preset range, the wearable device can execute the step shown in S606.
[0105] It is understandable that when a user wears a wearable device, the wearable device can detect the body temperature data of the human body, so the wearable device can use the temperature data to exclude the scene when the wearable device is not in contact with the human body. The preset temperature range can be the body temperature range of the human body under normal environment.
[0106] S603: The wearable device determines whether the ambient light average is greater than the ambient light threshold.
[0107] In the embodiment of the present application, when the wearable device determines that the ambient light average value is greater than the ambient light threshold value, the wearable device may execute the step shown in S606; or, when the wearable device determines that the ambient light average value is less than or equal to the ambient light threshold value, the wearable device may execute the step shown in S604. The ambient light average value and the ambient light threshold value may both be current values.
[0108] It is understandable that the wearable device can exclude the scene when the wearable device is not normally worn on the user's wrist by acquiring ambient light data. For example, the wearable device can exclude the scene where the wearable device is placed on an object or the strap is loose, etc., where the ambient light is strong because the wearable device is not close to the human body.
[0109] S604: The wearable device determines whether the infrared light average is greater than the infrared light threshold.
[0110] In the embodiment of the present application, when the wearable device determines that the infrared light average is greater than the infrared light threshold, the wearable device can execute the step shown in S605; or, when the wearable device determines that the infrared light average is less than or equal to the infrared light threshold, the wearable device can execute the step shown in S606. The infrared light threshold can be a value when the infrared signal is reflected back to the wearable device by the human body under normal circumstances, and the infrared light average and the infrared light threshold can both be current values.
[0111] It is understandable that when infrared light is irradiated to the human body, the blood or blood vessels in the skin tissue can absorb part of the infrared light, so that there is a large difference between the infrared light data reflected back by the human body and the infrared light data reflected back when the infrared light is irradiated to other objects. Therefore, wearable devices can use infrared light data to exclude scenarios where wearable devices are placed on objects.
[0112] S605: The wearable device determines that the first-level wearing detection result is in a wearing state.
[0113] For example, when the wearable device determines that it is in a wearing state based on the primary wearing detection, the wearable device may continue to detect the wearable state based on the primary wearing detection. Figure 7 The corresponding embodiment performs secondary wearing detection.
[0114] S606: The wearable device determines that the first-level wearing detection result is in a not-worn state.
[0115] In a possible implementation, when the wearable device determines that the wearable device is not in the wearing state based on the primary wearing detection, the wearable device can Figure 7 The corresponding embodiment performs secondary wearing detection.
[0116] In a possible implementation, when the wearable device determines that the wearable device is not in the wearing state based on the first-level wearing detection, the wearable device can end the wearing detection process and display the following information: Figure 1 The interface shown in c in FIG. At this time, the wearable device may not detect heart rate or blood oxygen, etc., thereby reducing the power consumption of the wearable device.
[0117] In a possible implementation, the wearable device may also display a prompt message or vibrate or ring a bell when it is determined that the wearable device is not being worn, indicating that the user is not currently wearing the wearable device properly.
[0118] It is understandable that the wearable device can perform wearing detection based on one or more judgment logics in S602, S603 and S604, which is not limited in the embodiments of the present application.
[0119] Based on this, wearable devices can use infrared light data, ambient light data and temperature data to perform initial wearing detection, eliminating various scenarios that do not meet the wearing requirements, such as the wearable device not being in contact with the human body, the wearable device being placed on an object, and the wearable device having a loose strap, thereby improving the accuracy of the wearing recognition method.
[0120] exist Figure 5 Based on the corresponding embodiment, in a possible implementation, the method for performing wearing detection by the secondary wearing detection module 504 can be referred to Figure 7 The corresponding embodiments.
[0121] For example, Figure 7 This is a flow chart of another wearing detection method provided in an embodiment of the present application. Figure 7 As shown, the wearing detection method may include the following steps:
[0122] S701. The wearable device obtains green light data, infrared light data, temperature data, and acceleration data within a second time period.
[0123] In a possible implementation, the wearable device can obtain at least one of green light data, infrared light data, temperature data, or acceleration data within the second time period.
[0124] In a possible implementation, when the target data includes green light data, the wearable device can obtain a secondary wearing detection result based on executing the steps shown in S702-S706 below on the green light data. Furthermore, when the target data also includes at least one of infrared light data, temperature data, or acceleration data, the wearable device can execute the steps shown in S702-S706 below on at least one of the infrared light data, temperature data, or acceleration data to obtain a secondary wearing detection result.
[0125] In the embodiment of the present application, the second time period may be 5 seconds. Specifically, the wearable device may obtain M green light data, M infrared light data, M temperature data, and M acceleration data within 5 seconds.
[0126] In a possible implementation, the wearable device may also acquire M gyroscope data while acquiring M acceleration data, wherein the acceleration data and / or gyroscope data may be used to detect the motion state of the wearable device.
[0127] S702: The wearable device processes the green light data, the infrared light data, the temperature data, and the acceleration data.
[0128] In the embodiment of the present application, the data processing method may include: filtering processing, Fourier transform processing, etc. Exemplarily, the wearable device may perform bandpass filtering processing on the green light data, infrared light data, temperature data, and acceleration data to filter noise; and perform Fourier transform on the filtered green light data and infrared light data to obtain green light data in the frequency domain and infrared light data in the frequency domain.
[0129] It is understandable that the wearable device can store the green light data in the time domain before Fourier transform and the infrared light data in the time domain before Fourier transform, so that the wearable device can perform feature extraction on the green light data in the time domain and the infrared light data in the time domain.
[0130] S703: The wearable device performs feature extraction on the processed green light data, infrared light data, temperature data, and acceleration data to obtain feature values (F1-F15).
[0131] In a possible implementation, the wearable device can perform feature extraction on at least one of the green light data, infrared light data, temperature data, or acceleration data after data processing in the step shown in S702 to obtain a feature value corresponding to the at least one data.
[0132] In an embodiment of the present application, the characteristic value (or first characteristic value) obtained based on the green light data may include one or more of the following: green light AC component F1, green light DC component F2, green light time domain autocorrelation coefficient F5, green light frequency domain maximum F7, mean F9 of the vertical coordinate difference of adjacent green light peaks, standard deviation F10 of the vertical coordinate difference of adjacent green light peaks, mean F11 of the horizontal coordinate difference of adjacent green light peaks, standard deviation F12 of the horizontal coordinate difference of adjacent green light peaks, mean F13 of the vertical coordinate of the green light peaks, or number F14 of green light time domain peaks; the characteristic value (or second characteristic value) obtained based on the infrared light data may include one or more of the following: infrared light AC component F3, infrared light DC component F4, infrared light time domain autocorrelation coefficient F6; the characteristic value (or third characteristic value) obtained based on the temperature data may include: temperature mean F8; the characteristic value (or fourth characteristic value) obtained based on the acceleration data may include: combined velocity mean F15, etc.
[0133] Among them, the green light frequency domain maximum value F7 can be: the maximum value of the frequency in the frequency domain coordinate; the mean value F9 of the vertical coordinate difference of adjacent green light peaks can be: the average value of the vertical coordinate difference between two adjacent peaks of green light in the time domain coordinate; the standard deviation F10 of the vertical coordinate difference of adjacent green light peaks can be: the standard deviation of the vertical coordinate difference between two adjacent peaks of green light in the time domain coordinate; the mean value F11 of the horizontal coordinate difference of adjacent green light peaks can be: the average value of the horizontal coordinate difference between two adjacent peaks of green light in the time domain coordinate; the standard deviation F12 of the horizontal coordinate difference of adjacent green light peaks can be: the standard deviation of the horizontal coordinate difference between two adjacent peaks of green light in the time domain coordinate; the mean value F13 of the vertical coordinate of the green light peak can be: the mean value of the vertical coordinate corresponding to each peak of green light in the time domain coordinate system; the number F14 of the green light time domain peaks can be: the number of peaks of green light in the time domain coordinate system; the mean value F15 of the combined velocity can be: obtained based on the acceleration data corresponding to the three axes respectively.
[0134] It can be understood that in the feature extraction module 503, the wearable device can simulate the user's heart rate characteristics by obtaining characteristic values related to green light; distinguish whether the wearable device is worn by the user or other objects during the wearing detection process by obtaining characteristic values related to infrared light; take into account the impact of temperature on heart rate during the wearing detection process by obtaining characteristic values related to temperature; and take into account the impact of movement on heart rate during the wearing detection process by obtaining characteristic values related to acceleration.
[0135] In a possible implementation, the characteristic value may also include characteristic values related to gyroscope data, such as the mean value of gyroscope data, so that the wearable device can accurately identify various motion states of the wearable device through characteristic values related to acceleration and / or characteristic values related to gyroscope data.
[0136] S704: The wearable device inputs the feature value into a decision tree classification model to obtain a first detection result.
[0137] The decision tree classification module may be obtained through training based on sample feature data; the first detection result may include: a probability value P1 for indicating being in a worn state, and a probability value 1-P1 for indicating being in a not worn state.
[0138] S705: The wearable device inputs the feature value into the LR classification model to obtain a second detection result.
[0139] Among them, the LR classification module can also be obtained based on training of sample feature data; the second detection result can include: a probability value P2 for indicating being in a wearing state, and a probability value 1-P2 for indicating being in a not-wearing state.
[0140] It is understandable that the wearable device can also input the feature value into other machine learning modules for multiple detections, and the modules for wearing monitoring may not be limited to the above-mentioned decision tree classification model and LR classification model. For example, the wearable device can input the feature value into at least 3 or 4 different models for wearing detection, which is not limited in the embodiments of the present application.
[0141] S706: The wearable device obtains a secondary wearing detection result based on the first detection result and the second detection result.
[0142] Among them, when the wearable device detects that P1+P2 is greater than 2-P1-P2, the wearable device can determine that the secondary wearing detection result is in the wearing state; or, when the wearable device detects that P1+P2 is less than or equal to 2-P1-P2, the wearable device can determine that the secondary wearing detection result is in the not-worn state.
[0143] Furthermore, when the wearable device determines that it is in the wearing state based on the secondary wearing detection, the wearable device can continue to Figure 8 The corresponding embodiment performs wearing correction.
[0144] When the wearable device determines that it is not worn based on the secondary wearing detection, the wearable device can continue to Figure 8 Alternatively, when the wearable device determines that the wearable device is not in the wearing state based on the secondary wearing detection, the wearable device can end the wearing detection process and display the following information: Figure 1 The interface shown in c in FIG. At this time, the wearable device may not detect heart rate or blood oxygen, etc., thereby reducing the power consumption of the wearable device.
[0145] Based on this, wearable devices can distinguish whether users are wearing wearable devices or other objects are wearing wearable devices through feature extraction of green light data, infrared light data, temperature data, and acceleration data, as well as accurate recognition through machine learning modules. It can also take into account the impact of temperature on heart rate and the impact of exercise on heart rate during the wearing detection process, thereby significantly improving the accuracy of the wearing detection method.
[0146] exist Figure 5 Based on the corresponding embodiment, in a possible implementation, the method for the wearing state correction module 505 to perform wearing detection can be referred to Figure 8 The corresponding embodiments.
[0147] For example, Figure 8 A flowchart of another wearing detection method provided in an embodiment of the present application is shown below. Figure 8 As shown, the wearing detection method may include the following steps:
[0148] S801: The wearable device determines whether a non-wearing service is satisfied.
[0149] The not-worn service (or second target service) may include one or more of the following, such as a charging service or a wristband ejection service, etc., which is not limited in the embodiments of the present application. Specifically, when the wearable device determines that the not-worn service is satisfied, the wearable device may execute the steps shown in S807; or, when the wearable device determines that the not-worn service is not satisfied, the wearable device may execute the steps shown in S802.
[0150] It is understandable that when the wearable device detects that the not-worn service is satisfied, the wearable device can directly output the final wearing result as being in a not-worn state.
[0151] S802: The wearable device determines whether the wearing service is satisfied.
[0152] Among them, the wearing service (or the first target service) may include one or more of the following, for example: heart rate detection service, blood oxygen detection service, respiratory rate detection service, services corresponding to each exercise mode, or services corresponding to sleep mode, etc., which are not limited in the embodiments of the present application. Specifically, when the wearable device determines that the wearing service is satisfied, the wearable device may execute the steps shown in S806; or, when the wearable device determines that the wearing service is not satisfied, the wearable device may execute the steps shown in S803.
[0153] It is understandable that when the wearable device detects that the wearing service is satisfied, the wearable device can directly output the final wearing result as being in the wearing state.
[0154] S803: The wearable device determines whether the duration during which the combined speed is greater than the combined speed threshold exceeds a duration threshold.
[0155] Exemplarily, when the wearable device determines that the duration of the combined speed being greater than the combined speed threshold exceeds the duration threshold, the wearable device may execute the step shown in S804. It is understandable that the wearable device may be in motion in this scenario.
[0156] Alternatively, when the wearable device determines that the combined speed is less than or equal to the combined speed threshold, or the wearable device determines that the duration of the combined speed being greater than the combined speed threshold does not exceed the duration threshold, the wearable device may execute the step shown in S805. It is understandable that in this scenario, the wearable device may be in a non-moving state.
[0157] S804: When the wearable device detects an interactive service, it determines that the wearable device is in a wearing state.
[0158] It is understandable that, when the wearable device determines that the wearable device is in motion based on the step shown in S803, the wearable device can further determine whether an interactive service is detected. The interactive service can be understood as a service that interacts with the user. For example, when the wearable device detects any trigger operation of the user on the wearable device, the wearable device can determine that an interactive service is detected and execute the step shown in S806.
[0159] S805: The wearable device determines the secondary wearing detection result as the final wearing detection result.
[0160] In a possible implementation, when the wearable device determines that one or more of the following conditions are met, the wearable device can determine the secondary wearing detection result as the final wearing detection result. Exemplarily, when the wearable device determines that: the non-wearing service is not met (based on the step shown in S801 for detection), the non-wearing service is not met (based on the step shown in S802 for detection), the motion state is not met (based on the step shown in S803 for detection), or the interactive service is not detected (based on the step shown in S804 for detection), the wearable device can determine the secondary wearing detection result as the final wearing detection result.
[0161] S806: The wearable device determines that the final wearing detection result is in the wearing state.
[0162] Exemplarily, when the wearable device determines that the final wearing detection result is in the wearing state, the wearable device can continue to use the wearable device to detect human characteristics such as heart rate, blood oxygen and / or respiratory rate.
[0163] S807: The wearable device determines that the final wearing detection result is in a not-worn state.
[0164] For example, when the wearable device determines that the final wearing detection result is in the not-worn state, the wearable device can end the wearing detection process and display the following information: Figure 1 The interface shown in c.
[0165] It is understandable that in the embodiments of the present application Figure 8 The execution order of each step in the corresponding embodiment is not specifically limited.
[0166] Based on this, wearable devices can improve the stability of wearing detection methods based on business detection. Figure 6-Figure 8 The wearing detection processes described in the corresponding embodiments respectively enable the wearable device to achieve the accuracy of wearing detection in a variety of scenarios.
[0167] Combined with the above Figure 5-Figure 8, the method provided in the embodiment of the present application is described, and the device for executing the above method provided in the embodiment of the present application is described below. Fig. 9 As shown, Fig. 9 A structural schematic diagram of a wearing detection device provided in an embodiment of the present application. The wearing detection device can be a wearable device in an embodiment of the present application, or a chip or chip system in a wearable device.
[0168] like Fig. 9 As shown, the wearing detection device 90 can be used in a communication device, a circuit, a hardware component or a chip, and the wearing detection device includes: a collection unit 901 and a processing unit 902. Among them, the collection unit 901 is used to support the wearing detection device 90 to perform the step of data collection, and the processing unit 902 is used to support the wearing detection device 90 to perform the step of data processing.
[0169] Specifically, an embodiment of the present application provides a wearing detection device 90, an acquisition unit 901, for acquiring target data; the target data includes green light data, and the green light data is used to indicate the heart rate detected when the wearable device is worn; a processing unit 902 is used to extract features of the target data to obtain feature values related to the wearing state; the processing unit 902 is also used to input the feature values into a preset model to obtain a first wearing detection result; the first wearing detection result is used to indicate whether the wearable device shown is in a wearing state.
[0170] In a possible implementation, the wearing detection device 90 may also include a communication unit 903. Specifically, the communication unit 903 is used to support the wearing detection device 90 to perform the steps of sending and receiving data. The communication unit 903 may be an input or output interface, a pin or a circuit.
[0171] In a possible embodiment, the wearing detection device 90 may further include: a storage unit 904. The processing unit 902 and the storage unit 904 are connected via a line. The storage unit 904 may include one or more memories, and the memory may be a device used to store programs or data in one or more devices or circuits. The storage unit 904 may exist independently and be connected to the processing unit 902 of the wearing detection device via a communication line. The storage unit 904 may also be integrated with the processing unit 902.
[0172] The storage unit 904 may store computer-executable instructions of the method in the wearable device so that the processing unit 902 executes the method in the above embodiment. The storage unit 904 may be a register, a cache, or a RAM, etc. The storage unit 904 may be integrated with the processing unit 902. The storage unit 904 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 904 may be independent of the processing unit 902.
[0173] Fig.10 A schematic diagram of the hardware structure of another wearable device provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the wearable device includes a processor 1001, a communication circuit 1004 and at least one communication interface ( Fig.10 The communication interface 1003 is used as an example for explanation).
[0174] The processor 1001 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0175] Communications link 1004 may include circuitry to transmit information between the above-described components.
[0176] The communication interface 1003 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.
[0177] Possibly, the wearable device may further include a memory 1002 .
[0178] The memory 1002 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a communication line 1004. The memory may also be integrated with the processor.
[0179] The memory 1002 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 1001. The processor 1001 is used to execute the computer-executable instructions stored in the memory 1002, thereby realizing the wearing detection method provided in the embodiment of the present application.
[0180] Possibly, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, and the embodiments of the present application do not specifically limit this.
[0181] In a specific implementation, as an embodiment, the processor 1001 may include one or more CPUs, such as Fig.10 CPU0 and CPU1 in.
[0182] In a specific implementation, as an embodiment, the wearable device may include multiple processors, such as Fig.10 1 and 1005. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0183] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. For example, the available medium can include a magnetic medium (e.g., a floppy disk, a hard disk or a tape), an optical medium (e.g., a digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0184] The embodiments of the present application also provide a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any target medium that can be accessed by a computer.
[0185] As a possible design, the computer readable medium may include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer readable medium may include a magnetic disk storage or other magnetic disk storage device. Moreover, any connection line may also be appropriately referred to as a computer readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while optical discs reproduce data optically using lasers.
[0186] The above combinations should also be included in the scope of computer-readable media. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A wearing detection method, characterized in that: The method comprises: The wearable device collects target data; the target data includes green light data and temperature data, the green light data is used to indicate the heart rate detected when the wearable device is worn, and the temperature data is used to indicate the effect of temperature on the heart rate when the wearable device is worn; The wearable device performs feature extraction on the target data to obtain a feature value related to the wearing state; The wearable device inputs the characteristic value into a preset model to obtain a first wearing detection result; the first wearing detection result is used to indicate whether the wearable device is in a wearing state.
2. The method according to claim 1, characterized in that The characteristic value includes: a first characteristic value obtained based on the green light data, the first characteristic value includes one or more of the following: a green light AC component, a green light DC component, a green light time domain autocorrelation coefficient, a green light frequency domain maximum, a mean of the vertical coordinate difference of adjacent green light peaks, a standard deviation of the vertical coordinate difference of adjacent green light peaks, a mean of the horizontal coordinate difference of adjacent green light peaks, a standard deviation of the horizontal coordinate difference of adjacent green light peaks, a mean of the vertical coordinate of the green light peaks, or the number of green light time domain peaks.
3. The method according to claim 2, characterized in that The target data also includes one or more of the following: infrared light data, acceleration data.
4. The method according to claim 3, characterized in that The characteristic value further includes one or more of the following: a second characteristic value obtained based on the infrared light data, a third characteristic value obtained based on the temperature data, or a fourth characteristic value obtained based on the acceleration data; The second eigenvalue includes one or more of the following: infrared light AC component, infrared light DC component, or infrared light time domain autocorrelation coefficient; the third eigenvalue includes: temperature mean; and the fourth eigenvalue includes: combined velocity mean.
5. The method according to claim 4, characterized in that The wearable device performs feature extraction on the target data, including: When the wearable device determines that the mean of the ambient light data is less than or equal to a first threshold, the temperature data satisfies a preset temperature range, and / or the mean of the infrared light data is greater than a second threshold, the wearable device performs feature extraction on the target data.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When the wearable device determines that the first target service and the second target service are not detected, the wearable device determines the first wearing detection result as the second wearing detection result; The first target service is a task executed when the wearable device is worn, and the second target service is a task executed when the wearable device is not worn.
7. The method according to claim 6, characterized in that The first target service includes one or more of the following: heart rate detection service, blood oxygen detection service, respiratory rate detection service, service for monitoring exercise status, or service for monitoring sleep status; the second target service includes one or more of the following: charging service, or service for instructing the pop-up of a wristband.
8. The method according to claim 6, characterized in that The wearable device determines that the first target service and the second target service are not detected, including: the wearable device determines that the first target service and the second target service are not detected, and detects that the wearable device is not in motion.
9. The method according to claim 6, characterized in that The method further comprises: When the wearable device determines that the first target service is detected, the wearable device determines that the second wearing detection result is that the wearable device is in the wearing state; And / or, when the wearable device determines that the second target service is detected, the wearable device determines that the second wearing detection result is that the wearable device is in a non-worn state.
10. The method according to claim 9, characterized in that The method further comprises: When the second wearing detection result indicates that the wearable device is in the wearing state, the wearable device starts a target function.
11. The method according to any one of claims 1 to 5, characterized in that The preset model includes: a first preset model and a second preset model, the first preset model is different from the second preset model, and the wearable device inputs the characteristic value into the preset model to obtain a first wearing detection result, including: The wearable device inputs the characteristic value into the first preset module and the second preset model respectively, to obtain a first detection result corresponding to the first preset model and a second detection result corresponding to the second preset model; The wearable device obtains the first wearing detection result based on the first detection result and the second detection result.
12. A wearable device, characterized in that: include: A processor, the processor is coupled to a memory, the memory is used to store a computer program, when the processor calls the computer program, the wearable device executes the method according to any one of claims 1 to 11.
13. A computer-readable storage medium, characterized in that Used to store a computer program, the computer program comprising instructions for implementing the method according to any one of claims 1 to 11.
14. A computer program product, characterized in that The computer program product includes computer program code, and when the computer program code is run on a computer, the computer is enabled to implement the method according to any one of claims 1 to 11.
