Wearing state detection method, electronic equipment and storage medium

By combining temperature and pulse wave signals and using a decision tree model to determine the wearing status, the problem of misidentification of the PPG sensor under motion interference is solved, and the detection accuracy and stability of smart wearable devices are improved.

CN118662104APending Publication Date: 2024-09-20GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202310247634.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

When existing smart wearable devices detect the wearing status, the photoplethysmography (PPG) sensor is susceptible to motion interference, resulting in signal instability, misrecognition and inability to identify, reducing detection accuracy and user experience.

Method used

Combining the ambient temperature and surface temperature information collected by the temperature sensor and the pulse wave signal collected by the photoelectric pulse sensor, through machine learning models such as decision trees, the probability value of the wearing state is calculated to determine whether the device is worn or not.

Benefits of technology

The accuracy and stability of wearing status detection are improved, misidentifications are reduced, and user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118662104A
    Figure CN118662104A
Patent Text Reader

Abstract

The invention discloses a wearing state detection method, electronic equipment and a storage medium, and the wearing state detection method comprises the steps: obtaining the environment temperature collected by a first temperature sensor, the surface temperature of a target position collected by a second temperature sensor, and a pulse wave signal collected by a photoelectric pulse sensor; and determining whether the electronic equipment is in a wearing state or a non-wearing state according to the environment temperature, the surface temperature and the pulse wave signal. Compared with the prior art, the pulse wave signal is combined with the environment temperature and the surface temperature to recognize the wearing state, the problems that when only PPG is used for detection, the signal is unstable, and consequently mistaken recognition and recognition incapability are caused are solved, the detection precision for the wearing state is improved, the detection stability is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wearing detection technology, and in particular to a wearing status detection method, an electronic device and a storage medium. Background Art

[0002] Smart wearable devices are becoming more and more popular among consumers, and how to accurately detect the wearing status is a technical difficulty that smart wearable devices need to focus on.

[0003] The main means of detecting the wearing status in the prior art is to use a photoplethysmograph (PPG) sensor to determine whether the wearer is wearing the device based on whether the extracted PPG signal has pulse wave characteristics. However, when actually using smart wearable devices, situations that affect the detection effect of the PPG sensor are usually encountered. For example, when the wearer is doing strenuous exercise, the reception of infrared signals in the PPG sensor will be disturbed by the movement, resulting in misidentification and unrecognition, thereby reducing the detection accuracy of the wearing status and affecting the user experience. Summary of the invention

[0004] The embodiments of the present application disclose a wearing status detection method, an electronic device, and a storage medium to improve the detection accuracy of the wearing status, improve the detection stability, and improve the user experience.

[0005] In a first aspect, the present application provides a wearing status detection method, which is applied to an electronic device, the method comprising: obtaining temperature information collected by a temperature sensor of the electronic device and a pulse wave signal collected by a photoelectric pulse sensor, the temperature sensor comprising a first temperature sensor and a second temperature sensor, the first temperature sensor being used to detect the ambient temperature, and the second temperature sensor being used to detect the surface temperature at a target position; determining whether the electronic device is in a wearing state or a non-wearing state based on the ambient temperature, the surface temperature and the pulse wave signal.

[0006] In the above-mentioned wearing state detection method, by obtaining the ambient temperature collected by the first temperature sensor, the surface temperature at the target position collected by the second temperature sensor, and the pulse wave signal collected by the photoelectric pulse sensor, it is determined whether the electronic device is in a wearing state or a non-wearing state according to the ambient temperature, the surface temperature, and the pulse wave signal. Compared with the prior art, the present application combines the pulse wave signal with the ambient temperature and the surface temperature to identify the wearing state, solves the problem of misidentification and non-identification caused by unstable signals when only PPG detection is used, improves the detection accuracy for the wearing state, improves the detection stability, and improves the user experience.

[0007] In one embodiment, determining whether the electronic device is in a worn state or a non-worn state based on the ambient temperature, the surface temperature, and the pulse wave signal includes: obtaining a first probability value that the electronic device is in the worn state based on the ambient temperature and the surface temperature; obtaining a second probability value that the electronic device is in the worn state based on the pulse wave signal; obtaining a target probability value that the electronic device is in the worn state based on the first probability value and the second probability value; determining whether the electronic device is in the worn state or the non-worn state based on the target probability value, wherein when the target probability value is greater than or equal to a threshold value, it is determined that the electronic device is in the worn state.

[0008] In one embodiment, obtaining a first probability value that the electronic device is in the wearing state based on the ambient temperature and the surface temperature includes: extracting a first target characteristic value based on the ambient temperature information and the body surface temperature information, the first target characteristic value including a mean and a standard deviation of the ambient temperature information, a mean and a standard deviation of the body surface temperature information, and a mean of a temperature difference, wherein the temperature difference is a difference between the ambient temperature information and the body surface temperature information; and determining the first probability value based on the first target characteristic value.

[0009] In one embodiment, determining the first probability value based on the first target feature value includes: inputting the first target feature value into a trained decision tree to obtain the first probability value, and the trained decision tree is determined based on the information gain or information gain ratio corresponding to the feature value of the sample set.

[0010] In one embodiment, obtaining a second probability value that the wearable device is in a wearing state based on the pulse wave signal includes: extracting a second target feature value based on the pulse wave signal, the second target feature value including the mean, standard deviation and kurtosis of the pulse wave signal; and determining the second probability value based on the second target feature value.

[0011] In one embodiment, obtaining the target probability value of the electronic device being in the wearing state according to the first probability value and the second probability value includes: obtaining a first weight value corresponding to the first probability value, and a second weight value corresponding to the second probability value; obtaining the target probability value according to the first probability value, the first weight value, the second probability value and the second weight value; before obtaining the target probability value according to the first probability value, the first weight value, the second probability value and the second weight value, the method also includes: when the first probability value does not reach the probability threshold, increasing the second weight value according to a preset weight step; when the second probability value does not reach the probability threshold, increasing the first weight value according to the preset weight step.

[0012] In one embodiment, the first temperature sensor is a barometer, and the photoelectric pulse sensor is a PPG detector.

[0013] In a second aspect, the present application provides an electronic device, comprising: a status data acquisition module, used to acquire temperature information collected by a temperature sensor of the electronic device and a pulse wave signal collected by a photoelectric pulse sensor, the temperature sensor comprising a first temperature sensor and a second temperature sensor, the first temperature sensor being used to detect ambient temperature, and the second temperature sensor being used to detect a surface temperature at a target position; a wearing status determination module, used to determine whether the electronic device is in a wearing state or a non-wearing state based on the ambient temperature, the surface temperature and the pulse wave signal.

[0014] In a third aspect, the present application provides an electronic device, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the above-mentioned wearing status detection method based on instructions stored in the memory.

[0015] In a fourth aspect, the present application provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the steps of the above-mentioned wearing status detection method. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A schematic diagram of an application scenario of a wearing status detection method provided in an embodiment of the present application;

[0018] Figure 2 A flowchart of a wearing status detection method provided in an embodiment of the present application;

[0019] Figure 3 A flowchart of a wearing status detection method provided in an embodiment of the present application;

[0020] Figure 4 A flowchart of a wearing status detection method provided in an embodiment of the present application;

[0021] Figure 5 A flowchart of a wearing status detection method provided in an embodiment of the present application;

[0022] Figure 6 A flowchart of a wearing status detection method provided in an embodiment of the present application;

[0023] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0024] Figure 8 A schematic diagram of the structure of a computer device provided in an embodiment of the present application;

[0025] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

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

[0028] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0029] Figure 1A schematic diagram of an application scenario of a wearing status detection method provided in an embodiment of the present application, such as Figure 1 As shown, it includes an electronic device 10 and a user 20, wherein the electronic device 10 can be worn by the user 20. The electronic device 10 will perform a wearing state detection method for the user 20 in real time, so as to perform subsequent functions when it is detected that the electronic device 10 is worn on the user 20, wherein the subsequent functions can be cardiopulmonary health detection, sleep monitoring, and exercise consumption monitoring, etc.

[0030] Optionally, the electronic device 10 may include a photoelectric pulse sensor, a first temperature sensor and a second temperature sensor. The photoelectric pulse sensor may be used to collect pulse wave signals from the user; the first temperature sensor may be used to collect ambient temperature, and the electronic device 10 analyzes the collected ambient temperature to determine the current ambient temperature; the second temperature sensor is disposed on the side of the electronic device 10 that contacts the user 20, and is used to collect the surface temperature at the target position. When the electronic device 10 contacts the user 20, the second temperature sensor may collect the body surface temperature of the user 20.

[0031] Optionally, the above-mentioned photoelectric pulse sensor may include a light source module and a detection module, wherein the light source module may include an LED (Light-Emitting Diode) light source, an infrared light source, etc., for emitting a recording light signal of a specified frequency (such as green light, infrared light, etc.); the detection module may include a photoelectric sensor for receiving the above-mentioned recording light signal after being absorbed and reflected by the body surface of the user 20, and converting it into an electrical signal that can be analyzed and processed by a processor built into the electronic device 10. Exemplarily, when the electronic device 10 is in a wearable state, the electronic device 10 can be set close to the body surface of the user 20, and the photoelectric pulse sensor provided in the electronic device 10 can be provided on the side facing the body surface of the user 20. On this basis, the photoelectric pulse sensor can control its light source module to emit a recording light signal to the body surface of the user 20, and the recording light signal will also form a corresponding reflected light signal while being partially absorbed by the skin, blood, etc. It can be understood that, since the electronic device 10 is usually worn on the wrist of the user 20, the above-mentioned reflected light signal can reflect the situation that the recorded light signal is absorbed to different degrees due to the influence of the user 20's breathing, pulse, blood status, etc. Furthermore, the photoelectric pulse sensor can control its detection module to collect the above-mentioned reflected light signal, and use it as a pulse wave signal, and transmit it to the processor for analysis and processing after photoelectric conversion, filtering and noise reduction, etc., so as to obtain the cardiopulmonary health status of the user 20. In some embodiments, the above-mentioned photoelectric pulse sensor is, for example, a PPG sensor.

[0032] In the embodiment of the present application, when the electronic device 10 is in a worn state, the ambient temperature collected by the first temperature sensor, the surface temperature at the target position collected by the second temperature sensor, and the pulse wave signal collected by the photoelectric pulse sensor can be first obtained, thereby determining whether the electronic device is in a worn state or a non-worn state based on the ambient temperature, surface temperature, and pulse wave signal. Compared with the prior art, the present application combines the pulse wave signal with the ambient temperature and surface temperature to identify the wearing state, solves the problem of misidentification and failure to identify due to unstable signals when only PPG detection is used, improves the detection accuracy for the wearing state, improves the detection stability, and improves the user experience.

[0033] Exemplarily, the electronic device 10 may be any device or system including a photoelectric pulse sensor, a first temperature sensor and a second temperature sensor, such as a smart watch, a wristband, etc. It is understandable that Figure 1 The electronic device 10 shown is a smart watch, which is merely an example and does not constitute a limitation on the device type of the electronic device 10 in the embodiment of the present application.

[0034] Figure 2 A schematic diagram of the implementation flow of a wearing status detection method provided in an embodiment of the present application. The cardiopulmonary health detection method can be applied to Figure 1 The electronic device shown in the figure may include an electrical pulse sensor, a first temperature sensor and a second temperature sensor. Figure 2 As shown, the method may include the following steps:

[0035] Step S201, obtaining temperature information collected by a temperature sensor of the electronic device and a pulse wave signal collected by a photoelectric pulse sensor, wherein the temperature sensor includes a first temperature sensor and a second temperature sensor, the first temperature sensor is used to detect the ambient temperature, and the second temperature sensor is used to detect the surface temperature at the target position.

[0036] Optionally, the first temperature sensor can be arranged inside the electronic device to reduce the influence of the wearer of the electronic device on the first temperature sensor. The second temperature sensor can be arranged on the surface of the electronic device that contacts the user to accurately collect the surface temperature at the target position.

[0037] Preferably, the first temperature sensor may be a barometer, and the photoelectric pulse sensor may be a PPG detector, so that the ambient temperature is collected by using a barometer, which is less susceptible to the influence of the external environment and the detection is more stable.

[0038] Optionally, in order to eliminate the influence of interference and noise, after acquiring the above-mentioned pulse wave signal, each signal data in the pulse wave signal can be filtered to eliminate the noise signal in the pulse wave signal. For example, each signal data in the pulse wave signal can be subjected to sliding mean filtering to obtain low-pass filtered data, and then subsequent processing steps are performed on the filtered pulse wave signal.

[0039] Optionally, for the accuracy of data calculation, the time length of the above-mentioned temperature information and pulse wave signal should be the same. For example, the temperature information is the data collected by the first temperature sensor and the second temperature sensor within 3 seconds (s), and the pulse wave signal is also the data collected by the photoelectric pulse sensor within 3s.

[0040] It should be noted that the acquisition speed of the temperature sensor and the acquisition speed of the photoelectric pulse sensor are set by those skilled in the art according to actual needs. For example, the acquisition frequency of the temperature sensor is 1 Hz, and the acquisition frequency of the photoelectric pulse sensor is 25 Hz.

[0041] Step S202: determining whether the electronic device is in a worn state or a non-worn state according to the ambient temperature, the surface temperature and the pulse wave signal.

[0042] Optionally, the above-mentioned method for determining whether the electronic device is in the wearing state or the non-wearing state can be: obtaining the state result indicated by the ambient temperature and the surface temperature and the state result indicated by the pulse wave signal; when the state result indicated by the ambient temperature and the surface temperature is consistent with the state result indicated by the pulse wave signal, the electronic device is determined to be in the corresponding wearing state, otherwise the electronic device is determined to be in the non-wearing state. For example, when the ambient temperature and the surface temperature indicate that the electronic device is in the wearing state at this time, and the pulse wave signal also indicates that the electronic device is in the wearing state at this time, the electronic device is determined to be in the wearing state; or, when the ambient temperature and the surface temperature indicate that the electronic device is in the non-wearing state at this time, and the pulse wave signal also indicates that the electronic device is in the non-wearing state at this time, the electronic device is determined to be in the non-wearing state; or, when the ambient temperature and the surface temperature indicate that the electronic device is in the wearing state at this time, and the pulse wave signal indicates that the electronic device is in the non-wearing state at this time, the electronic device is determined to be in the non-wearing state; or, when the ambient temperature and the surface temperature indicate that the electronic device is in the wearing state at this time, and the pulse wave signal indicates that the electronic device is in the non-wearing state at this time, the electronic device is determined to be in the non-wearing state; or, when the ambient temperature and the surface temperature indicate that the electronic device is in the non-wearing state at this time, and the pulse wave signal indicates that the electronic device is in the wearing state at this time, the electronic device is determined to be in the non-wearing state.

[0043] Optionally, the state result indicated by the pulse wave signal may be obtained by: emitting a test light signal through a photoelectric pulse sensor, and judging whether the electronic device has been worn by the user based on a received reflected light signal corresponding to the test light signal. For example, after the photoelectric pulse sensor emits a test light signal and receives a reflected light signal, the electronic device may compare the reflected light signal with the test light signal, obtain a corresponding absorption spectrum, and judge whether the absorption spectrum matches a standard absorption spectrum when the electronic device is in a worn state. If they match, it can be determined that the electronic device is in a worn state.

[0044] Optionally, the state result indicated by the above-mentioned ambient temperature and surface temperature can be obtained in the following manner: after obtaining the ambient temperature and the surface temperature, if the difference between the ambient temperature and the surface temperature is within a difference threshold range, the electronic device is determined to be in a worn state; if the difference between the ambient temperature and the surface temperature is outside the difference threshold range, the electronic device is determined to be in a non-worn state. In some embodiments, the setting of the difference threshold range is set by those skilled in the art according to actual conditions, and this application does not limit it.

[0045] For example, since the outdoor temperature is usually around 26 degrees Celsius during most of the year, when the electronic device is in the wearable state, the surface temperature value A is usually around 36 degrees Celsius, and the ambient temperature value B is usually less than or equal to 26 degrees Celsius, then the difference BA between the ambient temperature and the surface temperature is usually less than or equal to -10 degrees Celsius, that is, the difference threshold range is less than or equal to -10 degrees Celsius. If the currently detected surface temperature value A is 35 degrees Celsius, and the ambient temperature value B is 12 degrees Celsius, then the difference BA between the ambient temperature and the surface temperature is -23, which is within the difference threshold range, and it is determined that the electronic device is in the wearable state; if the currently detected surface temperature value A is 15 degrees Celsius, and the ambient temperature value B is 12 degrees Celsius, then the difference BA between the ambient temperature and the surface temperature is -3, which is outside the difference threshold range, and it is determined that the electronic device is in the non-wearable state.

[0046] In the above-mentioned wearing state detection method, by obtaining the ambient temperature collected by the first temperature sensor, the surface temperature at the target position collected by the second temperature sensor, and the pulse wave signal collected by the photoelectric pulse sensor, it is determined whether the electronic device is in a wearing state or a non-wearing state according to the ambient temperature, the surface temperature, and the pulse wave signal. Compared with the prior art, the present application combines the pulse wave signal with the ambient temperature and the surface temperature to identify the wearing state, solves the problem of misidentification and non-identification caused by unstable signals when only PPG detection is used, improves the detection accuracy for the wearing state, improves the detection stability, and improves the user experience.

[0047] Figure 3A schematic diagram of the implementation flow of a wearing status detection method provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the method may include the following steps:

[0048] Step S301, obtaining temperature information collected by a temperature sensor of the electronic device and a pulse wave signal collected by a photoelectric pulse sensor, wherein the temperature sensor includes a first temperature sensor and a second temperature sensor, the first temperature sensor is used to detect the ambient temperature, and the second temperature sensor is used to detect the surface temperature at the target position.

[0049] It should be noted that the execution method of the above step S301 is consistent with that of step S201, which will not be repeated here.

[0050] Step S302: Obtain a first probability value that the electronic device is in a worn state according to the ambient temperature and the surface temperature.

[0051] Optionally, the first probability value may be calculated by extracting periodic features such as power band, average peak value, number of peaks, etc. for ambient temperature and surface temperature, training a machine learning model such as random forest, and calculating the cumulative probability, which is the first probability value. The calculation formula for the cumulative probability may be:

[0052]

[0053] In the above formula, P m For sample values ​​X less than or equal to X m The cumulative probability of ; m is the serial number of the sample value X after all samples are sorted from small to large; n is the total number of all samples.

[0054] Among them, when the cumulative probability is in the first probability interval, it is judged that the electronic device is in a worn state; when the cumulative probability is in the second probability interval, it is judged that the electronic device is in a non-worn state. Among them, the specific values ​​of the first probability interval and the second probability interval are set by technical personnel in this field according to actual needs, and this application does not impose any restrictions.

[0055] Step S303: obtaining a second probability value that the electronic device is in a worn state according to the pulse wave signal.

[0056] The calculation method of the second probability value may be consistent with the calculation method of the first probability value, which will not be described in detail here.

[0057] Step S304: Obtain a target probability value that the electronic device is in a worn state according to the first probability value and the second probability value.

[0058] Optionally, the target probability value can be obtained by taking an average value based on the first probability value and the second probability value, and taking the average value as the target probability value. For example, after obtaining a first probability value of 60% and a second probability value of 30%, the average value of the two, 45%, can be taken as the target probability value.

[0059] Step S305, determining whether the electronic device is in a worn state or a non-worn state according to the target probability value, wherein when the target probability value is greater than or equal to a threshold, determining that the electronic device is in a worn state.

[0060] Optionally, the threshold corresponding to the above target probability value can be pre-set by those skilled in the art, and the specific value is set by those skilled in the art according to actual needs, and this application does not limit it. For example, the threshold corresponding to the target probability value is 50%, and the target probability value calculated by the above steps S301 to S304 is 60%, that is, the target probability value is greater than the threshold, and it is determined that the electronic device is in a worn state.

[0061] Optionally, when the target probability value is less than a threshold value, it is determined that the electronic device is in a non-wearing state. For example, the threshold value corresponding to the target probability value is 50%, and the target probability value calculated by the above steps S301 to S304 is 45%, that is, the target probability value is less than the threshold value, and it is determined that the electronic device is in a non-wearing state.

[0062] In the above-mentioned wearing status detection method, by respectively calculating the first probability value and the second probability value, and then obtaining the target probability value based on the first probability value and the second probability value, it is possible to further effectively prevent misidentification caused by the instability of the data collected by the photoelectric pulse sensor, thereby improving the recognition accuracy.

[0063] Figure 4 A schematic diagram of the implementation flow of a wearing status detection method provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the method may include the following steps:

[0064] Step S401, obtaining temperature information collected by a temperature sensor of the electronic device and a pulse wave signal collected by a photoelectric pulse sensor, wherein the temperature sensor includes a first temperature sensor and a second temperature sensor, the first temperature sensor is used to detect ambient temperature, and the second temperature sensor is used to detect surface temperature at a target position.

[0065] Step S402, extracting a first target characteristic value based on the ambient temperature information and the body surface temperature information, the first target characteristic value includes the mean and standard deviation of the ambient temperature information, the mean and standard deviation of the body surface temperature information, and the mean of the temperature difference, where the temperature difference is the difference between the ambient temperature information and the body surface temperature information.

[0066] Step S403: determine a first probability value according to the first target feature value.

[0067] Optionally, the first probability value may be determined by inputting the first target feature value into a pre-trained first operation model, thereby outputting the first probability value.

[0068] Optionally, the training process of the first operation model may be:

[0069] Step S4031, constructing a training data set, the training data set includes environmental temperature information and body surface temperature information of different environments, different times, different genders and different ages.

[0070] Step S4032: Integrate the ambient temperature information and the body surface temperature information in the training data set and divide them into a first group of training data and a second group of training data.

[0071] Step S4033, extract target feature values ​​from the first set of training data to obtain target feature values, which include the mean and standard deviation of the ambient temperature information, the mean and standard deviation of the body surface temperature information, and the mean of the temperature difference, where the temperature difference is the difference between the ambient temperature information and the body surface temperature information.

[0072] Step S4034: Train the machine learning model using the target feature value and the wearing status corresponding to the ambient temperature information and the body surface temperature information to obtain a first operation model.

[0073] Step S4035, inputting the second set of training data into the first computing model to adjust the parameters of the model so that the accuracy of the first computing model meets the requirements.

[0074] For example, a public data set containing ambient temperature, skin temperature, age and gender is first selected, and data preprocessing is performed on the public data set. The minimum length of ambient temperature and skin temperature data is set to 5 minutes, and all records with shorter lengths are deleted. A filter is used to eliminate baseline drift and noise in ambient temperature and skin temperature.

[0075] The data subsets based on different wearing states are constructed through public data sets, and the data subsets are divided into two types (i.e., the first group of training data and the second group of training data). The first group of training data and the second group of training data are both used for feature engineering to extract features, as inputs to the machine learning model, to train model parameters and output classification results of wearing state division. The feature information extracted in the feature engineering includes but is not limited to the mean and standard deviation of the ambient temperature information, the mean and standard deviation of the body surface temperature information, and the mean of the temperature difference, the temperature difference is the difference between the ambient temperature information and the body surface temperature information, etc.

[0076] Optionally, the first operation model may be a decision tree classifier, that is, step S403 may include: inputting the first target feature value into a trained decision tree to obtain a first probability value, wherein the trained decision tree is determined based on the information gain or information gain ratio corresponding to the feature value of the sample set.

[0077] It should be understood that the above decision tree can assign training set samples of multi-dimensional features to different categories. When the decision tree performs a recursive process to represent classification and regression, each time the optimal feature in the feature set is selected, and the training set is classified and regressed according to the selected optimal feature, ensuring that the classification and regression process experienced by each training set sample is optimal. That is, the optimal classification and regression process is determined according to the information gain or information gain ratio corresponding to each feature value.

[0078] Assume that the proportion of the k-th sample in the sample data set D indicating that the electronic device is in the wearing state is p k , then the information gain Gain(D,a) of each eigenvalue is calculated as:

[0079]

[0080] Among them, Ent(D) is the information entropy of the corresponding eigenvalue in the wearing state, Ent(D v ) is the information entropy of the corresponding eigenvalue in the non-wearing state, and the calculation formula of the information entropy Ent(D) is:

[0081]

[0082] Among them, p k is the probability value of the feature value appearing when the electronic device is worn.

[0083] The calculation formula of the information gain ratio Gain_ratio(D,a) of each eigenvalue mentioned above is:

[0084]

[0085] in,

[0086] Step S404: obtaining a second probability value that the electronic device is in a worn state according to the pulse wave signal.

[0087] Step S405: Obtain a target probability value that the electronic device is in a worn state according to the first probability value and the second probability value.

[0088] Step S406, determining whether the electronic device is in a worn state or a non-worn state according to the target probability value, wherein when the target probability value is greater than or equal to a threshold, determining that the electronic device is in a worn state.

[0089] The execution steps of the above steps S404 to S406 are consistent with the execution steps of the above steps S303 to S305, and will not be repeated here.

[0090] In the above-mentioned wearing status detection method, by extracting the first target characteristic value from the ambient temperature information and the body surface temperature information, the first probability value can be determined according to the first target characteristic value by machine learning, thereby further saving computing resources and improving computing efficiency.

[0091] Figure 5 A schematic diagram of the implementation flow of a wearing status detection method provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the method may include the following steps:

[0092] Step S501, obtaining temperature information collected by a temperature sensor of the electronic device and a pulse wave signal collected by a photoelectric pulse sensor, wherein the temperature sensor includes a first temperature sensor and a second temperature sensor, the first temperature sensor is used to detect the ambient temperature, and the second temperature sensor is used to detect the surface temperature at the target position.

[0093] Step S502: Obtain a first probability value that the electronic device is in a worn state according to the ambient temperature and the surface temperature.

[0094] The execution method of the above steps S501 and S502 may be consistent with the execution method of the above steps S301 and S302, and will not be repeated here.

[0095] Step S503: extracting a second target characteristic value according to the pulse wave signal, wherein the second target characteristic value includes the mean, standard deviation and kurtosis of the pulse wave signal.

[0096] Step S504: determine a second probability value according to the second target feature value.

[0097] Optionally, the second probability value may be determined by inputting the second target feature value into a pre-trained second operation model, thereby outputting the second probability value.

[0098] Optionally, the training process of the second operation model may be:

[0099] Step S5041, constructing a training data set, the training data set includes pulse wave signals of different environments, different times, different genders and different ages.

[0100] Step S5042, dividing the pulse wave signal in the training data set into a first group of training data and a second group of training data.

[0101] Step S5043, extracting target feature values ​​from the first set of training data to obtain target feature values, where the target feature values ​​include the mean, standard deviation and kurtosis of the pulse wave signal.

[0102] Step S5044: Train the machine learning model using the target feature value and the wearing status corresponding to the pulse wave signal to obtain a second operation model.

[0103] Step S5045, inputting the second set of training data into the second computing model to adjust the parameters of the model so that the accuracy of the second computing model meets the requirements.

[0104] For example, a public dataset containing PPG, age and gender is first selected, and data preprocessing is performed on the public dataset. The minimum length of PPG data is set to 5 minutes, and all records with shorter lengths are deleted. A fourth-order Butterworth bandpass filter is used to eliminate baseline drift and high-frequency noise in the PPG signal, and the passband frequency of the PPG signal is 0.5-8Hz.

[0105] The data subsets based on different wearing states are constructed through public data sets, and the data subsets are divided into two types (i.e., the first group of training data and the second group of training data). The first group of training data and the second group of training data are both used for feature engineering to extract features, as inputs to the machine learning model, to train model parameters and output classification results of wearing state division. The feature information extracted in feature engineering includes but is not limited to the mean, standard deviation and kurtosis of the pulse wave signal.

[0106] Optionally, the second operation model may be a decision tree classifier, that is, step S504 may include: inputting the second target feature value into a trained decision tree to obtain a second probability value, wherein the trained decision tree is determined based on the information gain or information gain ratio corresponding to the feature value of the sample set.

[0107] Step S505: Obtain a target probability value that the electronic device is in a worn state according to the first probability value and the second probability value.

[0108] Step S506, determining whether the electronic device is in a worn state or a non-worn state according to the target probability value, wherein when the target probability value is greater than or equal to a threshold value, determining that the electronic device is in a worn state.

[0109] The execution method of the above steps S505 to S506 may be consistent with the execution method of the above steps S304 to S305, and will not be repeated here.

[0110] In the above-mentioned wearing status detection method, by extracting the second target characteristic value from the pulse wave signal, the second probability value can be determined according to the second target characteristic value by machine learning, thereby further saving computing resources and improving computing efficiency.

[0111] Figure 6 A schematic diagram of the implementation flow of a wearing status detection method provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the method may include the following steps:

[0112] Step S601, obtaining temperature information collected by a temperature sensor of the electronic device and a pulse wave signal collected by a photoelectric pulse sensor, wherein the temperature sensor includes a first temperature sensor and a second temperature sensor, the first temperature sensor is used to detect the ambient temperature, and the second temperature sensor is used to detect the surface temperature at the target position.

[0113] Step S602: Obtain a first probability value that the electronic device is in a worn state according to the ambient temperature and the surface temperature.

[0114] Step S603: obtaining a second probability value that the electronic device is in a worn state according to the pulse wave signal.

[0115] The execution method of the above steps S601 to S603 is consistent with the execution method of the above steps S301 to S303, and will not be repeated here.

[0116] Step S604: Obtain a first weight value corresponding to the first probability value and a second weight value corresponding to the second probability value.

[0117] Optionally, the first weight value and the second weight value may be pre-set by those skilled in the art, and the specific values ​​are set by those skilled in the art according to actual needs, and this application does not impose any limitation thereto.

[0118] Step S605, obtaining a target probability value according to the first probability value, the first weight value, the second probability value and the second weight value.

[0119] The specific calculation formula of the above target probability value adopts conventional technical means, and the target probability value can be obtained by adding the first probability value according to the first weight value and the second probability value according to the second weight value.

[0120] Optionally, after obtaining the first probability value and the second probability value, the first weight value and the second weight value can be adjusted based on the comparison between the first probability value and the second probability value and the probability threshold, respectively. For example, when the first probability value does not reach the probability threshold, the second weight value is increased according to a preset weight step; when the second probability value does not reach the probability threshold, the first weight value is increased according to a preset weight step, so as to prevent misidentification caused by inaccurate recognition of the photoelectric pulse sensor during strenuous exercise of the user.

[0121] Exemplarily, the initial first weight value and the second weight value are both 5, the probability threshold is set to 50%, and the preset weight step is 2. After obtaining a first probability value of 60% and a second probability value of 30%, because the second probability value does not reach the probability threshold, the first weight value is increased by a weight step of 2, that is, the increased first weight value becomes 7, and the target probability value is calculated according to the increased first weight value; after obtaining a first probability value of 30% and a second probability value of 60%, because the first probability value does not reach the probability threshold, the second weight value is increased by a weight step of 2, that is, the increased second weight value becomes 7, and the target probability value is calculated according to the increased second weight value.

[0122] Step S606, determining whether the electronic device is in a worn state or a non-worn state according to the target probability value, wherein when the target probability value is greater than or equal to a threshold, determining that the electronic device is in a worn state.

[0123] The execution method of the above step S606 is consistent with the execution method of the above step S305, which will not be repeated here.

[0124] In the above-mentioned wearing status detection method, by setting the first weight value corresponding to the first probability value and the second weight value corresponding to the second probability value, the first probability value is added according to the first weight value, and the second probability value is added according to the second weight value, so as to obtain the target probability value. Therefore, by adjusting the first weight value and the second weight value, different emphases can be achieved on the ambient temperature, surface temperature and pulse wave signal, so that technicians can formulate different calculation strategies according to different usage scenarios to further improve the recognition accuracy.

[0125] It should be understood that although Figure 1 to Figure 6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 to Figure 6At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0126] Based on the foregoing embodiments, an embodiment of the present application provides an electronic device, in which each module included in the electronic device and each unit included in each module can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0127] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the electronic device may include:

[0128] The state data acquisition module 701 is used to acquire temperature information collected by a temperature sensor of the electronic device and a pulse wave signal collected by a photoelectric pulse sensor, wherein the temperature sensor includes a first temperature sensor and a second temperature sensor, wherein the first temperature sensor is used to detect the ambient temperature and the second temperature sensor is used to detect the surface temperature at the target position;

[0129] The wearing state determination module 702 is used to determine whether the electronic device is in a wearing state or a non-wearing state according to the ambient temperature, the surface temperature and the pulse wave signal.

[0130] In one implementation manner, the wearing state determination module 702 may include:

[0131] A first probability value obtaining submodule, used to obtain a first probability value that the electronic device is in a wearing state according to the ambient temperature and the surface temperature;

[0132] A second probability value obtaining submodule, used to obtain a second probability value that the electronic device is in a wearing state according to the pulse wave signal;

[0133] A target probability value obtaining submodule, used to obtain a target probability value that the electronic device is in a wearing state according to the first probability value and the second probability value;

[0134] The wearing state judgment submodule is used to determine whether the electronic device is in a wearing state or a non-wearing state according to a target probability value, wherein when the target probability value is greater than or equal to a threshold value, it is determined that the electronic device is in a wearing state.

[0135] In one implementation manner, the first probability value obtaining submodule may include:

[0136] A first target characteristic value extraction unit is used to extract a first target characteristic value according to the ambient temperature information and the body surface temperature information, wherein the first target characteristic value includes a mean and a standard deviation of the ambient temperature information, a mean and a standard deviation of the body surface temperature information, and a mean of a temperature difference, wherein the temperature difference is a difference between the ambient temperature information and the body surface temperature information;

[0137] The first probability value determining unit is used to determine a first probability value according to a first target feature value.

[0138] In one implementation manner, the first probability value determining unit may include:

[0139] The decision tree judgment subunit is used to input the first target feature value into the trained decision tree to obtain a first probability value, and the trained decision tree is determined according to the information gain or information gain ratio corresponding to the feature value of the sample set.

[0140] In one implementation manner, the second probability value obtaining submodule may include:

[0141] A second target characteristic value extraction unit, used to extract a second target characteristic value according to the pulse wave signal, wherein the second target characteristic value includes a mean value, a standard deviation and a kurtosis of the pulse wave signal;

[0142] The second probability value determining unit is used to determine a second probability value according to a second target feature value.

[0143] In one implementation manner, the target probability value obtaining submodule may include:

[0144] A weight value obtaining unit, used to obtain a first weight value corresponding to the first probability value, and a second weight value corresponding to the second probability value;

[0145] The target probability value obtaining submodule is further used to obtain the target probability value according to the first probability value, the first weight value, the second probability value and the second weight value;

[0146] In this embodiment, the electronic device may further include:

[0147] A second weight value increasing module, used for increasing the second weight value according to a preset weight step when the first probability value does not reach the probability threshold;

[0148] The first weight value increasing module is used to increase the first weight value according to a preset weight step when the second probability value does not reach the probability threshold.

[0149] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0150] It should be noted that in the embodiments of this application Figure 7 The division of modules in the electronic device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.

[0151] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0152] The embodiment of the present application provides a computer device, which may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a wearing state detection method is implemented.

[0153] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.

[0154] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.

[0155] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0156] In one embodiment, the electronic device provided by the present application can be implemented in the form of a computer program, which can be used in Figure 8 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the electronic device. The computer program composed of various program modules enables the processor to execute the steps of the wearing state detection method of each embodiment of the present application described in this specification.

[0157] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0158] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in the present application. The electronic device may include at least one processor; and at least one memory connected to the processor in communication, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the instructions in the present specification. Figure 1 to Figure 6 The embodiment shown provides a wearing status detection method.

[0159] The electronic device may be a smart electronic device such as a smart phone, a tablet computer or a laptop computer, and the present embodiment does not limit the form of the electronic device.

[0160] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 110. In other embodiments of the present invention, the electronic device 110 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0161] The processor 111 may include one or more processing units, for example, the processor 111 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0162] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0163] The processor 111 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 111 is a cache memory. The memory may store instructions or data that the processor 111 has just used or cyclically used. If the processor 111 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 111, and thus improves the efficiency of the system.

[0164] The processor 111 executes various functional applications and data processing by running the programs stored in the internal memory 121, such as implementing the present invention. Figure 1 to Figure 6 The embodiment shown provides a wearing status detection method.

[0165] The wireless communication function of the electronic device 110 can be implemented through the antenna 1, the antenna 2, the smart card 150, the modem processor and the baseband processor.

[0166] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 110 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0167] The electronic device 110 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 111 may include one or more GPUs, which execute program instructions to generate or change display information.

[0168] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 110 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0169] The electronic device 110 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0170] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0171] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 110 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0172] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 110 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0173] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 110 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 111 executes various functional applications and data processing of the electronic device 110 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0174] The first temperature sensor 130 is disposed inside the electronic device and can be used to collect the ambient temperature.

[0175] The second temperature sensor 140 is disposed on the surface of the electronic device on the side in contact with the user, and can be used to collect the surface temperature at the target position.

[0176] The photoelectric pulse sensor 170 is disposed on the surface of the electronic device on the side in contact with the user, and can be used to collect pulse wave signals.

[0177] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0178] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0179] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0180] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.

[0181] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0182] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0183] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0184] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0185] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0186] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0187] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

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

Claims

1. A wearing status detection method, characterized in that: Applied to electronic equipment, the method comprises: Acquire temperature information collected by a temperature sensor of the electronic device and a pulse wave signal collected by a photoelectric pulse sensor, wherein the temperature sensor includes a first temperature sensor and a second temperature sensor, wherein the first temperature sensor is used to detect an ambient temperature, and the second temperature sensor is used to detect a surface temperature at a target position; According to the ambient temperature, the surface temperature and the pulse wave signal, it is determined whether the electronic device is in a worn state or a non-worn state.

2. The method according to claim 1, characterized in that The step of determining whether the electronic device is in a worn state or a non-worn state according to the ambient temperature, the surface temperature, and the pulse wave signal includes: Obtaining, according to the ambient temperature and the surface temperature, a first probability value of the electronic device being in the wearing state; Obtaining, according to the pulse wave signal, a second probability value that the electronic device is in the wearing state; Obtaining a target probability value of the electronic device being in the wearing state according to the first probability value and the second probability value; It is determined that the electronic device is in the wearing state or the non-wearing state according to the target probability value, wherein when the target probability value is greater than or equal to a threshold, it is determined that the electronic device is in the wearing state.

3. The method according to claim 2, characterized in that The obtaining, according to the ambient temperature and the surface temperature, a first probability value of the electronic device being in the wearing state comprises: Extracting a first target characteristic value according to the ambient temperature information and the body surface temperature information, the first target characteristic value comprising a mean and a standard deviation of the ambient temperature information, a mean and a standard deviation of the body surface temperature information, and a mean of a temperature difference, wherein the temperature difference is a difference between the ambient temperature information and the body surface temperature information; The first probability value is determined according to the first target feature value.

4. The method according to claim 3, characterized in that The determining the first probability value according to the first target feature value includes: The first target feature value is input into a trained decision tree to obtain the first probability value, wherein the trained decision tree is determined according to the information gain or information gain ratio corresponding to the feature value of the sample set.

5. The method according to claim 2, characterized in that The step of obtaining, according to the pulse wave signal, a second probability value that the wearable device is in a wearing state comprises: Extracting a second target characteristic value according to the pulse wave signal, wherein the second target characteristic value includes a mean, a standard deviation, and a kurtosis of the pulse wave signal; The second probability value is determined according to the second target feature value.

6. The method according to claim 2, characterized in that The obtaining, according to the first probability value and the second probability value, a target probability value of the electronic device being in the wearing state comprises: Obtaining a first weight value corresponding to the first probability value and a second weight value corresponding to the second probability value; Obtaining the target probability value according to the first probability value, the first weight value, the second probability value, and the second weight value; Before obtaining the target probability value according to the first probability value, the first weight value, the second probability value and the second weight value, the method further includes: When the first probability value does not reach the probability threshold, increasing the second weight value according to a preset weight step; When the second probability value does not reach the probability threshold, the first weight value is increased according to the preset weight step.

7. The method according to any one of claims 1 to 6, characterized in that: The first temperature sensor is a barometer, and the photoelectric pulse sensor is a PPG detector.

8. An electronic device, characterized in that: The electronic device comprises: a state data acquisition module, used to acquire temperature information collected by a temperature sensor of the electronic device and a pulse wave signal collected by a photoelectric pulse sensor, wherein the temperature sensor includes a first temperature sensor and a second temperature sensor, wherein the first temperature sensor is used to detect an ambient temperature, and the second temperature sensor is used to detect a surface temperature at a target position; The wearing state determination module is used to determine whether the electronic device is in a wearing state or a non-wearing state according to the ambient temperature, the surface temperature and the pulse wave signal.

9. An electronic device, characterized in that: The electronic device comprises: Memory; and a processor coupled to the memory, wherein the processor is configured to execute the method according to any one of claims 1 to 7 based on instructions stored in the memory.

10. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Method and system for detecting wearing environment of wearable device

    CN119279550A

  • Wearable device wearing environment detection method and system

    CN119279550B

  • Abnormal event detection method and device and terminal equipment

    CN120121577A

  • A method, apparatus, and terminal device for detecting abnormal events.

    CN120121577B