CN112690758B - Data processing method and device, terminal equipment and computer readable storage medium - Google Patents

Data processing method and device, terminal equipment and computer readable storage medium Download PDF

Info

Publication number
CN112690758B
CN112690758B CN202011532251.6A CN202011532251A CN112690758B CN 112690758 B CN112690758 B CN 112690758B CN 202011532251 A CN202011532251 A CN 202011532251A CN 112690758 B CN112690758 B CN 112690758B
Authority
CN
China
Prior art keywords
data
sensor
target data
terminal equipment
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011532251.6A
Other languages
Chinese (zh)
Other versions
CN112690758A (en
Inventor
胡凯雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Optical Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Optical Technology Co Ltd filed Critical Goertek Optical Technology Co Ltd
Priority to CN202011532251.6A priority Critical patent/CN112690758B/en
Publication of CN112690758A publication Critical patent/CN112690758A/en
Application granted granted Critical
Publication of CN112690758B publication Critical patent/CN112690758B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6801Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
    • A61B5/6844Monitoring or controlling distance between sensor and tissue

Landscapes

  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Physics & Mathematics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The application discloses a data processing method, a data processing device, terminal equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring first data of the terminal equipment in a first wearing state based on a first sensor, acquiring second data of the terminal equipment in the first wearing state based on a second sensor, determining first target data based on the first data, and determining second target data based on the second data; acquiring third data of the terminal equipment in a second wearing state based on the first sensor, acquiring fourth data of the terminal equipment in the second wearing state based on the second sensor, determining third target data based on the third data, and determining fourth target data based on the fourth data; first reference data for the first sensor is determined based on the first target data and the third target data, and second reference data for the second sensor is determined based on the second target data and the fourth target data. The method and the device improve the accuracy of the sensor reference data.

Description

Data processing method and device, terminal equipment and computer readable storage medium
Technical Field
The present application relates to the field of data processing and wearable smart device technologies, and in particular, to a data processing method and apparatus, a terminal device, and a computer-readable storage medium.
Background
At present, a wearing detection state detection method mainly includes that an IR sensor and a CAP sensor are arranged in an area where a terminal device is in contact with the skin of a user, different measurement data are output according to the IR sensor and the CAP sensor when the user wears and takes off a wearable device, and whether the wearable device is in a wearing state currently can be judged according to reference data of the IR sensor and the CAP sensor and calibration of a living body algorithm. However, at present, the reference data of the IR sensor and the CAP sensor are obtained by sampling a small number of people in the early stage, and due to the limitation of the sampled people, and the data collected by each user through the IR sensor and the CAP sensor are different, the accuracy of the reference data of the IR sensor and the CAP sensor is low.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The present application mainly aims to provide a data processing method, an apparatus, a terminal device and a computer-readable storage medium, and aims to improve the accuracy of reference data of an IR sensor and a CAP sensor.
In order to achieve the above object, an embodiment of the present application provides a data processing method applied to a wearable terminal device, including:
acquiring first data of a terminal device in a first wearing state based on a first sensor, acquiring second data of the terminal device in the first wearing state based on a second sensor, determining corresponding first target data based on the first data, and determining corresponding second target data based on the second data;
acquiring third data of the terminal equipment in a second wearing state based on the first sensor, acquiring fourth data of the terminal equipment in the second wearing state based on the second sensor, determining corresponding third target data based on the third data, and determining corresponding fourth target data based on the fourth data;
first reference data for the first sensor is determined based on the first target data and the third target data, and second reference data for the second sensor is determined based on the second target data and the fourth target data.
Optionally, the step of determining first reference data for the first sensor based on the first target data and the third target data comprises:
calculating the variance of the first target data and the third target data to obtain a corresponding first variance value, and detecting whether the first variance value is smaller than or equal to a preset variation value;
if the first variance value is detected to be smaller than or equal to the preset variation value, comparing the first target data with the third target data to obtain a corresponding comparison result;
determining first baseline data for the first sensor based on the comparison.
Optionally, the step of determining first reference data of the first sensor based on the comparison result comprises:
if the comparison result is that the first target data is larger than the third target data, determining the third target data as first reference data of the first sensor;
and if the comparison result is that the first target data is determined to be smaller than the third target data, determining the first target data as first reference data of the first sensor.
Optionally, after the step of detecting whether the first variance value is smaller than or equal to a preset variation value, the method further includes:
if the first variance value is detected to be larger than the preset change value, re-acquiring first data of the terminal equipment in a first wearing state based on the first sensor, and re-acquiring third data of the terminal equipment in a second wearing state based on the first sensor;
and calculating variance based on the re-acquired first data and the re-acquired third data to obtain a corresponding second variance value, and performing numerical comparison on the second variance value and the preset variation value.
Optionally, the step of determining corresponding first target data based on the first data includes:
calculating the variance of the first data to obtain a third variance value of a corresponding quantity, and detecting whether the quantity is greater than a preset quantity;
and if the number is detected to be larger than the preset number, determining the minimum variance value in the third variance values, and determining the minimum variance value as the first target data.
Optionally, after the step of detecting whether the number is greater than the preset number, the method further includes:
and if the number is smaller than or equal to the preset number, re-acquiring the data of the terminal equipment in the first wearing state based on the first sensor.
Optionally, after the steps of determining the first reference data of the first sensor based on the first target data and the third target data, and determining the second reference data of the second sensor based on the second target data and the fourth target data, the method further includes:
starting terminal equipment calibration, outputting first output data of the terminal equipment based on the first sensor, and outputting second output data of the terminal equipment based on the second sensor;
determining a device state of the terminal device based on the first output data, the second output data, the first reference data and the second reference data.
An embodiment of the present application further provides a data processing apparatus, where the data processing apparatus is applied to a wearable terminal device, and the data processing apparatus includes:
the terminal equipment comprises an acquisition module, a transmission module and a control module, wherein the acquisition module is used for acquiring first data of the terminal equipment in a first wearing state based on a first sensor and acquiring second data of the terminal equipment in the first wearing state based on a second sensor;
a determining module, configured to determine corresponding first target data based on the first data, and determine corresponding second target data based on the second data;
the acquisition module is further used for acquiring third data of the terminal equipment in a second wearing state based on the first sensor and acquiring fourth data of the terminal equipment in the second wearing state based on the second sensor;
the determining module is further configured to determine corresponding third target data based on the third data, and determine corresponding fourth target data based on the fourth data;
the determination module is further configured to determine first baseline data for the first sensor based on the first target data and the third target data, and determine second baseline data for the second sensor based on the second target data and the fourth target data.
The embodiment of the present application further provides a terminal device, where the terminal device includes a memory, a processor, and a data processing program stored in the memory and running on the processor, and the data processing program, when executed by the processor, implements the steps of the data processing method described above.
The embodiment of the present application also provides a computer-readable storage medium, where a data processing program is stored on the computer-readable storage medium, and when the data processing program is executed by a processor, the steps of the data processing method are implemented as described above.
According to the data processing method and device, the terminal device and the computer readable storage medium, first data of the terminal device in a first wearing state are collected based on the first sensor, second data of the terminal device in the first wearing state are collected based on the second sensor, first target data are determined based on the first data, and second target data are determined based on the second data; acquiring third data of the terminal equipment in a second wearing state based on the first sensor, acquiring fourth data of the terminal equipment in the second wearing state based on the second sensor, determining third target data based on the third data, and determining fourth target data based on the fourth data; first reference data for the first sensor is determined based on the first target data and the third target data, and second reference data for the second sensor is determined based on the second target data and the fourth target data. According to the method and the device, in the process of acquiring the data of the terminal equipment by the sensor, the acquired data are the data of a wearer corresponding to the terminal equipment, and are not acquired through crowd sampling, so that the acquired data have pertinence. In addition, in the process of determining the first reference data of the first sensor and the second reference data of the second sensor, the data of the terminal equipment in different states are acquired through the sensors, and the first reference data of the first sensor and the second reference data of the second sensor are calculated through different states, so that the accuracy of the reference data of the sensors is improved.
Drawings
Fig. 1 is a schematic structural diagram of a terminal device in a hardware operating environment according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram of a first embodiment of the data processing method of the present application;
FIG. 3 is a schematic flow chart illustrating a first embodiment of a data processing method according to the present application;
FIG. 4 is a schematic flow chart diagram illustrating another embodiment of a method for processing data according to the present application;
fig. 5 is a functional block diagram of a processing device for processing data of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The main solution of the embodiment of the application is as follows: acquiring first data of the terminal equipment in a first wearing state based on a first sensor, acquiring second data of the terminal equipment in the first wearing state based on a second sensor, determining first target data based on the first data, and determining second target data based on the second data; acquiring third data of the terminal equipment in a second wearing state based on the first sensor, acquiring fourth data of the terminal equipment in the second wearing state based on the second sensor, determining third target data based on the third data, and determining fourth target data based on the fourth data; first reference data for the first sensor is determined based on the first target data and the third target data, and second reference data for the second sensor is determined based on the second target data and the fourth target data. According to the method and the device, in the process of acquiring the data of the terminal equipment by the sensor, the acquired data are the data of a wearer corresponding to the terminal equipment, and are not acquired through crowd sampling, so that the acquired data have pertinence. In addition, in the process of determining the first reference data of the first sensor and the second reference data of the second sensor, the data of the terminal equipment in different states are acquired through the sensors, and the first reference data of the first sensor and the second reference data of the second sensor are calculated through different states, so that the accuracy of the reference data of the sensors is improved.
Specifically, referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal device in a hardware operating environment according to an embodiment of the present application.
As shown in fig. 1, the terminal device may include: a processor 1001, such as a CPU (Central Processing Unit), a memory 1005, a network interface 1004, a user interface 1003, and a communication bus 1002. A communication bus 1002 is used to enable connection communications between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a keyboard (board), and the user interface 1003 may optionally include a standard wired interface (e.g., a USB (Universal Serial Bus) interface), and a wireless interface (e.g., a bluetooth interface). The network interface 1004 may include a standard wired interface, a Wireless interface (e.g., WI-FI (Wireless-Fidelity)) interface, a bluetooth interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001. Optionally, the terminal device may further include an RF (Radio Frequency) circuit, a sensor, a WiFi module, and the like.
Those skilled in the art will appreciate that the terminal device configuration shown in fig. 1 is not intended to be limiting of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include an operating system, a network communication module, a user interface module, and a processing program of data therein. Among them, the operating system is a program that manages and controls hardware and software resources of the terminal device, a processing program that supports data, and the execution of other software or programs.
The processor 1001 may be configured to invoke a handler for data stored in the memory 1005 and perform the following operations:
acquiring first data of a terminal device in a first wearing state based on a first sensor, acquiring second data of the terminal device in the first wearing state based on a second sensor, determining corresponding first target data based on the first data, and determining corresponding second target data based on the second data;
acquiring third data of the terminal equipment in a second wearing state based on the first sensor, acquiring fourth data of the terminal equipment in the second wearing state based on the second sensor, determining corresponding third target data based on the third data, and determining corresponding fourth target data based on the fourth data;
first reference data for the first sensor is determined based on the first target data and the third target data, and second reference data for the second sensor is determined based on the second target data and the fourth target data.
Further, the processor 1001 may call a handler of the data stored in the memory 1005, and also perform the following operations:
calculating the variance of the first target data and the third target data to obtain a corresponding first variance value, and detecting whether the first variance value is smaller than or equal to a preset variation value;
if the first variance value is detected to be smaller than or equal to the preset variation value, comparing the first target data with the third target data to obtain a corresponding comparison result;
determining first baseline data for the first sensor based on the comparison.
Further, the processor 1001 may call a handler of the data stored in the memory 1005, and also perform the following operations:
if the comparison result is that the first target data is larger than the third target data, determining the third target data as first reference data of the first sensor;
and if the comparison result is that the first target data is determined to be smaller than the third target data, determining the first target data as first reference data of the first sensor.
Further, the processor 1001 may call a handler of the data stored in the memory 1005, and also perform the following operations:
if the first variance value is detected to be larger than the preset change value, re-acquiring first data of the terminal equipment in a first wearing state based on the first sensor, and re-acquiring third data of the terminal equipment in a second wearing state based on the first sensor;
and calculating variance based on the re-acquired first data and the re-acquired third data to obtain a corresponding second variance value, and performing numerical comparison on the second variance value and the preset variation value.
Further, the processor 1001 may call a handler of the data stored in the memory 1005, and also perform the following operations:
calculating the variance of the first data to obtain a third variance value of a corresponding quantity, and detecting whether the quantity is greater than a preset quantity;
and if the number is detected to be larger than the preset number, determining the minimum variance value in the third variance values, and determining the minimum variance value as the first target data.
Further, the processor 1001 may call a handler of the data stored in the memory 1005, and also perform the following operations:
and if the number is smaller than or equal to the preset number, re-acquiring the data of the terminal equipment in the first wearing state based on the first sensor.
Further, the processor 1001 may call a handler of the data stored in the memory 1005, and also perform the following operations:
starting terminal equipment calibration, outputting first output data of the terminal equipment based on the first sensor, and outputting second output data of the terminal equipment based on the second sensor;
determining a device state of the terminal device based on the first output data, the second output data, the first reference data and the second reference data.
The method comprises the steps that first data of the terminal equipment in a first wearing state are collected based on a first sensor, second data of the terminal equipment in the first wearing state are collected based on a second sensor, first target data are determined based on the first data, and second target data are determined based on the second data; acquiring third data of the terminal equipment in a second wearing state based on the first sensor, acquiring fourth data of the terminal equipment in the second wearing state based on the second sensor, determining third target data based on the third data, and determining fourth target data based on the fourth data; first reference data for the first sensor is determined based on the first target data and the third target data, and second reference data for the second sensor is determined based on the second target data and the fourth target data. According to the method and the device, in the process of acquiring the data of the terminal equipment by the sensor, the acquired data are the data of a wearer corresponding to the terminal equipment, and are not acquired through crowd sampling, so that the acquired data have pertinence. In addition, in the process of determining the first reference data of the first sensor and the second reference data of the second sensor, the data of the terminal equipment in different states are acquired through the sensors, and the first reference data of the first sensor and the second reference data of the second sensor are calculated through different states, so that the accuracy of the reference data of the sensors is improved.
Based on the foregoing terminal device architecture, but not limited to the foregoing architecture, the embodiments of the present application provide an embodiment of a data processing method, and it should be noted that although a logical order is shown in a flowchart, in some data, the steps shown or described may be completed in an order different from that here.
The method of the embodiment of the present application is exemplified by taking a wearable terminal device as an execution subject.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the data processing method of the present application. The data processing method comprises the following steps:
step S10, collecting first data of the terminal device in the first wearing state based on the first sensor, collecting second data of the terminal device in the first wearing state based on the second sensor, determining corresponding first target data based on the first data, and determining corresponding second target data based on the second data.
It should be noted that sensors are disposed in the area where the wearable terminal device (terminal device) contacts with the skin of the wearer, wherein the terminal device includes, but is not limited to, a wearable smart watch, a smart bracelet, and a smart collar, and the sensors include, but are not limited to, an IR (Infrared) sensor and a CAP sensor.
When a user wears the terminal device, whether the terminal device is worn for the first time is detected, that is, whether the terminal device has already performed reference data calibration, if the terminal device is detected to be worn for the first time, that is, the reference data calibration is not performed, the terminal device displays corresponding prompt information in a display screen to prompt the user to wear the terminal device in a tight manner, that is, the terminal device prompts the user to buckle the buckle ring or the buckle section of the terminal device in a preset ring number or a preset section number, wherein the preset ring number or the preset section number is set by a technician according to actual conditions, the embodiment is not limited, and for example, the terminal device prompts the user to buckle the buckle ring in any one of the ring numbers from 2 to 4. And if the terminal equipment is detected not to be worn for the first time, namely the reference data calibration is already carried out, the terminal equipment directly carries out the state calibration of the terminal equipment.
After the terminal device detects that a user wears the terminal device in a tight wearing state, first data of the terminal device in the tight wearing state (a first wearing state) are collected through an IR sensor (a first sensor) for a preset duration, and second data of the terminal device in the tight wearing state are collected through a CAP sensor (a second sensor) for the preset duration. It should be noted that the preset time period is set according to an actual situation, and the embodiment is not limited. Within a preset time, the IR sensor and the CAP sensor need to continuously acquire data of corresponding times to obtain data sets of corresponding quantity, and the number of the data in each data set is not limited. And then, the terminal equipment performs variance calculation on the data in each data group to obtain variance data of the number corresponding to the data acquired by the IR sensor and the variance data of the number corresponding to the data acquired by the CAP sensor. And then, the terminal equipment detects whether the number of the variance data is larger than a preset number, if the number of the variance data detected by the terminal equipment is larger than the preset number, the terminal equipment compares the numerical values of all the variance data, determines the minimum variance data in the variance data collected by the IR sensor as the reference data of the tight wearing state of the IR sensor, namely the first target data of the IR sensor, and determines the minimum variance data in the variance data collected by the CAP sensor as the reference data of the tight wearing state of the CAP sensor, namely the second target data of the CAP sensor. The preset number is set according to the requirement, and the embodiment is not limited. If the terminal equipment detects that the number of the variance data is smaller than or equal to the preset number, the terminal equipment acquires the first data of the terminal equipment in the tight wearing state again through the IR sensor, acquires the second data of the terminal equipment in the tight wearing state through the CAP sensor, and calculates the variance of the acquired first data and the acquired second data to obtain corresponding variance data. And then, the terminal equipment detects the number of the variance data obtained by the first data and the second data which are collected again until the number of the variance data obtained by the terminal equipment detecting the first data and the second data is larger than the preset number.
It can be understood that the IR sensor and the CAP sensor continuously acquire data of corresponding times, a variance data is correspondingly obtained from a data set acquired each time, and whether the number of the variance data is greater than a preset number or not is detected, and it can also be understood that whether the acquisition times of the detection data is greater than the preset number or not, where the preset number corresponds to the preset number.
Further, the step S10, determining, based on the first data, that the corresponding first target data includes:
step S101, calculating the variance of the first data to obtain a third variance value of a corresponding quantity, and detecting whether the quantity is greater than a preset quantity;
step S102, if it is detected that the number is greater than the preset number, determining a minimum variance value among the third variance values, and determining the minimum variance value as the first target data.
Specifically, the terminal device performs variance calculation on data in each data group acquired by the IR sensor to obtain variance data of a number corresponding to the data acquired by the IR sensor, and detects whether the number of the variance data acquired by the IR sensor is greater than a preset number, if the terminal device detects that the number of the variance data acquired by the IR sensor is greater than the preset number, the terminal device performs numerical value comparison on all the variance data, and determines the minimum variance data in the variance data acquired by the IR sensor as the first target data of the IR sensor. Second target data for the CAP sensor is obtained in a similar manner.
Further, after the step S101, the method further includes:
step S103, if the number is detected to be smaller than or equal to the preset number, the data of the terminal equipment in the first wearing state are collected again based on the first sensor.
Specifically, if the terminal device detects that the number of the variance data is smaller than or equal to the preset number, the IR sensor is used for re-acquiring the first data of the terminal device in the tight wearing state, and the variance calculation is performed on the first data re-acquired by the IR sensor to obtain the corresponding variance data. And then, the terminal equipment detects the number of the variance data acquired after the IR sensor acquires again until the terminal equipment detects that the number of the variance data acquired after the IR sensor acquires again is larger than the preset number. The data in CAP sensors works the same way.
Step S20, collecting third data of the terminal device in the second wearing state based on the first sensor, collecting fourth data of the terminal device in the second wearing state based on the second sensor, determining corresponding third target data based on the third data, and determining corresponding fourth target data based on the fourth data.
After the preset duration, the terminal device displays corresponding prompt information in a display screen to prompt a user to change the terminal device from being worn in a tight manner to being worn comfortably, namely, the terminal device prompts the user to change the buckle ring or the buckle section of the terminal device from the first ring number or the first section number to the second ring number or the second section number, for example, the terminal device prompts the user to change the buckle ring from 2 to 4 to any ring number from 5 to 7.
After the terminal device detects that the user changes the terminal device from being worn in a tight manner to being worn in a comfortable manner, third data of the terminal device in a comfortable wearing state (a second wearing state) are collected through the IR sensor for the duration preset time, and fourth data of the terminal device in the comfortable wearing state are collected through the CAP sensor for the duration preset time. Within a preset time, the IR sensor and the CAP sensor need to continuously acquire data of corresponding times to obtain data sets of corresponding quantity, and the number of the data in each data set is not limited. And then, the terminal equipment performs variance calculation on the data in each data group to obtain variance data of the number corresponding to the data acquired by the IR sensor and the variance data of the number corresponding to the data acquired by the CAP sensor. And then, the terminal equipment detects whether the number of the variance data is larger than a preset number, if the number of the variance data detected by the terminal equipment is larger than the preset number, the terminal equipment compares the numerical values of all the variance data, determines the minimum variance data in the variance data collected by the IR sensor as the reference data of the comfortable wearing state of the IR sensor, namely the third target data of the IR sensor, and determines the minimum variance data in the variance data collected by the CAP sensor as the reference data of the comfortable wearing state of the CAP sensor, namely the fourth target data of the CAP sensor. If the terminal equipment detects that the number of the variance data is smaller than or equal to the preset number, the terminal equipment acquires the third data of the terminal equipment in a comfortable wearing state again through the IR sensor, acquires the fourth data of the terminal equipment in the comfortable wearing state through the CAP sensor, and calculates the variance of the third data and the fourth data acquired again to obtain the corresponding variance data. And then, the terminal equipment detects the number of variance data obtained by the third data and the fourth data which are collected again until the number of the variance data obtained by the terminal equipment detecting the third data and the fourth data is larger than the preset number.
Step S30, determining first reference data for the first sensor based on the first target data and the third target data, and determining second reference data for the second sensor based on the second target data and the fourth target data.
After the terminal device determines the reference data (first target data) of the IR sensor in the tight wearing state and the reference data (third target data) of the IR sensor in the comfortable wearing state, and the reference data (second target data) of the CAP sensor in the tight wearing state and the reference data (fourth target data) of the reference data in the comfortable wearing state, the reference data of the IR sensor in the tight wearing state and the reference data of the IR sensor in the comfortable wearing state are subjected to variance calculation to obtain a variance value of the IR sensor in the tight wearing state and the IR sensor in the comfortable wearing state, and the variance value is compared with a preset variation value, wherein the preset variation value is set according to requirements, and the present embodiment is not limited.
The terminal device detects whether the variance value is smaller than or equal to a preset change value, and if the terminal device detects that the variance value is smaller than or equal to the preset change value, the terminal device determines the data with the minimum value in the reference data of the IR sensor in the tight wearing state and the reference data of the IR sensor in the comfortable wearing state as the final reference data (first reference data) of the IR sensor. If the terminal equipment detects that the variance value is larger than the preset change value, the terminal equipment acquires the data of the terminal equipment in the tight wearing state and the data of the terminal equipment in the comfortable wearing state again through the IR sensor.
Similarly, the terminal device performs variance calculation on the reference data of the CAP sensor in the tight wearing state and the reference data of the CAP sensor in the comfortable wearing state to obtain the variance value of the CAP sensor in the tight wearing state and the comfortable wearing state, and compares the variance value with the preset variation value in value. The terminal equipment detects whether the variance value is smaller than or equal to a preset change value, and if the variance value detected by the terminal equipment is smaller than or equal to the preset change value, the terminal equipment determines the data with the minimum value in the reference data of the CAP sensor in the tight wearing state and the reference data of the CAP sensor in the comfortable wearing state as the final reference data (second reference data) of the CAP sensor. If the terminal equipment detects that the variance value is larger than the preset change value, the terminal equipment acquires data of the terminal equipment in a tight wearing state and a comfortable wearing state again through the CAP sensor.
And after the terminal equipment obtains the final reference data of the IR sensor and the final reference data of the CAP sensor, the final reference data of the IR sensor and the final reference data of the CAP sensor are stored in a database for subsequent direct use, and the steps are not repeated.
Further, the step S30, the determining the first reference data of the first sensor based on the first target data and the third target data includes:
step S301, calculating a variance of the first target data and the third target data to obtain a corresponding first variance value, and detecting whether the first variance value is smaller than or equal to a preset variation value;
step S302, if the first variance value is detected to be smaller than or equal to the preset variation value, comparing the first target data with the third target data to obtain a corresponding comparison result;
step S303, determining first reference data of the first sensor based on the comparison result.
Specifically, the terminal device performs variance calculation on the first target data and the third target data to obtain a variance value between the tight wearing state and the comfortable wearing state of the IR sensor, and detects whether the variance value is smaller than or equal to a preset variation value, and if the variance value is smaller than or equal to the preset variation value, the terminal device performs value comparison on the first target data and the third target data to obtain a comparison result corresponding to the value comparison between the first target data and the third target data. The data in CAP sensors works the same way.
Further, the step S303 includes:
step S3031, if the comparison result is that the first target data is greater than the third target data, determining the third target data as the first reference data of the first sensor;
step S3032, if the comparison result is that it is determined that the first target data is smaller than the third target data, determining the first target data as the first reference data of the first sensor.
Specifically, if the terminal device determines that the comparison result is that the first target data is greater than the third target data, the third target data is determined as the reference data of the IR sensor. And if the terminal equipment determines that the comparison result is that the first target data is smaller than the third target data, the terminal equipment determines the first target data as the reference data of the IR sensor. The data in CAP sensors works the same way.
Further, after the step S302, the method includes:
step S304, if the first variance value is detected to be larger than the preset change value, re-acquiring first data of the terminal equipment in a first wearing state based on the first sensor, and re-acquiring third data of the terminal equipment in a second wearing state based on the first sensor;
step S305, performing variance calculation based on the re-acquired first data and the re-acquired third data to obtain a corresponding second variance value, and performing numerical comparison between the second variance value and the preset variation value.
Specifically, if the terminal device detects that the variance value of the IR sensor in the tight wearing state and the comfortable wearing state is greater than the preset change value, the terminal device re-acquires the data of the terminal device in the tight wearing state and the data of the terminal device in the comfortable wearing state through the IR sensor, then, the terminal device performs variance calculation on the data of the terminal device in the tight wearing state acquired again by the IR sensor and the data of the terminal device in the comfortable wearing state acquired again to obtain a variance value obtained after new data acquisition, and performs numerical comparison on the variance value obtained after the new data acquisition and the preset change value until the variance value obtained after the data acquisition is less than or equal to the preset change value. The data in CAP sensors works the same way.
Further, as shown in fig. 3, fig. 3 is a schematic implementation flow diagram of a first embodiment of the data processing method of the present application. The terminal device sends or/and displays prompt information to prompt a user to carry out tight wearing on the terminal device, data of the terminal device in a tight wearing state are collected through an IR sensor and a CAP sensor respectively, then variances are calculated respectively (the variance calculation is carried out on first data and the variance calculation is carried out on second data), whether the frequency of collecting data is larger than 3 times (the preset frequency is 3 times for example, and is not limited to only 3 times) is detected, it can be understood that whether the number of the variances obtained through calculation is larger than 3 (the preset number corresponds to the preset frequency) or not is detected, if the frequency of collecting data detected by the terminal device is smaller than or equal to 3 times, the terminal device collects the data in the tight wearing state again through the IR sensor and the CAP sensor respectively, and then calculates the variances until the frequency of detecting the collected data is larger than 3 times, i.e. the number of calculated variances is larger than 3. If the number of times of detecting the acquired data by the terminal equipment is more than 3, namely the number of the calculated variances is more than 3, the terminal equipment determines the minimum variance (the first target data and the second target data) in all the variances. And sending or/and displaying prompt information after a preset time (generally 30 seconds), and prompting a user to comfortably wear the terminal equipment, wherein the step of obtaining the third target data and the fourth target data is the same as the step of obtaining the first target data and the second target data. Then, the terminal device calculates variance of the first target data and the third target data of the IR sensor to obtain a variance value, and detects whether the variance value is smaller than a certain variation (preset variation), if the terminal device detects that the variance value is smaller than the certain variation, the terminal device determines that the minimum value of the reference data (first target data) of the IR sensor in a tight wearing state and the reference data (third target data) of the IR sensor in a comfortable wearing state is the final reference data (first reference data) of the IR sensor, and similarly, the terminal device may obtain the final reference data (second reference data) of the CAP sensor, and finally, the terminal device stores the final reference data of the IR sensor and the final reference data of the CAP sensor.
The embodiment collects first data of the terminal equipment in a first wearing state based on a first sensor, collects second data of the terminal equipment in the first wearing state based on a second sensor, determines first target data based on the first data, and determines second target data based on the second data; acquiring third data of the terminal equipment in a second wearing state based on the first sensor, acquiring fourth data of the terminal equipment in the second wearing state based on the second sensor, determining third target data based on the third data, and determining fourth target data based on the fourth data; first reference data for the first sensor is determined based on the first target data and the third target data, and second reference data for the second sensor is determined based on the second target data and the fourth target data. In the process of acquiring the data of the terminal equipment by the sensor, the acquired data is the data of a wearer corresponding to the terminal equipment, and is not acquired by crowd sampling, so that the acquired data has pertinence. In addition, in the process of determining the first reference data of the first sensor and the second reference data of the second sensor, the data of the terminal equipment in different states are acquired through the sensors, and the first reference data of the first sensor and the second reference data of the second sensor are calculated through different states, so that the accuracy of the reference data of the sensors is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of another embodiment of the data processing method of the present application. After the step S30, the method further includes:
step S40, starting calibration of the terminal device, outputting first output data of the terminal device based on the first sensor, and outputting second output data of the terminal device based on the second sensor;
step S50, determining the device status of the terminal device based on the first output data, the second output data, the first reference data and the second reference data.
After the terminal equipment obtains the reference data of the IP sensor and the reference data of the CAP sensor, a self-calibration mode of the equipment state of the terminal equipment is started, when a user wears or takes off the wearable terminal equipment, first output data corresponding to the terminal equipment are output through the IP sensor, and second output data corresponding to the terminal equipment are output through the CAP sensor. Then, the terminal equipment compares the first output data output by the IP sensor with the reference data of the IP sensor, and compares the second output data output by the CAP sensor with the reference data of the CAP sensor, and determines that the equipment state of the terminal equipment is a wearing state or an off state.
The embodiment starts calibration of the terminal equipment, outputs first output data of the terminal equipment based on a first sensor, and outputs second output data of the terminal equipment based on a second sensor; and determining the equipment state of the terminal equipment based on the first output data, the second output data, the first reference data and the second reference data. In the embodiment, the device state of the terminal device is determined by the reference data of the IP sensor and the reference data of the CAP sensor in the first embodiment, and the device state of the terminal device is accurately calibrated.
Referring to fig. 5, fig. 5 is a functional block diagram of a processing apparatus for processing data of the present application. The data processing device is applied to a wearable terminal device and comprises:
the terminal device comprises an acquisition module 10, a display module and a control module, wherein the acquisition module is used for acquiring first data of the terminal device in a first wearing state based on a first sensor and acquiring second data of the terminal device in the first wearing state based on a second sensor;
a determining module 20, configured to determine corresponding first target data based on the first data, and determine corresponding second target data based on the second data;
the acquisition module 10 is further configured to acquire third data of the terminal device in the second wearing state based on the first sensor, and acquire fourth data of the terminal device in the second wearing state based on the second sensor;
the determining module 20 is further configured to determine corresponding third target data based on the third data, and determine corresponding fourth target data based on the fourth data;
the determination module 20 is further configured to determine first baseline data for the first sensor based on the first target data and the third target data, and determine second baseline data for the second sensor based on the second target data and the fourth target data.
The function implementation of each module in the data processing apparatus corresponds to each step in the data processing method embodiment, and the function and implementation process thereof are not described in detail here.
The present invention also provides a computer-readable storage medium having stored thereon a processing program of data, which when executed by a processor implements the steps of the processing method of data according to any one of the above embodiments.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the data processing method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, apparatus, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, apparatus, article, or device that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation manner in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of software goods stored in a computer-readable storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and including instructions for enabling a terminal device to complete the methods according to the embodiments of the present application.

Claims (9)

1. A data processing method applied to a wearable terminal device, the data processing method comprising:
acquiring first data of a terminal device in a first wearing state based on a first sensor, acquiring second data of the terminal device in the first wearing state based on a second sensor, determining corresponding first target data based on the first data, and determining corresponding second target data based on the second data;
acquiring third data of the terminal equipment in a second wearing state based on the first sensor, acquiring fourth data of the terminal equipment in the second wearing state based on the second sensor, determining corresponding third target data based on the third data, and determining corresponding fourth target data based on the fourth data;
determining first baseline data for the first sensor based on the first target data and the third target data, and second baseline data for the second sensor based on the second target data and the fourth target data;
wherein the step of determining first reference data for the first sensor based on the first target data and the third target data comprises:
calculating the variance of the first target data and the third target data to obtain a corresponding first variance value, and detecting whether the first variance value is smaller than or equal to a preset variation value;
if the first variance value is detected to be smaller than or equal to the preset variation value, comparing the first target data with the third target data to obtain a corresponding comparison result;
determining first baseline data for the first sensor based on the comparison.
2. The method of processing data of claim 1, wherein the step of determining first reference data for the first sensor based on the comparison result comprises:
if the comparison result is that the first target data is larger than the third target data, determining the third target data as first reference data of the first sensor;
and if the comparison result is that the first target data is determined to be smaller than the third target data, determining the first target data as first reference data of the first sensor.
3. The data processing method of claim 1, wherein after the step of detecting whether the first variance value is less than or equal to a preset variation value, the method further comprises:
if the first variance value is detected to be larger than the preset change value, re-acquiring first data of the terminal equipment in a first wearing state based on the first sensor, and re-acquiring third data of the terminal equipment in a second wearing state based on the first sensor;
and calculating variance based on the re-acquired first data and the re-acquired third data to obtain a corresponding second variance value, and performing numerical comparison on the second variance value and the preset variation value.
4. The method of processing data of claim 1, wherein the step of determining corresponding first target data based on the first data comprises:
calculating the variance of the first data to obtain a third variance value of a corresponding quantity, and detecting whether the quantity is greater than a preset quantity;
and if the number is detected to be larger than the preset number, determining the minimum variance value in the third variance values, and determining the minimum variance value as the first target data.
5. The data processing method of claim 4, wherein after the step of detecting whether the number is greater than a preset number, the method further comprises:
and if the number is smaller than or equal to the preset number, re-acquiring the data of the terminal equipment in the first wearing state based on the first sensor.
6. The method of processing data of any of claims 1 to 5, wherein the step of determining first reference data for the first sensor based on the first target data and the third target data and determining second reference data for the second sensor based on the second target data and the fourth target data is followed by further comprising:
starting terminal equipment calibration, outputting first output data of the terminal equipment based on the first sensor, and outputting second output data of the terminal equipment based on the second sensor;
determining a device state of the terminal device based on the first output data, the second output data, the first reference data and the second reference data.
7. A data processing apparatus, wherein the data processing apparatus is applied to a wearable terminal device, and the data processing apparatus comprises:
the terminal equipment comprises an acquisition module, a transmission module and a control module, wherein the acquisition module is used for acquiring first data of the terminal equipment in a first wearing state based on a first sensor and acquiring second data of the terminal equipment in the first wearing state based on a second sensor;
a determining module, configured to determine corresponding first target data based on the first data, and determine corresponding second target data based on the second data;
the acquisition module is further used for acquiring third data of the terminal equipment in a second wearing state based on the first sensor and acquiring fourth data of the terminal equipment in the second wearing state based on the second sensor;
the determining module is further configured to determine corresponding third target data based on the third data, and determine corresponding fourth target data based on the fourth data;
the determination module is further configured to determine first baseline data for the first sensor based on the first target data and the third target data, and determine second baseline data for the second sensor based on the second target data and the fourth target data;
the determining module is further configured to perform variance calculation on the first target data and the third target data to obtain corresponding first variance values, and detect whether the first variance values are smaller than or equal to preset variation values; if the first variance value is detected to be smaller than or equal to the preset variation value, comparing the first target data with the third target data to obtain a corresponding comparison result; determining first baseline data for the first sensor based on the comparison.
8. A terminal device, characterized in that the terminal device comprises a memory, a processor and a processing program of data stored on the memory and running on the processor, the processing program of data implementing the steps of the processing method of data according to any one of claims 1 to 6 when executed by the processor.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a processing program of data, which when executed by a processor implements the steps of the processing method of data according to any one of claims 1 to 6.
CN202011532251.6A 2020-12-21 2020-12-21 Data processing method and device, terminal equipment and computer readable storage medium Active CN112690758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011532251.6A CN112690758B (en) 2020-12-21 2020-12-21 Data processing method and device, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011532251.6A CN112690758B (en) 2020-12-21 2020-12-21 Data processing method and device, terminal equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112690758A CN112690758A (en) 2021-04-23
CN112690758B true CN112690758B (en) 2022-04-22

Family

ID=75510631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011532251.6A Active CN112690758B (en) 2020-12-21 2020-12-21 Data processing method and device, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112690758B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105167761A (en) * 2015-09-22 2015-12-23 深圳市元征科技股份有限公司 Wearing state detecting method and device for intelligent wearable equipment
CN106291121A (en) * 2016-07-29 2017-01-04 歌尔股份有限公司 The wearing state detection method of a kind of wearable device and wearable device
CN106524408A (en) * 2016-10-28 2017-03-22 美的集团武汉制冷设备有限公司 Wearing state detecting method of intelligent wearable device, detection device and air conditioner
CN106767996A (en) * 2016-12-15 2017-05-31 北京小米移动软件有限公司 Mouth mask wears detection method, device and mouth mask
CN107907916A (en) * 2017-10-20 2018-04-13 歌尔科技有限公司 A kind of wearing state detection method and device of intelligent wearable device
CN108139790A (en) * 2016-09-20 2018-06-08 华为技术有限公司 Smart machine wears detection method and smart machine
CN110750131A (en) * 2019-09-18 2020-02-04 维沃移动通信有限公司 Temperature control method and device, terminal equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9113807B2 (en) * 2010-12-29 2015-08-25 St. Jude Medical, Atrial Fibrillation Division, Inc. Dynamic adaptive respiration compensation with automatic gain control
CN105997094B (en) * 2016-05-09 2019-03-29 北京科技大学 A kind of gesture recognition device and method
CN109922726A (en) * 2016-09-20 2019-06-21 夏普株式会社 State obtains computer, state adquisitiones and information processing system
CN110737026A (en) * 2019-10-31 2020-01-31 歌尔科技有限公司 equipment wearing detection method, device, equipment and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105167761A (en) * 2015-09-22 2015-12-23 深圳市元征科技股份有限公司 Wearing state detecting method and device for intelligent wearable equipment
CN106291121A (en) * 2016-07-29 2017-01-04 歌尔股份有限公司 The wearing state detection method of a kind of wearable device and wearable device
CN108139790A (en) * 2016-09-20 2018-06-08 华为技术有限公司 Smart machine wears detection method and smart machine
CN106524408A (en) * 2016-10-28 2017-03-22 美的集团武汉制冷设备有限公司 Wearing state detecting method of intelligent wearable device, detection device and air conditioner
CN106767996A (en) * 2016-12-15 2017-05-31 北京小米移动软件有限公司 Mouth mask wears detection method, device and mouth mask
CN107907916A (en) * 2017-10-20 2018-04-13 歌尔科技有限公司 A kind of wearing state detection method and device of intelligent wearable device
CN110750131A (en) * 2019-09-18 2020-02-04 维沃移动通信有限公司 Temperature control method and device, terminal equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于旋转模式的移动设备佩戴位置识别方法;时岳,喻纯,史元春;《软件学报》;20131231;第24卷(第8期);全文 *

Also Published As

Publication number Publication date
CN112690758A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
US20210038113A1 (en) Physical parameter remote sensing system
EP2919434B1 (en) Method for determining data source
KR20190021113A (en) Electronic device and method for measuring stress thereof
CN111698601B (en) Bluetooth headset, and key sensitivity adjustment method, device and readable storage medium thereof
KR20190043319A (en) Electronic device and method for providing stress index corresponding to activity of user
CN112401838A (en) Method for detecting sleep state of wearable device and wearable device
CN112773341B (en) Information prompting method, device, system, storage medium and electronic equipment
CN110895509A (en) Test processing method and device, electronic equipment and storage medium
CN112690758B (en) Data processing method and device, terminal equipment and computer readable storage medium
CN111637975B (en) Wrist temperature measuring method and device, wearable device and storage medium
CN109074855B (en) Terminal device and information processing system
CN112902988A (en) Parameter calibration method, device, terminal and storage medium
CN107819933B (en) Message mode adjusting method and device
WO2020005016A1 (en) Method and system for conducting survey relating to urination, and non-transitory computer-readable recording medium
CN106445698A (en) Method and device for acquiring step counting data
CN112449297B (en) Method for detecting wearing state of earphone
JP4525294B2 (en) Operation count device and method
CN106293006B (en) Run the method, device and mobile terminal in Magnetic Sensor calibration algorithm library
CN112539763B (en) Motion state classification method, step counting device and readable storage medium
CN114061791A (en) Body temperature detection method, system and medium
JP7180358B2 (en) INFORMATION MANAGEMENT SYSTEM AND PAIRING METHOD OF MEASURING DEVICE AND INFORMATION TERMINAL
CN110599738A (en) Moving object monitoring method, device, equipment and system
CN109885165B (en) Game control method, device and computer readable storage medium
CN111163686A (en) Data processing device, data processing method, and data processing program
CN112528256B (en) Terminal device, control method thereof, and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221219

Address after: 266104 No. 500, Songling Road, Laoshan District, Qingdao, Shandong

Patentee after: GOERTEK TECHNOLOGY Co.,Ltd.

Address before: 261031 east of Dongming Road, north of Yuqing East Street, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronics office building)

Patentee before: GoerTek Optical Technology Co.,Ltd.