Wearing state detection method, device, storage medium, product and chip system
By collecting motion information from wearable devices and using a wear recognition model to identify motion change patterns, the problem of false detection in wear status detection during motion scenarios is solved, achieving accurate detection and low-power operation during motion.
Patent Information
- Application Number
- CN202510670848.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2026-11-24
AI Technical Summary
Existing methods for detecting the wearing status of wearable devices are prone to false detections, especially in motion scenarios where the optical signal-to-noise ratio decreases, leading to inaccurate detection, increased power consumption, and meaningless functional output.
By collecting motion information, the wearable recognition model is used to identify motion change patterns. Combined with acceleration and direction change data, it is determined whether the device is in a wearing state or not. The model is trained using self-supervised pre-training and supervised fine-tuning methods to improve detection accuracy.
Accurately identifies device wearing status during movement, avoids false detections, reduces power consumption, extends device battery life, and improves user experience.
Smart Images

Figure CN123147908A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of wearable device technology, and in particular to methods, devices, storage media, products and chip systems for detecting wearing status. Background Technology
[0002] With the development of electronic devices, wearable devices have become increasingly feature-rich and are becoming more and more widespread. Since some functions of wearable devices require the user to wear them properly, wear detection is an essential basic function for all wearable devices, ensuring that the device only performs specific tasks when worn correctly.
[0003] In related technologies, the methods for detecting the wearing status of wearable devices have defects and are prone to false detections. Summary of the Invention
[0004] To overcome the problems existing in related technologies, this disclosure provides a method, device, storage medium, product, and chip system for detecting wearing status.
[0005] According to a first aspect of the present disclosure, a method for detecting wearing status is provided, comprising: detecting that the device is in motion and collecting motion information; determining motion change data based on the motion information; determining a motion change pattern corresponding to the motion change data based on the difference between the motion change pattern in the wearing state and the motion change pattern in the non-wearing state; and determining whether the electronic device is currently in a wearing state or a non-wearing state based on the corresponding motion change pattern.
[0006] According to some embodiments of this disclosure, determining the motion change pattern corresponding to the motion change data based on the difference between the motion change pattern in the wearing state and the motion change pattern in the non-wearing state includes: acquiring acceleration change and direction change data in the motion change data; matching the acceleration change and direction change data in multiple motion scene corresponding acceleration change and direction change data distributions to determine the acceleration change and direction change data distribution corresponding to the acceleration change and direction change data; wherein the acceleration change and direction change data distributions corresponding to motion scenes in the wearing state and the non-wearing state are different; determining whether the electronic device is currently in a wearing state or a non-wearing state based on the corresponding motion change pattern includes: determining whether the electronic device is currently in a wearing state or a non-wearing state based on the corresponding acceleration change and direction change data distribution.
[0007] According to some embodiments of this disclosure, determining the state of the electronic device based on the motion information includes: inputting the motion information into a wearing recognition model and obtaining the output result of the wearing recognition model, the output result including a wearing state or a non-wearing state; and determining whether the electronic device is currently in a wearing state or a non-wearing state based on the output result.
[0008] According to some embodiments of this disclosure, the wearing recognition model is trained based on historical motion information, which includes motion information occurring in the wearing state and motion information occurring in the non-wearing state. The historical motion information includes a first type of motion information without labels and a second type of motion information with labels. The labels include labels corresponding to the wearing state and labels corresponding to the non-wearing state. The wearing recognition model is an initial model trained through a self-supervised pre-training stage and a supervised fine-tuning stage. The self-supervised pre-training stage uses the first type of motion information as training data, and the output of the initial model after training through the self-supervised pre-training stage is a pseudo-label sequence. The pseudo-label sequence represents the distribution of acceleration and direction change data, and the acceleration and direction change data distribution represented by the pseudo-label sequence corresponds to the motion change pattern in the wearing state or the motion change pattern in the non-wearing state. The supervised fine-tuning stage uses the second type of motion information as training data.
[0009] According to some embodiments of this disclosure, after determining the state of the electronic device, the method further includes: setting a tag for the motion information, determining the tagged motion information as model fine-tuning data, wherein the tag includes a tag corresponding to the wearing state or a tag corresponding to the non-wearing state; and fine-tuning the wearing recognition model according to the model fine-tuning data to obtain the fine-tuned wearing recognition model.
[0010] According to some embodiments of this disclosure, the collection of motion information includes: collecting motion information segments with a time length of a preset window at preset time intervals, wherein the preset window length is greater than the preset time interval; the input of the motion information into the wearing recognition model and obtaining the output result of the wearing recognition model includes: inputting the latest collected motion information segment into the wearing recognition model at preset time intervals and obtaining the latest output result of the wearing recognition model.
[0011] According to a second aspect of the present disclosure, a method for detecting wearing status is provided, comprising: training and obtaining a rule for obtaining a movement change pattern corresponding to the movement change data based on historical motion information and according to the difference between the movement change pattern in the wearing state and the movement change pattern in the non-wearing state; and sending the rule for obtaining the movement change pattern corresponding to the movement change data to a wearable device.
[0012] According to some embodiments of this disclosure, the step of training and obtaining rules for obtaining motion change patterns corresponding to motion change data based on historical motion information and the differences between motion change patterns in the wearing state and the non-wearing state includes: building an initial model, inputting the historical motion information into the initial model, and training and obtaining a wearing recognition model based on the differences between motion change patterns in the wearing state and the non-wearing state. The wearing recognition model includes rules for obtaining motion change patterns corresponding to motion change data based on motion change data.
[0013] According to some embodiments of this disclosure, sending the rule for obtaining the motion change pattern corresponding to the motion change data based on the motion change data to the wearable device includes: sending the trained wearing recognition model to the wearable device.
[0014] According to some embodiments of this disclosure, the historical motion information includes motion information occurring in the wearing state and motion information occurring in the non-wearing state. The historical motion information includes a first type of motion information without labels and a second type of motion information with labels. The labels include labels corresponding to the wearing state and labels corresponding to the non-wearing state. The step of inputting the historical motion information into the initial model and training and obtaining a wearing recognition model based on the difference between the motion change patterns in the wearing state and the non-wearing state includes: inputting the first type of motion information into the initial model, performing self-supervised pre-training on the initial model to obtain a first model. The output of the first model is a pseudo-label sequence, wherein the pseudo-label sequence represents the data distribution of acceleration and direction changes, and the data distribution of acceleration and direction changes represented by the pseudo-label sequence corresponds to the motion change pattern in the wearing state or the motion change pattern in the non-wearing state; inputting the second type of motion information into the first model, performing supervised fine-tuning training on the first model to obtain a wearing recognition model. The second type of motion information is tagged motion information, including motion information occurring in the wearing state and motion information occurring in the non-wearing state. The output of the wearing recognition model includes either the wearing state or the non-wearing state.
[0015] According to a third aspect of the present disclosure, a wearable device is provided, comprising: a data acquisition unit for detecting motion and acquiring motion information; a determination unit for determining motion change data based on the motion information; and a processing unit for determining a motion change pattern corresponding to the motion change data based on the difference between the motion change pattern in the wearing state and the motion change pattern in the non-wearing state, and determining whether the wearable device is currently in a wearing state or a non-wearing state based on the corresponding motion change pattern.
[0016] According to some embodiments of this disclosure, the processing unit determines the motion change pattern corresponding to the motion change data based on the difference between the motion change pattern in the wearing state and the motion change pattern in the non-wearing state in the following manner: acquiring acceleration change and direction change data in the motion change data; matching the acceleration change and direction change data in the distribution of acceleration change and direction change data corresponding to multiple motion scenarios to determine the acceleration change and direction change data distribution corresponding to the acceleration change and direction change data; wherein the distribution of acceleration change and direction change data corresponding to motion scenarios in the wearing state and the non-wearing state is different; the processing unit determines whether the wearable device is currently in a wearing state or a non-wearing state based on the corresponding motion change pattern in the following manner: determining whether the wearable device is currently in a wearing state or a non-wearing state based on the corresponding acceleration change and direction change data distribution.
[0017] According to some embodiments of this disclosure, the processing unit determines the state of the wearable device based on the motion information in the following manner: inputting the motion information into a wear recognition model and obtaining the output result of the wear recognition model, the output result including a wearing state or a non-wearing state; based on the output result, determining whether the wearable device is currently in a wearing state or a non-wearing state.
[0018] According to some embodiments of this disclosure, the wearing recognition model is trained based on historical motion information, which includes motion information occurring in the wearing state and motion information occurring in the non-wearing state. The historical motion information includes a first type of motion information without labels and a second type of motion information with labels. The labels include labels corresponding to the wearing state and labels corresponding to the non-wearing state. The wearing recognition model is an initial model trained through a self-supervised pre-training stage and a supervised fine-tuning stage. The self-supervised pre-training stage uses the first type of motion information as training data, and the output of the initial model after training through the self-supervised pre-training stage is a pseudo-label sequence. The pseudo-label sequence represents the distribution of acceleration and direction change data, and the acceleration and direction change data distribution represented by the pseudo-label sequence corresponds to the motion change pattern in the wearing state or the motion change pattern in the non-wearing state. The supervised fine-tuning stage uses the second type of motion information as training data.
[0019] According to some embodiments of this disclosure, after determining the state of the wearable device, the processing unit is further configured to: set a tag for the motion information, determine the tagged motion information as model fine-tuning data; fine-tune the wear recognition model according to the model fine-tuning data to obtain the fine-tuned wear recognition model, wherein the tag includes a tag corresponding to the wearing state or a tag corresponding to the non-wearing state.
[0020] According to some embodiments of this disclosure, the acquisition unit acquires motion information in the following manner: at each preset time step interval, it acquires motion information segments with a time length equal to a preset window length, wherein the preset window length is greater than the preset time step interval; the step of inputting the motion information into the wearing recognition model and obtaining the output result of the wearing recognition model includes: at each preset time step interval, inputting the latest acquired motion information segment into the wearing recognition model and obtaining the latest output result of the wearing recognition model.
[0021] According to a fourth aspect of the present disclosure, a processing device is provided, comprising: a training unit, configured to train and obtain rules for obtaining motion change patterns corresponding to motion change data based on historical motion information and according to the differences between motion change patterns in a wearing state and motion change patterns in a non-wearing state; and a sending unit, configured to send the rules for obtaining motion change patterns corresponding to motion change data to a wearable device.
[0022] According to some embodiments of this disclosure, the training unit uses the following method to train and obtain rules for obtaining motion change patterns corresponding to motion change data based on historical motion information and the differences between motion change patterns in the wearing state and the non-wearing state: An initial model is built, the historical motion information is input into the initial model, and a wearing recognition model is trained and obtained based on the differences between motion change patterns in the wearing state and the non-wearing state. The wearing recognition model includes rules for obtaining motion change patterns corresponding to motion change data.
[0023] According to some embodiments of this disclosure, the sending unit sends the rules for obtaining the motion change pattern corresponding to the motion change data to the wearable device in the following manner: sending the trained wearing recognition model to the wearable device.
[0024] According to some embodiments of this disclosure, the historical motion information includes motion information occurring while wearing the device and motion information occurring while not wearing the device. The historical motion information includes a first type of motion information without labels and a second type of motion information with labels. The labels include labels corresponding to the wearing state and labels corresponding to the not-wearing state. The training unit inputs the historical motion information into the initial model in the following manner, and trains and obtains a wearing recognition model based on the differences between the motion change patterns in the wearing state and the non-wearing state: inputting the first type of motion information into the initial model and performing self-supervised pre-training on the initial model. A first model is trained, and the output of the first model is a pseudo-label sequence. The pseudo-label sequence represents the data distribution of acceleration and direction changes, and the data distribution of acceleration and direction changes represented by the pseudo-label sequence corresponds to the motion change pattern in the wearing state or the motion change pattern in the non-wearing state. A second type of motion information is input into the first model, and the first model is trained with supervised fine-tuning to obtain a wearing recognition model. The second type of motion information is motion information with labels, including motion information occurring in the wearing state and motion information occurring in the non-wearing state. The output of the wearing recognition model includes the wearing state or the non-wearing state.
[0025] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: execute the wearing state detection method described in the first aspect or any embodiment of the first aspect, or execute the wearing state detection method described in the second aspect or any embodiment of the second aspect.
[0026] According to a sixth aspect of the present disclosure, a storage medium is provided, the storage medium storing instructions that, when executed by a processor, enable the processor to perform the wearing state detection method described in the first aspect or any embodiment of the first aspect, or to perform the wearing state detection method described in the second aspect or any embodiment of the second aspect.
[0027] According to a seventh aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the wearing state detection method as described in the first aspect or any embodiment of the first aspect, or executes the wearing state detection method as described in the second aspect or any embodiment of the second aspect.
[0028] According to an eighth aspect of the present disclosure, a chip system is provided, the chip system including a processing unit and an interface circuit, the processing unit acquiring program instructions through the interface circuit, the program instructions being executed by the processing unit, the processing unit being configured to execute a wearing state detection method as described in the first aspect or any embodiment of the first aspect, or to execute a wearing state detection method as described in the second aspect or any embodiment of the second aspect.
[0029] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: When an electronic device detects that it is in motion, the electronic device collects its own motion information. Motion change data is determined based on the motion information. Based on the difference between the motion change pattern in the wearing state and the motion change pattern in the non-wearing state, the motion change pattern corresponding to the motion change data is determined. Based on the motion change pattern corresponding to the motion change data, it is determined whether the electronic device is currently in a wearing state or a non-wearing state. Through this disclosure, when an electronic device detects that it is in motion, motion change data is determined based on the collected motion information, and the motion change pattern corresponding to the motion change data is used to determine whether the electronic device is currently in a wearing state or a non-wearing state. This avoids false detections in motion scenarios due to the decrease in the optical signal-to-noise ratio in motion scenes when using optical means for wearing detection, and ensures the accuracy of the wearing status detection results when the electronic device is in motion.
[0030] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0031] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0032] Figure 1 This is a schematic diagram illustrating the heart rate information detection results of a wearable device when it is not worn, as shown in an exemplary embodiment of this disclosure.
[0033] Figure 2 This is a flowchart illustrating a wearing status detection method according to an exemplary embodiment.
[0034] Figure 3 This is a flowchart illustrating a method for determining whether an electronic device is currently in a wearing state or not based on motion change patterns corresponding to motion change data, according to an exemplary embodiment.
[0035] Figure 4 This is a schematic diagram illustrating the distribution of motion data collected by an electronic device in motion, according to an exemplary embodiment.
[0036] Figure 5 This is a flowchart illustrating a method for determining the state of an electronic device based on motion information, according to an exemplary embodiment.
[0037] Figure 6 This is a flowchart illustrating a method for fine-tuning a wear recognition model according to an exemplary embodiment.
[0038] Figure 7 This is a flowchart illustrating a method for collecting motion information and inputting the motion information into a wear recognition model to obtain the output result of the wear recognition model, according to an exemplary embodiment.
[0039] Figure 8 This is a flowchart illustrating a method for detecting wearing status according to yet another exemplary embodiment.
[0040] Figure 9 This is a flowchart illustrating a method for training a wearable recognition model according to an exemplary embodiment.
[0041] Figure 10 This is a schematic diagram illustrating a method for training a wearable recognition model according to an exemplary embodiment of the present disclosure.
[0042] Figure 11 This is a schematic diagram illustrating a trained wear recognition model according to an exemplary embodiment of the present disclosure.
[0043] Figure 12 This is a schematic diagram illustrating a method for processing a first type of motion information according to an exemplary embodiment of the present disclosure.
[0044] Figure 13 This is a block diagram illustrating a wearable device according to an exemplary embodiment.
[0045] Figure 14 This is a block diagram illustrating a processing device according to an exemplary embodiment.
[0046] Figure 15 This is a block diagram illustrating a device for wear detection according to an exemplary embodiment.
[0047] Figure 16 This is a block diagram illustrating a device for wear detection according to an exemplary embodiment.
[0048] Figure 17 This is a block diagram illustrating a chip system for wear detection according to an exemplary embodiment. Detailed Implementation
[0049] Some embodiments of this disclosure will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. Various changes, modifications, and equivalents of the methods, apparatus, and / or systems described herein will become apparent upon understanding this disclosure. For example, the order of operations described herein is merely illustrative and is not limited to those orders set forth herein, but can be changed as will become apparent upon understanding this disclosure, except for operations that must be performed in a particular order. Furthermore, for clarity and brevity, descriptions of features known in the art may be omitted.
[0050] The embodiments described in the following examples of this disclosure are not representative of all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0051] The wearing status detection method provided in some embodiments of this disclosure is applied to scenarios where the wearing status of wearable electronic devices is detected in motion.
[0052] With the development of electronic device technology, wearable electronic devices are becoming increasingly popular. Since some functions of wearable devices require the device to be worn by a user to function properly and output valid content, these wearable devices can be smartwatches, smart bracelets, etc. The functions that require wearing to function correctly can be related to applications based on motion detection or health status monitoring. Therefore, wear detection is an essential basic function for all wearable devices. Wear detection ensures that the wearable device only performs specific tasks when it is correctly worn, thereby guaranteeing the normal operation of device functions such as message notifications, system security, system power consumption, and physiological parameter monitoring.
[0053] In related technologies, wearable device detection primarily relies on optical detection combined with auxiliary sensors. The main detection logic of this technology is as follows: It uses auxiliary sensors such as distance sensors, capacitive sensors, or infrared sensors in the wearable device to detect if an object is nearby. If the wearable device is detected near an object, it uses optical means to detect physiological parameters such as heart rate, blood oxygen, or temperature to determine if the approaching object is alive. If the detected physiological parameters confirm the approaching object is alive, the wearable device is determined to be in a worn state. However, this detection scheme based on optical detection methods has good accuracy in scenarios where the wearable device is stationary, the wearable device is worn tightly, or the target object has low activity. But in scenarios with more vigorous movement, due to motion interference, the signal-to-noise ratio of the optical signal detected by the wearable device decreases significantly, making it difficult to determine whether the target object is alive based on the detected optical signal, resulting in unreliable wear detection results. It may even cause the wearable device to activate specific functions that require collecting user health parameters when not worn, resulting in meaningless output from these functions and increased power consumption of the wearable device. In one example, Figure 1 This is a schematic diagram illustrating the heart rate information detection result of a wearable device when it is not worn, as shown in an exemplary embodiment of this disclosure. Figure 1 As shown, when the wearable device is placed in the user's pocket or backpack, it may misjudge due to the user's movement. During the time periods corresponding to 6:00 and 18:00, the wearable device is mistakenly judged to be in a wearing state, which triggers the heart rate detection function and detects meaningless heart rate information (such as 50-119 beats / minute, 84 beats / minute). This also increases the power consumption of the wearable device and affects its battery life.
[0054] In view of this, some embodiments of this disclosure provide a method for detecting wearing status. When an electronic device detects that it is in motion, the electronic device collects its own motion information. Motion change data is determined based on the motion information. Based on the difference between the motion change pattern in the wearing state and the motion change pattern in the non-wearing state, the motion change pattern corresponding to the motion change data is determined. Based on the motion change pattern corresponding to the motion change data, it is determined whether the electronic device is currently in a wearing state or a non-wearing state. Through this disclosure, when the electronic device detects that it is in motion, motion change data is determined based on the collected motion information, and the current wearing or non-wearing state is determined based on the motion change pattern corresponding to the motion change data. This avoids false detections in motion scenarios due to the decreased signal-to-noise ratio of optical signals when using optical means for wearing detection, and ensures the accuracy of the wearing status detection results when the electronic device is in motion.
[0055] Figure 2 This is a flowchart illustrating a wearing status detection method according to an exemplary embodiment. Figure 2 As shown, the method includes the following steps.
[0056] In step S101, motion is detected and motion information is collected.
[0057] In step S102, motion change data is determined based on motion information.
[0058] In step S103, the motion change pattern corresponding to the motion change data is determined based on the difference between the motion change pattern in the wearing state and the motion change pattern in the non-wearing state.
[0059] In step S104, the electronic device is determined to be in a wearing state or a non-wearing state based on the corresponding motion change pattern.
[0060] In this embodiment, the wearable state detection method is implemented by a wearable electronic device. When the electronic device detects that it is in motion, it collects corresponding motion information through its internal motion sensors. The collected motion information characterizes the distribution of the electronic device's motion data over time, thus allowing the determination of motion change data. When worn by a user, the wearable electronic device moves along with the user's limbs, and the range and pattern of limb movement are constrained by the human body's physiological structure. Therefore, when the electronic device is worn and moves with the user's limbs, the motion data collected by the electronic device conforms to the human body's motion patterns. However, when the wearable electronic device moves without being worn by a user, the motion data collected does not conform to the human body's motion patterns. Therefore, there is a difference between the motion patterns of the electronic device in the wearing state and the non-wearing state. This embodiment determines the motion change pattern corresponding to the motion change data based on the difference between the motion change patterns of the electronic device in the wearing state and the non-wearing state. Then, based on the motion change pattern corresponding to the motion change data, it is determined whether the electronic device is currently in a wearing state or a non-wearing state.
[0061] Through the embodiments of this disclosure, when an electronic device detects that it is in motion, it determines motion change data based on the collected motion information, and determines whether the electronic device is currently in a wearing state or not based on the motion change pattern corresponding to the motion change data. This avoids false detections in motion scenarios due to the decreased signal-to-noise ratio of optical signals when using optical means for wear detection, ensuring the accuracy of the wear status detection results even when the electronic device is in motion. Furthermore, by accurately identifying whether the wearable electronic device is in a wearing state or not in a motion scenario, when the electronic device is detected to be in a wearing state, it can trigger corresponding specific functions in a timely manner, improving the user experience. And when the electronic device is detected to be in a non-wearing state, it can promptly shut down specific functions, reducing the power consumption of the electronic device and extending its battery life.
[0062] It is understood that when the electronic device is stationary or has minimal movement, this disclosure employs a combination of auxiliary sensing and optical detection to determine the wearing status of the electronic device. The auxiliary sensor detects whether the electronic device is near a target object. If the electronic device is not detected to be near the target object, it is determined that the electronic device is not being worn. If the electronic device is detected to be near the target object, physiological parameters such as heart rate, blood oxygen, or temperature of the target object are detected using optical detection methods. Based on the detected physiological parameters, it is determined whether the target object is a living being. If the target object is a living being, it is determined that the electronic device is being worn; if the target object is not a living being, it is determined that the electronic device is not being worn. Through the embodiments of this disclosure, when the electronic device is in motion, the wearing status of the electronic device is determined based on the motion data of the electronic device. When the electronic device is stationary or has minimal movement, the wearing status of the electronic device is determined using a combination of optical methods and auxiliary sensor detection. The accuracy and reliability of the wearing detection results can be guaranteed in both stationary and moving states.
[0063] In this embodiment of the disclosure, the electronic device collects motion information through a built-in motion sensor. The collected motion information is the acceleration data of the electronic device. Therefore, the motion information can characterize the changes in acceleration and direction of motion of the electronic device. The following embodiments of this disclosure describe a method for determining whether an electronic device is currently in a wearing state or not.
[0064] Figure 3 This is a flowchart illustrating a method for determining whether an electronic device is currently in a wearing or non-wearing state based on motion change patterns corresponding to motion change data, according to an exemplary embodiment. Figure 3 As shown, the method includes the following steps.
[0065] In step S201, the acceleration change and direction change data in the motion change data are acquired.
[0066] In step S202, for the acceleration change and direction change data, matching is performed in the acceleration change and direction change data distribution corresponding to multiple motion scenarios to determine the acceleration change and direction change data distribution corresponding to the acceleration change and direction change data.
[0067] The distribution of acceleration and direction changes differs between the wearing and non-wearing states in motion scenarios.
[0068] In step S203, the electronic device is determined to be in a wearing state or a non-wearing state based on the corresponding acceleration change and direction change data distribution.
[0069] In this embodiment, the motion information of the electronic device is collected by an accelerometer installed in the electronic device. Therefore, the collected motion information can characterize the change of the electronic device's acceleration over time. Acceleration is vector data, which can characterize both the magnitude and direction of the electronic device's motion. Specifically, the motion information collected by the electronic device can be the change of its three-axis acceleration over time. The three-axis acceleration data are the acceleration data corresponding to the x-axis, y-axis, and z-axis, and the x-axis, y-axis, and z-axis constitute the spatial coordinate system corresponding to the electronic device.
[0070] In this embodiment, motion information of the electronic device in a worn state and motion information of the electronic device in a non-worn state can be collected in advance under different motion scenarios. Based on the pre-collected motion information, corresponding acceleration and direction change data are pre-set for different motion scenarios, and the distribution of acceleration and direction change data differs between the worn state and the non-worn state motion scenarios.
[0071] In this embodiment of the disclosure, when the electronic device is in use, after acquiring acceleration and direction change data from the motion change data based on the collected motion information, the acquired acceleration and direction change data is matched against the distributions of acceleration and direction change data corresponding to multiple motion scenarios to determine the corresponding distribution of acceleration and direction change data. Given that the distributions of acceleration and direction change data differ between worn and unworn states, this embodiment of the disclosure determines whether the electronic device is currently in a worn or unworn state based on the distribution of acceleration and direction change data corresponding to the motion change data. This ensures that when the electronic device is in motion, the current state of being worn or unworn can be accurately determined based on the collected motion information.
[0072] In this embodiment, acceleration and direction change data corresponding to the wearing state are pre-set for different motion scenarios, and acceleration and direction change data corresponding to the non-wearing state are also pre-set. Thus, during the use of the electronic device, the current acceleration and direction change data of the electronic device are determined by combining the real-time collected motion information of the electronic device. Based on the current acceleration and direction change data, and the distribution of acceleration and direction change data corresponding to the pre-set different scenarios, it is determined whether the electronic device is in a wearing state or a non-wearing state.
[0073] In an exemplary embodiment of this disclosure, the motion data included in the motion information of the electronic device may be triaxial acceleration data of the electronic device. The acceleration change and direction change data obtained from the motion change data in this embodiment can characterize the change of the corresponding direction of the triaxial acceleration over time. For example, the combination of the corresponding directions of the triaxial acceleration is shown in Table 1 below:
[0074] Number x-axis y-axis z-axis 1 0 0 0 2 0 0 1 3 0 1 0 4 0 1 1 5 1 0 0 6 1 0 1 7 1 1 0 8 1 1 1
[0075] As shown in Table 1, the spatial coordinate system constructed based on the electronic device includes x, y, and z axes. In the table, "0" indicates that the vector direction of the acceleration data is positive, corresponding to the positive direction of the corresponding coordinate axis, and "1" indicates that the vector direction of the acceleration data is negative, corresponding to the negative direction of the corresponding coordinate axis. There are a total of 8 possible combinations of the directions corresponding to the three-axis acceleration. The changes in the directions of the three-axis acceleration represented by the acceleration change and direction change data in this disclosure can vary over time within these 8 combinations.
[0076] In this embodiment of the disclosure, the acceleration change and direction change data obtained from the motion change data can also characterize the change of the absolute value of the triaxial acceleration data over time. For example, the combination of the absolute values of the triaxial acceleration data is as follows:
[0077] As shown in Table 2:
[0078] Number Maximum Second Minimum 1 X Y Z 2 X Z Y 3 Y X Z 4 Y Z X 5 Z X Y 6 Z Y X
[0079] As shown in Table 2, “X” represents the absolute value of acceleration along the x-axis, “Y” represents the absolute value of acceleration along the y-axis, and “Z” represents the absolute value of acceleration along the z-axis. There are a total of 6 possible combinations of the absolute values of the three-axis accelerations. In this embodiment of the present disclosure, the changes in the absolute values of the three-axis acceleration data, represented by the acceleration and direction change data, over time can vary within these 6 combinations.
[0080] In this embodiment, the acceleration and direction change data obtained from the motion change data can represent both the change in the direction of the triaxial acceleration over time and the change in the absolute value of the triaxial acceleration data over time. Referring to Tables 1 and 2 above, there are a total of 6*8 = 48 possible combinations of the absolute value of the triaxial acceleration and the corresponding direction of the triaxial acceleration in this embodiment. The changes in the acceleration and direction change data in this embodiment can vary within these 48 combinations.
[0081] In this embodiment of the disclosure, the direction and absolute acceleration change information of the electronic device's motion data in each spatial dimension can, to a certain extent, characterize the wearable device's movement in a certain posture. Furthermore, based on the real-time collected motion information of the electronic device, the current acceleration change and direction change number of the electronic device can be analyzed, and then the wearing state of the electronic device under the current motion state can be determined based on the current acceleration change and direction change number. Figure 4 This is a schematic diagram illustrating the distribution of motion data collected by an electronic device in motion, according to an exemplary embodiment. In the diagram, black sampling points correspond to acceleration data sampled when the electronic device moves without being worn, while gray sampling points correspond to acceleration data sampled when the electronic device is worn. Figure 4 As shown, given that the motion of an electronic device when worn by a user corresponds to the user's movement direction and exhibits specific motion patterns, there is a difference between the acceleration data sampled when the electronic device is not worn and the acceleration data sampled when it is not worn. Therefore, based on the distribution of acceleration and direction changes corresponding to the black sampling points in the figure, it can be determined that the electronic device is currently in a non-wearing state, while based on the distribution of acceleration and direction changes corresponding to the gray sampling points in the figure, it can be determined that the electronic device is currently in a wearing state.
[0082] In this embodiment of the disclosure, a pre-trained wearing recognition model can characterize the difference between the motion change patterns of an electronic device in a worn state and in a non-wearing state. Motion information collected during the movement of the electronic device is input into the wearing recognition model, and the current state of the electronic device (whether it is in a worn state or not) is determined based on the pattern output. The following embodiments of this disclosure illustrate a method for determining the state of an electronic device based on motion information.
[0083] Figure 5 This is a flowchart illustrating a method for determining the state of an electronic device based on motion information, according to an exemplary embodiment. Figure 5 As shown, the method includes the following steps.
[0084] In step S301, motion information is input into the wearing recognition model, and the output result of the wearing recognition model is obtained. The output result includes the wearing state or the non-wearing state.
[0085] In step S302, based on the output result, it is determined whether the electronic device is currently in a wearing state or a non-wearing state.
[0086] In the disclosed embodiments, motion information of the electronic device under different motion scenarios is pre-collected. The pre-collected historical motion information is used as training data, and a wear recognition model for wear detection is trained based on the training data. When the electronic device is in motion, the motion information collected in real time by the electronic device is input into the wear recognition model, and the output result of the wear recognition model is obtained. Based on the output result, it is determined whether the electronic device is currently in a wearing state or a non-wearing state.
[0087] Through the embodiments of this disclosure, a wear detection model for wear status detection is pre-trained. This model determines whether the electronic device is currently wearing or not based on collected motion information. This avoids the significant time required for the electronic device to analyze and calculate the real-time collected motion information, enabling the device to quickly determine its current state based on motion information. It also reduces the performance requirements of the device, allowing even electronic devices with lower computing power to achieve real-time wear status detection through the pre-set wear recognition model.
[0088] In this disclosure, the wear recognition model will be further described according to the following embodiments.
[0089] In some embodiments of this disclosure, the wear recognition model is trained based on historical motion information. This historical motion information includes motion information occurring while the model is worn and motion information occurring while the model is not worn. The historical motion information includes a first type of motion information without labels and a second type of motion information with labels. The labels include labels corresponding to the worn state and labels corresponding to the unworn state. The wear recognition model is an initial model trained through a self-supervised pre-training stage and a supervised fine-tuning stage. In the self-supervised pre-training stage, the first type of motion information is used as training data. The output of the initial model after the self-supervised pre-training stage is a pseudo-label sequence. The pseudo-label sequence represents the distribution of acceleration and direction change data, corresponding to the motion change pattern in the worn state or the motion change pattern in the unworn state. In the supervised fine-tuning stage, the second type of motion information is used as training data.
[0090] In this embodiment, a model training scheme including two stages—self-supervised pre-training and supervised fine-tuning—is used to train and build the wear recognition model. During the daily use of wearable electronic devices, a large amount of motion information without wear tags can be accumulated. However, during the testing phase of wearable electronic device product development, a portion of motion information with wear tags can be accumulated. Both tagged and untagged motion information include motion information occurring while wearing the device and motion information occurring while not wearing it. All of the above tagged and untagged motion information can be collectively referred to as historical motion information.
[0091] In this embodiment of the disclosure, the motion information of the unworn state is taken as the first type of motion information and the initial model is self-supervised pre-trained so that the initial model learns the global representation of the motion information of the electronic device and obtains the pre-trained initial model. The output of the initial model trained by the self-supervised pre-training stage is a pseudo-label sequence. The pseudo-label sequence represents the data distribution of acceleration change and direction change. The acceleration change and direction change data distribution represented by the pseudo-label sequence corresponds to the motion change mode in the worn state or the motion change mode in the unworn state.
[0092] In this embodiment of the disclosure, after obtaining the pre-trained initial model, the motion information with the wearing status label is used as the second type of motion information to perform supervised fine-tuning training on the first model, so that the first model can identify the difference in motion patterns of electronic devices in the wearing state and the non-wearing state, thereby obtaining a wearing recognition model that can be used for electronic device wearing detection.
[0093] It is understandable that electronic devices of the same type but from different individuals may exhibit deviations, leading to inaccurate detection results from a uniformly trained wear recognition model for some devices. Similarly, during use, the motion data detected by the motion sensors within the same electronic device may gradually become inaccurate, causing the wear recognition model's output based on the corresponding motion information to be inaccurate. In these cases, it is necessary to further train the wear recognition model based on the motion information collected and recorded during the use of the electronic device, and to fine-tune the wear recognition model. The following embodiments of this disclosure illustrate the method for fine-tuning the wear recognition model.
[0094] Figure 6 This is a flowchart illustrating a method for fine-tuning a wearable recognition model according to an exemplary embodiment. Figure 6 As shown, the method includes the following steps.
[0095] In step S401, labels are set for motion information, and the motion information after setting the labels is determined as model fine-tuning data. The labels include labels corresponding to the wearing state or labels corresponding to the non-wearing state.
[0096] In step S402, the wearing recognition model is fine-tuned based on the model fine-tuning data to obtain the fine-tuned wearing recognition model.
[0097] In this embodiment, after inputting motion information collected by the electronic device into the wear detection model and determining whether the electronic device is in motion or wearing state based on the model's output, the motion information can be recorded, and tags corresponding to the wearing state or non-wearing state can be set for the motion information. The tags set for the motion information are motion tags set based on user operation, not tags set based on detection results. For example, a wear detection calibration function can be set for the electronic device. When the wear detection calibration function is enabled, the user is guided to wear the electronic device and exercise while wearing it, obtaining model fine-tuning data corresponding to the wearing state tag. Then, the user is guided to place the electronic device in a backpack or pocket and exercise while not wearing it, obtaining model fine-tuning data corresponding to the non-wearing state tag. Finally, the wear recognition model is fine-tuned based on the obtained model fine-tuning data to obtain the fine-tuned wear recognition model.
[0098] Through the embodiments of this disclosure, tags are set for motion information to obtain model fine-tuning data. The wear recognition model is then fine-tuned based on this data to obtain a fine-tuned wear recognition model. This allows for fine-tuning of the wear recognition model even when its detection accuracy decreases, ensuring the accuracy of the detection results.
[0099] In this embodiment of the disclosure, when the electronic device is in motion, the state of the electronic device is determined in real time based on the latest collected motion information of the electronic device. Specifically, at regular intervals, the latest motion information segment is input into the wearing recognition model to obtain the latest output result of the wearing recognition model, and the wearing state of the electronic device is determined based on the latest output result of the wearing recognition model. The following embodiments of this disclosure describe the method of collecting motion information and inputting the motion information into the wearing recognition model to obtain the output result of the wearing recognition model.
[0100] Figure 7 This is a flowchart illustrating a method for collecting motion information and inputting it into a wearable recognition model to obtain the output of the wearable recognition model, according to an exemplary embodiment. Figure 7 As shown, the method includes the following steps.
[0101] In step S501, at each preset time step, motion information segments with a time length equal to a preset window length are collected, where the preset window length is greater than the preset time step.
[0102] In step S502, at preset time intervals, the latest collected motion information fragment is input into the wear recognition model, and the latest output result of the wear recognition model is obtained.
[0103] In the disclosed embodiments, a sliding window approach is used to periodically collect the latest motion information segments of the electronic device. Motion information segments used as model input are acquired based on a preset step size and a preset window length. When the electronic device is initially determined to enter a motion state, motion information collection begins from the time point at which the electronic device enters the state. Once a motion information segment of the specified window length is acquired, the first motion information segment used as model input is determined. After acquiring the first motion information segment, according to a preset time step, a motion information segment of the specified window length is acquired at intervals of one time step, and used as the latest model input. In one example, the preset time step is 1 second, and the preset window length is 10 seconds. Therefore, the continuously collected motion information segments are: motion information corresponding to 1-10 seconds, motion information corresponding to 2-11 seconds, motion information corresponding to 3-12 seconds, ..., motion information corresponding to n-(n+9) seconds.
[0104] In this embodiment, when the electronic device is determined to be in motion, a motion information segment of one window length is collected at intervals of one time step, based on a preset window length and a preset time step. The latest collected motion information segment is input into the wear recognition model to obtain the latest output result of the model. The latest wear status of the electronic device is determined based on the latest output result. It can periodically output the latest wear detection result, ensuring the effectiveness of the wear detection result. Furthermore, it can respond instantly when the wear status of the electronic device changes. When the electronic device changes from a worn state to a non-worn state, specific functions are promptly disabled to reduce the power consumption of the electronic device; conversely, when the electronic device changes from a non-worn state to a worn state, specific functions are promptly enabled to improve the user experience of the electronic device. These specific functions include health information collection, user motion status monitoring, and other functions triggered when the electronic device is in a worn state.
[0105] In this embodiment, on a preset processing device side, rules for motion change patterns corresponding to motion change data are obtained based on pre-collected historical motion information. The processing device 200 can be a server, or an electronic device such as a mobile phone / PAD; that is, the processing device 200 can be any platform / device with a trained wearable device model. The following embodiments further illustrate the wear status detection method of this disclosure.
[0106] Figure 8 This is a flowchart illustrating a method for detecting wearing status according to yet another exemplary embodiment. For example... Figure 8 As shown, the method includes the following steps.
[0107] In step S601, based on historical motion information, and according to the difference between motion change patterns in the wearing state and the non-wearing state, rules are trained and obtained to obtain motion change patterns corresponding to motion change data.
[0108] In step S602, the rules for the motion change pattern corresponding to the motion change data are obtained based on the motion change data and sent to the wearable device.
[0109] In this embodiment, when worn by a user, the wearable electronic device moves in sync with the user's limbs, and the range and pattern of limb movement are constrained by the human body's physiological structure. Therefore, when the electronic device is worn and moves with the user's limbs, the motion data collected by the electronic device conforms to the human body's motion patterns. However, when the wearable electronic device moves without being worn by a user, the motion data collected by the electronic device does not conform to the human body's motion patterns. Thus, there is a difference between the motion patterns of the electronic device when worn and when not worn. This embodiment utilizes the prior knowledge of the difference between the motion change patterns of the electronic device when worn and when not worn. Based on historical motion information and the difference between the motion change patterns when worn and when not worn, rules are trained and obtained to derive motion change patterns corresponding to the motion change data. These rules are then sent to the wearable device. The wearable device can be the wearable electronic device that performs the wear detection method described in the above embodiments.
[0110] Through the embodiments of this disclosure, the processing device trains and obtains rules on historical motion information to derive motion change patterns corresponding to motion change data. These rules are then sent to the wearable device. This enables the electronic device, having acquired these rules, to determine in real-time whether it is currently being worn or not based on the collected motion information during motion.
[0111] The following embodiments of this disclosure describe a method for training and obtaining rules that correspond to motion change patterns based on motion change data.
[0112] In some embodiments of this disclosure, based on historical motion information, and according to the difference between motion change patterns in the wearing state and the non-wearing state, rules are trained and obtained to obtain motion change patterns corresponding to motion change data. This includes: building an initial model, inputting historical motion information into the initial model, and training and obtaining a wearing recognition model based on the difference between motion change patterns in the wearing state and the non-wearing state. The wearing recognition model includes rules to obtain motion change patterns corresponding to motion change data.
[0113] In some embodiments of this disclosure, sending rules for motion change patterns corresponding to motion change data obtained from motion change data to the wearable device includes: sending the trained wearing recognition model to the wearable device.
[0114] In this embodiment of the disclosure, historical motion information includes motion information occurring while the device is worn and motion information occurring while the device is not worn. Historical motion information includes a first type of motion information without tags and a second type of motion information with tags. Tags include tags corresponding to the worn state and tags corresponding to the unworn state. The following embodiments of this disclosure illustrate the method for training a wear recognition model.
[0115] Figure 9 This is a flowchart illustrating a method for training a wearable recognition model according to an exemplary embodiment. Figure 9 As shown, the method includes the following steps.
[0116] In step S701, the first type of motion information is input into the initial model, and the initial model is pre-trained under self-supervised supervision to obtain the first model. The output of the first model is a pseudo-label sequence, wherein the pseudo-label sequence represents the data distribution of acceleration change and direction change, and the data distribution of acceleration change and direction change represented by the pseudo-label sequence corresponds to the motion change mode in the wearing state or the motion change mode in the non-wearing state.
[0117] In step S702, the second type of motion information is input into the first model, and the first model is subjected to supervised fine-tuning training to obtain the wearing recognition model. The second type of motion information is motion information with labels, including motion information that occurs when wearing the model and motion information that occurs when not wearing the model. The output of the wearing recognition model includes the wearing state or the non-wearing state.
[0118] In this embodiment, a model training scheme including two stages—self-supervised pre-training and supervised fine-tuning—is used to train and build the wear recognition model. During the daily use of wearable electronic devices, a large amount of motion information without wear tags can be accumulated. However, during the testing phase of wearable electronic device product development, a portion of motion information with wear tags can be accumulated. Both tagged and untagged motion information include motion information occurring while wearing the device and motion information occurring while not wearing it. All of the above tagged and untagged motion information can be collectively referred to as historical motion information.
[0119] In an exemplary embodiment of this disclosure, the pre-built initial model to be trained can be a model structure built based on a Transformer Block module. The initial model may include a random masking module, a token-embedded layer, a position-embedded layer, an attention layer, a feedforward neural network (FNN) layer, and a self-supervised classifier. During model training, the first type of motion information can be mapped to a one-dimensional feature sequence through a fully connected layer. The token-embedded layer obtains the word vectors of the first type of motion information, and the position-embedded layer obtains the position vectors of the first type of motion information. A series of pseudo-labels are generated for the above one-dimensional feature sequence. According to a preset window length, the series of pseudo-labels are used as the position vector input for each window to generate a sine-cosine (sin-cos) one-dimensional sequence. The random masking module generates a mask index for the input window in the pre-training stage according to different masking ratios (e.g., 10%, 20%, or 30%). The input word vector and position vector are added together using the input window, but the addition operation is not performed on the window portion corresponding to the mask index during the process, resulting in a masked feature vector. A converter module, including an attention calculation layer and a feedforward neural network layer, performs feature extraction on the masked feature vector to obtain the feature vector to be classified. A self-supervised classifier classifies the feature vector to be classified, obtaining an output scalar. The mean absolute error (MAE) is calculated using this scalar and the pseudo-label sequence. In this disclosure, the training task in the self-supervised pre-training stage is a regression task. The self-supervised pre-training stage is considered complete when the MAE between the scalar and the pseudo-label sequence converges to a minimum on the validation set. The resulting first model has the same model structure as the initial model, but the specific model parameters are different.
[0120] In this embodiment of the disclosure, the motion information of the unworn state is taken as the first type of motion information and the initial model is self-supervised pre-trained so that the initial model learns the global representation of the motion information of the electronic device and obtains the pre-trained initial model. The output of the initial model trained by the self-supervised pre-training stage is a pseudo-label sequence. The pseudo-label sequence represents the data distribution of acceleration change and direction change. The acceleration change and direction change data distribution represented by the pseudo-label sequence corresponds to the motion change mode in the worn state or the motion change mode in the unworn state.
[0121] In an exemplary embodiment of this disclosure, after the self-supervised pre-training phase, a supervised fine-tuning phase is entered, in which a first model is trained using labeled second-type motion information. Before training the first model with the second-type motion information, the random encoding module in the first model is removed, and the self-supervised classification block in the first model is replaced with a new supervised classification block, while other processing layers in the converter module of the first model remain unchanged, resulting in a second model. In the supervised fine-tuning phase, all input word vectors can be positionally encoded using information transformed by the sign function and absolute value function (Sgn&ABS) module, and added to the input word vectors, without masking the word vector sequence at input. Finally, a binary classification cross-entropy loss is used for the classification task. When the cross-entropy loss converges to a minimum on the validation set, the supervised pre-fine-tuning phase is completed, resulting in a wearable recognition model.
[0122] In this embodiment of the disclosure, after obtaining the pre-trained initial model, the motion information with the wearing status label is used as the second type of motion information to perform supervised fine-tuning training on the first model, so that the first model can identify the difference in motion patterns of electronic devices in the wearing state and the non-wearing state, thereby obtaining a wearing recognition model that can be used for electronic device wearing detection.
[0123] In an exemplary embodiment of this disclosure, Figure 10 This is a schematic diagram illustrating a method for training a wearable recognition model according to an exemplary embodiment of the present disclosure, such as... Figure 10As shown, this disclosure trains the wearable recognition model as follows: First-class motion information is mapped to a one-dimensional feature sequence through a fully connected layer. Word vectors of the first-class motion information are obtained through a word embedding layer, and position vectors of the unlabeled raw data (first-class motion information) are obtained through a position embedding layer. A series of pseudo-labels are generated for the above one-dimensional feature sequence. Based on a preset window length, these pseudo-labels are used as the position vector input for each window, generating a sine-cosine one-dimensional sequence. A random masking module generates mask indices for the input windows during the pre-training stage according to different masking ratios. The input word vectors and position vectors are added together with the input window, but the addition operation is not performed on the window portion corresponding to the mask index during the processing, resulting in a masked feature vector. A converter module, including an attention calculation layer and a feedforward neural network layer (performing a one-dimensional convolution-random deactivation-one-dimensional convolution processing flow), performs feature extraction processing on the masked feature vector to obtain the feature vector to be classified. Layer normalization processing is performed on the outputs of the self-attention layer and the feedforward neural network layer, respectively. A self-supervised classifier classifies the feature vectors to be classified, obtaining an output scalar. The mean absolute error (MAE) is then calculated using this scalar and the pseudo-label sequence. In this disclosure, the training task in the self-supervised pre-training phase is a regression task. The self-supervised pre-training phase is considered complete when the MAE between the scalar and the pseudo-label sequence converges to a minimum on the validation set. The resulting first model has the same model structure as the initial model, but different model parameters.
[0124] Furthermore, after the self-supervised pre-training phase, the supervised fine-tuning phase begins. This phase uses labeled raw training data (second-class motion information). Before fine-tuning, the random encoding module in the first model is removed, and the self-supervised classification block in the first model is replaced with a new supervised classification block. Other processing layers in the converter module of the first model remain unchanged, resulting in the second model. In the supervised fine-tuning phase, all input word vectors can be positionally encoded using the information transformed by the sign function and absolute value function modules, and then added to the input word vectors. The word vector sequence is no longer masked during input. Finally, binary classification cross-entropy loss is used for the classification task. When the cross-entropy loss converges to its minimum on the validation set, the supervised pre-fine-tuning phase is complete, resulting in the wearable recognition model. The final trained wearable recognition model is shown below. Figure 11 As shown, the input to the wear recognition model is motion information, and the output of the wear recognition model includes the wearing state and the non-wearing state.
[0125] Regarding the above Figure 10In the self-attention computation layer, all word vectors (tokens) are used as the query quantity Q, and the unmasked word vectors are used as both the key quantity K and the value quantity V. The key quantity K and value quantity V of the masked part are replaced with random numbers from the normal part, or they can be replaced with 0 values.
[0126] Regarding the above Figure 10 The self-supervised classifier in the model consists of two fully connected layers, each containing 32 units, followed by a single-unit fully connected layer. The self-supervised classifier performs a regression task, calculating the mean absolute error from its output.
[0127] Regarding the above Figure 10 The supervised classifier in the model consists of two fully connected layers, each containing 32 units, followed by a final fully connected layer with 2 units. The self-supervised classifier performs a binary classification task and calculates the cross-entropy for its output.
[0128] In an exemplary embodiment of this disclosure, regarding the above model training process, Figure 12 This is a schematic diagram illustrating a method for processing a first type of motion information according to an exemplary embodiment of the present disclosure, such as... Figure 12 As shown, this disclosure performs the following processing on the input first type of motion data: It obtains the one-dimensional feature sequence corresponding to the first type of motion information, generates a series of pseudo-labels (e.g., 13, 23, 48, etc.) for the one-dimensional feature sequence, and uses these pseudo-labels as the position vector input for each window according to a preset window length (e.g., 10s for a long window, 1s for a short window), generating a sine-cosine one-dimensional sequence. A random masking module generates a mask index for the input window in the pre-training stage according to different masking ratios. Information is extracted using sign function and absolute value function. The input word vector can be positionally encoded using the information converted by the sign function and absolute value function (Sgn&ABS) module and added to the input word vector. During the processing, the addition operation is not performed on the window portion corresponding to the mask index (corresponding to the "*" portion), resulting in the masked feature vector.
[0129] In this embodiment, a wearing status monitoring model is pre-trained based on historical motion information collected by motion sensors in the electronic device. This model is capable of determining the wearing status of the electronic device based on the collected motion information. Historical motion information is pre-collected, including motion information collected when the electronic device is worn and motion information collected when the electronic device is not worn. An initial model is trained in stages using the collected historical motion information: the initial model undergoes self-supervised pre-training based on a first type of motion information, and supervised fine-tuning training is performed based on a second type of motion information to obtain a wearing recognition model. The first type of motion information is unlabeled motion information, and the second type of motion information is labeled motion information. The labels include labels corresponding to the worn state and labels corresponding to the unworn state. Both types of motion information include motion information occurring in both the worn and unworn states. Through staged training, the initial model learns the difference in motion patterns between the worn and unworn states of the electronic device, ultimately resulting in the wearing recognition model.
[0130] Furthermore, when a user is wearing an electronic device and the device is detected to be in motion, motion information segments of the same length as the window are collected at preset time steps, according to a preset window length. At each preset time step, the latest collected motion information segment is input into the wear recognition model, and the output of the wear recognition model for the latest motion information segment is obtained. The current wearing state of the electronic device is determined based on the output of the wear recognition model. Through this disclosure, a wear recognition model is trained based on motion information, thereby determining the wearing state of the electronic device based on the wear recognition model and the motion information collected in real time by the electronic device while it is in motion. This ensures the accuracy of the wear detection results for the electronic device during motion. Moreover, during the training of the wear recognition model, a large amount of unlabeled acceleration data can be more effectively utilized to improve the robustness of the model and reduce the requirement for labeled data.
[0131] Based on the same concept, this disclosure also provides a wearable device 100, wherein the wearable device 100 may be an electronic device that performs the wear detection method in the above embodiments.
[0132] It is understood that the wearable device 100 provided in this disclosure includes hardware structures and / or software modules corresponding to each function in order to achieve the above-mentioned functions. In conjunction with the units and algorithm steps of the various examples disclosed in this disclosure, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of this disclosure.
[0133] Figure 13 This is a block diagram illustrating a wearable device 100 according to an exemplary embodiment. (Refer to...) Figure 13 The device includes a data acquisition unit 101, a determination unit 102, and a processing unit 103.
[0134] The acquisition unit 101 is used to detect motion and acquire motion information.
[0135] The determining unit 102 is used to determine motion change data based on motion information.
[0136] The processing unit 103 is used to determine the motion change mode corresponding to the motion change data based on the difference between the motion change mode in the wearing state and the motion change mode in the non-wearing state, and to determine whether the wearable device is currently in the wearing state or the non-wearing state based on the corresponding motion change mode.
[0137] According to some embodiments of this disclosure, the processing unit 103 determines the motion change mode corresponding to the motion change data based on the difference between the motion change mode in the wearing state and the motion change mode in the non-wearing state in the following manner: It acquires acceleration change and direction change data from the motion change data. For the acceleration change and direction change data, it matches the acceleration change and direction change data distributions corresponding to multiple motion scenarios to determine the corresponding acceleration change and direction change data distributions. The acceleration change and direction change data distributions for motion scenarios in the wearing state and the non-wearing state are different. The processing unit 103 determines whether the wearable device is currently in a wearing state or a non-wearing state based on the corresponding motion change mode in the following manner: it determines whether the wearable device is currently in a wearing state or a non-wearing state based on the corresponding acceleration change and direction change data distributions.
[0138] According to some embodiments of this disclosure, the processing unit 103 determines the state of the wearable device based on motion information in the following manner: The motion information is input into a wearability recognition model, and the output result of the wearability recognition model is obtained. The output result includes a wearing state or a non-wearing state. Based on the output result, it is determined whether the wearable device is currently in a wearing state or a non-wearing state.
[0139] According to some embodiments of this disclosure, the wear recognition model is trained based on historical motion information. This historical motion information includes motion information occurring while wearing the device and motion information occurring while not wearing the device. The historical motion information includes a first type of motion information without labels and a second type of motion information with labels. The labels include labels corresponding to the wearing state and labels corresponding to the not-wearing state. The wear recognition model is an initial model trained through a self-supervised pre-training stage and a supervised fine-tuning stage. In the self-supervised pre-training stage, the first type of motion information is used as training data. The output of the initial model after the self-supervised pre-training stage is a pseudo-label sequence. The pseudo-label sequence represents the distribution of acceleration and direction change data, corresponding to the motion change pattern in the wearing state or the motion change pattern in the non-wearing state. In the supervised fine-tuning stage, the second type of motion information is used as training data.
[0140] According to some embodiments of this disclosure, after determining the state of the wearable device, the processing unit 103 is further configured to: set a tag for the motion information, determine the motion information after setting the tag as model fine-tuning data, fine-tune the wear recognition model according to the model fine-tuning data, and obtain the fine-tuned wear recognition model, wherein the tag includes a tag corresponding to the wear state or a tag corresponding to the non-wear state.
[0141] According to some embodiments of this disclosure, the acquisition unit 101 acquires motion information in the following manner: at preset time steps, it acquires motion information segments with a time length equal to a preset window length, where the preset window length is greater than the preset time step. The motion information is then input into a wearable recognition model, and the output result of the wearable recognition model is obtained, including: at preset time steps, the latest acquired motion information segment is input into the wearable recognition model, and the latest output result of the wearable recognition model is obtained.
[0142] Figure 14 This is a block diagram illustrating a processing device 200 according to an exemplary embodiment. (Refer to...) Figure 14 The device includes a training unit 201 and a sending unit 202. The processing device 200 can be a server or an electronic device such as a mobile phone / PAD. In other words, the processing device 200 can be any platform / device that has been trained to obtain a wearable device model.
[0143] Training unit 201 is used to train and obtain rules for obtaining motion change patterns corresponding to motion change data based on historical motion information and the differences between motion change patterns in the wearing state and the non-wearing state.
[0144] The sending unit 202 is used to send the rules of motion change patterns corresponding to the motion change data obtained from the motion change data to the wearable device.
[0145] According to some embodiments of this disclosure, the training unit 201 uses the following method based on historical motion information to train and obtain rules for obtaining motion change patterns corresponding to motion change data based on motion change data, according to the differences between motion change patterns in the wearing state and motion change patterns in the non-wearing state: an initial model is built, historical motion information is input into the initial model, and a wearing recognition model is trained and obtained based on the differences between motion change patterns in the wearing state and motion change patterns in the non-wearing state. The wearing recognition model includes rules for obtaining motion change patterns corresponding to motion change data based on motion change data.
[0146] According to some embodiments of this disclosure, the sending unit 202 sends the rules of motion change patterns corresponding to the motion change data to the wearable device in the following manner: the trained wearing recognition model is sent to the wearable device.
[0147] According to some embodiments of this disclosure, historical motion information includes motion information occurring in the wearing state and motion information occurring in the non-wearing state. The historical motion information includes a first type of motion information without labels and a second type of motion information with labels. The labels include labels corresponding to the wearing state and labels corresponding to the non-wearing state. The training unit 201 inputs the historical motion information into an initial model in the following manner: based on the difference between the motion change patterns in the wearing state and the non-wearing state, it trains and obtains a wearing recognition model, including: inputting the first type of motion information into the initial model, performing self-supervised pre-training on the initial model to obtain a first model. The output of the first model is a pseudo-label sequence, wherein the pseudo-label sequence represents the data distribution of acceleration and direction changes, and the acceleration and direction change data distribution represented by the pseudo-label sequence corresponds to the motion change pattern in the wearing state or the motion change pattern in the non-wearing state. The second type of motion information is input into the first model, performing supervised fine-tuning training on the first model to obtain a wearing recognition model. The second type of motion information is labeled motion information, including motion information occurring in the wearing state and motion information occurring in the non-wearing state. The output of the wearing recognition model includes either the wearing state or the non-wearing state.
[0148] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0149] Figure 15 This is a block diagram illustrating a device 300 for wear detection according to an exemplary embodiment. Device 300 can be provided as a wearable device or a processing device. For example, device 300 can be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.
[0150] Reference Figure 15 The device 300 may include one or more of the following components: processing component 302, memory 304, power component 306, multimedia component 308, audio component 310, input / output (I / O) interface 312, sensor component 314, and communication component 316.
[0151] Processing component 302 typically controls the overall operation of device 300, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 302 may include one or more processors 320 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 302 may include one or more modules to facilitate interaction between processing component 302 and other components. For example, processing component 302 may include a multimedia module to facilitate interaction between multimedia component 308 and processing component 302.
[0152] Memory 304 is configured to store various types of data to support the operation of device 300. Examples of such data include instructions for any application or method operating on device 300, contact data, phonebook data, messages, pictures, videos, etc. Memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0153] The power supply component 306 provides power to the various components of the device 300. The power supply component 306 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 300.
[0154] Multimedia component 308 includes a screen that provides an output interface between the device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 308 includes a front-facing camera and / or a rear-facing camera. When the device 300 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0155] Audio component 310 is configured to output and / or input audio signals. For example, audio component 310 includes a microphone (MIC) configured to receive external audio signals when device 300 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 304 or transmitted via communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.
[0156] I / O interface 312 provides an interface between processing component 302 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0157] Sensor assembly 314 includes one or more sensors for providing status assessments of various aspects of device 300. For example, sensor assembly 314 may detect the on / off state of device 300, the relative positioning of components such as the display and keypad of device 300, changes in the position of device 300 or a component of device 300, the presence or absence of user contact with device 300, the orientation or acceleration / deceleration of device 300, and temperature changes of device 300. Sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 314 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0158] Communication component 316 is configured to facilitate wired or wireless communication between device 300 and other devices. Device 300 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 316 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 316 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0159] In an exemplary embodiment, the apparatus 300 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0160] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, which can be executed by a processor 320 of the device 300 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0161] Figure 16 This is a block diagram illustrating a device 400 for wear detection according to an exemplary embodiment. For example, device 400 may be provided as a server. (Refer to...) Figure 16 The apparatus 400 includes a processing component 422, which further includes one or more processors, and memory resources represented by memory 432 for storing instructions, such as application programs, that can be executed by the processing component 422. The application programs stored in memory 432 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 422 is configured to execute instructions to perform the aforementioned XX method.
[0162] Device 400 may also include a power supply component 426 configured to perform power management of device 400, a wired or wireless network interface 450 configured to connect device 400 to a network, and an input / output (I / O) interface 458. Device 400 may operate on an operating system stored in memory 432, such as Windows Server™, MacOSX™, Unix™, Linux™, FreeBSD™, or similar.
[0163] In some embodiments of this disclosure, a storage medium including instructions is also provided, such as a memory 432 including instructions, which can be executed by the processing component 422 of the device 400 to perform the above-described method. For example, the storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0164] In some embodiments of this disclosure, a storage medium is provided, which may be a non-transitory computer-readable storage medium.
[0165] In some embodiments of this disclosure, when instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the aforementioned wearing status detection method.
[0166] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the wearing status detection method involved in any of the above embodiments.
[0167] Figure 17 This is a block diagram illustrating a chip system 500 for wear detection according to an exemplary embodiment, such as... Figure 17 As shown, the chip system 500 includes at least one processor 501 and at least one interface circuit 502. The processor 501 and the interface circuit 502 are interconnected via lines. For example, the interface circuit 502 can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit 502 can be used to send signals to other devices (e.g., the processor 501). Exemplarily, the interface circuit 502 can read instructions stored in memory and send those instructions to the processor 501. When the instructions are executed by the processor 501, the electronic device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete devices, and some embodiments of this disclosure do not specifically limit this.
[0168] In some embodiments of this disclosure, the interface circuit 502 can acquire data, program instructions, and / or information from the internal storage area of the chip system; it can also acquire data, program instructions, and / or information from outside the chip system.
[0169] Optionally, the chip system also includes a memory 503 for storing necessary computer programs and data.
[0170] Those skilled in the art will also understand that the various illustrative logical blocks and steps listed in the embodiments of this application can be implemented by electronic hardware, computer software, or a combination of both. Whether such functionality is implemented through hardware or software depends on the specific application and the overall system design requirements. Those skilled in the art can implement the described functionality using various methods for each specific application, but such implementation should not be construed as exceeding the scope of protection of the embodiments of this application.
[0171] Although terms such as “first,” “second,” and “third” may be used herein to describe various components, parts, regions, layers, or sections, these components, parts, regions, layers, or sections are not limited to these terms. Rather, these terms are used only to distinguish one component, part, region, layer, or section from another. Therefore, without departing from the teachings of the examples described herein, a first component, part, region, layer, or section mentioned in the examples may also be referred to as a second component, part, region, layer, or section. Furthermore, the terms “first” and “second” are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as “first” or “second” may explicitly or implicitly include at least one of that feature.
[0172] It is further understood that the terms "first," "second," etc., are used to describe various types of information, but this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not indicate a specific order or degree of importance. In fact, the expressions "first," "second," etc., are completely interchangeable. For example, without departing from the scope of this disclosure, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.
[0173] In this description, "multiple" means at least two, referring to two or more, such as two, three, etc., unless otherwise explicitly specified. Other quantifiers are similar. The singular forms "a," "the," and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. Furthermore, unless otherwise specified or clearly indicated from the context, the articles "a" and "an" as used in this application and the appended claims are generally understood to mean "one or more."
[0174] It should be understood that, unless otherwise specifically indicated, features of various embodiments of this disclosure described herein can be combined with each other. As used herein, the term "and / or" includes any one of the related listed items and any combination of two or more; "and / or" describes the association relationship between related objects, indicating that three relationships may exist, for example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Similarly, "at least one of..." includes any one of the related listed items and any combination of two or more.
[0175] It is further understood that the terms "first," "second," etc., are used to describe various types of information, but this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not indicate a specific order or degree of importance. In fact, the expressions "first," "second," etc., are completely interchangeable. For example, without departing from the scope of this disclosure, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.
[0176] Furthermore, the term "exemplary" is used herein to indicate that it serves as an example, instance, or illustration. Any aspect or design described herein as "exemplary" is not necessarily to be construed as advantageous compared to other aspects or designs. Rather, the use of the term "exemplary" is intended to present concepts in a concrete manner. As used herein, the term "or" is intended to indicate an inclusive "or" rather than an exclusive "or." That is, unless otherwise specified or clear from the context, "X applies A or B" is intended to indicate any of the natural inclusive permutations. That is, if X applies A; X applies B; or X applies both A and B, then applying A or B satisfies the condition under any of the foregoing instances.
[0177] Similarly, although this disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art upon reading and understanding the specification and drawings. This disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components described above (e.g., elements, resources, etc.), unless otherwise indicated, the terminology used to describe such components is intended to correspond to any component (functionally equivalent) that performs the specific function of the described component, even if it is not structurally equivalent to the disclosed structure. Furthermore, although specific features of this disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations, as may be desired and advantageous to any given or particular application. Moreover, with regard to the terms “comprising,” “owning,” “having,” “having,” or variations thereof as used in this disclosure, such terms are intended to be inclusive in a manner similar to the term “including.”
[0178] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein.
[0179] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for detecting wearing status, characterized in that, include: Once motion is detected, motion information is collected. Based on the motion information, determine the motion change data; Based on the difference between the motion change patterns when wearing the device and when not wearing it, the motion change pattern corresponding to the motion change data is determined. Based on the corresponding motion change pattern, determine whether the electronic device is currently in a wearing state or not.
2. The method according to claim 1, characterized in that, The step of determining the motion change pattern corresponding to the motion change data based on the difference between the motion change pattern in the wearing state and the motion change pattern in the non-wearing state includes: Obtain the acceleration and direction change data from the motion change data; For the acceleration and direction change data, matching is performed in the acceleration and direction change data distributions corresponding to multiple motion scenarios to determine the acceleration and direction change data distributions corresponding to the acceleration and direction change data; wherein, the acceleration and direction change data distributions are different for motion scenarios in the wearing state and the non-wearing state. Determining whether the electronic device is currently in a wearing state or a non-wearing state based on the corresponding motion change pattern includes: Based on the corresponding acceleration and direction change data distribution, it is determined whether the electronic device is currently in a wearing state or not.
3. The method according to claim 1 or 2, characterized in that, Determining the state of the electronic device based on the motion information includes: The motion information is input into the wearing recognition model, and the output result of the wearing recognition model is obtained. The output result includes the wearing state or the non-wearing state. Based on the output, it is determined whether the electronic device is currently in a wearing state or not.
4. The method according to claim 3, characterized in that, The wear recognition model is trained based on historical motion information, which includes motion information occurring while wearing the device and motion information occurring while not wearing the device. The historical motion information includes a first type of motion information without tags and a second type of motion information with tags. The tags include tags corresponding to the worn state and tags corresponding to the unworn state. The wear recognition model is obtained by training an initial model through a self-supervised pre-training stage and a supervised fine-tuning stage. In the self-supervised pre-training stage, the first type of motion information is used as training data. The output of the initial model after training through the self-supervised pre-training stage is a pseudo-label sequence. The pseudo-label sequence represents the data distribution of acceleration change and direction change. The data distribution of acceleration change and direction change represented by the pseudo-label sequence corresponds to the motion change mode in the wearing state or the motion change mode in the non-wearing state. The supervised fine-tuning phase uses the second type of motion information as training data.
5. The method according to claim 3, characterized in that, After determining the state of the electronic device, the method further includes: The motion information is labeled, and the labeled motion information is determined as model fine-tuning data. The labels include labels corresponding to the wearing state or labels corresponding to the non-wearing state. The wearing recognition model is fine-tuned based on the model fine-tuning data to obtain the fine-tuned wearing recognition model.
6. The method according to claim 3, characterized in that, The collected motion information includes: Motion information segments with a time length of a preset window are collected at preset time steps, wherein the preset window length is greater than the preset time step. The step of inputting the motion information into the wearing recognition model and obtaining the output result of the wearing recognition model includes: At each preset time step, the latest collected motion information fragment is input into the wearing recognition model, and the latest output result of the wearing recognition model is obtained.
7. A method for detecting wearing status, characterized in that, include: Based on historical motion information, and according to the difference between motion change patterns in the wearing state and the non-wearing state, rules are trained and obtained to obtain motion change patterns corresponding to the motion change data. The rules for obtaining the motion change pattern corresponding to the motion change data based on the motion change data are sent to the wearable device.
8. The method according to claim 7, characterized in that, The rule, based on historical motion information and considering the difference between motion change patterns in the wearing state and the non-wearing state, is used to train and obtain rules for obtaining motion change patterns corresponding to the motion change data, including: An initial model is built by inputting the historical motion information into the initial model. Based on the difference between the motion change patterns in the wearing state and the motion change patterns in the non-wearing state, a wearing recognition model is trained and obtained. The wearing recognition model includes rules for obtaining motion change patterns corresponding to the motion change data based on the motion change data.
9. The method according to claim 8, characterized in that, The step of sending the rule corresponding to the motion change pattern obtained from the motion change data to the wearable device includes: The trained wearing recognition model is sent to the wearable device.
10. The method according to claim 8 or 9, characterized in that, The historical motion information includes motion information that occurred while the device was being worn and motion information that occurred while the device was not being worn. The historical motion information includes a first type of motion information without tags and a second type of motion information with tags. The tags include tags corresponding to the worn state and tags corresponding to the unworn state. The step of inputting the historical motion information into the initial model, and training and obtaining a wearing recognition model based on the difference between the motion change pattern in the wearing state and the motion change pattern in the non-wearing state includes: The first type of motion information is input into the initial model, and the initial model is pre-trained by self-supervised training to obtain the first model. The output of the first model is a pseudo-label sequence, wherein the pseudo-label sequence represents the data distribution of acceleration change and direction change, and the data distribution of acceleration change and direction change represented by the pseudo-label sequence corresponds to the motion change mode in the wearing state or the motion change mode in the non-wearing state. The second type of motion information is input into the first model, and the first model is subjected to supervised fine-tuning training to obtain a wearing recognition model. The second type of motion information is motion information with labels, including motion information that occurs when wearing the model and motion information that occurs when not wearing the model. The output result of the wearing recognition model includes the wearing state or the non-wearing state.
11. A wearable device, characterized in that, include: The acquisition unit is used to detect motion and collect motion information. The determining unit is used to determine motion change data based on the motion information; The processing unit is configured to determine the motion change pattern corresponding to the motion change data based on the difference between the motion change pattern in the wearing state and the motion change pattern in the non-wearing state, and determine whether the wearable device is currently in a wearing state or a non-wearing state based on the corresponding motion change pattern.
12. The wearable device according to claim 11, characterized in that, The processing unit determines the motion change pattern corresponding to the motion change data based on the difference between the motion change pattern in the wearing state and the motion change pattern in the non-wearing state in the following manner: Obtain the acceleration and direction change data from the motion change data; For the acceleration and direction change data, matching is performed in the acceleration and direction change data distributions corresponding to multiple motion scenarios to determine the acceleration and direction change data distributions corresponding to the acceleration and direction change data; wherein, the acceleration and direction change data distributions are different for motion scenarios in the wearing state and the non-wearing state. The processing unit determines whether the wearable device is currently in a wearing state or not based on the corresponding motion change pattern in the following manner: Based on the corresponding acceleration and direction change data distribution, it is determined whether the wearable device is currently in a wearing state or not.
13. The wearable device according to claim 11 or 12, characterized in that, The processing unit determines the state of the wearable device based on the motion information in the following manner: The motion information is input into the wearing recognition model, and the output result of the wearing recognition model is obtained. The output result includes the wearing state or the non-wearing state. Based on the output, it is determined whether the wearable device is currently in a wearing state or a non-wearing state.
14. The wearable device according to claim 13, characterized in that, The wear recognition model is trained based on historical motion information, which includes motion information occurring while wearing the device and motion information occurring while not wearing the device. The historical motion information includes a first type of motion information without tags and a second type of motion information with tags. The tags include tags corresponding to the worn state and tags corresponding to the unworn state. The wear recognition model is obtained by training an initial model through a self-supervised pre-training stage and a supervised fine-tuning stage. In the self-supervised pre-training stage, the first type of motion information is used as training data. The output of the initial model after training through the self-supervised pre-training stage is a pseudo-label sequence. The pseudo-label sequence represents the data distribution of acceleration change and direction change. The data distribution of acceleration change and direction change represented by the pseudo-label sequence corresponds to the motion change mode in the wearing state or the motion change mode in the non-wearing state. The supervised fine-tuning phase uses the second type of motion information as training data.
15. The wearable device according to claim 13, characterized in that, After determining the state of the wearable device, the processing unit is further configured to: Label the motion information, and use the labeled motion information as model fine-tuning data; The wearing recognition model is fine-tuned based on the model fine-tuning data to obtain the fine-tuned wearing recognition model. The labels include labels corresponding to the wearing state or labels corresponding to the non-wearing state.
16. The wearable device according to claim 13, characterized in that, The acquisition unit acquires motion information in the following manner: Motion information segments with a time length of a preset window are collected at preset time steps, wherein the preset window length is greater than the preset time step. The step of inputting the motion information into the wearing recognition model and obtaining the output result of the wearing recognition model includes: At each preset time step, the latest collected motion information fragment is input into the wearing recognition model, and the latest output result of the wearing recognition model is obtained.
17. A processing apparatus, characterized in that, include: The training unit is used to train and obtain rules for obtaining motion change patterns corresponding to motion change data based on historical motion information and the differences between motion change patterns in the wearing state and the non-wearing state. The sending unit is used to send the rules for obtaining the motion change pattern corresponding to the motion change data based on the motion change data to the wearable device.
18. The processing apparatus according to claim 17, characterized in that, The training unit uses historical motion information and the difference between motion change patterns in the wearing state and the non-wearing state to train and obtain rules for obtaining motion change patterns corresponding to the motion change data based on the motion change data: An initial model is built by inputting the historical motion information into the initial model. Based on the difference between the motion change patterns in the wearing state and the motion change patterns in the non-wearing state, a wearing recognition model is trained and obtained. The wearing recognition model includes rules for obtaining motion change patterns corresponding to the motion change data based on the motion change data.
19. The processing apparatus according to claim 18, characterized in that, The sending unit sends the rules corresponding to the motion change patterns obtained from the motion change data to the wearable device in the following manner: The trained wearing recognition model is sent to the wearable device.
20. The processing apparatus according to claim 18 or 19, characterized in that, The historical motion information includes motion information that occurred while the device was being worn and motion information that occurred while the device was not being worn. The historical motion information includes a first type of motion information without tags and a second type of motion information with tags. The tags include tags corresponding to the worn state and tags corresponding to the unworn state. The training unit inputs the historical motion information into the initial model in the following manner, and trains and obtains a wearing recognition model based on the difference between the motion change pattern in the wearing state and the motion change pattern in the non-wearing state, including: The first type of motion information is input into the initial model, and the initial model is pre-trained by self-supervised training to obtain the first model. The output of the first model is a pseudo-label sequence, wherein the pseudo-label sequence represents the data distribution of acceleration change and direction change, and the data distribution of acceleration change and direction change represented by the pseudo-label sequence corresponds to the motion change mode in the wearing state or the motion change mode in the non-wearing state. The second type of motion information is input into the first model, and the first model is subjected to supervised fine-tuning training to obtain a wearing recognition model. The second type of motion information is motion information with labels, including motion information that occurs when wearing the model and motion information that occurs when not wearing the model. The output result of the wearing recognition model includes the wearing state or the non-wearing state.
21. An electronic device, characterized in that, include: processor: Memory used to store computer programs or instructions that can be executed by a processor; The processor is configured to execute the computer program or instructions to implement the wearing status detection method according to any one of claims 1 to 6 or the wearing status detection method according to any one of claims 7 to 10.
22. A storage medium, characterized in that, The storage medium stores a computer program or instructions that, when executed by the processor of the electronic device, enable the electronic device to perform the wearing status detection method according to any one of claims 1 to 6 or to implement the wearing status detection method according to any one of claims 7 to 10.
23. A computer program product, characterized in that, The method includes a computer program that, when executed by a processor, implements the wearing status detection method as described in any one of claims 1 to 6 or the wearing status detection method as described in any one of claims 7 to 10.
24. A chip system, characterized in that, The chip system includes a processing unit and an interface circuit. The processing unit obtains program instructions through the interface circuit, and the program instructions are executed by the processing unit. The processing unit is used to execute the wearing status detection method as described in any one of claims 1 to 6 or to implement the wearing status detection method as described in any one of claims 7 to 10.
