User body fat detection method and device, computer device and medium

文档序号:1943723 发布日期:2021-12-10 浏览:15次 中文

阅读说明:本技术 用户体脂检测方法和装置、计算机设备以及介质 (User body fat detection method and device, computer device and medium ) 是由 洪祥瑞 谷筱 梁耀龙 于 2021-08-02 设计创作,主要内容包括:本申请提供用户体脂检测方法和装置、计算机设备及介质。其中,方法包括:获取第一感应电流,所述第一感应电流为预设磁场中的磁感应装置在目标用户处于所述预设磁场中的情况下产生的感应电流,其中,所述预设磁场由与所述磁感应装置对应的磁场发生装置产生,所述磁感应装置与所述磁场发生装置位于体脂检测设备内;根据所述第一感应电流和预设的体脂检测模型,确定所述目标用户的用户体脂,其中,所述体脂检测模型保存有用户体脂与感应电流之间的对应关系。本申请可实现准确测量用户体脂。(The application provides a user body fat detection method and device, computer equipment and a medium. The method comprises the following steps: acquiring a first induced current, wherein the first induced current is an induced current generated by a magnetic induction device in a preset magnetic field when a target user is in the preset magnetic field, the preset magnetic field is generated by a magnetic field generation device corresponding to the magnetic induction device, and the magnetic induction device and the magnetic field generation device are located in body fat detection equipment; and determining the body fat of the user of the target user according to the first induction current and a preset body fat detection model, wherein the body fat detection model stores the corresponding relation between the body fat of the user and the induction current. The method and the device can realize accurate measurement of the body fat of the user.)

1. A method for detecting body fat of a user, comprising:

acquiring a first induced current, wherein the first induced current is an induced current generated by a magnetic induction device in a preset magnetic field when a target user is in the preset magnetic field, the preset magnetic field is generated by a magnetic field generation device corresponding to the magnetic induction device, and the magnetic induction device and the magnetic field generation device are located in body fat detection equipment;

and determining the body fat of the user of the target user according to the first induction current and a preset body fat detection model, wherein the body fat detection model stores the corresponding relation between the body fat of the user and the induction current.

2. The method of claim 1, wherein the correspondence relationship is a function of height, weight, and induced current as independent variables and user body fat as a dependent variable;

the determining the user body fat of the target user according to the first induced current and a preset body fat detection model comprises:

acquiring weight data and height data of the target user;

and substituting the weight data, the height data and the first induction current into the functional relation respectively to obtain the body fat of the target user.

3. The method according to claim 1, wherein before determining the body fat of the target user according to the first induced current and a preset body fat detection model, further comprising:

acquiring a second induction current, wherein the second induction current is generated by the magnetic induction device under the condition that no person is in the preset magnetic field;

and correcting the first induction current according to the second induction current.

4. The method of claim 3, wherein the correcting the first induced current based on the second induced current comprises:

acquiring a preset induction current, wherein the preset induction current is the induction current generated by the magnetic induction device in a predetermined unmanned state;

and taking the ratio of the preset induction current to the second induction current as a correction coefficient of the first induction current to obtain a corrected first induction current.

5. The method of any one of claims 1-4, wherein said obtaining a first induced current comprises:

acquiring induced current generated by the magnetic induction device based on the preset magnetic field;

if the induced current generated by the magnetic induction device is determined to be kept unchanged within a preset time after the process of changing from large to small, determining that the target user is in the preset magnetic field, and determining the induced current generated by the magnetic induction device within the preset time as the first induced current.

6. The method according to any one of claims 1-4, wherein after determining the user's body fat of the target user based on the first induced current and a preset body fat detection model, further comprising:

acquiring gender data and age data of the target user;

determining a standard body fat of the target user according to the gender data and the age data;

measuring the body state of the target user by the difference between the user body fat and the standard body fat.

7. The method according to any one of claims 1-4, wherein after determining the user's body fat of the target user based on the first induced current and a preset body fat detection model, further comprising:

after the body fat of the target user in a preset period is obtained, a diet plan and/or an exercise plan are generated for the target user according to the body fat change condition of the target user in the preset period.

8. A user body fat detection device, comprising:

the induction current acquisition module is used for acquiring a first induction current, wherein the first induction current is an induction current generated by a magnetic induction device in a preset magnetic field under the condition that a target user is in the preset magnetic field, the preset magnetic field is generated by a magnetic field generation device corresponding to the magnetic induction device, and the magnetic induction device and the magnetic field generation device are positioned in the body fat detection equipment;

and the body fat calculation module is used for determining the body fat of the user of the target user according to the first induction current and a preset body fat detection model, wherein the body fat detection model stores the corresponding relation between the body fat of the user and the induction current.

9. A computer device comprising memory and one or more processors to execute one or more computer programs stored in the memory, the one or more processors, when executing the one or more computer programs, causing the computer device to implement the method of any of claims 1-7.

10. The utility model provides a body fat balance, its characterized in that, includes balance body, magnetic induction device and magnetic field generating device, the balance body includes first apron and second apron, first apron and second apron enclose to close and form the accommodation space, the magnetic induction device with magnetic field generating device all set up in the accommodation space, magnetic field generating device is used for producing magnetic field, the magnetic induction device be used for based on the magnetic field that magnetic field generating device produced produces induced-current.

11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-7.

Technical Field

The present application relates to the field of user feature detection, and in particular, to a method and an apparatus for detecting body fat of a user, a computer device, and a medium.

Background

A body fat scale is a body fat scale which is derived to measure the body fat of a user along with the increasing importance of the user on the health condition in recent years. Most of the body fat scales on the market currently adopt a Bio-impedance analysis (BIA) method to measure data such as fat and level. When a person stands on the body fat scale, the body fat scale sends out weak current without human body perception through the electrode plates/the conducting films, the weak current flows through the human body and flows from one foot to the other foot, a closed loop is formed, the body fat scale can obtain the resistivity of different parts of the human body in the process, and the content of each part is calculated. Because the current that body fat balance sent is very little, only microampere (mu A) level, if there are factors such as quality of water or impurity at the sole, can influence the precision of measurement to cause measuring error. In addition, the measuring method and the body fat scale need the human body to be in full contact with the electrodes to obtain the resistance of the body fat scale, the standing position of the human body is required to be in contact with the electrodes, and the electrodes in fixed positions also need to be arranged on the scale body, so that the appearance and the convenience are influenced.

Disclosure of Invention

The application provides a method and a device for detecting body fat of a user, computer equipment and a medium, which are used for solving the technical problem of inaccurate measurement caused by body fat measurement by a biological resistance measurement method.

In a first aspect, a method for detecting body fat of a user is provided, which comprises the following steps:

acquiring a first induced current, wherein the first induced current is an induced current generated by a magnetic induction device in a preset magnetic field when a target user is in the preset magnetic field, the preset magnetic field is generated by a magnetic field generation device corresponding to the magnetic induction device, and the magnetic induction device and the magnetic field generation device are positioned in body fat detection equipment;

and determining the body fat of the target user according to the first induction current and a preset body fat detection model, wherein the body fat detection model stores the corresponding relation between the body fat of the target user and the induction current.

In the technical scheme, the induced current generated when the user is in the preset magnetic field can be acquired by acquiring the first induced current, and the body fat of the user can be measured according to the first induced current and the body fat detection model storing the corresponding relation between the body fat of the user and the induced current. Because the body fat of the user is measured in a mode of measuring the induced current of the user in the preset magnetic field, the non-contact measurement can be realized, and the condition of inaccurate measurement caused by biological contact can be avoided in the non-contact measurement, so that the measurement precision is improved.

With reference to the first aspect, in a possible implementation manner, the correspondence relationship is a functional relation formula with height, weight and induced current as independent variables and user body fat as a dependent variable; the determining the user body fat of the target user according to the first induced current and a preset body fat detection model includes: acquiring weight data and height data of the target user; and substituting the weight data, the height data and the first induction current into the functional relation respectively to obtain the user body fat of the target user. The body fat of the user can be obtained by establishing the correlation between the height, the weight and the induced current and the body fat of the user in advance.

With reference to the first aspect, in a possible implementation manner, before determining the body fat of the target user according to the first induced current and a preset body fat detection model, the method further includes: acquiring a second induced current, wherein the second induced current is generated by the magnetic induction device under the condition that no person is in the preset magnetic field; and correcting the first induction current according to the second induction current. The first induced current is corrected by acquiring the induced current in the preset magnetic field under the condition that no person exists, so that the body fat of the user can be detected more accurately.

With reference to the first aspect, in one possible implementation manner, the correcting the first induced current according to the second induced current includes: acquiring a preset induction current, wherein the preset induction current is the induction current generated by the magnetic induction device in a predetermined unmanned state; and taking the ratio of the preset induction current to the second induction current as a correction coefficient of the first induction current to obtain a corrected first induction current. The ratio of the induced current in the magnetic field in the unmanned state measured by the experiment to the induced current in the magnetic field in the unmanned state measured in actual use is used as a correction coefficient, so that the interference caused by the difference between the magnetic induction device and the magnetic field generating device used in the experiment and the magnetic induction device and the magnetic field generating device used in actual application is counteracted, the first induced current obtained by correction is suitable for the body fat detection model, and the detection accuracy is improved.

With reference to the first aspect, in a possible implementation manner, the obtaining the first induced current includes: acquiring an induced current generated by the magnetic induction device based on the preset magnetic field; if it is determined that the induced current generated by the magnetic induction device is changed from large to small and is kept unchanged within a preset time period, it is determined that the target user is in the preset magnetic field, and the induced current generated by the magnetic induction device within the preset time period is determined as the first induced current. Whether the target user is in the preset magnetic field or not is detected by detecting whether the induced current changes or not, and the effect of simplifying the device can be achieved.

With reference to the first aspect, in a possible implementation manner, after determining the body fat of the target user according to the first induced current and a preset body fat detection model, the method further includes: acquiring gender data and age data of the target user; determining a standard body fat of the target user according to the gender data and the age data; and measuring the body state of the target user according to the difference between the body fat of the user and the standard body fat. The body state of the target user is measured by the difference between the body fat of the user and the standard body fat, so that the aim of detecting whether the body state of the user is normal or not can be fulfilled.

With reference to the first aspect, in a possible implementation manner, after determining the body fat of the target user according to the first induced current and a preset body fat detection model, the method further includes: after the body fat of the target user in a preset period is obtained, a diet plan and/or an exercise plan are generated for the target user according to the body fat change condition of the target user in the preset period. After the body fat change condition of the target user in a period of time is obtained, a diet plan or an exercise plan is generated for the target user according to the body fat change condition of the target user, so that the life of the user can be healthier.

In a second aspect, there is provided a user body fat detection device comprising:

an induced current acquisition module, configured to acquire a first induced current, where the first induced current is an induced current generated by a magnetic induction device in a preset magnetic field when a target user is in the preset magnetic field, where the preset magnetic field is generated by a magnetic field generation device corresponding to the magnetic induction device, and the magnetic induction device and the magnetic field generation device are located in a body fat detection apparatus;

and the body fat calculation module is used for determining the body fat of the user of the target user according to the first induction current and a preset body fat detection model, wherein the body fat detection model stores the corresponding relation between the body fat of the user and the induction current.

In a third aspect, there is provided a computer device comprising a memory and one or more processors for executing one or more computer programs stored in the memory, the one or more processors, when executing the one or more computer programs, causing the computer device to implement the method for detecting body fat of a user of the first aspect described above.

The fourth aspect provides a body fat balance, including balance body, magnetic induction device and magnetic field generating device, the balance body includes first apron and second apron, first apron and second apron enclose to close and form the accommodation space, the magnetic induction device with magnetic field generating device all set up in the accommodation space, magnetic field generating device is used for producing magnetic field, and the magnetic induction device is used for based on the magnetic field that magnetic field generating device produced produces induced-current.

In a fourth aspect, there is provided a computer-readable storage medium storing a computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method for detecting body fat of a user of the first aspect.

The technical effect of accurately measuring the body fat of the user can be achieved.

Drawings

Fig. 1 is a schematic structural diagram of a weight scale/body fat scale provided in an embodiment of the present application;

fig. 2 is a schematic flow chart of a method for detecting body fat of a user according to an embodiment of the present disclosure;

FIG. 3 is a schematic structural diagram of a device for detecting body fat of a user according to an embodiment of the present disclosure;

fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

The technical scheme of the application can be suitable for a scene for detecting the body fat of the user.

In some possible embodiments, the technical solution of the present application may be applied to a weight scale/body fat scale including a magnetic field generating device and a magnetic induction device, wherein the magnetic field generating device and the magnetic induction device are both disposed in the weight scale/body fat scale, and the magnetic induction device is disposed in the weight scale/body fat scale corresponding to the magnetic field generating device (meaning that the magnetic induction device is located in a magnetic field generated by the magnetic field generating device), the magnetic field generating device is configured to generate a magnetic field, and the magnetic induction device is configured to generate an induced current based on the magnetic field generated by the magnetic field generating device.

In one embodiment, the magnetic field generating device may be an electromagnet and the magnetic induction device may be a coil antenna. Exemplarily, as shown in fig. 1, the weight/body fat scale 10 may include a scale body 103, an electromagnet 101, and a coil antenna 102, where the scale body 103 includes a first cover plate 1031 and a second cover plate 1032, the first cover plate 1031 and the second cover plate 1032 enclose to form an accommodating space, the first cover plate 1032 may be a display panel for displaying data such as weight data and battery power, and a user may stand on the first cover plate to complete weight detection; the second cover plate 1032 can be a plastic housing for bearing various devices arranged in the accommodating space, such as a main control board and a weight sensor, and the main control board is fixed on the second cover plate 1032 for realizing various control functions, such as analog-to-digital conversion and calculation, power supply for the weight sensor, and the like. The electromagnet 101 and the coil antenna 102 are both arranged in the accommodating space and fixed on the second cover plate 1032 in a bracket clamping manner, and the coil antenna 102 is connected to the main control board through a connecting wire. The two ends of the electromagnet 101 are respectively a north (N) pole and a south (S) pole, and the magnetic induction lines are radially scattered from the N pole of the electromagnet to form a preset magnetic field; the coil antenna 102 is located above the S pole of the electromagnet, and the magnetic induction lines in the preset magnetic field pass through the coil antenna 102 and then converge back to the S pole of the electromagnet. When a magnetic induction wire in a preset magnetic field passes through the coil antenna 102, the coil antenna 102 generates induced electromotive force and induced current, the induced current is transmitted to the main control board through a connecting wire, and the main control board performs analog-to-digital conversion to obtain a determined current value. Alternatively, the magnetic field generating means and the magnetic induction means may have other implementations, for example, the electromagnet may be replaced by a permanent magnet. The application is not limited to the specific implementation modes of the magnetic field generating device and the magnetic induction device and the specific position arrangement in the weight scale/body fat scale.

In other possible embodiments, the technical solution of the present application may also be applied to a terminal device, such as a mobile phone, a tablet, etc., that establishes a communication connection relationship with the weight scale/body fat scale. The body weight scale/body fat scale can send the induced current generated by the magnetic induction device to the terminal equipment through communication connection with the terminal equipment, and the communication connection comprises but is not limited to Bluetooth connection, WiFi connection and the like.

When a user is in a preset magnetic field generated by the magnetic field generating device, the magnetic induction lines in the preset magnetic field can be attenuated by passing through the body of the user, so that the magnetic field intensity in the preset magnetic field is weakened, and the induced current generated by the magnetic induction device based on the attenuated magnetic induction lines can be correspondingly changed compared with the induced current generated by the magnetic induction device when no one is in the preset magnetic field. Due to the difference of height, weight and fat percentage of different users, the attenuation degree of the magnetic induction lines in the preset magnetic field is different due to the difference of the users, and correspondingly, the induced current generated by the magnetic induction device is also different. Based on this, the application provides a method for detecting body fat of a user, which can improve the precision of detecting the body fat of the user by detecting the induced current generated by the magnetic induction device when the user is in a preset magnetic field and determining the body fat of the user according to the induced current. The technical solution of the present application is specifically described below.

Referring to fig. 2, fig. 2 is a schematic flow chart of a method for detecting body fat of a user according to an embodiment of the present application, which may be applied to the aforementioned weight scale/body fat scale or a terminal device that establishes a communication connection relationship with the weight scale/body fat scale, as shown in fig. 2, the method includes the following steps:

s201, acquiring a first induction current.

Here, the first induced current is an induced current generated by magnetic induction means in a preset magnetic field in a case where the target user is in the preset magnetic field, wherein the preset magnetic field is generated by magnetic field generation means corresponding to the magnetic induction means, and the magnetic induction means and the magnetic field generation means are located within the body fat detection apparatus. The magnetic induction device corresponds to the magnetic field generation device, and the magnetic induction device is located in a preset magnetic field generated by the magnetic field generation device. In particular, the body fat detecting device may be the aforementioned weight scale/body fat scale.

The target user may be any user in the preset magnetic field. Specifically, the target user being in the preset magnetic field may mean that the user stands on the body fat detection device; alternatively, it may also mean that the distance between the target user and the body fat detection device is less than a preset distance threshold, wherein the preset distance threshold is determined by the range of the magnetic field generated by the magnetic field generation device.

In a possible embodiment, an induced current generated by the magnetic induction device based on a preset magnetic field can be obtained; after the process that the induced current generated by the magnetic induction device is changed from big to small is determined, the induced current is kept unchanged within the preset time length, the target user is determined to be in the preset magnetic field, and the induced current generated by the magnetic induction device within the preset time length is determined to be the first induced current.

When a person is in the preset magnetic field, the magnetic induction lines in the preset magnetic field are attenuated due to the existence of the body of the person, so that the induction current generated by the magnetic induction device is reduced, and at this time, the target user is in the preset magnetic field, and after the induction current undergoes the process of decreasing from large to small, the induction current is kept unchanged for a period of time, and the target user is always in the preset magnetic field for the period of time, so that the induction current generated by the magnetic induction device within the preset time is the current generated by the magnetic induction device when the target user is in the preset magnetic field, namely the first induction current. Whether the target user is in the preset magnetic field or not is detected by detecting whether the induced current changes or not, the detection of the existence of people in the magnetic field can be realized under the condition that a detection component is not additionally arranged, and the effect of simplifying the device can be achieved.

In another possible embodiment, in the case that the apparatus in which the magnetic induction device and the magnetic field generating device are located is the aforementioned weight scale/body fat scale, it may be further determined whether the weight scale/body fat scale acquires the weight data, and the induced current generated by the magnetic induction device when the weight scale/body fat scale acquires the weight data is determined as the first induced current. When the weight scale/body fat scale acquires the weight data (the weight is detected by the weight scale/body fat scale), it is indicated that a person exists on the weight scale/body fat scale, that is, the target user is in the preset magnetic field, and therefore, the induced current generated by the magnetic induction device when the weight scale/body fat scale acquires the weight data is the current generated by the magnetic induction device when the target user is in the preset magnetic field, that is, the first induced current. Through judging the weight measuring function of the weight scale/body fat scale, the detection of the existence of people in the magnetic field can be realized under the condition of not additionally increasing a detection part, and the effect of simplifying the device can be achieved.

It should be understood that the embodiment of detecting whether the target user is in the preset magnetic field is not limited to the above, and in alternative embodiments, the detection of the presence or absence of a person in the magnetic field may also be implemented in combination with a physiological signal detection manner (for example, whether a physiological signal exists is detected by a piezoelectric film sensor, and an induced current generated by a magnetic induction device when the physiological signal exists is determined as a first induced current), an infrared detection manner, and the like, so as to further achieve the accuracy of the presence or absence of a person, and specifically adopt what manner to detect, and the application is not limited.

And S202, determining the body fat of the target user according to the first induction current and a preset body fat detection model.

Here, the body fat detection model holds the correspondence between the body fat of the user and the induced current. After the first induced current is acquired, the body fat of the user corresponding to the first induced current may be determined as the body fat of the target user according to the first induced current and the corresponding relationship between the body fat of the user and the induced current.

In one possible embodiment, the correspondence between the body fat of the user and the induced current may be a function of the body fat of the user as a dependent variable, and the height, the weight, and the induced current as independent variables. After the first induced current is obtained, the weight data and the height data of the target user can be obtained; and respectively substituting the weight data, the target height data and the first induced current of the target user into the functional relation to obtain the body fat of the target user.

Specifically, the functional relationship with height, weight and induced current as independent variables and body fat of the user as dependent variables can be as follows:

wherein a, b, c, d, e, F, g, H, I and j are function constants, and W is the weight, H is the height, I is the induced current and F is the body fat percentage, which are measured in advance through experiments.

After the weight data, the height data and the first induction current of the target user are obtained, the weight data of the target user is substituted into W in the formula 1, the height data of the target user is substituted into H in the formula 1, and the first induction current is substituted into I in the formula 1, so that F is the body fat of the target user.

In the technical scheme, by utilizing the principle that different users have different attenuation degrees on the magnetic induction lines in the magnetic field and induced currents generated by the magnetic induction device are different, the induced currents generated by the users in the preset magnetic field can be obtained by obtaining the first induced current, and then the body fat of the users can be measured according to the first induced current and the body fat detection model storing the corresponding relation between the body fat of the users and the induced currents. Because the body fat of the user is measured in a mode of measuring the induced current of the user in the preset magnetic field, the non-contact measurement can be realized, and the condition of inaccurate measurement caused by biological contact can be avoided in the non-contact measurement, so that the measurement precision is improved.

Optionally, in some possible embodiments, the first induced current may be corrected to make the detection result more accurate. Before the step S202, the following steps are also included:

step a1, a second induced current is obtained.

Here, the second induced current is an induced current generated by the magnetic induction device in a case where no one is present in the preset magnetic field.

In some possible scenarios, the second induced current may be obtained by obtaining a maximum induced current generated by the magnetic induction device. In the case that no person is in the preset magnetic field, the magnetic induction line in the preset magnetic field passes through the magnetic induction device without attenuation, and in this case, the induced current generated by the magnetic induction device is the maximum, so that the maximum induced current generated by the magnetic induction device is the induced current generated by the magnetic induction device when no person is in the preset magnetic field. By determining the second induced current in this way, it is possible to function as a compact device. In other possible scenarios, the second induced current may be measured at the time of factory shipment and then preset in the equipment where the magnetic induction device and the magnetic field generating device are located, and the second induced current may be obtained from the equipment where the magnetic induction device and the magnetic field generating device are located. In still other possible scenarios, in the case that the apparatus in which the magnetic induction device and the magnetic field generating device are located is the aforementioned weight scale/body fat scale, it may be further determined whether the weight scale/body fat scale acquires the weight data, and the induced current generated by the magnetic induction device when the weight scale/body fat scale does not acquire the weight data is determined as the second induced current. Without being limited to the description herein, in other scenarios, there may be other implementations of acquiring the second induced current, for example, the second induced current may also be acquired by combining a physiological signal detection manner (for example, whether a physiological signal exists is detected by a piezoelectric film sensor, and the induced current generated by the magnetic induction device when the physiological signal does not exist is determined as the second induced current), an infrared detection manner, and the like, and the present application is not limited thereto.

Step a2, correcting the first induced current according to the second induced current.

Because different magnetic field generating devices and magnetic induction devices generate different magnetic field strengths, and induced currents generated by the magnetic induction devices also differ, in order to avoid a slight difference, the first induced current needs to be corrected, so that the first induced current can be adapted to the magnetic induction device (hereinafter referred to as an experimental magnetic induction device) adopted in the process of determining the corresponding relationship between the body fat of the user and the induced currents.

In a possible embodiment, a preset induced current may be obtained, where the preset induced current is an induced current generated by the magnetic induction device in a predetermined unmanned state; and then according to the corresponding relation between the body fat of the user and the induced current, determining the body fat of the user corresponding to the corrected first induced current as the body fat of the target user.

The preset induced current is the experimental magnetic induction device, and the induced current is generated under the condition that no person exists in the magnetic field generated by the magnetic field generating device corresponding to the experimental magnetic induction device.

Specifically, in the case that the corresponding relationship between the body fat of the user and the induced current is a functional relationship formula with the height, the weight and the induced current as independent variables and the body fat of the user as dependent variables, the above formula 1 can be transformed to obtain the following formula:

wherein, I1 is a predetermined induced current, and I2 is a second induced current.

The ratio of the induced current in the magnetic field in the unmanned state measured by the experiment to the induced current in the magnetic field in the unmanned state measured in actual use is used as a correction coefficient, so that the interference caused by the difference between the magnetic induction device and the magnetic field generating device used in the experiment and the magnetic induction device and the magnetic field generating device used in actual application can be offset, the first induced current obtained by correction is suitable for the body fat detection model, and the detection accuracy is improved.

Optionally, in some possible embodiments, the physical state of the target user may also be determined according to the user body fat of the target user. The following steps are also included after the step S202:

and b1, acquiring gender data and age data of the target user.

And b2, determining the standard body fat of the target user according to the gender data and the age data of the target user.

Specifically, a preset standard body fat table may be obtained, in which the correspondence relationship among the user gender, the user age, and the standard body fat is stored, and then the standard body fat corresponding to the gender data and the age data of the target user in the standard body fat table is determined as the standard body fat of the target user according to the gender data and the age data of the target user.

Illustratively, the standard body fat table may be as follows:

age (age) For male Woman
18-20 14.3-18.9 23.2-29
21-25 15.4-21.2 25.5-29.6
28-30 18.1-22.3
31-35 19.2-23.4 26.1-31.5
36-40 20.2-24.4 26.7-32.1
41-45 22.8-26.6 28.8-32.7
46-50 23.9-27.7 29.4-34.4
51-55 25-28.7 30.1-35
Over 56 26-30.8 31.3-37.2

Step b3, measuring the physical state of the target user by the difference between the user's body fat of the target user and the standard body fat of the target user.

Specifically, one or more gap thresholds may be preset, and then a relationship between a gap between the body fat of the target user and the standard body fat of the target user and the plurality of gap thresholds is determined, thereby determining the physical state of the target user.

For example, if the body fat of the target user is less than the standard body fat of the target user, and the difference between the body fat of the target user and the standard body fat of the target user is greater than a first difference threshold, determining that the body state of the target user is a thin state; if the difference between the body fat of the target user and the standard body fat of the target user is smaller than a first difference threshold value, determining that the body state of the target user is a normal state; and if the body fat of the target user is larger than the standard body fat of the target user, and the difference between the body fat of the target user and the standard body fat of the target user is larger than a first difference threshold value, determining that the body state of the target user is an obesity state.

The body state of the target user is measured by the difference between the body fat of the user and the standard body fat, so that the aim of detecting whether the body state of the user is normal or not can be fulfilled. In addition, different standard body fats are set for users of different ages and different sexes, the user standard body fat is finely divided, and the body state of the user can be more accurately measured.

Optionally, in some possible embodiments, a corresponding exercise plan and/or diet plan may also be generated for the target user according to the user's body fat over a period of time. The following steps are also included after the step S202: after the body fat of the target user in the preset period is obtained, a diet plan and/or an exercise plan are generated for the target user according to the body fat change condition of the target user in the preset period.

Specifically, if the body fat change condition of the target user in the preset period is body fat increase, a light diet plan can be generated for the target user, so that the diet of the user is lighter and healthier, and an enhanced exercise plan is generated for the target user to enhance the exercise of the user; if the body fat is maintained according to the body fat change condition of the target user in the preset period, the current diet plan and/or exercise plan of the target user can be maintained; if the body fat change condition of the target user in the preset period is body fat reduction, a normal diet plan can be generated for the user, so that the user keeps normal diet, and a simple exercise plan is generated for the user, wherein the simple exercise plan is used for keeping the body fat of the user at the current body fat.

Optionally, the change of the physical state of the target user in a preset period may also be determined in combination with the aforementioned manner of determining the physical state of the user, and a diet plan and/or an exercise plan may be generated for the target user in combination with the change of the physical state and the change of body fat of the user in the preset period.

After the body fat change condition and the body state change condition of the target user within a period of time are obtained, a diet plan or an exercise plan is generated for the target user according to the body fat change condition and the body state change condition of the target user, so that the body of the user can be maintained in a better state, and the life of the user is healthier.

The method of the present application is described above, and in order to better carry out the method of the present application, the apparatus of the present application is described next.

Referring to fig. 3, fig. 3 is a schematic structural diagram of a user body fat detecting apparatus according to an embodiment of the present application, where the user body fat detecting apparatus may be the aforementioned weight scale/body fat scale or a terminal device that establishes a communication connection relationship with the weight scale/body fat scale, as shown in fig. 3, the apparatus 30 includes:

an induced current obtaining module 301, configured to obtain a first induced current, where the first induced current is an induced current generated by a magnetic induction device in a preset magnetic field when a target user is in the preset magnetic field, where the preset magnetic field is generated by a magnetic field generating device corresponding to the magnetic induction device, and the magnetic induction device and the magnetic field generating device are located in a body fat detection apparatus;

a body fat calculating module 302, configured to determine the body fat of the user of the target user according to the first induced current and a preset body fat detection model, where the body fat detection model stores a corresponding relationship between the body fat of the user and the induced current.

In one possible design, the corresponding relationship is a functional relationship formula with height, weight and induced current as independent variables and user body fat as dependent variables; the body fat calculation module 302 is specifically configured to: acquiring weight data and height data of the target user; and substituting the weight data, the height data and the first induction current into the functional relation respectively to obtain the user body fat of the target user.

In one possible design, the apparatus further includes a calibration module 303: the induction device is used for acquiring a second induction current, wherein the second induction current is an induction current generated by the magnetic induction device under the condition that no person is in the preset magnetic field; and correcting the first induction current according to the second induction current.

In a possible design, the correcting module 303 is specifically configured to: acquiring a preset induction current, wherein the preset induction current is the induction current generated by the magnetic induction device in a predetermined unmanned state; and taking the ratio of the preset induction current to the second induction current as a correction coefficient of the first induction current to obtain a corrected first induction current.

In a possible design, the induced current obtaining module 301 is specifically configured to: acquiring an induced current generated by the magnetic induction device based on the preset magnetic field; if it is determined that the induced current generated by the magnetic induction device is changed from large to small and is kept unchanged within a preset time period, it is determined that the target user is in the preset magnetic field, and the induced current generated by the magnetic induction device within the preset time period is determined as the first induced current.

In one possible design, the apparatus further includes a status measuring module 304, configured to obtain gender data and age data of the target user; determining a standard body fat of the target user according to the gender data and the age data; and measuring the body state of the target user according to the difference between the body fat of the user and the standard body fat.

In a possible design, the apparatus further includes a plan generating module 305, configured to generate a diet plan and/or an exercise plan for the target user according to a body fat change condition of the target user in a preset period after the body fat of the target user in the preset period is obtained.

It should be noted that, for what is not mentioned in the embodiment corresponding to fig. 3, reference may be made to the description of the foregoing method embodiment, and details are not described here again.

According to the device, the body fat of the user can be measured according to the first induction current and the body fat detection model storing the corresponding relation between the body fat of the user and the induction current. Because the body fat of the user is measured in a mode of measuring the induced current of the user in the preset magnetic field, the non-contact measurement can be realized, and the condition of inaccurate measurement caused by biological contact can be avoided in the non-contact measurement, so that the measurement precision is improved.

Referring to fig. 4, fig. 4 is a schematic structural diagram of a computer device provided in an embodiment of the present application, where the computer device 40 includes a processor 401 and a memory 402. The processor 401 is connected to the memory 402, for example, the processor 401 may be connected to the memory 402 through a bus.

The processor 401 is configured to support the computer device 40 to perform the corresponding functions in the methods in the above-described method embodiments. The processor 401 may be a Central Processing Unit (CPU), a Network Processor (NP), a hardware chip, or any combination thereof. The hardware chip may be an Application Specific Integrated Circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.

The memory 402 is used to store program codes and the like. Memory 402 may include Volatile Memory (VM), such as Random Access Memory (RAM); the memory 402 may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD); the memory 402 may also comprise a combination of memories of the kind described above.

Processor 401 may call the program code to perform the following:

acquiring a first induced current, wherein the first induced current is an induced current generated by a magnetic induction device in a preset magnetic field when a target user is in the preset magnetic field, the preset magnetic field is generated by a magnetic field generation device corresponding to the magnetic induction device, and the magnetic induction device and the magnetic field generation device are positioned in body fat detection equipment;

and determining the body fat of the target user according to the first induction current and a preset body fat detection model, wherein the body fat detection model stores the corresponding relation between the body fat of the target user and the induction current.

Embodiments of the present application also provide a computer-readable storage medium, which stores a computer program, where the computer program includes program instructions, and the program instructions, when executed by a computer, cause the computer to execute the method according to the foregoing embodiments.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only memory (ROM), a Random Access Memory (RAM), or the like.

The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于基于磁的体内探头跟踪系统的薄型定位垫

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!