Wearing state detection method and device, wearable equipment and computer program product

By using two contact sensors in the wearable device to acquire multi-frame contact information, combining the settings of threshold and target frame number, the problem of low robustness in the wearable state detection in the prior art is solved, and more accurate and reliable wearable state recognition is achieved.

CN120065367APending Publication Date: 2025-05-30GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510220980.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The existing wearable devices cannot effectively detect the wearing state when worn by users, resulting in low robustness in the recognition of the wearing state.

Method used

Two contact sensors (first contact sensor and second contact sensor) are used to collect multi-frame contact information, determine the wearing state by setting a threshold and a target frame number, and maintain detection of the wearing state within the target moment, thereby improving robustness.

Benefits of technology

It improves the robustness of wearing state detection, ensuring that when users wear wearable devices, they can accurately identify the wearing state of the device, reduce misjudgment, and ensure the reliability of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120065367A_ABST
    Figure CN120065367A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a wearing state detection method and device, wearable equipment and a computer program product, and the method comprises the steps: obtaining multi-frame first contact information collected by a first contact sensor, and if the frame number of the first contact information which is greater than or equal to a first wearing threshold value reaches a first target frame number, determining that the wearing state is detected; if yes, determining that the first wearing state is a worn state, obtaining multi-frame second contact information collected by the first contact sensor, and if the frame number of the second contact information larger than or equal to a second wearing threshold value reaches a second target frame number, determining that the second wearing state is the worn state, if it is detected that the second wearing state is a worn state within the first duration of the target moment, it is determined that the wearable device is in the worn state, so that the wearable device is in the worn state under the condition that the collection time corresponding to the first contact information and the second contact information which are greater than or equal to the corresponding wearing threshold is staggered. And the wearable device still can be identified to be in the worn state, so that the robustness of wearing state detection is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of wearable devices, and particularly relates to a wearing state detection method, device, wearable device, and computer program product. Background Art

[0002] Currently, in wearable devices such as smart watches and earphones, there is often a wearing state detection function to automatically detect whether a user wears the wearable device, so as to perform corresponding operations.

[0003] However, in the actual use process, there will be a situation where the wearable device cannot detect that it is in the worn state when the user wears the wearable device, and the robustness of wearing state recognition is low. Summary of the Invention

[0004] Embodiments of the present application disclose a wearing state detection method, device, wearable device, and computer program product, which can improve the robustness of wearing state detection.

[0005] Embodiments of the present application disclose a wearing state detection method applied to a wearable device. The wearable device includes a first contact sensor and a second contact sensor. The method includes:

[0006] Obtain multiple frames of first contact information collected by the first contact sensor. If the number of frames of first contact information greater than or equal to a first wearing threshold reaches a first target number of frames, determine that the first wearing state is the worn state;

[0007] Obtain multiple frames of second contact information collected by the second contact sensor. If the number of frames of second contact information greater than or equal to a second wearing threshold reaches a second target number of frames, determine that the second wearing state is the worn state;

[0008] If the second wearing state is detected as the worn state within a first duration at a target moment, determine that the wearable device is in the worn state. The target moment is the moment when, in the case that the first wearing state is the worn state, it is first detected that the first contact information is less than the first wearing threshold.

[0009] Embodiments of the present application disclose a wearing state detection method applied to a wearable device. The wearable device includes a first contact sensor and a second contact sensor. The method includes:

[0010] Obtain multiple frames of first contact information collected by the first contact sensor and multiple frames of second contact information collected by the second contact sensor;

[0011] When the wearable device is in the worn state, if multiple frames of first contact information collected by the first contact sensor are less than a third non-worn threshold, and multiple frames of second contact information collected by the second contact sensor are greater than a fourth non-worn threshold, then calculate third fluctuation information corresponding to the multiple frames of first contact information collected by the first contact sensor, and / or fourth fluctuation information corresponding to the multiple frames of second contact information collected by the second contact sensor;

[0012] If the third fluctuation information is less than or equal to a first fluctuation threshold, and / or the fourth fluctuation information is less than or equal to a second fluctuation threshold, then determine that the wearable device is in the non-worn state.

[0013] An embodiment of the present application discloses a wearing state detection device, which is applied to a wearable device. The wearable device includes a first contact sensor and a second contact sensor. The device includes:

[0014] A first determination module, configured to obtain multiple frames of first contact information collected by the first contact sensor, and if the number of frames of first contact information greater than or equal to a first wearing threshold reaches a first target number of frames, then determine that the first wearing state is the worn state;

[0015] A second determination module, configured to obtain multiple frames of second contact information collected by the second contact sensor, and if the number of frames of second contact information greater than or equal to a second wearing threshold reaches a second target number of frames, then determine that the second wearing state is the worn state;

[0016] A third determination module, configured to if the second wearing state is detected as the worn state within a first time period at a target moment, then determine that the wearable device is in the worn state, where the target moment is the moment when, in the case that the first wearing state is the worn state, it is first detected that the first contact information is less than the first wearing threshold.

[0017] An embodiment of the present application discloses a wearing state detection device, which is applied to a wearable device. The wearable device includes a first contact sensor and a second contact sensor. The device includes:

[0018] An acquisition module, configured to acquire multiple frames of first contact information collected by the first contact sensor, and multiple frames of second contact information collected by the second contact sensor;

[0019] A second calculation module, configured to, when the wearable device is in a worn state, if multiple frames of first contact information collected by the first contact sensor are less than a third non-worn threshold, and multiple frames of second contact information collected by the second contact sensor are greater than a fourth non-worn threshold, calculate third fluctuation information corresponding to the multiple frames of first contact information collected by the first contact sensor, and / or fourth fluctuation information corresponding to the multiple frames of second contact information collected by the second contact sensor;

[0020] A seventh determination module, configured to determine that the wearable device is in a non-worn state if the third fluctuation information is less than or equal to a first fluctuation threshold, and / or the fourth fluctuation information is less than or equal to a second fluctuation threshold.

[0021] An embodiment of the present application discloses a wearable device, including a memory and a processor. A computer program is stored in the memory. When the computer program is executed by the processor, the processor is caused to implement any one of the wearing state detection methods disclosed in the embodiments of the present application.

[0022] An embodiment of the present application discloses a computer program product, including a computer program. When the computer program is executed by a processor in an electronic device, the electronic device is caused to implement any one of the wearing state detection methods disclosed in the embodiments of the present application.

[0023] The embodiments of the present application disclose a wearing state detection method, device, wearable device and computer program product. The wearable device includes a first contact sensor and a second contact sensor. Multiple frames of first contact information collected by the first contact sensor are obtained. If the number of frames of first contact information greater than or equal to the first wearing threshold reaches the first target number of frames, it is determined that the first wearing state is the worn state. Multiple frames of second contact information collected by the first contact sensor are obtained. If the number of frames of second contact information greater than or equal to the second wearing threshold reaches the second target number of frames, it is determined that the second wearing state is the worn state. If the second wearing state is detected as the worn state within the first time period at the target moment, it is determined that the wearable device is in the worn state. In the embodiments of the present application, when the first wearing state of the wearable device is determined to be the worn state and the first contact information has started to be less than the first wearing threshold, the first wearing state can still be maintained as the worn state for the first time period. So that within this first time period, when the second wearing state is determined to be the worn state, it can also be recognized that the wearable device is in the worn state. When the user wears the wearable device, due to the different contact times of the first contact sensor and the wearing part, and the different contact times of the second contact sensor and the wearing part, it causes a time misalignment between the first contact information collected by the first contact sensor that is greater than or equal to the first wearing threshold and the second contact information collected by the second contact sensor that is greater than or equal to the second wearing threshold, and when the misalignment time difference is less than the first time period, it can still be recognized that the wearable device is in the worn state, improving the robustness of the wearing state recognition. At the same time, the duration of maintaining the first wearing state as the worn state is limited to the first time period, avoiding misjudgment caused by maintaining the first wearing state as the worn state for a long time, and ensuring the reliability of recognizing that the wearable device is in the worn state. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0025] Figure 1a is an application scenario diagram of a wearing state detection method disclosed in the embodiments of the present application;

[0026] Figure 1b is another application scenario diagram of a wearing state detection method disclosed in the embodiments of the present application;

[0027] Figure 2 is a schematic structural diagram of a headset disclosed in the embodiments of the present application;

[0028] Figure 3It is a schematic flowchart of a wearing state detection method disclosed in an embodiment of the present application;

[0029] Figure 4 It is a schematic flowchart of a wearing state detection process disclosed in an embodiment of the present application;

[0030] Figure 5 It is a schematic flowchart of another wearing state detection method disclosed in an embodiment of the present application;

[0031] Figure 6 It is a schematic flowchart of yet another wearing state detection method disclosed in an embodiment of the present application;

[0032] Figure 7 It is a schematic flowchart of another wearing state detection process disclosed in an embodiment of the present application;

[0033] Figure 8 It is a schematic flowchart of yet another wearing state detection process disclosed in an embodiment of the present application;

[0034] Figure 9 It is a schematic flowchart of still another wearing state detection method disclosed in an embodiment of the present application;

[0035] Figure 10 It is a schematic structural diagram of a wearing state detection device disclosed in an embodiment of the present application;

[0036] Figure 11 It is a schematic structural diagram of another wearing state detection device disclosed in an embodiment of the present application;

[0037] Figure 12 It is a schematic structural diagram of a wearable device disclosed in an embodiment of the present application. Detailed implementation manners

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

[0039] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products, or devices.

[0040] In the related art, in order to improve the accuracy of detecting the wearing state, contact sensors are usually respectively arranged at multiple different positions of the wearable device. When the contact information collected by each contact sensor is greater than or equal to the wearing threshold at the same moment, it is determined that the wearable device is in the worn state, that is, it is determined that the user wears the wearable device.

[0041] However, the shapes of the wearing parts of different users are different, resulting in different contact times between multiple contact sensors and the wearing parts when some users wear the wearable device. As a result, the time periods corresponding to the peaks (greater than the wearing threshold) of the contact information collected by multiple contact sensors are different, that is, time misalignment occurs. Among them, since multiple contact sensors may be arranged inside the wearable device, therefore, the contact time between the contact sensor and the wearing part mentioned in this application may refer to the moment when the distance between the contact sensor and the wearing part is less than or equal to the preset distance.

[0042] For example, multiple contact sensors include a first contact sensor and a second contact sensor. During the process of the user wearing the wearable device, the first contact information collected by the first contact sensor is greater than or equal to the corresponding wearing threshold within the time period from t1 to t2, and the second contact information collected by the second contact sensor is greater than or equal to the corresponding wearing threshold within the time period from t2 to t3. It can be seen that since the times when the first contact sensor and the second contact sensor collect contact information greater than or equal to the corresponding wearing thresholds are different, the above technical solution cannot identify the wearable device as being in the worn state.

[0043] The embodiments of the present application provide a wearing state detection method, device, wearable device and computer program product, which can improve the robustness of wearing state recognition.

[0044] Figure 1a - Figure 1b The application scenario diagram of the wearing state detection method provided by the embodiments of the present application is shown. Figure 1a A wearable device in the worn state is shown. Figure 1b A wearable device in the non-worn state is shown. Optionally, the wearable device may include but is not limited to headphones, watches, bracelets, glasses, etc. Among them, the headphones may include wired headphones, TWS (True Wireless Stereo) headphones, etc. Among them, the left and right headphones of the TWS headphones do not need to be connected by a cable and can work independently by realizing wireless separation of the left and right channels. Figure 1a And Figure 1b The wearable device shown is a TWS headphone.

[0045] Among them, the wearable device may include a first contact sensor and a second contact sensor, and the installation positions of the first contact sensor and the second contact sensor are different. The first contact information collected by the first contact sensor can be used to reflect the distance information between the first contact sensor and the approaching object, and the second contact information collected by the second contact sensor can be used to reflect the distance information between the second contact sensor and the approaching object.

[0046] The wearable device being in the worn state may mean that the wearable device is worn on the wearing part, and the wearable device being in the non-worn state may mean that the wearable device is not worn on the wearing part. When the wearable device is in the worn state, the wearable device is in contact with the wearing part, and the first contact information collected by the first contact sensor is relatively large, and the second contact information collected by the second contact sensor is relatively large. In the case where the wearable device is in the non-worn state, since there is no contact between the wearable device and the wearing part, the first contact information collected by the first contact sensor is relatively small, and the second contact information collected by the second contact sensor is relatively small.

[0047] In some embodiments, the contact sensor may include an optical sensor, a capacitive sensor, and an acoustic wave sensor. Among them, the optical sensor utilizes the reflection characteristic of light and determines whether the optical sensor is in contact with the approaching object according to the intensity of the received reflected light. Exemplarily, the optical sensor emits light and receives the reflected light, and determines the wearing state of the wearable device according to the intensity of the reflected light. Optionally, the optical sensor may include, but is not limited to, a laser sensor and an infrared sensor, etc.

[0048] Among them, the acoustic wave sensor utilizes the reflection characteristic of acoustic waves and determines whether the acoustic wave sensor is in contact with the approaching object according to the reflection time and intensity corresponding to the received echo signal. Exemplarily, the acoustic wave sensor emits ultrasonic waves and receives the echo signal, calculates the intensity of the echo signal, and determines the wearing state of the wearable device.

[0049] Among them, the capacitive sensor can detect capacitance changes. It should be noted that the dielectric constant of the human body is higher than that of air. When the wearable device is in the worn state, the capacitance value collected by the capacitive sensor is relatively large, and when the wearable device is in the non-worn state, the capacitance value collected by the capacitive sensor is relatively small. Therefore, the wearing state of the wearable device can be determined based on the capacitance value collected by the capacitive sensor. Among them, the cost of the capacitive sensor is lower, so it is more widely used.

[0050] Figure 2 The structural schematic diagram of a headset provided by an embodiment of the present application is shown. Two capacitive sensors are provided on the headset. As Figure 2As shown, the head of the earphone is provided with a first electrode 210 and a second electrode 220 corresponding to the first capacitance sensor and the second capacitance sensor respectively. Each capacitance sensor is used to detect the capacitance value between the corresponding electrode and the surrounding environment (such as air or human body). By collecting multiple capacitance values respectively through the two capacitance sensors, it is determined whether the earphone is worn or taken off, that is, whether the earphone is in a worn state or an unworn state.

[0051] Optionally, the first electrode 210 corresponding to the first capacitance sensor is arranged at the top of the earphone head, and the second electrode 220 corresponding to the second capacitance sensor is arranged at the bottom of the earphone head.

[0052] It can be understood that in the case where the contact sensor includes an optical sensor, the contact information includes the intensity of the reflected light collected by the optical sensor; in the case where the contact sensor includes an acoustic sensor, the contact information includes the intensity of the echo signal collected by the acoustic sensor; in the case where the contact sensor includes a capacitance sensor, the contact information includes the capacitance value collected by the capacitance sensor.

[0053] In some embodiments, when the wearable device is in a worn state, it is in a normal working mode. When the wearable device is in an unworn state, it is in a low-power mode. It should be noted that in the normal working mode, the wearable device operates with high performance and high power consumption. In the low-power mode, the wearable device only maintains basic functions to reduce power consumption.

[0054] Figure 3 The flowchart of a wearing detection method provided by an embodiment of the present application is shown. This wearing detection method can be applied to a wearable device.

[0055] As Figure 3 shown, this wearing detection method may include steps 302 to 310.

[0056] Step 302, obtain multiple frames of first contact information collected by the first contact sensor. If the number of frames of the first contact information greater than or equal to the first wearing threshold reaches the first target number of frames, determine that the first wearing state is a worn state.

[0057] It should be noted that when the wearable device is in a worn state, the first contact sensor is close to the wearing part. When the wearable device is in an unworn state, the first contact sensor is far from the wearing part. The first wearing threshold can be used to measure whether the distance between the first contact sensor and the wearing part is small. If the first contact information collected by the first contact sensor is greater than or equal to the first wearing threshold, it can be considered that the distance between the first contact sensor and the approaching object is small.

[0058] Optionally, the first wearing threshold is greater than the first non-wearing threshold. It should be noted that the first non-wearing threshold can be used to measure whether the first contact sensor is away from the wearing part. If the first contact information collected by the first contact sensor is less than the first non-wearing threshold, it can be determined that the first wearing state is the non-wearing state. Exemplarily, the first non-wearing threshold can be determined according to the lower limit value of the first contact information collected by the first contact sensor when the wearable device is in the worn state.

[0059] It should be noted that the first target number of frames can be one frame or multiple frames, and the first target number of frames can be set according to actual needs. Optionally, the range of the first target number of frames can include 3 frames to 8 frames. Optionally, the first target number of frames can be 3 frames, 4 frames, 5 frames, 6 frames, 7 frames or 8 frames. It should be noted that when the first target number of frames is multiple frames, it can avoid misjudging the first wearing state as the worn state because the first contact information collected by the first contact sensor is greater than the first wearing threshold due to the interference of suddenly appearing interference signals. At the same time, since the duration for which the first contact information remains at a high value is short, and the selected first target number of frames is small, it can avoid the phenomenon that the first wearing state cannot be recognized as the worn state even when the user wears the wearable device. By selecting an appropriate first target number of frames, the misjudgment rate of the wearing state can be reduced, and at the same time, the stability and reliability of the wearing state detection can be ensured, and the robustness of the wearing state detection can be improved.

[0060] The first wearing state can be used to characterize whether the first contact sensor and the wearing part meet the first wearing condition. The first contact sensor includes a non-wearing state and a worn state. The first wearing state being the worn state indicates that the first contact sensor and the wearing part have met the first wearing condition, and the first wearing state being the non-wearing state indicates that the first contact sensor and the wearing part do not meet the first wearing condition. Among them, the first wearing condition includes that in multiple frames of first contact information collected by the first contact sensor, the number of frames of the first contact information greater than or equal to the first wearing threshold reaches the first target number of frames.

[0061] In some embodiments, if there are N consecutive frames of first contact information greater than or equal to the first wearing threshold in multiple frames of first contact information, it is determined that the first wearing state is the worn state. Wherein, N is the first target number of frames. In this embodiment, in multiple frames of first contact information, only when there are N consecutive frames of first contact information greater than or equal to the first wearing threshold is it determined that the first wearing state is the worn state, which can avoid the phenomenon of misjudging the wearable device in the non-wearing state as the worn state due to interference information, and improves the anti-interference ability of the wearing state detection.

[0062] In some embodiments, the wearable device acquires multiple frames of first contact information collected by the first contact sensor, and performs filtering processing on the multiple frames of first contact information. When the first wearing state is the non-wearing state, it is determined whether the number of frames of the first contact information after filtering that is greater than or equal to the first wearing threshold reaches the first target number of frames among the multiple frames of first contact information after filtering. If the number of frames of the first contact information after filtering that is greater than or equal to the first wearing threshold reaches the first target number of frames, it is determined that the first wearing state is the wearing state. If the number of frames of the first contact information after filtering that is greater than or equal to the first wearing threshold does not reach the first target number of frames, the first wearing state is maintained as the non-wearing state. In this embodiment, by performing filtering processing on the multiple frames of first contact information collected by the first contact sensor, the interference of the interference signal on the multiple frames of first contact information is reduced, ensuring the detection accuracy of the first wearing state, and thus ensuring the detection accuracy of the wearing state of the wearable device.

[0063] Step 304, acquire multiple frames of second contact information collected by the second contact sensor. If the number of frames of the second contact information that is greater than or equal to the second wearing threshold reaches the second target number of frames, determine that the second wearing state is the wearing state.

[0064] It should be noted that the wearable device can execute step 302 and step 304 simultaneously. The second wearing threshold can be used to measure whether the distance between the second contact sensor and the wearing part is small. If the second contact information collected by the second contact sensor is greater than or equal to the second wearing threshold, it can be considered that the distance between the second contact sensor and the approaching object is small.

[0065] It should be noted that the second target number of frames can be set according to actual needs. For example, one frame or multiple frames can be selected. Optionally, the range of the second target number of frames can include 3 frames to 8 frames. Optionally, the second target number of frames can be 3 frames, 4 frames, 5 frames, 6 frames, 7 frames, or 8 frames.

[0066] The second wearing state can be used to represent whether the second contact sensor and the wearing part meet the second wearing condition. The second contact sensor includes a non-wearing state and a wearing state. When the second wearing state is the wearing state, it represents that the second contact sensor and the wearing part have met the second wearing condition. When the second wearing state is the non-wearing state, it represents that the second contact sensor and the wearing part do not meet the second wearing condition. Among them, the second wearing condition includes that among the multiple frames of second contact information collected by the second contact sensor, the number of frames of the second contact information that is greater than or equal to the second wearing threshold reaches the second target number of frames.

[0067] In some embodiments, if there are N consecutive frames of second contact information that are greater than or equal to the second wearing threshold among the multiple frames of second contact information, determine that the second wearing state is the wearing state.

[0068] In some embodiments, the second wearing threshold is greater than the second non-wearing threshold. It should be noted that the second non-wearing threshold can be used to measure whether the second contact sensor is far from the wearing part. If the second contact information collected by the second contact sensor is less than the second non-wearing threshold, it can be determined that the second wearing state is the non-wearing state. Exemplarily, the second non-wearing threshold can be determined according to the lower limit value of the second contact information collected by the second contact sensor when the wearable device is in the worn state. Exemplarily, the wearable device includes TWS earphones, the first contact sensor can include a first capacitance sensor, the second contact sensor can include a second capacitance sensor, the first wearing threshold is 35 fF (femtofarad), and the second wearing threshold is 35 fF.

[0069] In some other embodiments, the first wearing threshold is less than or equal to the first non-wearing threshold, and the second wearing threshold is greater than the second non-wearing threshold. It should be noted that during the process of wearing the wearable device, the first contact sensor may approach the wearing part earlier than the second contact sensor. That is, when the first contact information is greater than or equal to the first wearing threshold, the second contact information may be less than the second wearing threshold, and when the second contact information is greater than or equal to the second wearing threshold, the first contact information may be less than the first wearing threshold. Please refer to Table 1 and Table 2. During the process of wearing the wearable device, 33 frames of data are collected. Table 1 shows the first contact data and the second contact data from the 1st frame to the 13th frame, and Table 2 shows the first contact data and the second contact data from the 14th frame to the 33rd frame. Taking the first wearing threshold as 35 and the second wearing threshold as 35 as an example, among the first contact data and the second contact data from the 1st frame to the 13th frame, the first contact information is greater than or equal to the first wearing threshold, but the second contact information is less than the second wearing threshold. Among the first contact data and the second contact data from the 14th frame to the 33rd frame, when the second contact information is greater than or equal to the second wearing threshold, the first contact information is less than the first wearing threshold.

[0070] Table 1 First contact data and second contact data from the 1st frame to the 13th frame

[0071]

[0072] Table 2 First contact data and second contact data from the 14th frame to the 33rd frame

[0073]

[0074] Among them, S0 is the first contact information collected by the first contact sensor, and S1 is the second contact information collected by the second contact sensor.

[0075] In this embodiment, by setting the first wearing threshold to be less than or equal to the first non-wearing threshold, it is possible that, when the contact time of the second contact sensor with the wearing part is different from the contact time of the first contact sensor with the wearing part, the first contact information and the second contact information still meet the corresponding threshold requirements at the same moment, that is, the first contact information is greater than the first wearing threshold and the second contact information is greater than the second wearing threshold, so that in the misalignment scenario, the wearing state of the wearable device can also be determined as the worn state.

[0076] It can be understood that the wearable device can also perform filtering processing on multiple frames of second contact information, and then determine the second wearing state based on the multiple frames of filtered second contact information.

[0077] Step 306: Determine whether the second wearing state is the worn state within the first time period at the target moment. If so, execute step 308; if not, execute step 310.

[0078] The target moment is the moment when it is first detected that the first contact information is less than the first wearing threshold when the first wearing state is the worn state. It should be noted that as shown in Tables 1 to 2, during the process of the wearing state of the wearable device switching from the non-worn state to the worn state, the contact information collected by the contact sensor may first increase and then decrease, and then remain stable. Therefore, if the contact times of the first contact sensor and the second contact sensor with the user's wearing part are inconsistent, it may occur that when the first contact information collected by the first contact sensor has been greater than or equal to the first wearing threshold, the second contact information collected by the second contact sensor has not risen to be greater than or equal to the second wearing threshold, and when the second contact information collected by the second contact sensor rises to be greater than or equal to the second wearing threshold, the first contact information collected by the first contact sensor has dropped to be less than the first wearing threshold. In the related art, when the first contact information collected by the first contact sensor is greater than the wearing threshold and the second contact information is greater than or equal to the wearing threshold, the wearable device is considered to be in the worn state, but this technical solution obviously cannot identify the above situation as the worn state.

[0079] In this embodiment, when the first wearing state is the worn state and the first contact information starts to be less than the first wearing threshold, the wearable device maintains the first wearing state as the worn state, and determines whether the second wearing state switches to the worn state within the first time period at the target moment, so that in the case where the second wearing state switches to the worn state within the first time period at the target moment, it can also be determined as the worn state, improving the robustness of the wearing state detection.

[0080] In some embodiments, when the first wearing state is the worn state and the second wearing state is the non-worn state, if it is detected that the first contact information is less than the first wearing threshold, it is determined whether the second wearing state switches to the worn state within the first duration at the target moment. It should be noted that when the wearable device determines that the first wearing state is the worn state and the second wearing state is the non-worn state, it can detect whether the first contact information is less than the first wearing threshold. If so, it is determined whether the second wearing state switches to the worn state within the first duration at the target moment, so that in the first duration at the target moment, the situation where the second wearing state switches to the worn state can also be determined as the worn state, improving the robustness of the wearing state detection.

[0081] In some embodiments, if it is detected that the second wearing state is the worn state when the first wearing state is the worn state, it is determined that the wearable device is in the worn state. It should be noted that when the wearable device determines that the first wearing state is the worn state, it can determine whether it is detected that the second wearing state is the worn state. If it is detected that the second wearing state is the worn state, it is determined that the wearable device is in the worn state. That is, if when the first wearing state is the worn state and the first contact information is greater than or equal to the first wearing threshold, the wearable device continuously determines whether it is detected that the second wearing state is the worn state. If it is detected that the second wearing state is the worn state before the target moment, it is determined that the wearable device is in the worn state, so that in the scenario where the contact moments of the first contact sensor and the second contact sensor with the user's wearing part are the same (i.e., the non-offset scenario), the wearing state of the wearable device can also be accurately identified, realizing compatibility with the offset scenario and the non-offset scenario.

[0082] Optionally, the first duration can be determined according to the first test contact information collected by the first contact sensor and the second test contact information collected by the second contact sensor when the wearable device is in the wearing state. It should be noted that the first duration can be determined according to the moment of the first test contact information that is greater than or equal to the first wearing threshold and the moment of the second test contact information that is greater than or equal to the second wearing threshold in the first test contact information.

[0083] Optionally, the first duration can be the time difference between the first peak moment and the second peak moment. The first peak moment is the moment corresponding to the peak contact information in the first test contact information, and the second peak moment is the moment corresponding to the peak contact information in the second test contact information.

[0084] Step 308, determine that the wearable device is in the worn state.

[0085] It should be noted that if the second wearing state is detected as the worn state within the first duration at the target moment, it is determined that the wearable device is in the worn state. In this embodiment, the second wearing state is updated to the worn state only within the first duration after the first contact information collected by the first contact sensor is less than the first contact threshold, and the wearable device will also determine that the wearable device is in the worn state. That is, during the process of the user wearing the wearable device, even in the scenario where the contact moment between the first contact sensor and the wearing part is misaligned with the contact moment between the second contact sensor and the wearing part, the wearable device can determine that the wearable device is in the worn state, improving the robustness of the wearing state detection.

[0086] In some embodiments, determining that the wearable device is in the worn state may include that the wearable device updates the wearing flag bit corresponding to the wearable device to a fifth value. Wherein, the fifth value is used to indicate that the wearable device is in the worn state. It should be noted that the wearing flag corresponding to the wearable device is a sixth value, indicating that the wearable device is in the non-worn state. By setting the wearing flag bit corresponding to the wearable device and updating the wearing flag bit corresponding to the wearable device according to the detection situation, the wearable device can determine the wearing state of the wearable device. Exemplarily, the fifth value may be "1", and the sixth value may be "0". Exemplarily, the fifth value may be "0", and the sixth value may be "1".

[0087] Step 310, switch the first wearing state to the non-worn state.

[0088] It should be noted that if the second wearing state is not detected as the worn state within the first duration at the target moment, the first wearing state is switched to the non-worn state. When the first wearing state is the worn state and the duration during which the first contact information drops to less than the first wearing threshold reaches the first duration, if the second wearing state is still not the worn state, it can be considered that the reason for determining the first wearing state as the worn state is not due to the user wearing the wearable device. For example, it may be that the user touches the position corresponding to the first contact sensor in the wearable device. When the number of frames of the first contact information greater than or equal to the first wearing threshold reaches the first target number of frames is not due to wearing the wearable device, the first wearing state is switched to the non-worn state at this time to ensure that the first wearing state conforms to the actual situation.

[0089] In an embodiment of the present application, multiple frames of first contact information collected by a first contact sensor are obtained. If the number of frames of first contact information greater than or equal to a first wearing threshold reaches a first target number of frames, it is determined that the first wearing state is the worn state. Multiple frames of second contact information collected by the first contact sensor are obtained. If the number of frames of second contact information greater than or equal to a second wearing threshold reaches a second target number of frames, it is determined that the second wearing state is the worn state. If the second wearing state is detected as the worn state within a first duration at a target moment, it is determined that the wearable device is in the worn state. When the first wearing state of the wearable device is determined to be the worn state and the first contact information has started to be less than the first wearing threshold, the first wearing state can still be maintained as the worn state for a first duration, so that within this first duration, the second wearing state is determined to be the worn state, and it can also be recognized that the wearable device is in the worn state. When the user wears the wearable device, due to the different contact moments of the first contact sensor and the wearing part and the second contact sensor and the wearing part, there is a time misalignment between the first contact information greater than or equal to the first wearing threshold collected by the first contact sensor and the second contact information greater than or equal to the second wearing threshold collected by the second contact sensor, and when the misalignment time difference is less than the first duration, it can still be recognized that the wearable device is in the worn state, improving the robustness of wearing state recognition. At the same time, the duration of maintaining the first wearing state as the worn state is limited to the first duration, avoiding misjudgment caused by maintaining the first wearing state as the worn state for a long time and ensuring the reliability of recognizing that the wearable device is in the worn state.

[0090] Figure 4 FIG. shows a schematic flowchart of a wearing detection process provided by an embodiment of the present application. This wearing detection method can be applied to a wearable device.

[0091] As Figure 4 shown, this wearing detection method may include steps 402 to 408.

[0092] Step 402, when the first wearing state is the worn state and the second wearing state is the worn state, calculate first fluctuation information corresponding to multiple frames of first contact information, and / or calculate second fluctuation information corresponding to multiple frames of second contact information.

[0093] It should be noted that when the first wearing state of the wearable device is the worn state and the second wearing state is the worn state, the wearable device can calculate the first fluctuation information and / or calculate the second fluctuation information corresponding to multiple frames of second contact information.

[0094] Optionally, the fluctuation information may include, but is not limited to, variance, standard deviation, range, coefficient of variation, etc. Among them, variance is used to measure the degree of dispersion of multiple frames of contact information relative to the average value corresponding to the multiple frames of contact information. The standard deviation is the square root of the variance, and the standard deviation is used to represent the average degree to which the multiple frames of contact information deviate from the average value. The range is the difference between the maximum contact information and the minimum contact information in the multiple frames of contact information, and the range is used to reflect the overall distribution range of the multiple frames of contact information. The coefficient of variation is the ratio of the standard deviation to the mean, and the coefficient of variation is used to measure the relative degree of dispersion of the multiple frames of contact information.

[0095] Step 404, determine whether the first fluctuation information is greater than the first fluctuation threshold, and / or whether the second fluctuation information is greater than the second fluctuation threshold. If so, execute step 406; if not, execute step 408.

[0096] It should be noted that for the case of determining the wearing state of the wearable device based on the first fluctuation information, the wearable device can calculate the first fluctuation information corresponding to multiple frames of first contact information and determine whether the first fluctuation information is greater than the first fluctuation threshold. If so, execute step 406; if not, execute step 408.

[0097] For the case of determining the wearing state of the wearable device based on the second fluctuation information, the wearable device can calculate the second fluctuation information corresponding to multiple frames of second contact information and determine whether the second fluctuation information is greater than the second fluctuation threshold. If so, execute step 406; if not, execute step 408.

[0098] For the case of determining the wearing state of the wearable device based on the first fluctuation information and the second fluctuation information, the wearable device can calculate the first fluctuation information corresponding to multiple frames of first contact information and the second fluctuation information corresponding to multiple frames of second contact information, and determine whether the first fluctuation information is greater than the first fluctuation threshold and the second fluctuation information is greater than the second fluctuation threshold. If so, execute step 406; if not, execute step 408.

[0099] It should be noted that when the wearable device is in contact with inanimate objects (such as tables, chairs, etc.), the dielectric constant of the inanimate objects may also be relatively high. At this time, the first contact information collected by the first contact sensor and the second contact information collected by the second contact sensor may be relatively large. However, since the inanimate objects are stationary, when the wearable device is worn on the user's wearing part, compared with placing the wearable device on the inanimate object, the first contact information collected by the first contact sensor and the second contact information collected by the second contact sensor are relatively unstable. In this embodiment, by determining whether the first fluctuation information is greater than the first fluctuation threshold, and / or whether the second fluctuation information is greater than the second fluctuation threshold, and determining the wearing state of the wearable device based on the judgment result, the accuracy of the wearing state detection of the wearable device can be ensured.

[0100] It should be noted that the first fluctuation threshold can be used to measure the fluctuation of multiple frames of first contact information collected by the first contact sensor. Exemplarily, the first fluctuation threshold can be determined according to the fluctuation information corresponding to multiple frames of test first contact information collected by the first contact sensor when the wearable device is in the worn state, and the first fluctuation threshold can be set as the fluctuation information corresponding to multiple frames of test first contact information.

[0101] Similarly, the second fluctuation threshold can be used to measure the fluctuation of multiple frames of second contact information collected by the second contact sensor. Exemplarily, the second fluctuation threshold can be determined according to the fluctuation information corresponding to multiple frames of test second contact information collected by the second contact sensor when the wearable device is in the worn state, and the second fluctuation threshold can be set as the fluctuation information corresponding to multiple frames of test second contact information.

[0102] In some embodiments, the first contact sensor includes a third capacitance sensor, the second contact sensor includes a fourth capacitance sensor, and the electrode area of the fourth capacitance sensor is larger than that of the third capacitance sensor. When the first wearing state of the wearable device is the worn state and the second wearing state is the worn state, calculate the second fluctuation information corresponding to multiple frames of second contact information, and determine whether the second fluctuation information is greater than the second fluctuation threshold. If so, execute step 406; if not, execute step 408. It should be noted that the larger the effective area of the electrode, the larger the capacitance value detected by the capacitance sensor. In this embodiment, since the electrode area of the fourth capacitance sensor is larger than that of the third capacitance sensor, the second contact information is usually greater than the first contact information. By calculating the second fluctuation information corresponding to the second contact information, the interference of the interference signal on the determined second fluctuation information is small, ensuring the reliability of the determined second fluctuation information, thereby ensuring the accuracy of the detected wearing state of the wearable device. And it is only necessary to calculate the second fluctuation information corresponding to multiple frames of second contact information, which can reduce the calculation amount of the wearable device and improve the response speed of the wearable device.

[0103] Step 406, determine that the wearable device is in the worn state.

[0104] It should be noted that if the wearable device determines that the first fluctuation information is greater than the first fluctuation threshold, it determines that the wearable device is in the worn state; or, if the wearable device determines that the second fluctuation information is greater than the second fluctuation threshold, it determines that the wearable device is in the worn state; or, if the wearable device determines that the first fluctuation information is greater than the first fluctuation threshold and the second fluctuation information is greater than the second fluctuation threshold, it determines that the wearable device is in the worn state.

[0105] It should be noted that if the first fluctuation information is greater than the first fluctuation threshold, and / or the second fluctuation information is greater than the second fluctuation threshold, it can be considered that the multiple frames of first contact information collected by the first contact sensor and / or the multiple frames of second contact information collected by the second contact sensor are unstable. That is to say, it can be considered that the wearable device is close to the wearing part, rather than close to an inanimate object, and it is determined that the wearable device is in the worn state, avoiding the phenomenon that the worn state of the wearable device is misjudged as the worn state due to placing the wearable device on an inanimate object.

[0106] Step 408, determine that the wearable device is in the unworn state.

[0107] It should be noted that if the wearable device determines that the first fluctuation information is less than or equal to the first fluctuation threshold, it determines that the wearable device is in the unworn state. Or, if the wearable device determines that the second fluctuation information is less than or equal to the second fluctuation threshold, it determines that the wearable device is in the unworn state. Or, if the wearable device determines that the first fluctuation information is less than or equal to the first fluctuation threshold and the second fluctuation information is less than or equal to the second fluctuation threshold, it determines that the wearable device is in the unworn state.

[0108] It should be noted that if the first fluctuation information is less than or equal to the first fluctuation threshold, or the second fluctuation information is less than or equal to the second fluctuation threshold, or the first fluctuation information is less than or equal to the first fluctuation threshold and the second fluctuation information is less than or equal to the second fluctuation threshold, it can be considered that the multiple frames of first contact information collected by the first contact sensor and / or the multiple frames of second contact information collected by the second contact sensor are stable. That is to say, it can be considered that the wearable device is close to an inanimate object, so it can be determined that the wearable device is in the unworn state.

[0109] In this embodiment, when the first wearing state is the worn state and the second wearing state is the worn state, the wearable device can calculate the first fluctuation information corresponding to the first contact information and / or calculate the second fluctuation information corresponding to the multiple frames of second contact information, and only when the calculated first fluctuation information is greater than the first fluctuation threshold and / or the second fluctuation information is greater than the second fluctuation threshold, it is considered that the wearable device is in the worn state. That is, when there is a certain fluctuation in the multiple frames of first contact information and / or the multiple frames of second contact information, the worn state of the wearable device is determined to be the worn state, ensuring the accuracy of the worn state detection.

[0110] Figure 5 FIG. shows a schematic flow chart of another wearing detection method provided by an embodiment of the present application. This wearing detection method can be applied to a wearable device.

[0111] As Figure 5 shown, this wearing detection method may include step 502 to step 510.

[0112] Step 502: Obtain multiple frames of first contact information collected by the first contact sensor. If the number of frames of first contact information greater than or equal to the first wearing threshold reaches the first target number of frames, update the wearing flag bit corresponding to the first contact sensor to a second value.

[0113] It should be noted that the second value is used to represent that the first wearing state is the worn state. The default value of the wearing flag bit corresponding to the first contact sensor can be a third value, and the third value is used to represent that the first wearing state is the non-worn state. Optionally, the wearable device includes a register, and the register may include the wearing flag bit corresponding to the first contact sensor. The wearable device can modify the wearing flag bit corresponding to the first contact sensor. Exemplarily, the second value can be "1", and the third value can be "0". Exemplarily, the second value can be "0", and the third value can be "1".

[0114] In some embodiments, when the wearable device obtains the first contact information, it may determine whether the first contact information is greater than or equal to the first wearing threshold, and when the number of frames of first contact information greater than or equal to the first wearing threshold reaches the first target number of frames, update the wearing flag bit corresponding to the first contact sensor to a second value.

[0115] Exemplarily, if the number of frames of first contact information greater than or equal to the first wearing threshold reaches the first target number of frames, and the acquisition duration corresponding to the first contact information of the first target number of frames is less than or equal to the second duration, update the wearing flag bit corresponding to the first contact sensor to a second value. It should be noted that the acquisition duration may refer to the duration between the last acquisition moment corresponding to the first contact information of the first target number of frames and the earliest acquisition moment corresponding to the first contact information of the first target number of frames. When the wearable device is worn, the first contact sensor should be able to collect the first contact information greater than or equal to the first wearing threshold of the first target number of frames within a short time. In this embodiment, only when the acquisition duration corresponding to the first contact information of the first target number of frames is less than or equal to the second duration, the wearing flag bit corresponding to the first contact sensor is updated to the second value, which can improve the accuracy of the first wearing state. It can be understood that the second duration can be set according to the actual situation, and this embodiment does not make specific limitations on this.

[0116] In this embodiment, when the number of frames of the first contact information greater than or equal to the first wearing threshold reaches the first target number of frames, the wearable device updates the wearing flag bit corresponding to the first contact sensor to a second value, and characterizes the first wearing state through the wearing flag bit corresponding to the first contact sensor. The wearable device can determine the first wearing state by detecting the wearing flag bit corresponding to the first contact sensor, and the value of the wearing flag bit corresponding to the first contact sensor can be maintained for a period of time to facilitate misalignment judgment.

[0117] Step 504: Obtain multiple frames of second contact information collected by the second contact sensor. If the number of frames of the second contact information greater than or equal to the second wearing threshold reaches the second target number of frames, update the wearing flag bit corresponding to the second contact sensor to the first value.

[0118] Wherein, the first value is used to characterize that the second wearing state is the worn state. The default value of the wearing flag bit corresponding to the second contact sensor can be the fourth value, and the fourth value is used to characterize that the second wearing state is the not worn state. Optionally, the register of the wearable device may further include the wearing flag bit corresponding to the second contact sensor. The wearable device can modify the wearing flag bit corresponding to the second contact sensor.

[0119] Exemplarily, the first value is the same as the second value, and the fourth value is the same as the third value. Exemplarily, the first value can be "1", the fourth value can be "0", or the first value can be "0", and the fourth value can be "1".

[0120] In some embodiments, when the wearable device obtains the second contact information, it can determine whether the second contact information is greater than or equal to the first wearing threshold, and when the number of frames of the second contact information greater than or equal to the second wearing threshold reaches the second target number of frames, update the wearing flag bit corresponding to the second contact sensor to the first value.

[0121] Step 506: Determine whether the wearing flag bit corresponding to the second contact sensor is the first value within the first duration at the target moment. If so, execute step 508; if not, execute step 510.

[0122] It should be noted that within the first duration at the target moment, the wearable device can access the wearing flag bit corresponding to the second contact sensor to determine whether the wearing flag bit corresponding to the second contact sensor is the first value.

[0123] In some embodiments, when the wearing flag bit corresponding to the first contact sensor is the second value, the wearable device determines whether the wearing flag bit corresponding to the second contact sensor is the first value. If the wearing flag bit corresponding to the second contact sensor is the first value, the wearable device determines that the wearing state of the wearable device is the worn state. If the wearing flag bit corresponding to the second contact sensor is the fourth value, the wearable device determines whether the first contact information is less than the first wearing threshold. If the first contact information is greater than or equal to the first wearing threshold, the wearable device returns to the step of determining whether the wearing flag bit corresponding to the second contact sensor is the first value. If the first contact information is less than the first wearing threshold, the wearable device starts timing and continuously determines whether the wearing flag bit corresponding to the second contact sensor is the first value within the first duration of the timing. If the wearing flag bit corresponding to the second contact sensor is detected as the first value within the first duration, the wearable device determines that the wearing state of the wearable device is the worn state. If the wearing flag bit is not detected as the first value within the first duration, the wearable device updates the wearing flag bit corresponding to the first contact sensor to the third value.

[0124] Step 508: Determine that the wearable device is in the worn state.

[0125] In some embodiments, when the wearing flag bit corresponding to the first contact sensor is the second value, if the wearing flag bit corresponding to the second contact sensor is detected as the first value within the first duration at the target time, the wearable device determines that the wearable device is in the worn state. It should be noted that the wearable device determines that the wearing flag bit corresponding to the first contact sensor is the second value and the wearing flag bit corresponding to the second contact sensor is the first value within the first duration at the target time, and then determines that the wearable device is in the worn state.

[0126] Step 510: Update the wearing flag bit corresponding to the first contact sensor to the third value.

[0127] Among them, if the wearing flag bit corresponding to the second contact sensor is not detected as the first value within the first duration at the target time, the wearable device updates the wearing flag bit corresponding to the first contact sensor to the third value. It should be noted that when the wearable device is worn, the contact times of the first contact sensor and the second contact sensor with the wearing part will not be too far apart. If the wearing flag bit corresponding to the second contact sensor is not detected as the first value within the first duration at the target time, it can be considered that the user does not wear the wearable device, and the first contact information collected by the first contact sensor is greater than the first contact threshold due to other reasons. In this embodiment, when the wearing flag bit corresponding to the second contact sensor is not detected as the first value within the first duration at the target time, the wearable device updates the wearing flag bit corresponding to the first contact sensor to the third value to ensure that the wearing flag bit corresponding to the first contact sensor matches the actual first wearing state.

[0128] In this embodiment, when the number of frames of the second contact information greater than or equal to the second wearing threshold reaches the second target number of frames, the wearable device may update the wearing flag bit corresponding to the second contact sensor to a first value, so that when the first wearing state of the wearable device is the worn state, within the first duration at the target moment, as long as it is detected that the wearing flag bit corresponding to the second contact sensor is the first value, it can be determined that the second wearing state is the worn state, reducing misjudgment and improving the accuracy of wearing state recognition.

[0129] Figure 6 The flowchart of another wearing detection method provided by an embodiment of the present application is shown. This method can be applied to a wearable device. Please refer to Figure 6 , the wearable device can simultaneously compare and judge the first contact information S0 collected by the first contact sensor and the second contact information S1 collected by the second contact sensor.

[0130] The wearable device obtains the first contact information S0, and judges whether the first contact information S0 is greater than or equal to the first wearing threshold. If the first contact information S0 is greater than or equal to the first wearing threshold, the wearable device can determine whether the first contact information S0 greater than or equal to the first wearing threshold has exceeded the first target number of frames. If it has not exceeded the first target number of frames, the wearable device can continue to obtain the next frame of the first contact information S0 and re-execute the above steps until the first contact information S0 greater than or equal to the first wearing threshold has exceeded the first target number of frames. The wearable device sets the first wearing flag bit F1 to 1, and judges whether both the first wearing flag bit F1 and the second wearing flag bit F2 are 1. If one of the wearing flag bit F1 and the second wearing flag is not 1, it is judged whether the next frame of the first contact information S0 is less than the first wearing threshold. If the next frame of the first contact information S0 is less than the first wearing threshold, timing starts. During the timing process, it is continuously detected whether the first wearing flag bit F1 and the second wearing flag bit F2 are 1. If both the first wearing flag bit F1 and the second wearing flag are 1, it is determined that the wearable device is in the worn state. If the timing duration exceeds the first duration, the first wearing flag bit F1 is set to 0, and the wearing state of the wearable device remains in the non-worn state.

[0131] It can be understood that the comparison and judgment of the second contact information S1 collected by the second contact sensor by the wearable device is similar to the judgment comparison of the first contact information S0, and will not be elaborated here. It should be noted that the wearable device can compare and judge the first contact information S0 and the second contact information S1 collected by the second contact sensor in parallel, so that whether the first contact sensor or the second contact sensor contacts the wearing part first, the wearing state of the wearable device can be determined to be the worn state, improving the robustness of the wearing state detection.

[0132] In this embodiment, when the first contact information S0 for N consecutive frames (the first target number of frames) meets or exceeds the first wearing threshold, that is, after the first wearing condition is met, starting from the frame that does not meet the condition next, if among the next few frames of the second contact information, there are several consecutive frames of the second contact information S1 that meet or exceed the second wearing threshold, it is determined that the wearable device is in the worn state, thereby solving the problem of peak misalignment of the first contact information and the second contact information to some extent when wearing the wearable device.

[0133] Please refer to Figure 7 , which shows a schematic flowchart of another wearing state detection process provided by an embodiment of the present application. As Figure 7 shown, the method may include steps 702 to 708.

[0134] Step 702, obtain multiple frames of first contact information collected by the first contact sensor, and obtain multiple frames of second contact information collected by the second contact sensor.

[0135] In some embodiments, the first contact sensor may collect the first contact information according to a first preset period, and the second contact sensor may collect the second contact information according to a second preset period. Exemplarily, the first preset period may be from 0.05 s (seconds) to 0.08 s. Optionally, the first preset period is 0.05 s, 0.06 s, 0.07 s or 0.08 s. Exemplarily, the second preset period may be from 0.05 s to 0.08 s. Optionally, the second preset period is 0.05 s, 0.06 s, 0.07 s or 0.08 s.

[0136] It can be understood that the first contact sensor and the second contact sensor may collect the first contact information and the second contact information according to preset rules set respectively, and this embodiment does not limit this.

[0137] Step 704, determine whether the first contact information corresponding to the first time period is greater than or equal to the first wearing threshold, and the second contact information corresponding to the first time period is greater than or equal to the second wearing threshold; if so, execute step 706, if not, execute step 708.

[0138] Among them, the wearable device can determine whether the first contact information corresponding to the same time period is greater than or equal to the first wearing threshold, and whether the second contact information corresponding to the same time period is greater than or equal to the second wearing threshold. Since the first wearing threshold is less than or equal to the first non-wearing threshold, that is, the first wearing threshold is set to be relatively small, so that even in the case of misalignment, when the second contact information is greater than or equal to the second wearing threshold, the first contact information will also be greater than or equal to the first wearing threshold, enabling the recognition that the wearable device is in the worn state.

[0139] Among them, the first wearing threshold is less than or equal to the first non-wearing threshold, and the second wearing threshold is greater than the second non-wearing threshold. In this embodiment, by setting the first wearing threshold to be less than or equal to the first non-wearing threshold, it is possible to make the first contact information and the second contact information meet the corresponding threshold requirements at the same moment even when the contact moment between the second contact sensor and the wearing part is different from the contact moment between the first contact sensor and the wearing part, that is, the first contact information is greater than the first wearing threshold, and the second contact information is greater than the second wearing threshold, so that in the misalignment scenario, the wearing state of the wearable device can also be determined as the worn state. At the same time, since in this embodiment, it is within the same time period that the first contact information is greater than the first wearing threshold and the second contact information is greater than the second wearing threshold that the wearable device is recognized as the worn state, by limiting within the same time period, the misjudgment rate of the wearing state can be reduced.

[0140] In some embodiments, when the wearable device is in the worn state, if it is detected that the first contact information collected by the first contact sensor is less than the first non-wearing threshold and the second contact information collected by the second contact sensor is less than the second non-wearing threshold, it can be determined that the wearable device is in the non-worn state.

[0141] Exemplarily, the wearable device includes TWS earphones. The first contact sensor may include a first capacitance sensor, and the second contact sensor may include a second capacitance sensor. Since the first electrode corresponding to the first capacitance sensor is located at the top of the head, when most users wear TWS earphones, usually the top contacts the ear first. Therefore, when the second contact sensor collects second contact information greater than or equal to the second wearing threshold, the top is already close to the ear. At this time, the first contact information collected by the first capacitance sensor is still large. The first wearing threshold is set to be less than or equal to the first non-wearing threshold, but it can still be set relatively large to avoid misjudgment caused by setting it too small.

[0142] Exemplarily, the first non-wearing threshold may be 20 fF, the second non-wearing threshold may be 20 fF, the first wearing threshold may be set to 18 fF, and the second wearing threshold may be set to 35 fF.

[0143] It should be noted that if the first contact information corresponding to the first time period is greater than or equal to the first wearing threshold and the second contact information corresponding to the first time period is greater than or equal to the second wearing threshold, then step 706 is executed; if the first contact information corresponding to the first time period is less than the first wearing threshold or the second contact information corresponding to the first time period is less than the second wearing threshold, then step 708 is executed.

[0144] Step 706, determine that the wearable device is in the worn state.

[0145] It should be noted that if the first contact information corresponding to the first time period is greater than or equal to the first wearing threshold, and the second contact information corresponding to the first time period is greater than or equal to the second wearing threshold, it is determined that the wearable device is in a worn state. In this embodiment, by setting the first wearing threshold to be less than or equal to the first non-worn threshold, the requirement for identifying the wearable device as being in a worn state is reduced, so that in a misalignment scenario, that is, when the contact times of the first contact sensor and the second contact sensor with the wearing part are different, it is also possible to determine that the wearable device is in a worn state. At the same time, setting the second wearing threshold to be greater than the second non-worn threshold can be used for anti-shake to avoid misjudgment.

[0146] Step 708, use the second time period as the new first time period, and return to execute step 704.

[0147] It should be noted that the second time period can be the next time period corresponding to the first time period. When the wearable device is in a non-worn state, the wearable device can continuously determine whether the wearable device is in a worn state based on the first contact information and the second contact information.

[0148] Exemplarily, the first time period can be the acquisition time period corresponding to the first contact information from the a-th frame to the a + n-th frame, and the second time period can be the acquisition time period corresponding to the first contact information from the (a + 1)-th frame to the (a + n + 1)-th frame. Wherein, a and n are positive integers.

[0149] In some embodiments, when the wearable device is in a worn state, calculate the first change amount corresponding to the current moment, and calculate the second change amount corresponding to the current moment. According to the first change amount and the second change amount, determine whether the wearable device is in a non-worn state. Wherein, the first change amount refers to the difference between the first contact information at the current moment and the first contact information at the historical moment, and the second change amount refers to the difference between the second contact information at the current moment and the second contact information at the historical moment.

[0150] It should be noted that when the wearable device is in a worn state, the wearable device can identify whether the wearable device has switched to a non-worn state. When the wearable device is removed, since the first contact sensor and the second contact sensor change from being close to the wearing part to being away from the wearing part, during this process, the first contact information collected by the first contact sensor and the second contact information collected by the second contact sensor will change suddenly. Therefore, by determining whether the first contact information collected at the current moment has changed and whether the second contact information collected at the current moment has changed, it can be determined whether the wearable device is in a non-worn state. Optionally, the historical moment can refer to the moment immediately before the current moment.

[0151] It should be noted that during activities such as exercise, the contact situation between the wearable device and the wearing part may change, resulting in relatively small first contact information and second contact information collected by the first contact sensor and the second contact sensor provided on the wearable device respectively. In the related art, when the first contact information and the second contact information are less than or equal to the corresponding non-wearing thresholds, it is determined that the wearable device is in the non-wearing state. Obviously, if the first contact information and the second contact information are small due to reasons such as user movement, the wearing state of the wearable device will be misjudged as non-wearing in the related art. In this embodiment, based on the first change amount and the second change amount, it is determined whether the wearable device is in the non-wearing state, which can avoid misjudging the wearing state of the wearable device as non-wearing due to reasons such as movement, and improve the robustness of the wearing state detection.

[0152] In some embodiments, if the first change amount is greater than the first change threshold and the second change amount is greater than the second change threshold, it is determined that the wearable device is in the worn state. It should be noted that the first change threshold can be used to measure whether the first change amount undergoes a sudden change, and the second change threshold can be used to measure whether the second change amount undergoes a sudden change.

[0153] Exemplarily, the first change threshold can be determined according to the first test contact information collected by the first contact sensor during the process of removing the wearable device. Exemplarily, the first change threshold can be determined according to the first difference between two adjacent frames of the first test contact information among multiple frames of the first test contact information.

[0154] Exemplarily, in descending order, x first differences are selected from the multiple first differences, and the average value corresponding to the x first differences is used as the first change threshold. It should be noted that the first difference is the difference between two adjacent frames of the first test contact information. By calculating the first differences between two adjacent frames of the first test contact information, multiple first differences are obtained, x of the largest first differences are selected therefrom, the average value corresponding to the x largest first differences is calculated, and the average value corresponding to the x first differences is used as the first change threshold. Wherein, x is an integer greater than or equal to 2.

[0155] Exemplarily, the second change threshold can be determined according to the second test contact information collected by the second contact sensor during the process of removing the wearable device. Exemplarily, the second change threshold can be determined according to the second difference between two adjacent frames of the second test contact information among multiple frames of the second test contact information. Wherein, the second difference is the difference between two adjacent frames of the second test contact information. Exemplarily, in descending order, y second differences are selected from the multiple second differences, and the average value corresponding to the y second differences is used as the second change threshold. Wherein, y is an integer greater than or equal to 2.

[0156] In some other embodiments, if the sum of the first change amount and the second change amount is greater than the third change threshold, it is determined that the wearable device is in the worn state. It should be noted that the third change threshold can be determined according to actual needs, such as being determined based on a plurality of first differences and a plurality of second differences. Optionally, the third change threshold is less than the sum of the first change threshold and the second change threshold. In some cases, such as when the contact information itself is very small, if the wearable device is removed, the change amount corresponding to the contact information will also be relatively small. By setting the third change threshold to be less than the sum of the first change threshold and the second change threshold, even if the change amount corresponding to one of the contact information is small, the worn state of the wearable device can still be determined as the non-worn state, improving the robustness of the worn state detection. Optionally, the third change threshold is less than the sum of the first change threshold and the second change threshold, and is greater than or equal to the larger of the first change threshold and the second change threshold.

[0157] In some embodiments, it is determined whether the wearable device is in the non-worn state according to the first change amount, the second change amount, the first contact information corresponding to the current moment, and the second contact information corresponding to the current moment.

[0158] In some embodiments, if the first change amount is greater than the first change threshold, the second change amount is greater than the second change threshold, the first contact information corresponding to the current moment is less than the first non-worn threshold, and the second contact information corresponding to the current moment is less than the second non-worn threshold, it is determined that the wearable device is in the non-worn state.

[0159] In some embodiments, if the sum of the first change amount and the second change amount is greater than the third change threshold, the first contact information corresponding to the current moment is less than the first non-worn threshold, and the second contact information corresponding to the current moment is less than the second non-worn threshold, it is determined that the wearable device is in the non-worn state.

[0160] In this embodiment, by comprehensively considering the first change amount, the second change amount, the first contact information corresponding to the current moment, and the second contact information corresponding to the current moment, the false positive rate of the non-worn state detection can be further reduced, and the accuracy of the worn state detection can be improved.

[0161] Figure 8 FIG. shows a flowchart of another state detection process provided by an embodiment of the present application. This method can be applied to a wearable device.

[0162] As Figure 8 shown, this method may include steps 802 to 810.

[0163] Step 802, when the wearable device is in a worn state, determine whether the multiple frames of first contact information collected by the first contact sensor are less than a third non-worn threshold, and whether the multiple frames of second contact information collected by the second contact sensor are greater than a fourth non-worn threshold. If so, execute steps 804 to 806. If not, continue to execute step 802.

[0164] Step 804, calculate the third fluctuation information corresponding to the multiple frames of first contact information collected by the first contact sensor, and / or the fourth fluctuation information corresponding to the multiple frames of second contact information collected by the second contact sensor.

[0165] It should be noted that when the wearable device is in a worn state, the first contact information and the second contact information are usually both relatively large or both relatively small (for example, due to movement, the distance between the wearable device and the wearing part increases). In this embodiment, when the wearable device detects that the multiple frames of first contact information collected by the first contact sensor are less than the third non-worn threshold and the multiple frames of second contact information collected by the second contact sensor are greater than the fourth non-worn threshold, that is, one contact information is large and the other is small, the calculation of the fluctuation information is performed, which can avoid the calculation of meaningless fluctuation information.

[0166] Please refer to Table 3. Table 3 shows the first contact information collected by the first contact sensor and the second contact information collected by the second contact sensor when the user holds the earphone and places the earphone on the desktop. Among them, from the 1st frame to the 7th frame are the first contact information and the second contact information collected by the first contact sensor and the second contact sensor respectively when the user holds the earphone. From the 8th frame to the 21st frame are the first contact information and the second contact information collected by the first contact sensor and the second contact sensor respectively after the user releases the hand. Among them, when the user holds the earphone, the position corresponding to the first contact sensor in the wearable device is touched. When the earphone is placed on the desktop, the position corresponding to the second contact sensor in the wearable device touches the desktop.

[0167] Table 3 Contact information after placing the earphone held by hand on the desktop

[0168]

[0169] Among them, S0 is the first contact information and S1 is the second contact information.

[0170] According to the data in Table 3, when the earphone is placed on the table, the first contact information collected by the first contact sensor is small, the second contact information collected by the second contact sensor is large, and the fluctuation of the second contact information collected by the second contact sensor is small. Therefore, in this embodiment, when the wearable device is in the worn state, it is determined whether multiple frames of first contact information collected by the first contact sensor are less than a third non-worn threshold, and whether multiple frames of second contact information collected by the second contact sensor are greater than a fourth non-worn threshold, which can reduce the number of calculations for the third fluctuation information and the fourth fluctuation information. At the same time, when multiple frames of first contact information collected by the first contact sensor are less than the third non-worn threshold, and multiple frames of second contact information collected by the second contact sensor are greater than the fourth non-worn threshold, it is only then that the wearable device is determined whether it is in the non-worn state based on the third fluctuation information and / or the fourth fluctuation information, avoiding misjudgment caused by determining whether the wearable device is in the non-worn state only based on the third fluctuation information and / or the fourth fluctuation information, and improving the detection accuracy of the wearing state of the wearable device.

[0171] In some embodiments, the third non-worn threshold is less than the first non-worn threshold, and the fourth non-worn threshold is greater than the second non-worn threshold. It should be noted that if the first contact sensor does not come into contact with an inanimate object, such as a table, the first contact information collected by the first contact sensor will be very small. If the second contact sensor comes into contact with an inanimate object, the second contact information collected by the second contact sensor will be large. As shown in Table 3, after the 8th frame, the first contact information is much less than 20 fF, and the second contact information is much greater than 20 fF. By setting the third non-worn threshold to be less than the first non-worn threshold and the fourth non-worn threshold to be greater than the second non-worn threshold, the comparison result obtained by comparing based on the third non-worn threshold and the fourth non-worn threshold is more in line with the actual situation, improving the detection accuracy of the wearing state.

[0172] In some embodiments, the fluctuation information may include, but is not limited to, variance, standard deviation, range, and coefficient of variation, etc. It should be noted that for the description of the fluctuation information, please refer to the above embodiments, and this embodiment will not be elaborated here.

[0173] Step 806, determine whether the third fluctuation information is less than or equal to the first fluctuation threshold, and / or whether the fourth fluctuation information is less than or equal to the second fluctuation threshold. If so, execute step 808; if not, execute step 810.

[0174] It should be noted that determining whether the second fluctuation information is less than or equal to the first fluctuation threshold, and / or whether the third fluctuation information is less than or equal to the second fluctuation threshold includes determining whether the second fluctuation information is less than or equal to the first fluctuation threshold, or determining whether the third fluctuation information is less than or equal to the second fluctuation threshold, or determining whether the second fluctuation information is less than or equal to the first fluctuation threshold and the third fluctuation information is less than or equal to the second fluctuation threshold.

[0175] It should be noted that since the user is in an active state, compared with a stationary inanimate object, when the wearable device is worn at the wearing position, the third fluctuation information corresponding to multiple frames of first contact information should be larger, and the fourth fluctuation information corresponding to multiple frames of second contact information should also be larger. In this embodiment, by determining whether the third fluctuation information is less than or equal to the first fluctuation threshold, and / or whether the fourth fluctuation information is less than or equal to the first fluctuation threshold, to determine whether the wearable device is removed, the detection accuracy of the wearing state of the wearable device can be ensured.

[0176] In some embodiments, the wearable device includes TWS earphones. The first contact sensor may include a first capacitance sensor, and the second contact sensor may include a second capacitance sensor. When the multiple frames of first contact information collected by the first contact sensor of the wearable device are less than the third non-wearing threshold and the multiple frames of second contact information collected by the second contact sensor are greater than the fourth non-wearing threshold, calculate the fourth fluctuation information corresponding to the multiple frames of second contact information, and determine whether the fourth fluctuation information is greater than the second fluctuation threshold. If so, execute step 808; if not, execute step 810. It should be noted that due to the design structure of the TWS earphones, when the TWS is placed on an inanimate object such as a table, the head bottom end of the earphone is closer to the inanimate object, and the second contact information collected by the second contact sensor is usually larger. In this embodiment, since the second contact information is greater than the first contact information and the first contact information is very small and easily interfered by interference information, the wearable device calculates the fourth fluctuation information corresponding to the second contact information, and the interference of the interference signal on the determined fourth fluctuation information is small, ensuring the reliability of the determined fourth fluctuation information, thereby ensuring the accuracy of the detected wearing state of the wearable device. And it is only necessary to calculate the fourth fluctuation information corresponding to multiple frames of second contact information, which can reduce the calculation amount of the wearable device and improve the response speed of the wearable device.

[0177] Step 808, determine that the wearable device is in an unworn state.

[0178] It should be noted that if the wearable device determines that the third fluctuation information is less than or equal to the first fluctuation threshold, it determines that the wearable device is in an unworn state. Or, if the wearable device determines that the fourth fluctuation information is less than or equal to the second fluctuation threshold, it determines that the wearable device is in an unworn state. Or, if it determines that the third fluctuation information is less than or equal to the first fluctuation threshold and the third fluctuation information is less than or equal to the second fluctuation threshold, it determines that the wearable device is in an unworn state.

[0179] It should be noted that when the wearable device is in an unworn state, the wearable device may execute steps 202 to 210, and / or steps 702 to 708 to determine whether the wearable device is in a worn state again.

[0180] Step 810, determine that the wearable device is in a worn state.

[0181] It should be noted that if the third fluctuation information is greater than the first fluctuation threshold, and / or the fourth fluctuation information is greater than the second fluctuation threshold, it is maintained that the wearable device is in a worn state. When the fluctuations of the third fluctuation information and / or the fourth fluctuation information are relatively large, it does not conform to the situation where the wearable device is placed on an inanimate object. In this case, it can be determined that the wearable device is in a worn state.

[0182] Exemplarily, if the wearable device determines that the wearable device is in an unworn state according to the first change amount and the second change amount, it can be considered that the wearable device is in an unworn state. That is, when the wearable device is in a worn state, if one of the processes determines that the wearable device is in an unworn state, it can be considered that the wearable device is in an unworn state, so that the wearing state detection process provided in this embodiment has high detection accuracy of the wearing state in multiple scenarios.

[0183] In this embodiment, when the wearable device is in a worn state, only when it detects that multiple frames of first contact information collected by the first contact sensor are less than the third unworn threshold and multiple frames of second contact information collected by the second contact sensor are greater than the fourth unworn threshold, does it calculate the third fluctuation information corresponding to the multiple frames of first contact information collected by the first contact sensor, and / or the fourth fluctuation information corresponding to the multiple frames of second contact information collected by the second contact sensor, thereby avoiding the calculation of meaningless fluctuation information and reducing the calculation amount of the wearable device. When the wearable device determines that the third fluctuation information is less than or equal to the first fluctuation threshold, and / or the fourth fluctuation information is less than or equal to the second fluctuation threshold, it determines that the wearable device is in an unworn state, improving the accuracy of the wearing state detection of the wearable device.

[0184] Please refer to Figure 9 , Figure 9The flowchart shows another method for detecting the wearing state disclosed in the embodiments of the present application. This wearing state detection method can be applied to a wearable device, which may include a first contact sensor and a second contact sensor.

[0185] Step 902, obtain multiple frames of first contact information collected by the first contact sensor and multiple frames of second contact information collected by the second contact sensor.

[0186] In some embodiments, the first contact sensor may collect first contact information according to a first preset period, and the second contact sensor may collect second contact information according to a second preset period. Exemplarily, the first preset period may be from 0.05 s to 0.08 s. Optionally, the first preset period is 0.05 s, 0.06 s, 0.07 s or 0.08 s. Exemplarily, the second preset period may be from 0.05 s to 0.08 s. Optionally, the second preset period is 0.05 s, 0.06 s, 0.07 s or 0.08 s.

[0187] It can be understood that the first contact sensor and the second contact sensor may collect the first contact information and the second contact information according to preset rules set respectively, and this embodiment does not limit this.

[0188] Step 904, when the wearable device is in a worn state, determine whether the multiple frames of first contact information collected by the first contact sensor are less than a third non-worn threshold and the multiple frames of second contact information collected by the second contact sensor are greater than a fourth non-worn threshold. If so, execute steps 906 to 908; if not, continue to execute step 904.

[0189] In some embodiments, the wearable device may determine the wearing state of the wearable device. If the wearable device is in a worn state, execute step 904; if the wearable device is in an unworn state, execute steps 302 to 306 and / or steps 702 to 708 to detect whether the wearable device has switched to a worn state.

[0190] In some embodiments, if the wearable device detects that the wearing flag bit corresponding to the wearable device is a fifth value, it determines that the wearable device is in a worn state; if the wearable device detects that the wearing flag corresponding to the wearable device is a sixth value, it determines that the wearable device is in a worn state.

[0191] Step 906, calculate the third fluctuation information corresponding to the multiple frames of first contact information collected by the first contact sensor, and / or the fourth fluctuation information corresponding to the multiple frames of second contact information collected by the second contact sensor.

[0192] Step 908: Determine whether the third fluctuation information is less than or equal to the first fluctuation threshold, and / or whether the fourth fluctuation information is less than or equal to the second fluctuation threshold. If so, execute Step 910; if not, execute Step 912.

[0193] Step 910: Determine that the wearable device is in an unworn state.

[0194] Step 912: Determine that the wearable device is in a worn state.

[0195] It should be noted that for other descriptions of Steps 904 to 912, reference can be made to the descriptions of Steps 802 to 810, which will not be elaborated herein in this embodiment.

[0196] In the embodiments of the present application, the wearable device can obtain multiple frames of first contact information collected by the first contact sensor and multiple frames of second contact information collected by the second contact sensor. When the wearable device is in a worn state, only when it is detected that multiple frames of first contact information collected by the first contact sensor are less than the third unworn threshold and multiple frames of second contact information collected by the second contact sensor are greater than the fourth unworn threshold, will it calculate the third fluctuation information corresponding to the multiple frames of first contact information collected by the first contact sensor and / or the fourth fluctuation information corresponding to the multiple frames of second contact information collected by the second contact sensor, thereby avoiding the calculation of meaningless fluctuation information and reducing the computational load of the wearable device. When the wearable device determines that the third fluctuation information is less than or equal to the first fluctuation threshold and / or the fourth fluctuation information is less than or equal to the second fluctuation threshold, it determines that the wearable device is in an unworn state, which improves the accuracy of the wearable device's wearing state detection.

[0197] Please refer to Figure 10 , Figure 10 which shows a schematic structural diagram of a wearing state detection device disclosed in the embodiments of the present application. The device can be applied to a wearable device, and the wearable device includes a first contact sensor and a second contact sensor. As Figure 10As shown in the figure, the wearing state detection device 1000 may include a first determination module 1010, a second determination module 1020, and a third determination module 1030. Among them, the first determination module 1010 is used to obtain multiple frames of first contact information collected by the first contact sensor. If the number of frames of the first contact information greater than or equal to the first wearing threshold reaches the first target number of frames, it is determined that the first wearing state is the worn state. The second determination module 1020 is used to obtain multiple frames of second contact information collected by the second contact sensor. If the number of frames of the second contact information greater than or equal to the second wearing threshold reaches the second target number of frames, it is determined that the second wearing state is the worn state. The third determination module 1030 is used to determine that the wearable device is in the worn state if the second wearing state is detected as the worn state within the first time period at the target time. Wherein, the target time is the time when the first contact information is first detected to be less than the first wearing threshold when the first wearing state is the worn state.

[0198] In some embodiments, the wearing state detection device 1000 further includes a judgment module. The judgment module is used to, before determining that the wearable device is in the worn state if the second wearing state is detected as the worn state within the first time period at the target time, when the first wearing state is the worn state and the second wearing state is the non-worn state, if it is detected that the first contact information is less than the first wearing threshold, determine whether the second wearing state switches to the worn state within the first time period at the target time.

[0199] In some embodiments, the wearing state detection device 1000 further includes a switching module. The switching module is used to switch the first wearing state to the non-worn state if the second wearing state is not detected as the worn state within the first time period at the target time.

[0200] In some embodiments, the wearing state detection device 1000 further includes a first calculation module and a fourth determination module. Among them, the first calculation module is used to calculate the first fluctuation information corresponding to multiple frames of the first contact information, and / or calculate the second fluctuation information corresponding to multiple frames of the second contact information when the first wearing state is the worn state and the second wearing state is the worn state. The fourth determination module is used to determine that the wearable device is in the worn state if the first fluctuation information is greater than the first fluctuation threshold, and / or the second fluctuation information is greater than the second fluctuation threshold.

[0201] In some embodiments, the second determination module 1020 is further used to update the wearing flag bit corresponding to the second contact sensor to a first value; the first value is used to represent that the second wearing state is the worn state. The third determination module 1030 is further used to determine that the wearable device is in the worn state if the wearing flag bit corresponding to the second contact sensor is detected as the first value within the first time period at the target time.

[0202] In some embodiments, the first wearing threshold is less than or equal to the first non-wearing threshold, and the second wearing threshold is greater than the second non-wearing threshold. The wearing state detection device 1000 further includes a fifth determination module, which is configured to determine that the wearable device is in a non-wearing state when the first contact information collected by the first contact sensor is less than the first non-wearing threshold and the second contact information collected by the second contact sensor is less than the second non-wearing threshold.

[0203] In some embodiments, the wearing state detection device 1000 further includes a sixth determination module, which is configured to determine that the wearable device is in a worn state if the first contact information corresponding to the first time period is greater than the first wearing threshold and the second contact information corresponding to the first time period is greater than the second wearing threshold. Wherein, the first wearing threshold is less than or equal to the first non-wearing threshold, and the second wearing threshold is greater than the second non-wearing threshold.

[0204] In some embodiments, the wearing state detection device 1000 further includes a second calculation module and a seventh determination module. The second calculation module is configured to, when the wearable device is in a worn state, calculate the third fluctuation information corresponding to the multi-frame first contact information collected by the first contact sensor and / or the fourth fluctuation information corresponding to the multi-frame second contact information collected by the second contact sensor if the multi-frame first contact information collected by the first contact sensor is less than the third non-wearing threshold and the multi-frame second contact information collected by the second contact sensor is greater than the fourth non-wearing threshold. The seventh determination module is configured to determine that the wearable device is in a non-wearing state if the third fluctuation information is less than or equal to the first fluctuation threshold and / or the fourth fluctuation information is less than or equal to the second fluctuation threshold.

[0205] Please refer to Figure 11 , Figure 11 FIG. is a schematic structural diagram of another wearing state detection device disclosed in an embodiment of the present application. The wearing detection device can be applied to a wearable device, and the wearable device includes a first contact sensor and a second contact sensor. As Figure 11As shown in the figure, the wearing state detection device 1100 may include an acquisition module 1110, a second calculation module 1120, and a seventh determination module 1130. Among them, the acquisition module 1110 is configured to acquire multiple frames of first contact information collected by the first contact sensor and multiple frames of second contact information collected by the second contact sensor. The second calculation module 1120 is configured to, when the wearable device is in a worn state, if multiple frames of first contact information collected by the first contact sensor are less than a third non-worn threshold and multiple frames of second contact information collected by the second contact sensor are greater than a fourth non-worn threshold, calculate third fluctuation information corresponding to the multiple frames of first contact information collected by the first contact sensor, and / or fourth fluctuation information corresponding to the multiple frames of second contact information collected by the second contact sensor. The seventh determination module 1130 is configured to determine that the wearable device is in an unworn state if the third fluctuation information is less than or equal to a first fluctuation threshold and / or the fourth fluctuation information is less than or equal to a second fluctuation threshold.

[0206] Please refer to Figure 12 , Figure 12 which is a schematic structural diagram of a wearable device disclosed in an embodiment of the present application. As Figure 12 shown, the wearable device 1200 may include:

[0207] a memory 1210 storing executable program codes;

[0208] a processor 1220 coupled to the memory 1210;

[0209] Among them, the processor 1220 calls the executable program codes stored in the memory 1210 and executes any one of the wearing state detection methods disclosed in the embodiments of the present application.

[0210] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by the processor, the processor implements any one of the wearing state detection methods disclosed in the embodiments of the present application.

[0211] An embodiment of the present application discloses a program product including a computer program, which, when executed by a processor in an electronic device, enables the electronic device to implement any one of the wearing state detection methods disclosed in the embodiments of the present application.

[0212] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the "in one embodiment" or "in an embodiment" that appears throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to the present application.

[0213] In various embodiments of the present application, it should be understood that the magnitudes of the serial numbers of the above processes do not necessarily mean the inevitable sequence of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0214] The units described as separate components above may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0215] In addition, in each embodiment of the present application, each functional unit can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0216] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions for causing a computer device (which can be a personal computer, a server or a network device, etc., specifically, the processor in the computer device) to execute some or all of the steps of the above methods in each embodiment of the present application.

[0217] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and this program can be stored in a computer-readable storage medium. The storage medium includes read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc memories, magnetic disk memories, tape memories, or any other medium that can be used to carry or store data and is computer-readable.

[0218] The above has introduced in detail a wearing state detection method, device, wearable device, and computer program product disclosed in the embodiments of the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. At the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation on the present application.

Claims

1. A wearing status detection method, characterized in that: Applied to a wearable device, the wearable device includes a first contact sensor and a second contact sensor, and the method includes: Acquire multiple frames of first contact information collected by the first contact sensor, and if the number of frames of the first contact information that is greater than or equal to the first wearing threshold reaches a first target number of frames, determine that the first wearing state is a worn state; Acquire multiple frames of second contact information collected by the second contact sensor, and if the number of frames of the second contact information greater than or equal to the second wearing threshold reaches a second target number of frames, determine that the second wearing state is the worn state; If the second wearing state is detected as the worn state within a first time period at the target time, it is determined that the wearable device is in the worn state, and the target time is the time when the first contact information is first detected to be less than the first wearing threshold when the first wearing state is the worn state.

2. The method according to claim 1, characterized in that Before determining that the wearable device is in the worn state if the second wearing state is detected as the worn state within the first duration at the target time, the method further includes: When the first wearing state is the worn state and the second wearing state is the unworn state, if the first contact information is detected to be less than the first wearing threshold, it is determined whether the second wearing state is switched to the worn state within a first time period at the target time.

3. The method according to claim 1, characterized in that The method further comprises: If the second wearing state is not detected as the worn state within the first time period of the target time, the first wearing state is switched to the not worn state.

4. The method according to claim 1, characterized in that: The method further comprises: When the first wearing state is the worn state and the second wearing state is the worn state, calculating first fluctuation information corresponding to a plurality of frames of first contact information, and / or calculating second fluctuation information corresponding to a plurality of frames of second contact information; If the first fluctuation information is greater than a first fluctuation threshold, and / or the second fluctuation information is greater than a second fluctuation threshold, it is determined that the wearable device is in a worn state.

5. The method according to any one of claims 1 to 4, characterized in that: The determining that the second wearing state is the worn state includes: updating the wearing flag corresponding to the second contact sensor to a first value; the first value is used to indicate that the second wearing state is a worn state; If the second wearing state is detected as the worn state within the first time period at the target time, determining that the wearable device is in the worn state includes: If it is detected that the wearing flag corresponding to the second contact sensor is the first value within the first time period at the target time, it is determined that the wearable device is in the worn state.

6. The method according to claim 1, characterized in that The first wearing threshold is less than or equal to a first not wearing threshold, and the second wearing threshold is greater than a second not wearing threshold; The method further comprises: When the first contact information collected by the first contact sensor is less than the first not-worn threshold and the second contact information collected by the second contact sensor is less than the second not-worn threshold, it is determined that the wearable device is in a not-worn state.

7. The method according to claim 6, characterized in that The method further comprises: If the first contact information corresponding to the first time period is greater than the first wearing threshold, and the second contact information corresponding to the first time period is greater than the second wearing threshold, it is determined that the wearable device is in the worn state.

8. The method according to claim 1, characterized in that The method further comprises: When the wearable device is in a worn state, if multiple frames of first contact information collected by the first contact sensor are less than a third not-worn threshold, and multiple frames of second contact information collected by the second contact sensor are greater than a fourth not-worn threshold, then calculating third fluctuation information corresponding to the multiple frames of first contact information collected by the first contact sensor, and / or fourth fluctuation information corresponding to the multiple frames of second contact information collected by the second contact sensor; If the third fluctuation information is less than or equal to the first fluctuation threshold, and / or the fourth fluctuation information is less than or equal to the second fluctuation threshold, it is determined that the wearable device is in a not-worn state.

9. A wearing status detection method, characterized in that: Applied to a wearable device, the wearable device includes a first contact sensor and a second contact sensor, and the method includes: Acquire multiple frames of first contact information collected by the first contact sensor and multiple frames of second contact information collected by the second contact sensor; When the wearable device is in a worn state, if multiple frames of first contact information collected by the first contact sensor are less than a third not-worn threshold, and multiple frames of second contact information collected by the second contact sensor are greater than a fourth not-worn threshold, then calculating third fluctuation information corresponding to the multiple frames of first contact information collected by the first contact sensor, and / or fourth fluctuation information corresponding to the multiple frames of second contact information collected by the second contact sensor; If the third fluctuation information is less than or equal to the first fluctuation threshold, and / or the fourth fluctuation information is less than or equal to the second fluctuation threshold, it is determined that the wearable device is in a not-worn state.

10. A wearing status detection device, characterized in that: Applied to a wearable device, the wearable device includes a first contact sensor and a second contact sensor, and the device includes: a first determining module, configured to obtain a plurality of frames of first contact information collected by the first contact sensor, and determine that the first wearing state is a worn state if the number of frames of the first contact information that is greater than or equal to a first wearing threshold reaches a first target number of frames; a second determining module, configured to obtain a plurality of frames of second contact information collected by the second contact sensor, and determine that the second wearing state is a worn state if the number of frames of the second contact information that is greater than or equal to the second wearing threshold reaches a second target number of frames; The third determination module is used to determine that the wearable device is in the worn state if the second wearing state is detected as the worn state within a first time period at a target time, and the target time is the time when the first contact information is first detected to be less than the first wearing threshold when the first wearing state is the worn state.

11. A wearing status detection device, characterized in that: Applied to a wearable device, the wearable device includes a first contact sensor and a second contact sensor, and the device includes: an acquisition module, configured to acquire a plurality of frames of first contact information acquired by the first contact sensor and a plurality of frames of second contact information acquired by the second contact sensor; a second calculation module, configured to calculate, when the wearable device is in a worn state, third fluctuation information corresponding to the multiple frames of first contact information collected by the first contact sensor, and / or fourth fluctuation information corresponding to the multiple frames of second contact information collected by the second contact sensor, if the multiple frames of first contact information collected by the first contact sensor are less than a third not-worn threshold, and the multiple frames of second contact information collected by the second contact sensor are greater than a fourth not-worn threshold; The seventh determination module is used to determine that the wearable device is in a non-worn state if the third fluctuation information is less than or equal to the first fluctuation threshold, and / or the fourth fluctuation information is less than or equal to the second fluctuation threshold.

12. A wearable device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 9.

13. A computer program product, characterized in that The method comprises a computer program, which, when executed by a processor in an electronic device, enables the electronic device to implement the method according to any one of claims 1 to 9.