Intelligent wearable device data processing method and device and intelligent wearable device
By defining multiple data containers and data extraction instructions, smart wearable devices can efficiently manage and process data in different time periods, solving the problem of inefficient data management in the existing technology, realizing rapid data extraction and analysis, and improving user experience and application performance.
Patent Information
- Application Number
- CN202411071599.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-08
AI Technical Summary
Existing smart wearable devices are inefficient in data management and processing, requiring long-term traversal of data sets, occupying a large number of system resources, resulting in poor user experience, and complex determination of data type location and format, which increases system complexity and cost.
Define at least two data containers for storing data for different time periods, determine the data type and source container through data extraction instructions, extract and analyze data, provide multiple data interfaces for synchronous processing, reduce memory usage and improve data processing efficiency.
It improves the efficiency of data extraction and processing, reduces the complexity of runtime, optimizes the user experience, simplifies data management and query, and enhances application performance.
Smart Images

Figure CN118916415A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of smart devices, and specifically relates to a smart wearable device data processing method, device and smart wearable device. Background Art
[0002] Smart wearable devices are a type of wearable device that integrates electronic technology and sensors, and is designed to provide users with a variety of convenient functions and information interactions. They usually have various sensors and functions, such as for monitoring the user's physiological state, sports activities and other health-related data, and have good practicality in daily life.
[0003] However, there are some shortcomings in the smart wearable devices in the prior art. For example, the existing smart wearable devices have certain limitations in managing data. When users need to access data from a specific period, they usually need to traverse the entire data set. Extracting and processing data will take a longer time and more system resources, which will bring a greater burden on the running memory and reduce the efficiency of data query and processing.
[0004] In addition, smart wearable device systems often require more computing resources to determine the location and format of specific data types, which increases the complexity and cost of the system, increases the time and power consumption of data access, and results in a poor user experience. Summary of the invention
[0005] In order to overcome the defects of the prior art, the present invention proposes a data processing method for a smart wearable device, characterized in that the method comprises:
[0006] Defining at least two data containers for storing data of different periods in the smart wearable device;
[0007] In response to a data extraction instruction, determining the data type of the data to be extracted and the data container as the source of the data to be extracted based on the data extraction instruction;
[0008] Data of the data type is extracted from the corresponding data container, and the extracted data is analyzed to obtain an analysis result.
[0009] Specifically, the data extraction instruction is periodically issued by a terminal that has established a communication connection with the smart wearable device, and the method further includes:
[0010] The analysis result is presented to the user through the interface of the terminal.
[0011] Furthermore, each of the data containers is defined with an integer array having an array length of 24. When the data type of the data to be extracted is the number of steps, the “analyzing the extracted data to obtain an analysis result” includes:
[0012] Traversing the data, extracting the timestamp in the data to determine the time zone, and calling the step number extraction instruction in the data extraction instruction to extract the step number data to place into the corresponding integer array subscript;
[0013] Perform difference calculation on the step count data, sort the integer array in reverse order, and subtract the subscript data read in reverse order from the previous subscript data to obtain the actual step count at the current subscript time and use it as the step count data within the last hour;
[0014] The subscript data read in reverse order are subtracted from the previous subscript data one by one to obtain the step count data per hour.
[0015] Furthermore, each of the data containers is defined with a floating point array having an array length of 24. When the data type of the data to be extracted is body temperature, the “analyzing the extracted data to obtain an analysis result” includes:
[0016] Traversing the data, extracting the timestamp in the data to determine the time zone, and calling the temperature extraction instruction in the data extraction instruction to extract the original temperature data;
[0017] The original temperature data is converted into a percentage, and the converted temperature data is stored in a floating point number array of a corresponding time subscript as body temperature data, so as to obtain an analysis result based on the body temperature data.
[0018] Preferably, the method further comprises:
[0019] Setting several types of data as common data, and setting different data identifiers for each type of data in the common data;
[0020] When the data type of the data to be extracted is the general data, the “determining the data type of the data to be extracted based on the data extraction instruction” includes:
[0021] The data is traversed, a timestamp in the data is extracted to determine a time zone, and the type of the general data to be extracted is determined according to a data identifier in the data extraction instruction.
[0022] Furthermore, a pressure data container is further defined in the smart wearable device. When the data type of the data to be extracted is pressure, the “analyzing the extracted data to obtain an analysis result” includes:
[0023] The data is retrieved from back to front in reverse order, and a number of sampling points containing pressure values are extracted and placed into the pressure data container, so as to obtain analysis results based on each of the sampling points; each of the sampling points contains pressure value, pressure level, and pressure sampling time information.
[0024] Furthermore, a sleep data array and a sleep preprocessing container are further defined in the smart wearable device. When the data type of the data to be extracted is sleep data, the “analyzing the extracted data to obtain an analysis result” includes:
[0025] Traversing the data, extracting the timestamp in the data and comparing it with the preset time period, and extracting the data belonging to the preset time period and placing it into the sleep preprocessing container as the data to be detected;
[0026] Traversing the data to be detected in chronological order to filter out first data indicating that the first user enters a sleep state and second data indicating that the first user exits a sleep state, defining the time corresponding to the first data as a sleep start time, and defining the time corresponding to the second data as a sleep end time;
[0027] All the data to be detected within the time from the sleep start time to the sleep end time are saved in the sleep data array as sleep data, so as to obtain analysis results based on the sleep data.
[0028] Preferably, at least two data synchronization interfaces corresponding to different data containers are set in the smart wearable device, and the "extracting data of the data type from the corresponding data container" is achieved through the data synchronization interface corresponding to the data container.
[0029] The present invention also proposes a data processing device for a smart wearable device, the device comprising:
[0030] A definition module, used to define at least two data containers for storing data of different periods in the smart wearable device;
[0031] A determination module, configured to determine, in response to a data extraction instruction, a data type of the data to be extracted and the data container as a source of the data to be extracted based on the data extraction instruction;
[0032] The processing module is used to extract data of the data type from the corresponding data container, and analyze the extracted data to obtain an analysis result.
[0033] The present invention also proposes a smart wearable device, which is used to implement the smart wearable device data processing method as described above.
[0034] The present invention has at least the following beneficial effects:
[0035] The solution proposed by the present invention is based on the singleton mode, which can reduce the memory occupied by the application and improve the application performance. The solution defines at least two data containers to store data of different periods, which can easily switch and manage data of different time periods, facilitate data extraction and analysis, determine the type and source of the data to be extracted by responding to the data extraction instruction, and can flexibly select to extract specific types of data according to user needs. The data extraction process is efficient and improves the customization and convenience of data processing.
[0036] Furthermore, the solution proposed in the present invention can unify the results of data collection and analysis of smart wearable devices, thereby efficiently completing the data required for user operations and interface drawing, and can quickly display multiple aspects of data to users at the same time. The solution provides multiple data interfaces and uses a single traversal method to process various data synchronously, reducing the time complexity brought by operation, improving data processing timeliness, and optimizing user experience.
[0037] Therefore, the present invention provides a data processing method and apparatus for a smart wearable device and a smart wearable device. The scheme proposed in the present invention can effectively manage data of different periods by defining different data containers, and is convenient for data extraction and analysis. The scheme can quickly determine the data type and source data container of the data to be extracted according to the data extraction instruction, thereby reducing the memory occupied by the operation, improving the application performance and data extraction and processing efficiency, and the analysis results obtained by analyzing the extracted data can help users better understand their own conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of 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 creative work.
[0039] Figure 1 A schematic diagram of a method flow of a smart wearable device data processing method provided in Example 1;
[0040] Figure 2 This is an example diagram of the framework flow of the smart wearable device data processing method provided in Example 1;
[0041] Figure 3 A schematic diagram of the module structure of the smart wearable device data processing device provided in Example 2.
[0042] Reference numerals
[0043] 10-definition module; 20-determination module; 30-processing module; 40-display module. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] Hereinafter, various embodiments of the present invention will be described more fully. The present invention may have various embodiments, and adjustments and changes may be made therein. However, it should be understood that there is no intention to limit the various embodiments of the present invention to the specific embodiments disclosed herein, but the present invention should be understood to cover all adjustments, equivalents and / or alternatives falling within the spirit and scope of the various embodiments of the present invention.
[0046] Hereinafter, the term "include" or "may include" used in various embodiments of the present invention indicates the presence of disclosed functions, operations or elements, and does not limit the addition of one or more functions, operations or elements. In addition, as used in various embodiments of the present invention, the terms "include", "have" and their cognates are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the presence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or the possibility of adding one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.
[0047] In various embodiments of the present invention, the expression "or" or "at least one of A or / and B" includes any combination or all combinations of the words listed at the same time. For example, the expression "A or B" or "at least one of A or / and B" may include A, may include B, or may include both A and B.
[0048] The expressions (such as "first", "second", etc.) used in various embodiments of the present invention may modify the various constituent elements in various embodiments, but may not limit the corresponding constituent elements. For example, the above expressions do not limit the order and / or importance of the elements. The above expressions are only used for the purpose of distinguishing an element from other elements. For example, the first user device and the second user device indicate different user devices, although both are user devices. For example, without departing from the scope of various embodiments of the present invention, the first element may be referred to as the second element, and similarly, the second element may also be referred to as the first element.
[0049] It should be noted that in the present invention, unless otherwise clearly specified and defined, the terms such as "installation", "connection", "fixation" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0050] In the present invention, those skilled in the art need to understand that the terms indicating orientation or positional relationship herein are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0051] The terms used in various embodiments of the present invention are only used for the purpose of describing specific embodiments and are not intended to limit various embodiments of the present invention. As used herein, the singular form is intended to also include the plural form, unless the context clearly indicates otherwise. Unless otherwise limited, all terms used here (including technical terms and scientific terms) have the same meaning as the meaning generally understood by those of ordinary skill in the art to which the various embodiments of the present invention belong. The terms (such as the terms defined in the dictionary generally used) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning, unless clearly defined in various embodiments of the present invention.
[0052] Example 1
[0053] See also Figure 1 , Figure 2 This embodiment proposes a method for processing data of a smart wearable device, the method comprising:
[0054] S100: defining at least two data containers for storing data of different periods in the smart wearable device.
[0055] In this embodiment, a first data container todayDataBeans for storing today's data and a second data container hi storyDataBeans for storing historical data are defined in the smart wearable device. The first data container and the second data container are used to store today's data and historical data, respectively, so that data management is clearer and facilitates subsequent data processing and display.
[0056] In other embodiments, data containers for storing other periods may also be defined, such as a data container for storing data for this week, a data container for storing data for last week, a data container for storing data for this month, and the like.
[0057] S200: In response to a data extraction instruction, determine the data type of the data to be extracted and the data container as the source of the data to be extracted based on the data extraction instruction.
[0058] It should be noted that each data container stores data of multiple different data types, which is used to provide a unified structure for data storage and transmission. The data container may include various health and sports data fields collected by the smart wearable device. In a specific embodiment, any data container stores data including data types such as step count stepCount, heart rate heartRate, blood oxygen bloodOxygen, heart rate variability heartRateVar i ab il ity, stress Index, body temperature temperature, sleep type sl eepType, time time, etc.
[0059] S300: extracting data of the data type from a corresponding data container, and analyzing the extracted data to obtain an analysis result.
[0060] In this embodiment, two data synchronization interfaces, setTodayDataBeans for corresponding to the first data container and setHistoryDataBeans for corresponding to the second data container, are set in the smart wearable device. The setTodayDataBeans data synchronization interface is used to extract the current day's data in the first data container, and the setHistoryDataBeans data synchronization interface is used to extract the historical data in the second data container.
[0061] Therefore, the method proposed in this embodiment adopts a singleton mode for data processing. Through step S300, it can ensure that there is only one data container instance in the process of extracting and analyzing data, effectively avoiding the problems of data redundancy and inconsistency, and simplifying the process of data management and access.
[0062] In a specific embodiment, after the user establishes a communication connection with the smart wearable device through the terminal, the latest data can be automatically obtained from the ring device according to the method proposed in this embodiment, thereby ensuring the real-time and accuracy of the data and enabling the user to understand his or her health and exercise status in a timely manner. In step S300, the terminal can synchronize the latest data obtained to the back-end server for storage and analysis, so that the back-end server can further process and analyze the data to provide more in-depth health and exercise recommendations, or for other purposes such as data mining and scientific research.
[0063] Exemplarily, after the user establishes a communication connection with the smart wearable device through a mobile phone, the mobile phone can read the data in todayDataBeans and / or hi storyDataBeans to display the user's own health and exercise data on the user interface. Such data can be displayed in charts, lists or other visual forms to facilitate the user to intuitively understand his or her health status; in addition, the user interface can also provide a series of operation options, allowing the user to perform operations such as data filtering, sorting, and exporting according to their needs. These operations can be implemented by calling the interface provided by the method proposed in this embodiment.
[0064] Furthermore, the method further comprises:
[0065] S400: Display the analysis result to the user through the terminal interface.
[0066] Specifically, the method proposed in this embodiment can summarize the analysis results of multiple data types into an interface for display to the user, thereby providing the user with intuitive and comprehensive data.
[0067] Exemplarily, the method proposed in this embodiment defines an integer array in the data container, the length of the array is set to 24, the array length 24 represents the number of hours in a day, and each element represents one hour of data;
[0068] When the data extraction instruction includes the step extraction instruction getStepCount, that is, when the data type of the data to be extracted is the step number, the data type of the data to be extracted is determined as the step number StepCount in step S200, and when it is determined based on the data extraction instruction that the data to be extracted is the data of the day in the first data container, the data in the first data container is extracted, otherwise the data in the second data container is extracted, and at this time, the "analyzing the extracted data to obtain the analysis result" in step S300 includes:
[0069] Traverse the data, extract the timestamp in the data to determine the time zone, and call the step extraction instruction in the data extraction instruction to extract the step data to place into the corresponding integer array subscript;
[0070] Perform difference calculation on the step data, sort the integer array in reverse order, and subtract the subscript data read in reverse order from the previous subscript data to get the actual number of steps at the current subscript time, that is, the step data within the last hour;
[0071] The subscript data read in reverse order are subtracted from the previous subscript data one by one to obtain the step count data per hour.
[0072] Preferably, the method proposed in this embodiment can also set several types of data as common data, and set different data identifiers for each type of data in the common data. For example, when the common data includes heart rate data, heart rate variability data, blood oxygen data and pressure data, the data identifier of the heart rate data can be set to 1, the heart rate variability data identifier can be set to 2, the blood oxygen data identifier can be set to 3, and the pressure data identifier can be set to 4;
[0073] In step S200, the data type of the data to be extracted is determined to be general data, and when it is determined based on the data extraction instruction that the data to be extracted is the data of the day in the first data container, the data in the first data container is extracted, otherwise the data in the second data container is extracted. At this time, the "determining the data type of the data to be extracted based on the data extraction instruction" in step S200 includes:
[0074] Traverse the data, extract the timestamp in the data to determine the time zone, and determine the type of general data to be extracted according to the data identifier in the data extraction instruction, that is: when the data identifier is 1, extract heart rate heartRate data, when the data identifier is 2, extract heart rate variability heartRateVar i ab il ity data, when the data identifier is 3, extract blood oxygen bloodOxygen data, and when the data identifier is 4, extract stress Index data.
[0075] After the type of the general data to be extracted is determined and the data is extracted in step S200, the data is stored in an array of corresponding time subscripts.
[0076] Exemplarily, the method proposed in this embodiment further defines a floating point number array in the data container, the length of the array is set to 24, the array length 24 represents the number of hours in a day, and each element represents one hour of data;
[0077] When the data extraction instruction includes the temperature extraction instruction getTemperature, that is, when the data type of the data to be extracted is body temperature, the data type of the data to be extracted is determined to be body temperature temperature in step S200, and when it is determined based on the data extraction instruction that the data to be extracted is the data of the day in the first data container, the data in the first data container is extracted, otherwise the data in the second data container is extracted, and at this time, the "analyzing the extracted data to obtain the analysis result" in step S300 includes:
[0078] Traverse the data, extract the timestamp in the data to determine the time zone, and call the temperature extraction instruction in the data extraction instruction to extract the original temperature data;
[0079] The original temperature data is converted into a percentage, and the converted temperature data is stored in a floating point array of a corresponding time subscript as body temperature data, so as to obtain an analysis result based on the body temperature data.
[0080] It should be noted that, in this embodiment, the original temperature data is 4-byte float data, and the original temperature data needs to be divided by 100 before being stored in the array.
[0081] It should also be noted that the integer array (i nt array) is used to store integer data types, that is, it can only store integer values. Each element of the i nt type occupies 4 bytes of memory space, and the data range that can be stored is -2147483648 to 2147483647; the floating-point array (fl oat array) is used to store floating-point data types, that is, it can store decimal values. Each element of the fl oat type occupies 4 bytes of memory space, and the data range that can be stored is ±3.40282347E+38F.
[0082] For example, the smart wearable device defines a pressure data type StressFaceData and defines a List <stressfacedata>As a pressure data container, the data extraction instruction includes a pressure extraction instruction, that is, when the data type of the data to be extracted is pressure, the data type of the data to be extracted is determined as body temperature StressFaceData in step S200, and when it is determined based on the data extraction instruction that the data to be extracted is the data of the day in the first data container, the data in the first data container is extracted, otherwise the data in the second data container is extracted, and at this time, the "analyzing the extracted data to obtain the analysis result" in step S300 includes:
[0083] The data is retrieved from back to front in reverse order, and a number of sampling points containing pressure values are extracted and placed into a pressure data container, so as to obtain analysis results based on each sampling point.
[0084] It should be noted that each sampling point includes pressure sampling information such as pressure value stressVa l ue, pressure level stressLevel, and pressure sampling time measureT ime.
[0085] Exemplarily, the method proposed in this embodiment further defines a sleep data array in the data container, and defines a sleep preprocessing container for storing and preprocessing sleep data. The data extraction instruction includes a sleep data extraction instruction, that is, when the data type of the data to be extracted is sleep data, when it is determined based on the data extraction instruction that the data to be extracted is the data of the day in the first data container, the data of the preset time period in the first data container is extracted, otherwise the data of the preset time period in the second data container is extracted. At this time, the "analyzing the extracted data to obtain the analysis result" described in step S300 includes:
[0086] Traverse the data, extract the timestamp in the data and compare it with the preset time period, and extract the data belonging to the preset time period and put it into the sleep preprocessing container as the data to be detected;
[0087] Traversing the data to be detected in chronological order to filter out the first data of the first user entering the sleep state and the second data of the first user escaping from the sleep state, defining the time corresponding to the first data as the sleep start time, and defining the time corresponding to the second data as the sleep end time;
[0088] All the data to be detected from the sleep start time to the sleep end time are saved in the sleep data array as sleep data, so as to obtain analysis results based on the sleep data.
[0089] In a specific embodiment, the preset time periods are 0-8 o'clock every day and 20-24 o'clock every day.
[0090] Example 2
[0091] See also Figure 3 This embodiment proposes a smart wearable device data processing device, which is used to implement the smart wearable device data processing method proposed in Example 1. The device includes:
[0092] A definition module 10, used to define at least two data containers for storing data of different periods in the smart wearable device;
[0093] A determination module 20, for determining, in response to a data extraction instruction, a data type of the data to be extracted and a data container as a source of the data to be extracted based on the data extraction instruction;
[0094] The processing module 30 is used to extract data of the data type from the corresponding data container, and analyze the extracted data to obtain an analysis result.
[0095] In this embodiment, the definition module 10 defines a first data container todayDataBeans for storing today's data and a second data container hi storyDataBeans for storing historical data in the smart wearable device. The first data container and the second data container are used to store today's data and historical data, respectively, so that data management is clearer and facilitates subsequent data processing and display.
[0096] In other embodiments, data containers for storing other periods may also be defined, such as a data container for storing data for this week, a data container for storing data for last week, a data container for storing data for this month, and the like.
[0097] In a specific embodiment, after the user establishes a communication connection with the smart wearable device through the terminal device, the latest data can be automatically obtained from the ring device according to the method proposed in this embodiment, thereby ensuring the real-time and accuracy of the data and enabling the user to understand his or her health and exercise status in a timely manner. The processing module 30 can synchronize the latest data obtained to the back-end server for storage and analysis, so that the back-end server can further process and analyze the data.
[0098] Furthermore, the device also includes:
[0099] The display module 40 is used to display the analysis results to the user through the terminal interface.
[0100] Example 3
[0101] This embodiment proposes a smart wearable device, which is used to implement the smart wearable device data processing method proposed in Embodiment 1.
[0102] Specifically, the smart wearable device proposed in this embodiment may include but is not limited to a smart watch, a smart bracelet and a smart ring.
[0103] In summary, the present invention provides a data processing method, device and smart wearable device for a smart wearable device. The scheme proposed in the present invention can effectively manage data of different periods by defining different data containers, which is convenient for data extraction and analysis. The scheme can quickly determine the data type and source data container of the data to be extracted according to the data extraction instruction, reduce the memory required for operation, improve application performance and data extraction and processing efficiency, and the analysis results obtained by analyzing the extracted data can help users better understand their own conditions.
[0104] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.< / stressfacedata>
Claims
1. A method for processing data of a smart wearable device, characterized in that: The method comprises: Defining at least two data containers for storing data of different periods in the smart wearable device; In response to a data extraction instruction, determining the data type of the data to be extracted and the data container as the source of the data to be extracted based on the data extraction instruction; Data of the data type is extracted from the corresponding data container, and the extracted data is analyzed to obtain an analysis result.
2. The smart wearable device data processing method according to claim 1, characterized in that: The data extraction instruction is periodically issued by a terminal that has established a communication connection with the smart wearable device, and the method further includes: The analysis result is presented to the user through the interface of the terminal.
3. The smart wearable device data processing method according to claim 1, characterized in that: An integer array with an array length of 24 is defined in each of the data containers. When the data type of the data to be extracted is the number of steps, the "analyzing the extracted data to obtain an analysis result" includes: Traversing the data, extracting the timestamp in the data to determine the time zone, and calling the step number extraction instruction in the data extraction instruction to extract the step number data to place into the corresponding integer array subscript; Perform difference calculation on the step count data, sort the integer array in reverse order, and subtract the subscript data read in reverse order from the previous subscript data to obtain the actual step count at the current subscript time and use it as the step count data within the last hour; The subscript data read in reverse order are subtracted from the previous subscript data one by one to obtain the step count data per hour.
4. The smart wearable device data processing method according to claim 1, characterized in that: A floating point number array with an array length of 24 is defined in each of the data containers. When the data type of the data to be extracted is body temperature, the "analyzing the extracted data to obtain an analysis result" includes: Traversing the data, extracting the timestamp in the data to determine the time zone, and calling the temperature extraction instruction in the data extraction instruction to extract the original temperature data; The original temperature data is converted into a percentage, and the converted temperature data is stored in a floating point number array of a corresponding time subscript as body temperature data, so as to obtain an analysis result based on the body temperature data.
5. The smart wearable device data processing method according to claim 1, characterized in that: The method further comprises: Setting several types of data as common data, and setting different data identifiers for each type of data in the common data; When the data type of the data to be extracted is the general data, the “determining the data type of the data to be extracted based on the data extraction instruction” includes: The data is traversed, a timestamp in the data is extracted to determine a time zone, and the type of the general data to be extracted is determined according to a data identifier in the data extraction instruction.
6. The smart wearable device data processing method according to claim 1, characterized in that: The smart wearable device further defines a pressure data container. When the data type of the data to be extracted is pressure, the "analyzing the extracted data to obtain an analysis result" includes: The data is retrieved from back to front in reverse order, and a number of sampling points containing pressure values are extracted and placed into the pressure data container, so as to obtain analysis results based on each of the sampling points; each of the sampling points contains pressure value, pressure level, and pressure sampling time information.
7. The smart wearable device data processing method according to claim 1, characterized in that: The smart wearable device further defines a sleep data array and a sleep preprocessing container. When the data type of the data to be extracted is sleep data, the "analyzing the extracted data to obtain an analysis result" includes: Traversing the data, extracting the timestamp in the data and comparing and judging with the preset time period, and extracting the data belonging to the preset time period and placing it into the sleep preprocessing container as the data to be detected; Traversing the data to be detected in chronological order to filter out first data indicating that the first user enters a sleep state and second data indicating that the first user exits a sleep state, defining the time corresponding to the first data as a sleep start time, and defining the time corresponding to the second data as a sleep end time; All the data to be detected within the sleep start time to the sleep end time are saved in the sleep data array as sleep data, so as to obtain analysis results based on the sleep data.
8. The method for processing data of a smart wearable device according to claim 1, characterized in that: At least two data synchronization interfaces corresponding to different data containers are set in the smart wearable device, and the "extracting data of the data type from the corresponding data container" is implemented through the data synchronization interface corresponding to the data container.
9. A data processing device for a smart wearable device, characterized in that: The device comprises: A definition module, used to define at least two data containers for storing data of different periods in the smart wearable device; A determination module, configured to determine, in response to a data extraction instruction, a data type of the data to be extracted and the data container as a source of the data to be extracted based on the data extraction instruction; The processing module is used to extract data of the data type from the corresponding data container, and analyze the extracted data to obtain an analysis result.
10. A smart wearable device, characterized in that: Used to implement the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Data processing method and device, electronic equipment and storage medium
CN117113271A
Interface for data visualizations on a wearable device
US11449293B1
