Body data processing method and device, electronic equipment and storage medium

By running the target application on the terminal device, periodic reading and uploading the collected fingertips image data, the link disconnection problem caused by the long data transmission time is solved, and the accuracy and continuity of the data transmission are realized.

CN119366880APending Publication Date: 2025-01-28BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310930933.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-27
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

When using a terminal device with a camera to collect physical data, due to the long data transmission time, the link between the terminal device and the server is likely to be disconnected, affecting the accuracy and continuity of data transmission.

Method used

By running the target application on the terminal device, the fingertip image collected by the camera is performed performed by the photoresal to perform the optical capacitor vein PPG signal processing, generate the corresponding cycle target file, and uploads it periodic to the server to ensure the continuous transmission of the data. And processing.

Benefits of technology

Realize periodic reading and uploading data, avoiding the disconnection of transmission links caused by long data transmission time, and ensuring the accuracy and continuity of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119366880A_ABST
    Figure CN119366880A_ABST
Patent Text Reader

Abstract

The invention provides a body data processing method and device, electronic equipment and a storage medium, and the method is applied to terminal equipment with a camera, and comprises the steps: obtaining a fingertip image, collected by the camera, of a target user in a preset collection time period through a target application program operated by the terminal equipment, carrying out photoelectric plethysmography (PPG) signal processing on the basis of the obtained fingertip image, and outputting a fingertip signal; periodically reading fingertip signals output by the target application program, so as to generate a target file of a corresponding period based on the fingertip signals read in each period; when the target file of one cycle is generated, uploading the target file to a server, so that the server determines state information corresponding to the target user based on the target file of each cycle; and the state information is obtained from the server and displayed in the interface of the target application program, so that the technical problem of disconnection of a transmission link caused by relatively long data transmission time due to acquisition of the data in the terminal equipment in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of health monitoring technology, and in particular to a body data processing method, device, electronic device and storage medium. Background Art

[0002] With the continuous development of technology, it has become a reality to detect important human indicators such as blood pressure, blood oxygen, and respiratory rate through terminal devices with cameras, such as smart phones. In the related technology, the terminal device with a camera is responsible for collecting the user's body data and transmitting the user's body data to the server, so that the server can calculate the blood pressure, blood oxygen, respiratory rate, etc. based on the user's body data and send it to the terminal device. In this process, the terminal device needs to establish a link with the server while collecting the user's body data, so as to transmit the collected user's body data to the server through the link. However, in order to ensure the accuracy of the calculation results of the server, the terminal device needs to collect the user's body data for a long time, which will bring about the problem of disconnection of the link established between the terminal device and the server due to the long data transmission time. Summary of the invention

[0003] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.

[0004] To achieve the above-mentioned purpose, one or more embodiments of the present invention propose a body data processing method, which is applied to a terminal device with a camera, and the method includes: obtaining, through a target application running on the terminal device, fingertip images of a target user collected by the camera within a preset collection period, and performing photoplethysmography (PPG) signal processing based on the obtained fingertip images to output fingertip signals; periodically reading the fingertip signals output by the target application to generate a target file of a corresponding period based on the fingertip signals read in each period; whenever a target file of a period is generated, uploading the target file to a server, so that the server determines the status information corresponding to the target user based on the target files of each period, wherein the status information is used to characterize the physical state of the target user; obtaining the status information from the server and displaying it in the interface of the target application.

[0005] According to the body data processing method of the embodiment of the present invention, a terminal device with a camera obtains the fingertip image of the target user collected by the camera within a preset collection period through the target application running on the terminal device, and performs photoelectric volume pulse wave PPG signal processing based on the obtained fingertip image, outputs the fingertip signal, and periodically reads the fingertip signal output by the target application, so as to generate a target file of the corresponding period based on the fingertip signal read in each period, and uploads the target file to the server whenever a target file of a period is generated, so that the server determines the state information corresponding to the target user based on the target file of each period, wherein the state information is used to characterize the physical state of the target user, and then obtains the state information from the server, and displays it in the interface of the target application. As a result, the method can realize periodic reading and uploading of data, and solve the technical problem of the disconnection of the transmission link caused by the long data transmission time caused by the data collection in the terminal device in the related technology.

[0006] In addition, the body data processing method proposed in one or more embodiments of the present invention may also have the following additional technical features:

[0007] According to one or more embodiments of the present invention, the periodically reading the fingertip signal output by the target application to generate a target file of a corresponding period based on the fingertip signal read in each period includes:

[0008] Based on a preset cycle duration, periodically reading the fingertip signal output by the target application within the preset collection period, wherein the preset cycle duration is determined based on the preset collection period;

[0009] For the fingertip signal read in any period, a target file of the corresponding period is generated based on a preset data format.

[0010] According to one or more embodiments of the present invention, before the target application running on the terminal device acquires the fingertip image of the target user acquired by the camera within a preset acquisition period, the target application further includes:

[0011] Displaying a first prompt message in the interface of the target application to remind the target user to place a fingertip in the camera area of ​​the terminal device;

[0012] When the target application detects the fingertip image of the target user, the buffer countdown of the target application is started, so that when the buffer countdown ends, the fingertip image of the target user captured by the camera within a preset capture period is acquired through the target application.

[0013] According to one or more embodiments of the present invention, the target file of each period is stored locally on the terminal device, and whenever a target file of a period is generated, the target file is uploaded to the server, including:

[0014] Polling the local storage of the terminal device through a timing component of the target application, wherein the polling frequency of the timing component is determined based on the preset cycle duration;

[0015] When the local storage has a target file of any period, the target file is uploaded to the server.

[0016] According to one or more embodiments of the present invention, the method further includes:

[0017] The target application generates a collection sequence number corresponding to the preset collection period and an upload sequence number corresponding to the target file of each period.

[0018] According to one or more embodiments of the present invention, obtaining the status information from the server and displaying it in the interface of the target application includes:

[0019] Based on a preset polling frequency, querying the server for the status information, wherein the preset polling frequency is determined based on the preset cycle duration;

[0020] When the status information is found, the status information is displayed in the interface of the target application or the displayed status information is updated.

[0021] According to one or more embodiments of the present invention, the method further includes:

[0022] In the case that the status information is not queried in any polling, obtaining a detection result determined by the server based on an upload sequence number corresponding to at least one period of the target file of the target user received;

[0023] When the detection result is that at least one period of target files of the target user received by the server is not missing, it is determined that the reason for the failure to obtain the status information is that the fingertip image of the target user captured by the camera is incorrect, and a second prompt message is displayed in the interface of the target application to remind the target user whether to re-detect.

[0024] To achieve the above-mentioned purpose, one or more embodiments of the present invention propose a body data processing method, which is applied to a server, and the method includes: receiving at least one cycle of target files uploaded by at least one terminal device, and storing the at least one cycle of target files to a file server; determining at least one cycle of target files of a target user from the at least one cycle of target files according to a collection sequence number; based on the upload sequence number corresponding to the at least one cycle of target files of the target user, obtaining at least one cycle of target files of the target user from the file server through a message notification trigger algorithm, and determining the status information corresponding to the target user based on the at least one cycle of target files of the target user.

[0025] According to the body data processing method of the embodiment of the present invention, the server receives at least one period of target files uploaded by at least one terminal device, and stores the at least one period of target files in the file server, thereby determining at least one period of target files of the target user from the at least one period of target files according to the acquisition sequence number, and then based on the upload sequence number corresponding to the at least one period of target files of the target user, the server obtains at least one period of target files of the target user from the file server through a message notification trigger algorithm, and determines the state information corresponding to the target user based on the at least one period of target files of the target user. Therefore, the method can determine the target files of the target user from the target files uploaded by multiple terminal devices based on the acquisition sequence number, and then determine the state information corresponding to the target user.

[0026] In addition, the body data processing method proposed in one or more embodiments of the present invention may also have the following additional technical features:

[0027] According to one or more embodiments of the present invention, the method further includes:

[0028] For any target file in the target files of the at least one period, a fixed prefix of the file address is concatenated with an upload sequence number corresponding to the target file to generate a file address corresponding to the target file.

[0029] According to one or more embodiments of the present invention, the message notification is a message queue MQ message; the method of obtaining the target file of at least one period of the target user from the file server through a message notification triggering algorithm based on an upload sequence number corresponding to the target file of at least one period of the target user includes:

[0030] For any target file in the target files of at least one period of the target user, according to the upload sequence number corresponding to the target file, an MQ message corresponding to the target file is sent;

[0031] The trigger algorithm parses the MQ message corresponding to the target file, obtains the upload sequence number corresponding to the target file, and determines the file address corresponding to the target file according to the upload sequence number corresponding to the target file, so as to obtain the target file from the file server based on the file address corresponding to the target file.

[0032] According to one or more embodiments of the present invention, the method further includes:

[0033] The file address and upload information corresponding to the target file of the at least one cycle are stored in a database, wherein the upload information includes a user identifier and an application identifier corresponding to the target file of the at least one cycle.

[0034] According to one or more embodiments of the present invention, the method further includes:

[0035] storing the status information in the database;

[0036] In response to the target file of any cycle having calculated the state information, a calculation identifier of the target file is stored in a storage device, wherein the calculation identifier is used to indicate that the data has been calculated.

[0037] According to one or more embodiments of the present invention, the state information includes a blood pressure value, a blood oxygen value, and a respiratory rate value; and determining the state information corresponding to the target user based on at least one periodic target file of the target user includes:

[0038] For any target file in the target files of at least one period of the target user, checking whether a calculation identifier of the target file exists in the storage device;

[0039] In the case that the calculation identifier of the target file does not exist in the storage device, sampling and preprocessing the target file to obtain preprocessed data corresponding to the target file;

[0040] According to the preprocessed data corresponding to the target file, respectively perform respiration calculation, blood pressure calculation and blood oxygen calculation to obtain the blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file;

[0041] Based on the blood pressure values, blood oxygen values ​​and respiratory rate values ​​corresponding to the target files of each period of the target user, the average blood pressure value, average blood oxygen value and average respiratory rate value of the target user are determined.

[0042] According to one or more embodiments of the present invention, storing the state information in the database includes:

[0043] The blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file of each period of the target user are stored in the database, and the average blood pressure value, average blood oxygen value and average respiratory rate value of the target user are stored in the database.

[0044] According to one or more embodiments of the present invention, the method further includes:

[0045] Based on the upload sequence number corresponding to the target file of at least one period of the target user, detecting whether the received target file of at least one period of the target user is missing;

[0046] In a case where the upload sequence numbers corresponding to the target files of at least one period of the target user are continuous, determining that the detection result is that the target files of at least one period of the target user received by the server are not missing;

[0047] When the upload sequence numbers corresponding to the target files of at least one period of the target user are not continuous, it is determined that the detection result is that the target files of at least one period of the target user received by the server are missing.

[0048] To achieve the above-mentioned purpose, one or more aspects of the present invention provide a body data processing device, which is applied to a terminal device with a camera, and the device includes: a first processing module, which is used to obtain the fingertip image of the target user collected by the camera within a preset collection period through a target application running on the terminal device, and perform photoplethysmography (PPG) signal processing based on the obtained fingertip image to output the fingertip signal; a reading module, which is used to periodically read the fingertip signal output by the target application to generate a target file of a corresponding period based on the fingertip signal read in each period; a first uploading module, which is used to upload the target file of a period to a server whenever a target file of the period is generated, so that the server determines the status information corresponding to the target user based on the target file of each period, wherein the status information is used to characterize the physical state of the target user; a second processing module, which is used to obtain the status information from the server and display it in the interface of the target application.

[0049] According to the body data processing device of the embodiment of the present invention, the terminal device with a camera obtains the fingertip image of the target user collected by the camera within a preset collection period through the target application running on the terminal device, and performs photoelectric volume pulse wave PPG signal processing based on the obtained fingertip image, outputs the fingertip signal, and periodically reads the fingertip signal output by the target application, so as to generate a target file of the corresponding period based on the fingertip signal read in each period, and uploads the target file to the server whenever a target file of a period is generated, so that the server determines the state information corresponding to the target user based on the target file of each period, wherein the state information is used to characterize the physical state of the target user, and then obtains the state information from the server, and displays it in the interface of the target application. Thus, the method can realize periodic reading and uploading of data, and solve the technical problem of the disconnection of the transmission link caused by the long data transmission time caused by the data collection in the terminal device in the related technology.

[0050] In addition, the body data processing device provided in one or more embodiments of the present invention may also have the following additional technical features:

[0051] According to one or more embodiments of the present invention, the reading module is used to periodically read the fingertip signal output by the target application program to generate a target file of a corresponding period based on the fingertip signal read in each period, including:

[0052] Based on a preset cycle duration, periodically reading the fingertip signal output by the target application within the preset collection period, wherein the preset cycle duration is determined based on the preset collection period;

[0053] For the fingertip signal read in any period, a target file of the corresponding period is generated based on a preset data format.

[0054] According to one or more embodiments of the present invention, the above-mentioned device further includes:

[0055] A display module, used for displaying first prompt information in the interface of the target application program to remind the target user to place a fingertip in the camera area of ​​the terminal device;

[0056] The activation module is used to activate the buffer countdown of the target application when the target application detects the fingertip image of the target user, so as to obtain the fingertip image of the target user captured by the camera within a preset capture period through the target application when the buffer countdown ends.

[0057] According to one or more embodiments of the present invention, the target file of each period is stored locally on the terminal device, and the first uploading module is used to upload the target file to the server whenever a target file of a period is generated, including:

[0058] Polling the local storage of the terminal device through a timing component of the target application, wherein the polling frequency of the timing component is determined based on the preset cycle duration;

[0059] When the local storage has a target file of any period, the target file is uploaded to the server.

[0060] According to one or more embodiments of the present invention, the above-mentioned device further includes:

[0061] The generation module is used to generate, through the target application, a collection sequence number corresponding to the preset collection time period and an upload sequence number corresponding to the target file of each period.

[0062] According to one or more embodiments of the present invention, the second processing module is used to obtain the status information from the server and display it in the interface of the target application, including:

[0063] Based on a preset polling frequency, querying the server for the status information, wherein the preset polling frequency is determined based on the preset cycle duration;

[0064] When the status information is found, the status information is displayed in the interface of the target application or the displayed status information is updated.

[0065] According to one or more embodiments of the present invention, the above-mentioned device further includes:

[0066] An acquisition module, configured to acquire, when any polling fails to find the status information, a detection result determined by the server based on an upload sequence number corresponding to a target file of at least one period of the target user received;

[0067] The third processing module is used to determine that the reason for the failure to obtain the status information is that the fingertip image of the target user captured by the camera is incorrect when the detection result is that the target file of at least one period of the target user received by the server is not missing, and display a second prompt message in the interface of the target application to remind the target user whether to re-detect.

[0068] To achieve the above-mentioned purpose, one or more embodiments of the present invention propose a body data processing device, which is applied to a server, and the device includes: a fourth processing module, which is used to receive at least one cycle of target files uploaded by at least one terminal device, and store the at least one cycle of target files to a file server; a first determination module, which is used to determine at least one cycle of target files of a target user from the at least one cycle of target files according to a collection sequence number; a trigger algorithm module, which is used to obtain at least one cycle of target files of the target user from the file server through a message notification trigger algorithm based on the upload sequence number corresponding to the at least one cycle of target files of the target user, and determine the status information corresponding to the target user based on the at least one cycle of target files of the target user.

[0069] According to the body data processing device of the embodiment of the present invention, the server receives at least one period of target files uploaded by at least one terminal device, and stores the at least one period of target files in the file server, thereby determining at least one period of target files of the target user from the at least one period of target files according to the acquisition sequence number, and then based on the upload sequence number corresponding to the at least one period of target files of the target user, the server obtains at least one period of target files of the target user from the file server through a message notification trigger algorithm, and determines the state information corresponding to the target user based on the at least one period of target files of the target user. Therefore, the method can determine the target files of the target user from the target files uploaded by multiple terminal devices based on the acquisition sequence number, and then determine the state information corresponding to the target user.

[0070] In addition, the body data processing device provided in one or more embodiments of the present invention may also have the following additional technical features:

[0071] According to one or more embodiments of the present invention, the above-mentioned device further includes:

[0072] A generation module is used to concatenate a fixed prefix of a file address with an upload sequence number corresponding to any target file in the target files of the at least one cycle to generate a file address corresponding to the target file.

[0073] According to one or more embodiments of the present invention, the message notification is a message queue MQ message; the trigger algorithm module is used to obtain the target file of at least one period of the target user from the file server through the message notification trigger algorithm based on the upload sequence number corresponding to the target file of at least one period of the target user, including:

[0074] For any target file in the target files of at least one period of the target user, according to the upload sequence number corresponding to the target file, an MQ message corresponding to the target file is sent;

[0075] The trigger algorithm parses the MQ message corresponding to the target file, obtains the upload sequence number corresponding to the target file, and determines the file address corresponding to the target file according to the upload sequence number corresponding to the target file, so as to obtain the target file from the file server based on the file address corresponding to the target file.

[0076] According to one or more embodiments of the present invention, the above-mentioned device further includes:

[0077] The first storage module is used to store the file address and upload information corresponding to the target file of the at least one period into a database, wherein the upload information includes the user identifier and application identifier corresponding to the target file of the at least one period.

[0078] According to one or more embodiments of the present invention, the above-mentioned device further includes:

[0079] A second storage module, used for storing the state information in the database;

[0080] The third storage module is used to store the calculation identifier of the target file in the storage device in response to the target file of any cycle having calculated the state information, wherein the calculation identifier is used to indicate that the data has been calculated.

[0081] According to one or more embodiments of the present invention, the state information includes a blood pressure value, a blood oxygen value, and a respiratory rate value; the trigger algorithm module, which is used to trigger the algorithm to determine the state information corresponding to the target user based on at least one period of the target user's target file, includes:

[0082] For any target file in the target files of at least one period of the target user, checking whether a calculation identifier of the target file exists in the storage device;

[0083] In the case that the calculation identifier of the target file does not exist in the storage device, sampling and preprocessing the target file to obtain preprocessed data corresponding to the target file;

[0084] According to the preprocessed data corresponding to the target file, respectively perform respiration calculation, blood pressure calculation and blood oxygen calculation to obtain the blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file;

[0085] Based on the blood pressure values, blood oxygen values ​​and respiratory rate values ​​corresponding to the target files of each period of the target user, the average blood pressure value, average blood oxygen value and average respiratory rate value of the target user are determined.

[0086] According to one or more embodiments of the present invention, the second storage module, when used to store the state information in the database, includes:

[0087] The blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file of each period of the target user are stored in the database, and the average blood pressure value, average blood oxygen value and average respiratory rate value of the target user are stored in the database.

[0088] According to one or more embodiments of the present invention, the above-mentioned device further includes:

[0089] A detection module, configured to detect whether the received target file of at least one period of the target user is missing based on an upload sequence number corresponding to the target file of at least one period of the target user;

[0090] A second determination module is used to determine, when the upload sequence numbers corresponding to the target files of at least one period of the target user are continuous, that the detection result is that the target files of at least one period of the target user received by the server are not missing;

[0091] The third determination module is used to determine that the detection result is that the target file of at least one period of the target user received by the server is missing when the upload sequence numbers corresponding to the target files of at least one period of the target user are not continuous.

[0092] To achieve the above objectives, one or more embodiments of the present invention propose an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the body data processing method proposed in one or more embodiments of the present invention is implemented.

[0093] To achieve the above objectives, one or more embodiments of the present invention provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the body data processing method provided by one or more embodiments of the present invention.

[0094] To achieve the above objectives, one or more embodiments of the present invention provide a computer program product. When the instructions in the computer program product are executed by a processor, the body data processing method provided by one or more embodiments of the present invention is performed.

[0095] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0096] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0097] Figure 1 A schematic flow chart of a body data processing method provided by an embodiment of the present invention;

[0098] Figure 2 A schematic flow chart of another body data processing method provided by an embodiment of the present invention;

[0099] Figure 3 A schematic diagram of first prompt information in a scenario provided by an embodiment of the present invention;

[0100] Figure 4 A schematic flow chart of another body data processing method provided by an embodiment of the present invention;

[0101] Figure 5 A schematic diagram of a collection sequence number and an upload sequence number in a scenario provided by an embodiment of the present invention;

[0102] Figure 6 A schematic diagram of displaying status information in an interface of a target application in a scenario provided by an embodiment of the present invention;

[0103] Figure 7 A schematic diagram of a flow chart of second prompt information in a scenario provided by an embodiment of the present invention;

[0104] Figure 8 A schematic flow chart of another body data processing method provided by an embodiment of the present invention;

[0105] Fig. 9 A schematic flow chart of another body data processing method provided by an embodiment of the present invention;

[0106] Fig.10 A schematic flow chart of another body data processing method provided by an embodiment of the present invention;

[0107] Fig.11 A schematic flow chart of another body data processing method provided by an embodiment of the present invention;

[0108] Fig.12 A schematic flow chart of a method for processing body data in a scenario provided by an embodiment of the present invention;

[0109] Fig.13 A schematic diagram of an algorithm processing flow in a scenario provided by an embodiment of the present invention;

[0110] Fig.14 A schematic diagram of the structure of a body data processing device provided by an embodiment of the present invention;

[0111] Fig.15 A schematic diagram of the structure of another body data processing device provided by an embodiment of the present invention;

[0112] Fig.16 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0113] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0114] The body data processing method, device, electronic device and storage medium according to embodiments of the present invention will be described below with reference to the accompanying drawings.

[0115] It should be noted that the executor of the body data processing method of the embodiment of the present invention is the body data processing device of the embodiment of the present invention, which can be implemented by software and / or hardware, and can be configured in any electronic device.

[0116] It should be noted that in the technical solution of the present invention, the collection / collection, update, analysis, use, transmission, storage and other aspects of user personal information involved are in compliance with the provisions of relevant laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside of these legal uses, and are subject to supervision and management by national regulatory authorities. Necessary measures should be taken for user personal information to selectively block the use or access to personal information data to prevent illegal access to such personal information data, ensure that persons who have access to personal information data comply with the provisions of relevant laws and regulations, and ensure the security of user personal information. In addition, once these user personal information data are no longer needed, the risks should be minimized by limiting or even prohibiting data collection and / or deleting data.

[0117] When applicable, including in certain relevant applications, user privacy is protected by de-identifying data, such as by removing specific identifiers when applicable (e.g., date of birth, etc., as written in actual technical solutions), controlling the amount or specificity of stored data (e.g., collecting location data at the city level rather than at the specific address level, as written in actual technical solutions), controlling how data is stored, and / or other de-identification methods.

[0118] Figure 1 A schematic flow chart of a body data processing method provided by an embodiment of the present invention.

[0119] It should be noted that the body data processing method according to the embodiment of the present invention is applied to a terminal device having a camera.

[0120] like Figure 1 As shown, the body data processing method includes the following steps:

[0121] Step 101, through the target application running on the terminal device, the fingertip image of the target user captured by the camera is acquired within a preset acquisition period, and photoplethysmography (PPG) signal processing is performed based on the acquired fingertip image to output a fingertip signal.

[0122] The terminal device has a camera and can collect image data through the camera. Optionally, the terminal device can be a smart phone, a smart tablet, etc., which is not limited in this embodiment.

[0123] Among them, the target application can be an APP (Application) that needs to be downloaded and installed on the terminal device, or it can be a small program that does not need to be downloaded and installed and can directly rely on the APP that has been downloaded and installed on the terminal device to run, etc. This is not limited in this embodiment.

[0124] Among them, the preset collection period refers to the pre-set duration for collecting the fingertip image of the target user through the camera. In addition, the embodiment of the present invention does not limit the setting of the preset collection period. Optionally, the preset collection period can be set according to manual experience. For example, the preset collection period can be set to 30s, 60s, 90s, 100s, etc., or the preset collection period can be dynamically adjusted according to actual application requirements. The embodiment of the present invention does not limit this. For example, in the present invention, 90s can be selected as the preset collection period.

[0125] Wherein, when the camera collects the fingertip image of the target user, it is collected based on the preset sampling frequency. Wherein, the preset sampling frequency refers to the predetermined sampling frequency for collecting the fingertip image of the target user through the camera, and the setting of the preset sampling frequency is not limited in the embodiment of the present invention. Optionally, the preset sampling frequency can be set according to manual experience. For example, the preset sampling frequency can be set to 10 times / s, 30 times / s, 60 times / s, 100 times / s, etc., or the preset sampling frequency can be dynamically adjusted according to actual application requirements. The embodiment of the present invention does not limit this. For example, in the present invention, 30 times / s can be selected as the preset sampling frequency.

[0126] In an embodiment of the present invention, in order to facilitate the collection of user data and reduce the cost of purchasing equipment, the user's body data collected by the camera can be obtained by running the target application locally on the terminal device, thereby obtaining status information representing the user's physical state, such as blood pressure, blood oxygen, respiratory rate and other important human body indicators.

[0127] Optionally, the target application can obtain the target user's fingertip image captured by the camera while the camera is capturing the target user's fingertip image, and perform PPG (Photo Plethysmo Graphy) signal processing on the acquired fingertip image to output a fingertip signal. The fingertip signal output by the target application is a signal in PPG format.

[0128] Step 102 , periodically reading the fingertip signal output by the target application program, so as to generate a target file of a corresponding period based on the fingertip signal read in each period.

[0129] In an embodiment of the present invention, the terminal device may periodically read the fingertip signal output by the target application, wherein the period duration should not be greater than the duration of a preset collection period, and optionally, the period duration may be determined based on the preset collection period.

[0130] For example, assuming that 90 seconds is selected as the preset collection period in the present invention, the periodic duration of the terminal device periodically reading the fingertip signal output by the target application should be greater than 90 seconds. Optionally, the periodic duration can be 10 seconds, that is, the terminal device can read the fingertip signal output by the target application once every 10 seconds.

[0131] Optionally, while periodically reading the fingertip signal output by the target application, the terminal device may generate a target file of a corresponding period based on the fingertip signal read in each period. For example, the terminal device may generate a target file each time it reads a fingertip signal.

[0132] Step 103 , whenever a target file of a period is generated, the target file is uploaded to the server, so that the server determines the state information corresponding to the target user based on the target file of each period.

[0133] The state information is used to characterize the physical state of the target user. Optionally, the state information may include blood pressure value, blood oxygen value, respiratory rate value, etc., which is not limited in this embodiment.

[0134] As a possible implementation method, the terminal device can perform an upload operation every time a target file of a period is generated, and upload the target file of the period to the server. In this way, the target file of each period is uploaded to the server, so that the server determines the status information corresponding to the target user based on the target file of each period.

[0135] Step 104, obtain status information from the server and display it in the interface of the target application.

[0136] In the embodiment of the present invention, the terminal device may obtain the status information corresponding to the target user from the server, and display the status information corresponding to the target user to the target user in the interface of the target application.

[0137] In the body data processing method of the embodiment of the present invention, a terminal device with a camera obtains the fingertip image of the target user collected by the camera within a preset collection period through the target application running on the terminal device, and performs photoelectric volume pulse wave (PPG) signal processing based on the obtained fingertip image, outputs the fingertip signal, and periodically reads the fingertip signal output by the target application, so as to generate a target file of the corresponding period based on the fingertip signal read in each period, and uploads the target file to the server whenever a target file of a period is generated, so that the server determines the state information corresponding to the target user based on the target file of each period, wherein the state information is used to characterize the physical state of the target user, and then obtains the state information from the server, and displays it in the interface of the target application. As a result, the method can realize periodic reading and uploading of data, and solve the technical problem of the disconnection of the transmission link caused by the long data transmission time caused by the data collection in the terminal device in the related technology.

[0138] Figure 2 A schematic flow chart of another body data processing method provided by an embodiment of the present invention.

[0139] Similarly, the body data processing method according to the embodiment of the present invention is applied to a terminal device having a camera.

[0140] like Figure 2 As shown, the body data processing method includes the following steps:

[0141] Step 201: Display a first prompt message in the interface of the target application program to remind the target user to place a fingertip in the camera area of ​​the terminal device.

[0142] For the description of the target application and terminal device involved in this step, please refer to the above description of step 101, and the details will not be repeated here.

[0143] The first prompt information is used to remind the user to place the fingertip in the camera area of ​​the terminal device. Figure 3 As shown, the content of the first prompt message may be "Please lightly press your index finger on the camera, and it is best if your finger is photographed red; if the circle is black, please turn on the flash, or test in a brighter environment."

[0144] In the embodiment of the present invention, the terminal device can remind the target user to place the fingertip in the camera area of ​​the terminal device and adjust the position by displaying the first prompt information in the interface of the target application.

[0145] Step 202, when the target application detects the fingertip image of the target user, start the buffer countdown of the target application, so that when the buffer countdown ends, the fingertip image of the target user captured by the camera within a preset capture period is acquired through the target application, and PPG signal processing is performed based on the acquired fingertip image to output a fingertip signal.

[0146] Among them, the buffer countdown of the target application can be randomly sent by the server, such as 5s, and when the server is impacted by users with large traffic, the server can increase the buffer countdown duration according to the user ratio to delay the instantaneous impact of large traffic on the server.

[0147] It should be noted that, for the details of "obtaining, through the target application, the fingertip image of the target user captured by the camera within a preset acquisition period, and performing PPG signal processing based on the acquired fingertip image to output the fingertip signal" which are not disclosed in this step, please refer to the above description of step 101, and the details will not be repeated here.

[0148] Step 203 : periodically reading the fingertip signal output by the target application within a preset collection period based on a preset period duration.

[0149] The preset cycle duration is determined based on the preset collection period. It is understandable that the preset cycle duration should not be greater than the duration of the preset collection period. For example, assuming that the preset collection period is 90 seconds, then the preset cycle duration should not be greater than 90 seconds, and can be 10 seconds, 20 seconds, etc.

[0150] In the embodiment of the present invention, the terminal device may periodically read the fingertip signal output by the target application based on a preset period duration. For example, assuming that the preset period duration is 10 seconds, the terminal device may read the fingertip signal output by the target application once every 10 seconds.

[0151] Step 204 : for the fingertip signal read in any period, generate a target file of the corresponding period based on a preset data format.

[0152] The preset data format may be any data format, such as Json data format, etc., which is not limited here.

[0153] In an embodiment of the present invention, the terminal device can generate a target file of a corresponding period according to a preset data format for a fingertip signal read in any period. For example, assuming that the preset data format is a Json data format, the terminal device can generate a Json file of a corresponding period based on the fingertip signal read in each period.

[0154] Step 205: poll the local storage of the terminal device through the timing component of the target application.

[0155] The target file of each cycle is stored locally on the terminal device.

[0156] The polling frequency of the timing component is determined based on the preset cycle duration. For example, assuming that the preset cycle duration is 10 seconds, the polling frequency of the timing component may be 10 seconds / time.

[0157] In the embodiment of the present invention, the terminal device may poll the local storage of the terminal device through the timing component of the target application program to obtain the target file of each period and upload it to the server.

[0158] Step 206 , when there is a target file of any period in the local storage, the target file is uploaded to the server, so that the server determines the state information corresponding to the target user based on the target file of each period.

[0159] As a possible implementation method, the terminal device can upload the target file of any period to the server through the HTTP (Hyper Text Transfer Protocol) channel when the target file of any period is stored locally. In this way, the target file of each period is uploaded to the server, so that the server determines the status information corresponding to the target user based on the target file of each period.

[0160] Step 207, obtaining status information from the server and displaying it in the interface of the target application.

[0161] It should be noted that for details not disclosed in this step, please refer to the above description of step 104, and the details will not be repeated here.

[0162] In the body data processing method of the embodiment of the present invention, the terminal device with a camera displays the first prompt information in the interface of the target application to remind the target user to place the fingertip in the camera area of ​​the terminal device, so that when the target application detects the fingertip image of the target user, the buffer countdown of the target application is started, so that when the buffer countdown ends, the fingertip image of the target user collected by the camera is obtained by the target application within the preset collection period, and the photoelectric volume pulse wave PPG signal processing is performed based on the acquired fingertip image, and the fingertip signal is output, so that based on the preset cycle length, the fingertip signal output by the target application within the preset collection period is periodically read, and the fingertip signal read in each cycle is converted into a preset data format, and the target file of the corresponding cycle is generated, and then the local storage of the terminal device is polled through the timing component of the target application, so that when there is a target file of any cycle in the local storage, the target file is uploaded to the server, so that the server determines the corresponding status information of the target user based on the target file of each cycle. Therefore, the method can realize periodic reading and uploading of data, and solve the technical problem of data collection in the terminal device in the related technology that the transmission link is disconnected due to the long data transmission time.

[0163] Figure 4 A schematic flow chart of another body data processing method provided by an embodiment of the present invention.

[0164] Similarly, the body data processing method according to the embodiment of the present invention is applied to a terminal device having a camera.

[0165] like Figure 4 As shown, the body data processing method includes the following steps:

[0166] Step 401, obtaining a fingertip image of a target user captured by a camera within a preset acquisition period through a target application running on a terminal device, performing photoplethysmography (PPG) signal processing based on the acquired fingertip image, and outputting a fingertip signal;

[0167] Step 402, periodically reading the fingertip signal output by the target application program to generate a target file of a corresponding period based on the fingertip signal read in each period;

[0168] Step 403, whenever a target file of a period is generated, the target file is uploaded to the server, so that the server determines the state information corresponding to the target user based on the target file of each period, wherein the state information is used to represent the physical state of the target user;

[0169] It should be noted that for details not disclosed in the above steps 401-403, please refer to the above description of steps 101-103, and the details will not be repeated here.

[0170] Step 404: Generate, through the target application, a collection serial number corresponding to the preset collection period and an upload serial number corresponding to the target file of each period.

[0171] The collection sequence number corresponds to a preset collection period, and a collection sequence number is generated each time data is collected within the preset collection period.

[0172] The upload sequence number corresponds to the target file of each period, and an upload sequence number is generated each time a target file of a period is uploaded to the server.

[0173] It should be noted that one collection serial number corresponds to multiple upload serial numbers.

[0174] like Figure 5 As shown, the preset acquisition period is from 0s to ns, the acquisition starts at 0s and ends at ns. During the acquisition process, the fingertip signal output by the target application is read every 10s, and the target file is uploaded to the server. Among them, the R1 segment, R2 segment, R3 segment, ..., Rn segment each represent a cycle, the upload sequence number reqID corresponding to the target file in the R1 segment is 10001; the upload sequence number reqID corresponding to the target file in the R2 segment is 10002; the upload sequence number reqID corresponding to the target file in the R3 segment is 10003; ...; the upload sequence number reqID corresponding to the target file in the Rn segment is 1000n, and the entire acquisition process (from 0s to ns) corresponds to a collection sequence number, and the collection sequence number sqID is 888800009.

[0175] Step 405: query the server for status information based on a preset polling frequency.

[0176] The state information is used to characterize the physical state of the target user. Optionally, the state information may include blood pressure value, blood oxygen value, respiratory rate value, etc., which is not limited in this embodiment.

[0177] The preset polling frequency is determined based on the preset cycle duration. For example, assuming that the preset cycle duration is 10 seconds, the preset polling frequency may be 10 seconds / time.

[0178] In the embodiment of the present invention, the terminal device can query the server for the status information corresponding to the target user based on the preset polling frequency. For example, assuming the preset polling frequency is 10s / time, the terminal device can perform a poll every 10s to query the server for the status information corresponding to the target user.

[0179] Step 406: When the status information is found, the status information is displayed in the interface of the target application or the displayed status information is updated.

[0180] In the embodiment of the present invention, when the terminal device finds the status information corresponding to the target user in the first polling query, the terminal device can display the queried status information in the interface of the target application, and when the status information corresponding to the target user is found in other polling queries, the terminal device can update the status information already displayed in the interface of the target application. For example, assuming that the status information includes heart rate, blood oxygen, blood pressure and respiration, then the status information displayed in the interface of the target application can be as follows: Figure 6 shown.

[0181] Step 407: when no state information is found in any polling, a detection result determined by the server based on an upload sequence number corresponding to at least one period of the target file of the target user received.

[0182] The detection result is used to indicate whether data loss occurs during data transmission.

[0183] In an embodiment of the present invention, when any polling fails to find the status information corresponding to the target user, the terminal device can obtain from the server a detection result determined by the server based on the upload sequence number corresponding to the target file of at least one period received by the target user, thereby determining the reason for the failure to obtain the status information corresponding to the target user based on the obtained detection result.

[0184] Step 408, when the detection result is that the target file of at least one period of the target user received by the server is not missing, it is determined that the reason for the failure to obtain the status information is that the fingertip image of the target user captured by the camera is incorrect, and a second prompt message is displayed in the interface of the target application to remind the target user whether to re-detect.

[0185] The second prompt information is used to remind the user whether to retest. Figure 7 As shown, the content of the second prompt message may be "Since you have not placed your finger for a long time, the test is stopped", and "Cancel" and "Retest" buttons are set to remind the user whether to retest.

[0186] In the embodiment of the present invention, there are two reasons for the failure to obtain the status information corresponding to the target user: one is that the fingertip image of the target user captured by the camera is incorrect, such as the user does not keep the fingertip in the camera area of ​​the terminal device within the preset capture period; the other is that at least one period of the target file of the target user received by the server is missing. Therefore, when the detection result shows that at least one period of the target file of the target user received by the server is not missing, the terminal device can determine that the reason for the failure to obtain the status information is that the fingertip image of the target user captured by the camera is incorrect, and then remind the target user whether to re-detect by displaying the second prompt information in the interface of the target application.

[0187] In the body data processing method of the embodiment of the present invention, the terminal device with a camera generates a collection sequence number corresponding to a preset collection period and an upload sequence number corresponding to a target file of each period through a target application, and after querying the status information from the server based on a preset polling frequency, if the status information is queried, the status information is displayed in the interface of the target application or the displayed status information is updated, or, if the status information is not queried in any polling, the detection result determined by the server based on the upload sequence number corresponding to the target file of at least one period of the target user received is obtained, so that if the detection result is that the target file of at least one period of the target user received by the server is not missing, it is determined that the reason for the failure to obtain the status information is that the fingertip image of the target user collected by the camera is incorrect, and the second prompt information is displayed in the interface of the target application to remind the target user whether to re-detect. Therefore, the method can realize the acquisition of the status information corresponding to the target user from the server, or, if the status information corresponding to the target user cannot be obtained, perform exception processing to remind the target user whether to re-detect.

[0188] Figure 8 A schematic flow chart of another body data processing method provided by an embodiment of the present invention.

[0189] It should be noted that the body data processing method of the embodiment of the present invention is applied to the server.

[0190] like Figure 8 As shown, the body data processing method includes the following steps:

[0191] Step 801: receiving at least one period of target files uploaded by at least one terminal device, and storing at least one period of target files in a file server.

[0192] In the embodiment of the present invention, the server may receive at least one period of target files uploaded by at least one terminal device, and store the received target files in a file server. Optionally, the file server may be an OSS (Object Storage Service).

[0193] Step 802: Determine at least one period of target files of a target user from at least one period of target files according to the collection sequence number.

[0194] The collection sequence number is generated by the target application running on the terminal device and corresponds to the preset collection period, that is, a collection sequence number is generated every time data is collected within the preset collection period.

[0195] Since the target files received by the server may come from different users, in the embodiment of the present invention, the server may determine the target files of at least one period of the target user from the received target files according to the acquisition sequence number.

[0196] Step 803, based on the upload sequence number corresponding to the target file of at least one period of the target user, obtain the target file of at least one period of the target user from the file server through a message notification trigger algorithm, and determine the status information corresponding to the target user based on the target file of at least one period of the target user.

[0197] The upload sequence number is generated by the target application running on the terminal device and corresponds to the target file of each cycle, that is, an upload sequence number is generated each time a target file of a cycle is uploaded to the server.

[0198] In an embodiment of the present invention, the server can obtain the corresponding target file from the file server through a message notification trigger algorithm based on the upload sequence number corresponding to the target file of at least one period of the target user, and determine the status information corresponding to the target user based on the target file of at least one period of the target user.

[0199] In the body data processing method of the embodiment of the present invention, the server receives at least one period of target files uploaded by at least one terminal device, and stores the at least one period of target files in the file server, thereby determining at least one period of target files of the target user from the at least one period of target files according to the acquisition sequence number, and then based on the upload sequence number corresponding to the at least one period of target files of the target user, the server obtains at least one period of target files of the target user from the file server through a message notification trigger algorithm, and determines the state information corresponding to the target user based on the at least one period of target files of the target user. Therefore, the method can determine the target files of the target user from the target files uploaded by multiple terminal devices based on the acquisition sequence number, and then determine the state information corresponding to the target user.

[0200] Fig. 9 A schematic flow chart of another body data processing method provided by an embodiment of the present invention.

[0201] Similarly, the body data processing method according to the embodiment of the present invention is applied to the server.

[0202] like Fig. 9 As shown, the body data processing method includes the following steps:

[0203] Step 901: receiving at least one period of target files uploaded by at least one terminal device, and storing at least one period of target files in a file server.

[0204] Step 902: Determine at least one period of target files of a target user from at least one period of target files according to the collection sequence number.

[0205] It should be noted that for details not disclosed in the above steps 901-902, please refer to the above description of steps 801-802, and the details will not be repeated here.

[0206] Step 903: for any target file in the target files of at least one period, concatenate the fixed prefix of the file address with the upload sequence number corresponding to the target file to generate a file address corresponding to the target file.

[0207] As a possible implementation method, the server can store the target file of at least one period uploaded by at least one terminal device to the file server, and at the same time, generate a file address corresponding to any target file among the target files of at least one period uploaded by at least one terminal device, so that the algorithm can obtain the target file from the file server based on the file address.

[0208] Optionally, the server can generate the file address corresponding to the target file by concatenating the fixed prefix of the file address with the upload sequence number corresponding to the target file. The embodiment of the present invention does not limit the setting of the fixed prefix of the file address. Optionally, the fixed prefix of the file address can be set according to manual experience. For example, the fixed prefix of the file address can be set to http: / / www.oss.xxx.com / famdoc / . Alternatively, the fixed prefix of the file address can be dynamically adjusted according to actual application requirements. The embodiment of the present invention does not limit this.

[0209] Step 904: Store the file address and upload information corresponding to the target file of at least one cycle into a database.

[0210] The upload information includes a user identifier and an application identifier corresponding to a target file of at least one period.

[0211] In the embodiment of the present invention, after generating the file address corresponding to the target file of at least one cycle, the file address and the upload information can be stored in a database for preservation. The database can be any database, such as a MySQL database.

[0212] Step 905 : For any target file in the target files of at least one period of the target user, an MQ message corresponding to the target file is sent according to the upload sequence number corresponding to the target file.

[0213] In an embodiment of the present invention, the message notification may be an MQ (Message Queue) message. The server may send an MQ message corresponding to any target file in at least one cycle of the target user's target files according to the upload sequence number corresponding to the target file, so as to trigger the algorithm service to calculate the status information through the MQ message.

[0214] For example, assuming that the upload sequence number of the target file is 100001, the MQ message corresponding to the target file can be

[0215]

[0216] Step 906, triggering the algorithm to parse the MQ message corresponding to the target file, obtain the upload sequence number corresponding to the target file, and determine the file address corresponding to the target file based on the upload sequence number corresponding to the target file, so as to obtain the target file from the file server based on the file address corresponding to the target file, and determine the status information corresponding to the target user based on the target file of at least one period of the target user.

[0217] In the embodiment of the present invention, the server can trigger an algorithm to parse the MQ message corresponding to the target file, thereby obtaining the upload sequence number corresponding to the target file, and obtain the file address corresponding to the target file by concatenating the fixed prefix of the file address with the upload sequence number, and then obtain the target file from the file server based on the file address. Thus, the algorithm can obtain the target file of at least one period of the target user from the file server, and the algorithm can determine the status information corresponding to the target user based on the obtained target file of at least one period of the target user.

[0218] Step 907: Store the status information in a database.

[0219] In the embodiment of the present invention, the server may store the status information corresponding to the determined target user in a database.

[0220] Step 908: In response to the target file of any cycle having performed calculation of state information, a calculation identifier of the target file is stored in a storage device.

[0221] The calculation mark is used to indicate that the data has been calculated.

[0222] In the embodiment of the present invention, the server can store the calculation identification of the target file in the storage device when the state information of the target file in any cycle has been calculated to prevent repeated calculation. The storage device can be redis, mysql, etc., which is not limited in the present embodiment.

[0223] For example, assuming that the status information of target file 1 (reqID1) has been calculated, the calculation identifier (CAL_REQID_1) of target file 1 can be stored in the storage device. When the status information is calculated again later, if target file 1 is scanned again, it will first check whether the calculation identifier (CAL_REQID_1) of target file 1 in the storage device exists. If it exists, it will no longer be calculated.

[0224] In the body data processing method of the embodiment of the present invention, the server end generates the file address corresponding to the target file by splicing the file address fixed prefix and the upload sequence number corresponding to the target file for any target file in at least one cycle, and stores the file address and upload information corresponding to the target file in at least one cycle in the database, so as to send the MQ message corresponding to the target file according to the upload sequence number corresponding to the target file for any target file in at least one cycle of the target user, trigger the algorithm to parse the MQ message corresponding to the target file, obtain the upload sequence number corresponding to the target file, and determine the file address corresponding to the target file according to the upload sequence number corresponding to the target file, so as to obtain the target file from the file server based on the file address corresponding to the target file, and determine the state information corresponding to the target user based on the target file of at least one cycle of the target user, and then store the state information in the database, and in response to the target file of any cycle having calculated the state information, store the calculation identifier of the file in the storage device. Therefore, the method can realize the calculation of the state information only once for any target file, effectively reducing the calculation amount of the server end.

[0225] Fig.10 A schematic flow chart of another body data processing method provided by an embodiment of the present invention.

[0226] Similarly, the body data processing method according to the embodiment of the present invention is applied to the server.

[0227] like Fig.10 As shown, the body data processing method includes the following steps:

[0228] Step 1001: receiving at least one period of target files uploaded by at least one terminal device, and storing at least one period of target files in a file server.

[0229] Step 1002: Determine at least one period of target files of a target user from at least one period of target files according to the collection sequence number.

[0230] Step 1003: for any target file in the target files of at least one period, concatenate the fixed prefix of the file address with the upload sequence number corresponding to the target file to generate a file address corresponding to the target file.

[0231] Step 1004: store the file address and upload information corresponding to the target file of at least one cycle into a database.

[0232] Step 1005 , for any target file in the target files of at least one period of the target user, an MQ message corresponding to the target file is sent according to the upload sequence number corresponding to the target file.

[0233] Step 1006, triggering the algorithm to parse the MQ message corresponding to the target file, obtain the upload sequence number corresponding to the target file, and determine the file address corresponding to the target file based on the upload sequence number corresponding to the target file, so as to obtain the target file from the file server based on the file address corresponding to the target file.

[0234] It should be noted that for details not disclosed in the above steps 1001-1006, please refer to the above description of steps 901-906, and the details will not be repeated here.

[0235] Step 1007: for any target file in the target files of at least one period of the target user, check whether there is a calculation identifier of the target file in the storage device.

[0236] In an embodiment of the present invention, before calculating the status information corresponding to the target user based on the target files of at least one period of the target user, the server may first check whether a calculation identifier of the target file exists in the storage device for any target file in the target files of at least one period of the target user to prevent repeated calculation.

[0237] Step 1008: If the calculation identifier of the target file does not exist in the storage device, the target file is sampled and preprocessed to obtain preprocessed data corresponding to the target file.

[0238] Step 1009, according to the preprocessed data corresponding to the target file, blood pressure calculation, blood oxygen calculation and respiratory rate calculation are performed respectively to obtain the blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file.

[0239] In the embodiment of the present invention, the state information is used to characterize the physical state of the target user, and may include blood pressure value, blood oxygen value and respiratory rate value.

[0240] For example, the server can trigger the algorithm to divide the pre-processed data corresponding to the target file into three threads for separate processing, and calculate the blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file respectively.

[0241] Step 1010, based on the blood pressure values, blood oxygen values ​​and respiratory rate values ​​corresponding to the target files of each period of the target user, determine the average blood pressure value, average blood oxygen value and average respiratory rate value of the target user.

[0242] In an embodiment of the present invention, the server can trigger an algorithm to determine the average blood pressure value of the target user based on the blood pressure values ​​corresponding to the target files of each period of the target user; determine the average blood oxygen value of the target user based on the blood oxygen values ​​corresponding to the target files of each period of the target user; and determine the average respiratory rate value of the target user based on the respiratory rate values ​​corresponding to the target files of each period of the target user.

[0243] Step 1011, the blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file of each period of the target user are stored in the database, and the average blood pressure value, average blood oxygen value and average respiratory rate value of the target user are stored in the database.

[0244] In an embodiment of the present invention, after the trigger algorithm calculates the blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file of each period of the target user, the server can store the calculated blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file of each period of the target user in the database. And after the trigger algorithm calculates the average blood pressure value, average blood oxygen value and average respiratory rate value of the target user, the calculated average blood pressure value, average blood oxygen value and average respiratory rate value of the target user can also be stored in the database.

[0245] In the body data processing method of the embodiment of the present invention, the server checks whether there is a calculation identifier of the target file in the storage device for any target file in the target files of each period of the target user, and implements sampling and preprocessing of the target file in the case where the calculation identifier of the target file does not exist in the storage device to obtain the preprocessing data corresponding to the target file, thereby performing blood pressure calculation, blood oxygen calculation and respiratory rate calculation respectively according to the preprocessing data corresponding to the target file to obtain the blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file, and then based on the blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file of each period, the average blood pressure value, average blood oxygen value and average respiratory rate value of the target user are determined, and the blood pressure value, blood oxygen value and respiratory rate value corresponding to any target file in the target files of each period of the target user are stored in the database, and the average blood pressure value, average blood oxygen value and average respiratory rate value of the target user are stored in the database. Therefore, the method can realize the calculation of the state information corresponding to the target user based on the target file in the case where the calculation identifier of the target file does not exist in the storage device.

[0246] Fig.11 A schematic flow chart of another body data processing method provided by an embodiment of the present invention.

[0247] Similarly, the body data processing method according to the embodiment of the present invention is applied to the server.

[0248] like Fig.11 As shown, the body data processing method includes the following steps:

[0249] Step 1101: receiving at least one period of target files uploaded by at least one terminal device, and storing at least one period of target files in a file server.

[0250] Step 1102: Determine at least one period of target files of a target user from at least one period of target files according to the collection sequence number.

[0251] Step 1103, based on the upload sequence number corresponding to the target file of at least one period of the target user, obtain the target file of at least one period of the target user from the file server through a message notification trigger algorithm, and determine the status information corresponding to the target user based on the target file of at least one period of the target user.

[0252] It should be noted that for details not disclosed in the above steps 1101-1103, please refer to the above description of steps 801-803, and the details will not be repeated here.

[0253] Step 1104 , based on the upload sequence number corresponding to the target file of at least one period of the target user, detect whether the received target file of at least one period of the target user is missing.

[0254] In the embodiment of the present invention, the server can detect whether the target file of at least one period of the received target user is missing according to whether the upload sequence number of the target file of at least one period of the received target user is continuous. Optionally, if the upload sequence numbers corresponding to the target file of at least one period of the received target user are continuous, it means that the target file of at least one period of the received target user is not missing; if the upload sequence numbers corresponding to the target file of at least one period of the received target user are not continuous, it means that the target file of at least one period of the received target user is missing.

[0255] Step 1105 , when the upload sequence numbers corresponding to the target files of at least one period of the target user are continuous, it is determined that the detection result is that the target files of at least one period of the target user received by the server are not missing.

[0256] Step 1106 , when the upload sequence numbers corresponding to the target files of at least one period of the target user are not continuous, determining that the detection result is that the target files of at least one period of the target user received by the server are missing.

[0257] In the body data processing method of the embodiment of the present invention, the server detects whether the target file of at least one period of the target user received is missing based on the upload sequence number corresponding to the target file of at least one period of the target user, so as to achieve that when the upload sequence number corresponding to the target file of at least one period of the target user is continuous, the detection result is determined to be that the target file of at least one period of the target user received by the server is not missing, or when the upload sequence number corresponding to the target file of at least one period of the target user is not continuous, the detection result is determined to be that the target file of at least one period of the target user received by the server is missing. Therefore, the method can realize that the server automatically determines whether data loss occurs during data transmission based on the upload sequence number corresponding to the target file of at least one period of the target user received.

[0258] In order to clearly illustrate the above embodiment, an example is now given for illustration.

[0259] Fig.12 A schematic flow chart of a method for processing body data in a scenario provided by an embodiment of the present invention.

[0260] like Fig.12 As shown, the body data processing method includes:

[0261] First, run the target application locally on the terminal device, and before collecting data through the target application running on the terminal device, preset Figure 3 In the preparation detection phase shown, a first prompt message is displayed in the interface of the target application to remind the target user to place his fingertips in the camera area of ​​the terminal device, so that when the target application detects the fingertip image of the target user, the buffer countdown of the target application is started, and data collection begins when the buffer countdown ends.

[0262] There are two purposes for the preset preparation test: one is to prepare the user by placing his fingertips in the camera area of ​​the terminal device and adjusting the position; the other is that the preparation test stage can be used as a buffer, in which the buffer countdown can be freely controlled in terms of time length, and can even be randomly issued (for example, 5s). When there is a user impact of relatively large traffic, the buffer time length can be increased proportionally to delay the instantaneous impact of large traffic on the server.

[0263] 1. Data collection process

[0264] The terminal device obtains the fingertip image of the target user collected by the camera within the preset collection period through the target application running on the terminal device, and performs PPG signal processing based on the obtained fingertip image to output the fingertip signal. After that, the terminal device periodically reads the fingertip signal output by the target application to generate the target file of the corresponding period based on the fingertip signal read in each period. The specific steps are as follows:

[0265] 1.1 The target application continuously collects the fingertip images of the target user through a camera based on a preset sampling frequency within a preset collection period.

[0266] The preset sampling frequency refers to a predetermined sampling frequency for collecting fingertip images of a target user through a camera, such as Fig.12 As shown, the preset sampling frequency may be 30 times / s.

[0267] The preset acquisition period refers to the preset duration for acquiring the fingertip image of the target user through the camera. Optionally, the preset acquisition period can be set to 30s, 60s, 90s, 100s, etc., which is not limited here.

[0268] It should be noted that each time the target application collects data within a preset collection period, a corresponding collection sequence number is generated.

[0269] 1.2 The target application performs PPG conversion on the captured fingertip images and outputs computable signal data (fingertip signals in PPG format).

[0270] 1.3 The terminal device generates a target file based on the fingertip signal output by the target application and stores it locally on the terminal device.

[0271] Optionally, the terminal device may periodically read the fingertip signals output by the target application based on a preset period duration, and for the fingertip signals read in any period, generate a target file of the corresponding period based on a preset data format and store it locally on the terminal device.

[0272] The preset cycle duration is determined based on the preset collection period. It is understandable that the preset cycle duration should not be greater than the duration of the preset collection period. For example, assuming that the preset collection period is 90 seconds, then the preset cycle duration should not be greater than 90 seconds, and can be 10 seconds, 20 seconds, etc.

[0273] The preset data format may be any data format, such as Json data format, etc., which is not limited here.

[0274] 2. Data upload and processing flow

[0275] Whenever the terminal device generates a target file of a period, it uploads the target file to the server, so that the server determines the state information corresponding to the target user based on the target file of each period, wherein the state information is used to characterize the physical state of the target user.

[0276] The server receives the target files of each period of the target user uploaded by the terminal device, stores the target files of each period of the target user to the file server, and stores the file address and upload information corresponding to the target files of each period to the database, and then obtains the target files of each period of the target user from the file server through a message notification trigger algorithm, and determines the status information corresponding to the target user based on the target files of each period of the target user.

[0277] 2.1 The terminal device polls the local storage of the terminal device through the timing component of the target application.

[0278] The polling frequency of the timing component is determined based on the preset cycle duration. For example, assuming the preset cycle duration is 10 seconds, the polling frequency of the timing component can be 10 seconds / time, that is, Fig.12 As shown, polling is performed every 10 seconds.

[0279] 2.2 When the terminal device has a target file of any period stored locally, it uploads the target file to the server.

[0280] Optionally, when the terminal device has a target file of any period stored locally, the target file may be uploaded to the server through an HTTP channel, thereby uploading the target file of each period of the target user to the server.

[0281] 2.3 The server receives the target files of each period of the target user uploaded by the terminal device, and stores the target files of each period of the target user in the file server.

[0282] like Fig.11 As shown, the file server may be OSS.

[0283] It should be noted that the server can receive at least one period of target files uploaded by at least one terminal device, and store the received target files in the file server. In this case, since the target files received by the server may come from different users, the server needs to determine the target files of at least one period of the target user from the received target files based on the collection sequence number.

[0284] 2.4 The server stores the file address and upload information corresponding to the target file of each cycle in the database.

[0285] The file address is generated by the server based on the upload sequence number corresponding to the target file.

[0286] As a possible implementation, the server can store the target file of at least one period uploaded by at least one terminal device to the file server, and for any target file in the target file of at least one period uploaded by at least one terminal device, generate a file address corresponding to the target file by concatenating the fixed prefix of the file address with the upload sequence number corresponding to the target file. The embodiment of the present invention does not limit the setting of the fixed prefix of the file address. Optionally, the fixed prefix of the file address can be set according to manual experience. For example, the fixed prefix of the file address can be set to http: / / www.oss.xxx.com / famdoc / , or the fixed prefix of the file address can be dynamically adjusted according to actual application requirements, which is not limited by the embodiment of the present invention.

[0287] The upload information includes a user identifier and an application identifier corresponding to a target file of at least one period.

[0288] The database can be any database, such as Fig.12 As shown, the database can be a MySQL database.

[0289] It should be noted that the server can store the file address and upload information corresponding to any target file in the target file of at least one period uploaded by at least one terminal device in the database.

[0290] 2.5 The server obtains the target files of each period of the target user from the file server through the message notification trigger algorithm, and determines the status information corresponding to the target user based on the target files of each period of the target user.

[0291] As a possible implementation method, the message notification can be an MQ message. The server can send an MQ message corresponding to any target file in at least one period of the target user's target files according to the upload sequence number corresponding to the target file, so as to trigger the algorithm to obtain the target file from the file server through the MQ message. As a result, the algorithm can obtain the target file of at least one period of the target user from the file server, and thus determine the status information corresponding to the target user based on the obtained target file of at least one period of the target user.

[0292] It should be noted that the server also needs to detect the target file of at least one period of the target user received. Optionally, the server can detect whether the target file of at least one period of the target user received is missing based on the upload sequence number corresponding to the target file of at least one period of the target user, so that if the upload sequence number corresponding to the target file of at least one period of the target user is continuous, the detection result is determined to be that the target file of at least one period of the target user received by the server is not missing, or if the upload sequence number corresponding to the target file of at least one period of the target user is not continuous, the detection result is determined to be that the target file of at least one period of the target user received by the server is missing.

[0293] 3. Algorithm processing flow

[0294] The algorithm obtains at least one period of target files of a target user from a file server, calculates state information, and stores the state information in a database.

[0295] 3.1 Obtain at least one period of target files of the target user from the file server.

[0296] As a possible implementation method, the algorithm can receive any target file in the target files of at least one period for the target user from the server, and send an MQ message corresponding to the target file according to the upload sequence number corresponding to the target file, and obtain the upload sequence number corresponding to the target file by parsing the MQ message corresponding to the target file, and obtain the file address corresponding to the target file by concatenating the fixed prefix of the file address with the upload sequence number, and then obtain the target file from the file server based on the file address. Thus, the algorithm can obtain the target file of at least one period of the target user from the file server.

[0297] 3.2 Algorithm internal calculations.

[0298] like Fig.13 As shown, after the algorithm obtains the target files of each cycle, it performs data segmentation calculation. First, the algorithm samples and preprocesses any target file in the target files of at least one cycle of the target user to obtain the preprocessed data corresponding to the target file, and then divides the preprocessed data corresponding to the target file into three threads for separate processing, and calculates the blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file respectively. Thus, the algorithm can calculate the blood pressure value, blood oxygen value and respiratory rate value corresponding to the target files of each cycle of the target user, and thus determine the average blood pressure value, average blood oxygen value and average respiratory rate value of the target user based on the blood pressure value, blood oxygen value and respiratory rate value corresponding to the target files of each cycle of the target user.

[0299] 3.3 Store the status information in the database.

[0300] As a possible implementation method, the algorithm can store the blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file of each period of the target user calculated in the database, and also store the average blood pressure value, average blood oxygen value and average respiratory rate value of the target user calculated in the database.

[0301] like Fig.13 As shown, after the algorithm stores the state information in the database, it also needs to store the calculation identifier of the target file in the storage device when the state information of the target file in any cycle has been calculated to prevent repeated calculation. The storage device is Redis.

[0302] 4. Query status information process

[0303] The terminal device can query the server for status information based on a preset polling frequency, and when the status information is queried, display the status information in the interface of the target application or update the displayed status information.

[0304] 4.1 The terminal device queries the server for status information based on the preset polling frequency.

[0305] The preset polling frequency is determined based on the preset cycle duration. For example, assuming the preset cycle duration is 10 seconds, then the preset polling frequency may be 10 seconds / time, that is, Fig.11 As shown, polling is performed every 10 seconds to query the calculation results.

[0306] 4.2 When the terminal device obtains the status information, it displays the status information in the interface of the target application or updates the displayed status information.

[0307] like Fig.12 As shown, since the preset polling frequency is 10s / time, the terminal device can push the status information to the interface of the target application and keep refreshing once every 10s.

[0308] It should be noted that if the terminal device can also obtain the detection result determined by the server based on the upload sequence number corresponding to the target file of at least one period of the target user received from the server when any polling fails to find the status information corresponding to the target user, the reason for the failure to obtain the status information corresponding to the target user can be determined based on the obtained detection result. Optionally, when the detection result shows that the target file of at least one period of the target user received by the server is not missing, the terminal device can determine that the reason for the failure to obtain the status information is that the fingertip image of the target user captured by the camera is incorrect, thereby reminding the target user whether to re-detect by displaying a second prompt message in the interface of the target application.

[0309] With the above Figures 1 to 7 Corresponding to the body data processing method provided in the embodiment, the present invention also provides a body data processing device. Figures 1 to 7 The body data processing method provided in the embodiment corresponds to the body data processing method, so the implementation of the body data processing method is also applicable to the body data processing device provided in the embodiment of the present invention, and will not be described in detail in the embodiment of the present invention.

[0310] Fig.14 A schematic diagram of the structure of a body data processing device provided by an embodiment of the present invention.

[0311] like Fig.14 As shown, the body data processing device 1400 includes: a first processing module 1401 , a reading module 1402 , a first uploading module 1403 and a second processing module 1404 .

[0312] The first processing module 1401 is used to obtain the fingertip image of the target user collected by the camera within a preset collection period through the target application running on the terminal device, and perform photoplethysmography (PPG) signal processing based on the obtained fingertip image to output a fingertip signal;

[0313] The reading module 1402 is used to periodically read the fingertip signal output by the target application program, so as to generate a target file of a corresponding period based on the fingertip signal read in each period;

[0314] The first uploading module 1403 is used for uploading the target file to the server whenever a target file of a period is generated, so that the server determines the state information corresponding to the target user based on the target file of each period, wherein the state information is used to represent the physical state of the target user;

[0315] The second processing module 1404 is used to obtain status information from the server and display it in the interface of the target application.

[0316] According to one or more embodiments of the present invention, the reading module 1402 is used to periodically read the fingertip signal output by the target application program to generate a target file of the corresponding period based on the fingertip signal read in each period, including:

[0317] Based on a preset cycle duration, periodically reading the fingertip signal output by the target application within a preset collection period, wherein the preset cycle duration is determined based on the preset collection period;

[0318] For the fingertip signal read in any cycle, a target file of the corresponding cycle is generated based on a preset data format.

[0319] According to one or more embodiments of the present invention, the above-mentioned device further includes:

[0320] A display module, used to display the first prompt information in the interface of the target application program to remind the target user to place the fingertip in the camera area of ​​the terminal device;

[0321] The activation module is used to activate the buffer countdown of the target application when the target application detects the fingertip image of the target user, so as to obtain the fingertip image of the target user captured by the camera within a preset capture period through the target application when the buffer countdown ends.

[0322] According to one or more embodiments of the present invention, the target file of each period is stored locally on the terminal device, and the first uploading module 1403 is used to upload the target file to the server whenever a target file of a period is generated, including:

[0323] Polling the local storage of the terminal device through a timing component of the target application, wherein the polling frequency of the timing component is determined based on a preset cycle duration;

[0324] If the target file of any period exists in the local storage, the target file is uploaded to the server.

[0325] According to one or more embodiments of the present invention, the above-mentioned device further includes:

[0326] The generation module is used to generate a collection sequence number corresponding to a preset collection period and an upload sequence number corresponding to a target file of each period through a target application.

[0327] According to one or more embodiments of the present invention, the second processing module 1404 is used to obtain status information from the server and display it in the interface of the target application, including:

[0328] Based on a preset polling frequency, query the server for status information, wherein the preset polling frequency is determined based on a preset cycle duration;

[0329] When the status information is found, the status information is displayed in the interface of the target application or the displayed status information is updated.

[0330] According to one or more embodiments of the present invention, the above-mentioned device further includes:

[0331] An acquisition module, used for acquiring, when no status information is found in any polling, a detection result determined by the server based on an upload sequence number corresponding to a target file of at least one period of a target user received;

[0332] The third processing module is used to determine that the reason for the failure to obtain the status information is that the fingertip image of the target user captured by the camera is incorrect when the detection result is that the target file of at least one period of the target user received by the server is not missing, and display a second prompt message in the interface of the target application to remind the target user whether to re-detect.

[0333] According to the body data processing device of the embodiment of the present invention, the terminal device with a camera obtains the fingertip image of the target user collected by the camera within a preset collection period through the target application running on the terminal device, and performs photoelectric volume pulse wave PPG signal processing based on the obtained fingertip image, outputs the fingertip signal, and periodically reads the fingertip signal output by the target application, so as to generate a target file of the corresponding period based on the fingertip signal read in each period, and uploads the target file to the server whenever a target file of a period is generated, so that the server determines the state information corresponding to the target user based on the target file of each period, wherein the state information is used to characterize the physical state of the target user, and then obtains the state information from the server, and displays it in the interface of the target application. Thus, the method can realize periodic reading and uploading of data, and solve the technical problem of the disconnection of the transmission link caused by the long data transmission time caused by the data collection in the terminal device in the related technology.

[0334] With the above Figures 8 to 10 Corresponding to the body data processing method provided in the embodiment, the present invention also provides a body data processing device. Figures 8 to 10 The body data processing method provided in the embodiment corresponds to the body data processing method, so the implementation of the body data processing method is also applicable to the body data processing device provided in the embodiment of the present invention, and will not be described in detail in the embodiment of the present invention.

[0335] Fig.15 A schematic diagram of the structure of another body data processing device provided in an embodiment of the present invention.

[0336] like Fig.15 As shown, the body data processing device includes: a fourth processing module 1501 , a first determination module 1502 and a trigger algorithm module 1503 .

[0337] The fourth processing module 1501 is used to receive at least one period of target files uploaded by at least one terminal device, and store the at least one period of target files in the file server;

[0338] A first determining module 1502 is used to determine at least one period of target files of a target user from at least one period of target files according to the collection sequence number;

[0339] The trigger algorithm module 1503 is used to obtain the target file of at least one period of the target user from the file server through a message notification trigger algorithm based on the upload sequence number corresponding to the target file of at least one period of the target user, and determine the status information corresponding to the target user based on the target file of at least one period of the target user.

[0340] According to one or more embodiments of the present invention, the above-mentioned device further includes:

[0341] The generation module is used to concatenate the fixed prefix of the file address with the upload sequence number corresponding to the target file for any target file in the target files of at least one cycle, so as to generate the file address corresponding to the target file.

[0342] According to one or more embodiments of the present invention, the message notification is a message queue MQ message; the triggering algorithm module 1503 is used to obtain the target file of at least one period of the target user from the file server through the message notification triggering algorithm based on the upload sequence number corresponding to the target file of at least one period of the target user, including:

[0343] For any target file in at least one period of the target file of the target user, according to the upload sequence number corresponding to the target file, an MQ message corresponding to the target file is sent;

[0344] The trigger algorithm parses the MQ message corresponding to the target file, obtains the upload sequence number corresponding to the target file, and determines the file address corresponding to the target file according to the upload sequence number corresponding to the target file, so as to obtain the target file from the file server based on the file address corresponding to the target file.

[0345] According to one or more embodiments of the present invention, the above-mentioned device further includes:

[0346] The first storage module is used to store the file address and upload information corresponding to the target file of at least one period into a database, wherein the upload information includes the user identifier and application identifier corresponding to the target file of at least one period.

[0347] According to one or more embodiments of the present invention, the above-mentioned device further includes:

[0348] A second storage module, used for storing the state information in a database;

[0349] The third storage module is used to store the calculation mark of the target file in the storage device in response to the target file of any cycle having calculated the state information, wherein the calculation mark is used to indicate that the data has been calculated.

[0350] According to one or more embodiments of the present invention, the state information includes a blood pressure value, a blood oxygen value, and a respiratory rate value; the triggering algorithm module 1503 is used to trigger the algorithm to determine the state information corresponding to the target user based on at least one period of the target user's target file, including:

[0351] For any target file in the target files of at least one cycle of the target user, checking whether a calculation identifier of the target file exists in the storage device;

[0352] In the case where the computing identifier of the target file does not exist in the storage device, sampling and preprocessing the target file to obtain preprocessed data corresponding to the target file;

[0353] According to the preprocessed data corresponding to the target file, respiration calculation, blood pressure calculation and blood oxygen calculation are performed respectively to obtain the blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file;

[0354] Based on the blood pressure values, blood oxygen values, and respiratory rate values ​​corresponding to the target files of each period of the target user, the average blood pressure value, average blood oxygen value, and average respiratory rate value of the target user are determined.

[0355] According to one or more embodiments of the present invention, the second storage module, when used to store the state information in the database, includes:

[0356] The blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file of each cycle of the target user are stored in the database;

[0357] The target user's average blood pressure value, average blood oxygen value and average respiratory rate value are stored in the database accordingly.

[0358] According to one or more embodiments of the present invention, the above-mentioned device further includes:

[0359] A detection module, configured to detect whether the received target file of at least one period of the target user is missing based on an upload sequence number corresponding to the target file of at least one period of the target user;

[0360] A second determination module is used to determine that the detection result is that the target file of at least one period of the target user received by the server is not missing when the upload sequence numbers corresponding to the target files of at least one period of the target user are continuous;

[0361] The third determination module is used to determine that the detection result is that the target file of at least one period of the target user received by the server is missing when the upload sequence numbers corresponding to the target files of at least one period of the target user are not continuous.

[0362] According to the body data processing device of the embodiment of the present invention, the server receives at least one period of target files uploaded by at least one terminal device, and stores the at least one period of target files in the file server, thereby determining at least one period of target files of the target user from the at least one period of target files according to the acquisition sequence number, and then based on the upload sequence number corresponding to the at least one period of target files of the target user, the server obtains at least one period of target files of the target user from the file server through a message notification trigger algorithm, and determines the state information corresponding to the target user based on the at least one period of target files of the target user. Therefore, the method can determine the target files of the target user from the target files uploaded by multiple terminal devices based on the acquisition sequence number, and then determine the state information corresponding to the target user.

[0363] Based on the above embodiments, the present invention also proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the body data processing method proposed in the above embodiments of the present invention is implemented.

[0364] Based on the above embodiments, the present invention further proposes a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the body data processing method proposed in the above embodiments of the present invention.

[0365] Based on the above embodiments, the embodiments of the present invention further propose a computer program product. When the instructions in the computer program product are executed by a processor, the body data processing method proposed in the above embodiments of the present invention is executed.

[0366] Fig.16 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. It should be noted that: Fig.16 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0367] like Fig.16 As shown, the electronic device may include: a shell 11, a processor 12, a memory 13, a circuit board 14 and a power circuit 15, wherein the circuit board 14 is arranged inside the space enclosed by the shell 11, and the processor 12 and the memory 13 are arranged on the circuit board 14; the power circuit 15 is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory 13 is used to store executable program codes; the processor 12 runs the program corresponding to the executable program code by reading the executable program code stored in the memory 13, so as to execute the body data processing method proposed in the aforementioned embodiment of the present invention.

[0368] For details on the specific execution process of the above steps by the processor 12 and the steps further performed by the processor 12 by running the executable program code, please refer to the present application. Figure 1-13 The description of the illustrated embodiment will not be repeated here.

[0369] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0370] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0371] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0372] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0373] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0374] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0375] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0376] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. A method for processing body data, characterized in that: Applied to a terminal device with a camera, the method includes the following steps: Acquire, through the target application program running on the terminal device, the fingertip image of the target user acquired by the camera within a preset acquisition period, perform photoplethysmography (PPG) signal processing based on the acquired fingertip image, and output a fingertip signal; Periodically reading the fingertip signal output by the target application program to generate a target file of a corresponding period based on the fingertip signal read in each period; Whenever a target file of a period is generated, the target file is uploaded to the server, so that the server determines the state information corresponding to the target user based on the target file of each period, wherein the state information is used to represent the physical state of the target user; The status information is obtained from the server and displayed in the interface of the target application.

2. The method according to claim 1, characterized in that The periodically reading the fingertip signal output by the target application program to generate a target file of a corresponding period based on the fingertip signal read in each period, comprises: Based on a preset cycle duration, periodically reading the fingertip signal output by the target application within the preset collection period, wherein the preset cycle duration is determined based on the preset collection period; For the fingertip signal read in any period, a target file of the corresponding period is generated based on a preset data format.

3. The method according to claim 1, characterized in that The target application program running on the terminal device, before acquiring the fingertip image of the target user acquired by the camera within a preset acquisition period, further includes: Displaying a first prompt message in the interface of the target application to remind the target user to place a fingertip in the camera area of ​​the terminal device; When the target application detects the fingertip image of the target user, the buffer countdown of the target application is started, so that when the buffer countdown ends, the fingertip image of the target user captured by the camera within a preset capture period is acquired through the target application.

4. The method according to claim 1, characterized in that The target file of each period is stored locally on the terminal device, and whenever a target file of a period is generated, the target file is uploaded to the server, including: Polling the local storage of the terminal device through a timing component of the target application, wherein the polling frequency of the timing component is determined based on the preset cycle duration; When the local storage has a target file of any period, the target file is uploaded to the server.

5. The method according to claim 1, characterized in that The method further comprises: The target application generates a collection sequence number corresponding to the preset collection period and an upload sequence number corresponding to the target file of each period.

6. The method according to claim 5, characterized in that The acquiring the status information from the server and displaying it in the interface of the target application program includes: Based on a preset polling frequency, querying the server for the status information, wherein the preset polling frequency is determined based on the preset cycle duration; When the status information is found, the status information is displayed in the interface of the target application or the displayed status information is updated.

7. The method according to claim 6, characterized in that The method further comprises: In the case that the status information is not queried in any polling, obtaining a detection result determined by the server based on an upload sequence number corresponding to at least one period of the target file of the target user received; When the detection result is that at least one period of target files of the target user received by the server is not missing, it is determined that the reason for the failure to obtain the status information is that the fingertip image of the target user captured by the camera is incorrect, and a second prompt message is displayed in the interface of the target application to remind the target user whether to re-detect.

8. A method for processing body data, characterized in that: Applied to the server, it includes the following steps: Receiving at least one period of target files uploaded by at least one terminal device, and storing the at least one period of target files in a file server; Determining, according to the collection sequence number, a target file of at least one period of a target user from the target files of at least one period; Based on the upload sequence number corresponding to the target file of at least one period of the target user, the target file of at least one period of the target user is obtained from the file server through a message notification trigger algorithm, and based on the target file of at least one period of the target user, the status information corresponding to the target user is determined.

9. The method according to claim 8, characterized in that The method further comprises: For any target file in the target files of the at least one period, a fixed prefix of the file address is concatenated with an upload sequence number corresponding to the target file to generate a file address corresponding to the target file.

10. The method according to claim 9, characterized in that The message notification is a message queue MQ message; the upload sequence number corresponding to the target file of at least one period of the target user is obtained from the file server through the message notification trigger algorithm, including: For any target file in the target files of at least one period of the target user, according to the upload sequence number corresponding to the target file, an MQ message corresponding to the target file is sent; The trigger algorithm parses the MQ message corresponding to the target file, obtains the upload sequence number corresponding to the target file, and determines the file address corresponding to the target file according to the upload sequence number corresponding to the target file, so as to obtain the target file from the file server based on the file address corresponding to the target file.

11. The method according to claim 9, characterized in that The method further comprises: The file address and upload information corresponding to the target file of the at least one cycle are stored in a database, wherein the upload information includes a user identifier and an application identifier corresponding to the target file of the at least one cycle.

12. The method according to claim 11, characterized in that The method further comprises: storing the status information in the database; In response to the target file of any cycle having calculated the state information, a calculation identifier of the target file is stored in a storage device, wherein the calculation identifier is used to indicate that the data has been calculated.

13. The method according to claim 12, characterized in that The state information includes a blood pressure value, a blood oxygen value, and a respiratory rate value; and determining the state information corresponding to the target user based on at least one periodic target file of the target user includes: For any target file in the target files of at least one period of the target user, checking whether a calculation identifier of the target file exists in the storage device; In the case that the calculation identifier of the target file does not exist in the storage device, sampling and preprocessing the target file to obtain preprocessed data corresponding to the target file; According to the preprocessed data corresponding to the target file, blood pressure calculation, blood oxygen calculation and respiratory rate calculation are performed respectively to obtain the blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file; Based on the blood pressure values, blood oxygen values ​​and respiratory rate values ​​corresponding to the target files of each period of the target user, the average blood pressure value, average blood oxygen value and average respiratory rate value of the target user are determined.

14. The method according to claim 13, characterized in that The storing the state information in the database comprises: The blood pressure value, blood oxygen value and respiratory rate value corresponding to the target file of each period of the target user are stored in the database, and the average blood pressure value, average blood oxygen value and average respiratory rate value of the target user are stored in the database.

15. The method according to any one of claims 8 to 14, characterized in that: The method further comprises: Based on the upload sequence number corresponding to the target file of at least one period of the target user, detecting whether the received target file of at least one period of the target user is missing; In a case where the upload sequence numbers corresponding to the target files of at least one period of the target user are continuous, determining that the detection result is that the target files of at least one period of the target user received by the server are not missing; When the upload sequence numbers corresponding to the target files of at least one period of the target user are not continuous, it is determined that the detection result is that the target files of at least one period of the target user received by the server are missing.

16. A body data processing device, characterized in that: Applicable to terminal devices with cameras, including: A first processing module is used to obtain a fingertip image of a target user collected by the camera within a preset collection period through a target application running on the terminal device, and perform photoplethysmography (PPG) signal processing based on the obtained fingertip image to output a fingertip signal; A reading module, used for periodically reading the fingertip signal output by the target application program, so as to generate a target file of a corresponding period based on the fingertip signal read in each period; A first uploading module is used for uploading the target file to the server whenever a target file of a period is generated, so that the server determines the state information corresponding to the target user based on the target file of each period, wherein the state information is used to represent the physical state of the target user; The second processing module is used to obtain the status information from the server and display it in the interface of the target application.

17. A body data processing device, characterized in that: Applied to the server, including: A fourth processing module, configured to receive a target file of at least one period uploaded by at least one terminal device, and store the target file of at least one period in a file server; A first determining module, configured to determine, according to the collection sequence number, a target file of at least one period of a target user from the target files of at least one period; A trigger algorithm module is used to obtain the target file of at least one period of the target user from the file server through a message notification trigger algorithm based on the upload sequence number corresponding to the target file of at least one period of the target user, and determine the status information corresponding to the target user based on the target file of at least one period of the target user.

18. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method implements the body data processing method as described in any one of claims 1 to 7, or implements the body data processing method as described in any one of claims 8 to 15.

19. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it implements the body data processing method as described in any one of claims 1-7, or implements the body data processing method as described in any one of claims 8-15.