Identity identification method and device, electronic equipment and computer storage medium

By acquiring and matching the user's electrocardiogram vector loop, the smart toilet automatically identifies the user's identity, solving the problem of low identification efficiency in existing technologies, achieving efficient and accurate user identification, and improving the user experience.

CN115392288BActive Publication Date: 2026-05-22BEIJING GEOMETRY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING GEOMETRY TECH CO LTD
Filing Date
2022-07-21
Publication Date
2026-05-22

Smart Images

  • Figure CN115392288B_ABST
    Figure CN115392288B_ABST
Patent Text Reader

Abstract

The present disclosure provides an identity recognition method and device, electronic equipment and computer storage medium. The identity information of a user is automatically recognized, and the efficiency of user identity recognition is improved. The method comprises: acquiring electrocardio data of at least two leads of a user, wherein the leads comprise limb leads and / or chest leads; performing contour recognition on each electrocardio data to obtain the contour of each wave of a specified type in the electrocardio data, wherein the each wave of the specified type comprises at least one of a P wave, a T wave and a QRS wave; projecting the contour of each wave corresponding to each electrocardio data in a specified plane to obtain an electrocardio vector ring of the user; respectively matching the electrocardio vector ring of the user and each preset template electrocardio vector ring to obtain each matching value, wherein each preset template electrocardio vector ring corresponds to different user identity information; and determining the identity information of the user according to the each matching value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information processing technology, and in particular to an identity recognition method, device, electronic device, and computer storage medium. Background Technology

[0002] Currently, diseases such as hypertension, angina pectoris, and myocardial infarction are frequently occurring. To facilitate the timely detection of symptoms like arrhythmias and myocardial infarction, devices that can monitor users' electrocardiogram (ECG) data are becoming increasingly popular. For example, smart toilets can monitor ECG data and other bodily data each time a user uses the device, linking the collected data to the user's records so they can view the results.

[0003] However, in existing technologies, if you want to use devices such as smart toilets that can detect and view users' electrocardiogram data, you need to scan or log in with your fingerprint to identify the user before the data can be detected and displayed. This results in low efficiency in user identification and affects the user experience. Summary of the Invention

[0004] The exemplary embodiments of this disclosure provide an identity recognition method, apparatus, electronic device, and computer storage medium for automatically recognizing user identity information, thereby improving the efficiency of user identity recognition and enhancing user experience.

[0005] A first aspect of this disclosure provides an identity verification method, the method comprising:

[0006] Acquire ECG data from a user in at least two leads, wherein the leads include limb leads and / or chest leads;

[0007] Contour recognition is performed on each electrocardiogram (ECG) data to obtain the contours of each wave of a specified type in each ECG data, wherein each wave of the specified type includes at least one of P wave, T wave and QRS wave;

[0008] The contours of each wave corresponding to each ECG data are projected onto a specified plane to obtain the user's ECG vector loop;

[0009] The user's ECG vector ring is matched with each preset template ECG vector ring to obtain a matching value, wherein each preset template ECG vector ring corresponds to different user identity information.

[0010] Based on the matching values, the user's identity information is determined.

[0011] In this embodiment, ECG data from at least two leads of the user is acquired, and the user's ECG vector loop is obtained from the ECG data. Then, the user's identity information is determined by matching the ECG vector loop with each preset template ECG vector loop. Thus, this embodiment can automatically identify the user's identity information without requiring the user to perform any additional operations for identity recognition, thereby improving the efficiency of user identity recognition and enhancing the user experience.

[0012] At the same time, when changes in body posture or sitting position cause changes in the relative position of the heart within the body, the ECG vector loop formed by ECG data from at least two leads can improve the accuracy of identity recognition and further enhance the user experience.

[0013] In one embodiment, the profile of any wave is composed of the potential difference of the heart at various points in time;

[0014] The step of projecting the contours of each wave corresponding to each ECG data onto a specified plane to obtain the user's ECG vector loop includes:

[0015] For any given wave of any specified type in any electrocardiogram (ECG) data, based on the wave's contour, the potential difference value corresponding to the wave at each time point is obtained; and,

[0016] Based on the potential difference value corresponding to the wave at each time point, the position coordinates of each projection point of the wave at each time point on the target coordinate axis are obtained, wherein the target coordinate axis is determined based on the lead corresponding to the electrocardiogram data;

[0017] The target position coordinates of the projection point are obtained by using the position coordinates of the projection point on the target coordinate axis at the same time point in each electrocardiogram data.

[0018] By using the target position coordinates of each projection point, the ECG vector loop corresponding to each wave of the specified type can be obtained;

[0019] The user's ECG vector loop is obtained by using the ECG vector loops corresponding to each wave of the specified type, wherein the number of the user's ECG vector loops is the same as the number of wave types.

[0020] This embodiment determines the user's ECG vector loop by projecting the contours of each wave corresponding to each ECG data onto a specified plane, making the determined ECG vector loop more accurate.

[0021] In one embodiment, determining the user's identity information based on the matching values ​​includes:

[0022] If any of the matching values ​​exceeds a specified threshold, the template ECG vector ring corresponding to the largest value among those exceeding the specified threshold is determined as the target template ECG vector ring. Then, using a preset correspondence between the template ECG vector ring and identity information, the identity information corresponding to the target template ECG vector ring is determined, and this determined identity information is then used as the user's identity information; or,

[0023] If none of the matching values ​​is greater than a specified threshold, the ECG vector rings are rotated in specified directions by specified angles to obtain multiple intermediate ECG vector rings. For any intermediate ECG vector ring, multiple different shrinkage ratios are used to shrink the intermediate ECG vector rings to obtain multiple target ECG vector rings. For any one of the preset template ECG vector rings, a preset matching algorithm is used to match the multiple target ECG vector rings with the template ECG vector rings to obtain matching values. The maximum value among the matching values ​​is determined as the target matching value between the user's ECG vector ring and the template ECG vector ring. The template ECG vector rings with target matching values ​​greater than a specified threshold are determined as the target template ECG vector rings. Using the preset correspondence between template ECG vector rings and identity information, the identity information corresponding to the target template ECG vector rings is determined, and the determined identity information is then used as the user's identity information.

[0024] In this embodiment, it is first determined whether there is a matching value greater than a specified threshold among the matching values. If a matching value greater than the specified threshold is found, the template ECG vector ring corresponding to the matching value with the largest value among the matching values ​​greater than the specified threshold is determined as the target template ECG vector ring, and the user's identity information is determined based on the target template ECG vector ring. If no matching value greater than the specified threshold is found, the ECG vector ring is rotated and shrunk. Then, the ECG vector ring after shrinkage is matched with each template ECG vector ring to obtain the target template ECG vector ring, and the user's identity information is determined based on the target template ECG vector ring. This improves the accuracy of user identity information.

[0025] In one embodiment, before performing contour recognition on each electrocardiogram (ECG) data to obtain the contours of each wave of a specified type in each ECG data, the method further includes:

[0026] The electrocardiogram data is then filtered and denoised.

[0027] In this embodiment, the ECG data needs to be filtered and denoised before contour recognition is performed, so as to make the contour recognition results more accurate.

[0028] In one embodiment, before acquiring ECG data from at least two leads of the user, the method further includes:

[0029] Once it is determined that a user is sitting on the smart toilet, the user's human body parameters are obtained, including body fat and weight.

[0030] The user's body fat percentage is adjusted using the user's weight to obtain the adjusted body fat percentage;

[0031] The corrected body fat percentage is matched with each registered human parameter corresponding to the smart toilet to obtain each matching value;

[0032] Based on the matching values, target registered human body parameters corresponding to the user's corrected body fat are obtained, and the registered identity information corresponding to the target registered human body parameters is determined as the user's identity information.

[0033] It is determined that the number of the target registered human parameters is not equal to the specified number.

[0034] This embodiment uses the user's weight to correct for body fat percentage, and then uses the corrected body fat percentage to identify the user's identity. Since changes in posture can alter the measured body fat percentage, this embodiment uses the user's weight to correct for body fat percentage, and then uses the corrected body fat percentage to identify the user's identity. This improves the accuracy of user identification and thus enhances the user experience.

[0035] Furthermore, when users sit on the smart toilet, they naturally remove their outer pants, allowing their lower limbs to directly contact the toilet seat. Since the sensors for body fat and weight detection on typical smart toilets are usually located on the seat, this not only improves the accuracy of body fat detection and further enhances the accuracy of user identification, but also automatically identifies user information during toilet use without requiring the user to actively log in, thus improving user identification efficiency and further enhancing the user experience.

[0036] In one embodiment, the weight includes at least two pressure values, wherein each pressure value is obtained by measuring the user's weight at different locations on the smart toilet.

[0037] The step of correcting the user's body fat percentage using the user's weight to obtain the corrected body fat percentage includes:

[0038] If the weight includes two pressure values, a proportionality coefficient is obtained based on these two pressure values. A target correction coefficient is then obtained based on the proportionality coefficient and a pre-set fitting coefficient. This target correction coefficient is then used to correct the user's body fat percentage, resulting in the corrected body fat percentage; or...

[0039] If the user's weight includes more than two stress values, then the stress values ​​included in the weight and the body fat are input into a pre-trained body fat correction model to obtain the corrected body fat.

[0040] In this embodiment, different pressure values ​​corresponding to body weight are used to correct body fat percentages, resulting in a more accurate body fat percentage.

[0041] In one embodiment, the fitting coefficients include a first fitting coefficient and a second fitting coefficient;

[0042] The process of obtaining the target correction coefficient based on the proportional coefficient and the pre-set fitting coefficient includes:

[0043] Multiply the proportional coefficient by the first fitting coefficient to obtain the intermediate fitting coefficient, and add the intermediate fitting coefficient to the second fitting coefficient to obtain the target correction coefficient;

[0044] The process of obtaining a proportionality coefficient based on the two pressure values ​​included in the body weight includes:

[0045] Divide the two pressure values ​​to obtain the proportionality coefficient;

[0046] The step of correcting the user's body fat percentage using the target correction coefficient to obtain the corrected body fat percentage includes:

[0047] The corrected body fat percentage is obtained by multiplying the target correction factor by the body fat percentage.

[0048] This embodiment effectively establishes the fluctuation in body fat detection between different sitting postures by using the ratio of two pressure values ​​corresponding to body weight, effectively calibrating the user's body fat value and improving the accuracy of body fat detection.

[0049] In one embodiment, the corrected body fat percentage is obtained using the following formula:

[0050]

[0051] Wherein, F0 is the user's body fat percentage, F1 is the corrected body fat percentage, P1 is one of the two pressure values, P2 is the other of the two pressure values, N1 is the first fitting coefficient, and N2 is the second fitting coefficient.

[0052] In one embodiment, the step of matching the corrected body fat percentage with each registered human parameter corresponding to the smart toilet to obtain matching values ​​includes:

[0053] For any registered human parameter, the corrected body fat percentage is divided by the registered body fat percentage in the registered human parameter to obtain a first similarity value; the absolute value of the difference between the first similarity value and a specified value is determined as the matching value between the corrected body fat percentage and the registered human parameter; or,

[0054] For any registered human body parameter, the registered pressure values ​​in the registered weight are summed to obtain a first total pressure value, and the pressure values ​​in the user's weight are summed to obtain a second total pressure value. The second total pressure value is subtracted from the first total pressure value to obtain a pressure difference. The pressure difference is then divided by the first total pressure value to obtain a second similarity value. The absolute value of the second similarity value and the absolute value of the difference between the first similarity value and a specified value are determined as the corrected body fat and the matching value of the registered human body parameter, wherein the number of pressure values ​​included in the registered weight is the same as the number of pressure values ​​included in the user's weight.

[0055] In this embodiment, the matching value between the corrected body fat and the registered body fat is obtained by using the similarity value between the corrected body fat and the registered body fat, or the matching value is determined by using the corrected body fat and weight. This makes the determination of the matching value more accurate and improves the accuracy rate of the matching value.

[0056] In one embodiment, obtaining the target registered human parameters corresponding to the user-corrected body fat percentage based on the matching values ​​includes:

[0057] When the matching value includes a body fat matching value, then for any registered human parameter, if the body fat matching value in the matching value corresponding to the registered human parameter is less than a preset body fat threshold, then the registered human parameter is determined as the target registered human parameter corresponding to the user's corrected body fat, wherein the body fat matching value is a matching value determined based on the corrected body fat; or,

[0058] When the matching value includes body fat matching value and weight matching value, for any registered human parameter, if the body fat matching value is less than a preset body fat threshold and the weight matching value is less than a preset weight threshold, then the corresponding registered human parameter is determined as the target registered human parameter corresponding to the user's corrected body fat, wherein the weight matching value is a matching value determined based on the user's weight.

[0059] This embodiment determines the target registered human parameters by matching body fat percentages or combining body fat percentages with weight percentages from the registered human parameters. This makes the determined target registered human parameters more accurate.

[0060] A second aspect of this disclosure provides an identity verification device, the device comprising:

[0061] The first acquisition module is used to acquire ECG data of at least two leads of the user, wherein the leads include limb leads and / or chest leads;

[0062] The contour recognition module is used to perform contour recognition on each electrocardiogram (ECG) data to obtain the contours of each wave of a specified type in each ECG data, wherein the specified wave of each type includes at least one of P wave, T wave and QRS wave.

[0063] The ECG vector loop determination module is used to project the contours of each wave corresponding to each ECG data onto a specified plane to obtain the user's ECG vector loop.

[0064] The first matching module is used to match the user's ECG vector ring with each preset template ECG vector ring to obtain each matching value, wherein each preset template ECG vector ring corresponds to different user identity information.

[0065] The first identity information determination module is used to determine the user's identity information based on the matching values.

[0066] In one embodiment, the profile of any wave is composed of the potential difference of the heart at various points in time;

[0067] The ECG vector loop determination module is specifically used for:

[0068] For any given wave of any specified type in any electrocardiogram (ECG) data, based on the wave's contour, the potential difference value corresponding to the wave at each time point is obtained; and,

[0069] Based on the potential difference value corresponding to the wave at each time point, the position coordinates of each projection point of the wave at each time point on the target coordinate axis are obtained, wherein the target coordinate axis is determined based on the leads corresponding to the electrocardiogram data;

[0070] The target position coordinates of the projection point are obtained by using the position coordinates of the projection point on the target coordinate axis at the same time point in each electrocardiogram data.

[0071] By using the target position coordinates of each projection point, the ECG vector loop corresponding to each wave of the specified type can be obtained;

[0072] The user's ECG vector loop is obtained by using the ECG vector loops corresponding to each wave of the specified type, wherein the number of the user's ECG vector loops is the same as the number of wave types.

[0073] In one embodiment, the first identity information determination module is specifically used for:

[0074] If any of the matching values ​​exceeds a specified threshold, the template ECG vector ring corresponding to the largest value among those exceeding the specified threshold is determined as the target template ECG vector ring. Then, using a preset correspondence between the template ECG vector ring and identity information, the identity information corresponding to the target template ECG vector ring is determined, and this determined identity information is then used as the user's identity information; or,

[0075] If none of the matching values ​​is greater than a specified threshold, the ECG vector rings are rotated in specified directions by specified angles to obtain multiple intermediate ECG vector rings. For any intermediate ECG vector ring, multiple different shrinkage ratios are used to shrink the intermediate ECG vector rings to obtain multiple target ECG vector rings. For any one of the preset template ECG vector rings, a preset matching algorithm is used to match the multiple target ECG vector rings with the template ECG vector rings to obtain matching values. The maximum value among the matching values ​​is determined as the target matching value between the user's ECG vector ring and the template ECG vector ring. The template ECG vector rings with target matching values ​​greater than a specified threshold are determined as the target template ECG vector rings. Using the preset correspondence between template ECG vector rings and identity information, the identity information corresponding to the target template ECG vector rings is determined, and the determined identity information is then used as the user's identity information.

[0076] In one embodiment, the apparatus further includes:

[0077] The preprocessing module is used to perform contour recognition on each ECG data. Before obtaining the contours of each wave of a specified type in each ECG data, the ECG data is filtered and denoised.

[0078] In one embodiment, the apparatus further includes:

[0079] The second acquisition module is used to acquire the user's human body parameters after determining that the user is sitting on the smart toilet, before acquiring the user's electrocardiogram data from at least two leads. The human body parameters include body fat and weight.

[0080] The correction module is used to correct the user's body fat percentage based on the user's weight, thereby obtaining the corrected body fat percentage.

[0081] The second matching module is used to match the corrected body fat percentage with each registered human parameter corresponding to the smart toilet to obtain each matching value.

[0082] The second identity information determination module is used to obtain target registered human body parameters corresponding to the user's corrected body fat based on the matching values, and to determine the registered identity information corresponding to the target registered human body parameters as the user's identity information.

[0083] In one embodiment, the weight includes at least two pressure values, wherein each pressure value is obtained by measuring the user's weight at different locations on the smart toilet;

[0084] The correction module is specifically used for:

[0085] If the weight includes two pressure values, a proportionality coefficient is obtained based on these two pressure values. A target correction coefficient is then obtained based on the proportionality coefficient and a pre-set fitting coefficient. This target correction coefficient is then used to correct the user's body fat percentage, resulting in the corrected body fat percentage; or...

[0086] If the user's weight includes more than two stress values, then the stress values ​​included in the weight and the body fat are input into a pre-trained body fat correction model to obtain the corrected body fat.

[0087] In one embodiment, the fitting coefficients include a first fitting coefficient and a second fitting coefficient;

[0088] The correction module performs the process of obtaining the target correction coefficient based on the proportional coefficient and the pre-set fitting coefficient, specifically for:

[0089] Multiply the proportional coefficient by the first fitting coefficient to obtain the intermediate fitting coefficient, and add the intermediate fitting coefficient to the second fitting coefficient to obtain the target correction coefficient;

[0090] The correction module performs the calculation based on the two pressure values ​​included in the weight to obtain a proportionality coefficient, specifically used for:

[0091] Divide the two pressure values ​​to obtain the proportionality coefficient;

[0092] The correction module performs the correction of the user's body fat using the target correction coefficient to obtain the corrected body fat percentage, specifically for:

[0093] The corrected body fat percentage is obtained by multiplying the target correction factor by the body fat percentage.

[0094] In one embodiment, the correction module is specifically used for:

[0095] The corrected body fat percentage is obtained using the following formula:

[0096]

[0097] Wherein, F0 is the user's body fat percentage, F1 is the corrected body fat percentage, P1 is one of the two pressure values, P2 is the other of the two pressure values, N1 is the first fitting coefficient, and N2 is the second fitting coefficient.

[0098] In one embodiment, the second matching module is specifically used for:

[0099] For any registered human parameter, the corrected body fat percentage is divided by the registered body fat percentage in the registered human parameter to obtain a first similarity value; the absolute value of the difference between the first similarity value and a specified value is determined as the matching value between the corrected body fat percentage and the registered human parameter; or,

[0100] For any registered human body parameter, the registered pressure values ​​in the registered weight are summed to obtain a first total pressure value, and the pressure values ​​in the user's weight are summed to obtain a second total pressure value. The second total pressure value is subtracted from the first total pressure value to obtain a pressure difference. The pressure difference is then divided by the first total pressure value to obtain a second similarity value. The absolute value of the second similarity value and the absolute value of the difference between the first similarity value and a specified value are determined as the corrected body fat and the matching value of the registered human body parameter, wherein the number of pressure values ​​included in the registered weight is the same as the number of pressure values ​​included in the user's weight.

[0101] In one embodiment, the second identity information determination module is specifically used for:

[0102] When the matching value includes a body fat matching value, then for any registered human parameter, if the body fat matching value in the matching value corresponding to the registered human parameter is less than a preset body fat threshold, then the registered human parameter is determined as the target registered human parameter corresponding to the user's corrected body fat, wherein the body fat matching value is a matching value determined based on the corrected body fat; or,

[0103] When the matching value includes body fat matching value and weight matching value, for any registered human parameter, if the body fat matching value is less than a preset body fat threshold and the weight matching value is less than a preset weight threshold, then the corresponding registered human parameter is determined as the target registered human parameter corresponding to the user's corrected body fat, wherein the weight matching value is a matching value determined based on the user's weight.

[0104] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0105] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor; the instructions being executed by the at least one processor to enable the at least one processor to perform the method as described in the first aspect.

[0106] According to a fourth aspect provided in the embodiments of this disclosure, a computer storage medium is provided, the computer storage medium storing a computer program for performing the method as described in the first aspect. Attached Figure Description

[0107] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0108] Figure 1 This is a schematic diagram illustrating an applicable scenario according to one embodiment of the present disclosure;

[0109] Figure 2 This is one of the flowcharts illustrating an identity recognition method according to an embodiment of the present disclosure;

[0110] Figure 3 This is a schematic diagram of an electrocardiogram according to an embodiment of the present disclosure;

[0111] Figure 4 A schematic diagram of waves in electrocardiogram data according to an embodiment of the present disclosure;

[0112] Figure 5 This is a schematic diagram of a process for determining a user's electrocardiogram vector loop according to an embodiment of the present disclosure;

[0113] Figure 6 A schematic diagram of the electrocardiogram vector loop of a wave according to an embodiment of the present disclosure;

[0114] Figure 7This is a flowchart illustrating an identity recognition method based on human body parameters according to an embodiment of the present disclosure;

[0115] Figure 8 This is a schematic diagram of a process for correcting body fat according to an embodiment of the present disclosure;

[0116] Figure 9 This is a second schematic flowchart of an identity recognition method according to an embodiment of the present disclosure;

[0117] Figure 10 This is an identity recognition device according to one embodiment of the present disclosure;

[0118] Figure 11 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. Detailed Implementation

[0119] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0120] In this disclosure, the term "and / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0121] The application scenarios described in this disclosure are for the purpose of more clearly illustrating the technical solutions of this disclosure and do not constitute a limitation on the technical solutions provided in this disclosure. Those skilled in the art will understand that with the emergence of new application scenarios, the technical solutions provided in this disclosure are also applicable to similar technical problems. In the description of this disclosure, unless otherwise stated, "multiple" means two or more.

[0122] In existing technologies, if you want to use devices such as smart toilets that can detect and view users' electrocardiogram data, you need to scan or log in with your fingerprint to identify the user before the data can be detected and displayed. This results in low efficiency in user identification and affects the user experience.

[0123] Therefore, this disclosure provides an identity recognition method, apparatus, electronic device, and computer storage medium. It acquires electrocardiogram (ECG) data from at least two leads of a user, obtains the user's ECG vector loop from this data, and then matches this ECG vector loop with preset template ECG vector loops to determine the user's identity information. Thus, this embodiment can automatically identify the user's identity information without requiring any additional user intervention, improving the efficiency of user identity recognition and enhancing the user experience. The solution of this disclosure will now be described in detail with reference to the accompanying drawings.

[0124] like Figure 1 As shown, an application scenario of an identity recognition method is illustrated, with an electronic device, a smart toilet, as an example. This application scenario includes a terminal device 110 and a smart toilet 120.

[0125] In one possible application scenario, the smart toilet 120 acquires electrocardiogram (ECG) data from at least two leads of a user sitting on the smart toilet, wherein the leads include limb leads and / or chest leads; the smart toilet 120 performs contour recognition on each ECG data to obtain the contours of each wave of a specified type in each ECG data, wherein the specified wave of each type includes at least one of P wave, T wave, and QRS wave; and projects the contours of each wave corresponding to each ECG data onto a specified plane to obtain the user's ECG vector loop; then the smart toilet 120 matches the user's ECG vector loop with each preset template ECG vector loop to obtain each matching value, wherein each preset template ECG vector loop corresponds to different user identity information; based on the matching values, the user's identity information is determined and sent to the terminal device 110 for display.

[0126] in, Figure 1 The smart toilet 120 and the terminal device 110 can interact through a communication network. The communication network can be either wireless or wired.

[0127] For example, the smart toilet 120 can access the network via cellular mobile communication technology and communicate with the terminal device 110, wherein the cellular mobile communication technology includes, for example, 5th Generation Mobile Networks (5G) technology.

[0128] Optionally, the smart toilet 120 can access the network and communicate with the terminal device 110 via short-range wireless communication, such as Wireless Fidelity (Wi-Fi) technology.

[0129] Furthermore, the description in this application focuses only on a single terminal device 110 and smart toilet 120. However, those skilled in the art should understand that the illustrated terminal device 110 and smart toilet 120 are intended to illustrate the operation of the terminal device 110 and smart toilet 120 involved in the technical solution of this application, and do not imply any limitation on the number, type, or location of the terminal device 110 and smart toilet 120. It should be noted that adding additional modules to or removing individual modules from the illustrated environment will not change the underlying concept of the exemplary embodiments of this disclosure.

[0130] For example, terminal device 110 includes, but is not limited to: large visual screens, tablet computers, laptops, handheld computers, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminal devices in industrial control, wireless terminal devices in autonomous driving, wireless terminal devices in smart grids, wireless terminal devices in transportation safety, wireless terminal devices in smart cities, or wireless terminal devices in smart homes, etc.; the terminal device may have a related client installed, which may be software (e.g., browsers, short video software, etc.), or web pages, mini-programs, etc.

[0131] It should be noted that the identity verification method proposed in this application is not only applicable to... Figure 1 The application scenarios shown can also be applied to any device with identity recognition capabilities.

[0132] The following describes an exemplary embodiment of the identity recognition method of this application in conjunction with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the methods and principles of this application, and the implementation of this application is not limited in any way in this respect.

[0133] like Figure 2 The diagram shown is a flowchart of the identity recognition method disclosed herein, which may include the following steps:

[0134] Step 201: Obtain ECG data from at least two leads of the user, wherein the leads include limb leads and / or chest leads;

[0135] For example, such as Figure 3The diagram shows a schematic of an electrocardiogram (ECG), which includes leads I, II, III, aVR, aVF, aVL, and leads V1 to V6. In this embodiment, the ECG data for each lead is at least two ECG data points from leads I, II, III, aVR, aVF, aVL, and leads V1 to V6.

[0136] In this embodiment, ECG data is acquired using a device capable of detecting ECG data. Taking a smart toilet as an example, the specific method for acquiring ECG data from at least two leads is for the user to sit on the smart toilet with both legs touching the electrodes on the toilet seat and holding the handle electrodes with both hands to acquire the user's ECG data. Different devices can use different methods to acquire ECG data, and the specific acquisition method can be set according to the actual situation. This embodiment will not limit it further.

[0137] To make the identification results more accurate, in one embodiment, the electrocardiogram data is filtered and denoised.

[0138] It should be noted that the filtering and denoising process in this embodiment can use time-frequency domain digital signal processing methods, wavelet transform processing methods, and adaptive filtering processing methods, etc. The specific filtering and denoising method can be set according to the actual situation. This embodiment does not limit the filtering and denoising method, and the filtering and denoising process needs to perform full-band processing on the ECG data.

[0139] Step 202: Perform contour recognition on each ECG data to obtain the contour of each wave of a specified type in each ECG data, wherein each wave of the specified type includes at least one of P wave, T wave and QRS wave;

[0140] For example, such as Figure 4 The image shows the waves in electrocardiogram (ECG) data. The dark gray solid line represents the P wave, the light gray solid line represents the Q wave, the dark gray dashed line represents the R wave, the black dashed line represents the S wave, and the black dashed line represents the T wave. In this embodiment, the wave colors and lines are only used to illustrate the corresponding wave segments and do not limit the specific waves.

[0141] In this embodiment, the contour recognition method can be a signal processing feature extraction method or a deep learning contour recognition method, etc. The specific contour recognition method can be set according to the actual situation, and this embodiment does not limit it.

[0142] Step 203: Project the contours of each wave corresponding to each ECG data onto a specified plane to obtain the user's ECG vector loop;

[0143] like Figure 5The diagram shown illustrates the process for determining a user's ECG vector loop, including the following steps:

[0144] Step 501: For any wave of any specified type in any ECG data, based on the contour of the wave, obtain the potential difference value corresponding to the wave at each time point;

[0145] For example, such as Figure 3 The electrocardiogram (ECG) shown has the following representation: the horizontal axis of the waveform corresponding to any lead represents the time point, and the vertical axis represents the potential difference. A standard ECG... Figure 1 Generally, it is a 1mm*1mm grid graph paper. And the standard paper speed for electrocardiograms is 25mm / s, so each small square on the horizontal axis of a standard electrocardiogram represents 0.04s, and each small square on the vertical axis represents 0.1mV.

[0146] Step 502: Based on the potential difference value corresponding to the wave at each time point, obtain the position coordinates of each projection point of the wave at each time point on the target coordinate axis, wherein the target coordinate axis is determined based on the lead corresponding to the ECG data;

[0147] The target coordinate axes include the X-axis, Y-axis, and Z-axis. The target coordinate axes for each lead's ECG data are pre-set.

[0148] In one embodiment, the target position coordinates of each projection point of the wave at each time point on the target coordinate axis X can be determined by formula (1):

[0149] X0 = cos A° × Y t (1);

[0150] Where X0 is the position coordinate of the wave at time t on the target coordinate axis X, and A is the pre-set projection angle. t Let be the potential difference of the wave at time point t.

[0151] If the ECG data includes ECG data from lead I, then in this embodiment, A equals 0. Furthermore, the value of A is obtained based on the current lead I and the target coordinate axis X.

[0152] In one embodiment, the target position coordinates of each projection point of the wave at each time point on the target coordinate axis Y can be determined by formula (2):

[0153] Y0=cos B°×Y t (2);

[0154] Where Y0 is the position coordinate of the wave at time t on the target coordinate axis Y, and B° is the pre-set projection angle. t Let be the potential difference of the wave at time point t.

[0155] If the ECG data includes ECG data from lead II, then in this embodiment, B is 30, and the value of B is obtained based on the current lead II and the target coordinate axis Y.

[0156] In one embodiment, the target position coordinates of each projection point of the wave at each time point on the target coordinate axis Z can be determined by formula (3):

[0157] Z0=cos C°×Y t (3);

[0158] Where Z0 is the position coordinate of the wave at time t on the target coordinate axis Z, and C° is the pre-set projection angle. t Let be the potential difference of the wave at time point t.

[0159] Step 503: Based on the position coordinates of the projection points corresponding to the same time point in each ECG data on the target coordinate axis, obtain the target position coordinates of the projection points;

[0160] For example, in this embodiment, the ECG data used are leads I and II, and the target coordinate axis corresponding to lead I is the X-axis, and the target coordinate axis corresponding to lead II is the Y-axis. Therefore, the target position coordinates of the projection point corresponding to time point t are (X... t Y t ).

[0161] Step 504: Obtain the ECG vector loop corresponding to each wave of the specified type by using the target position coordinates of each projection point;

[0162] For example, such as Figure 6 As shown, the P wave is in lead I data. Based on the position coordinates of the projection points corresponding to each time point in the P wave, the ECG vector loop corresponding to the P wave is obtained.

[0163] Step 505: Using the ECG vector loops corresponding to each wave of the specified type, obtain the ECG vector loop of the user, wherein the number of ECG vector loops of the user is the same as the number of wave types.

[0164] Specifically, for any given type, a preset algorithm is used to correct the ECG vector loop of each wave of the given type to obtain the user's ECG vector loop.

[0165] The preset algorithm may include geometric mean and piecewise fitting, etc., and can be set according to the actual situation. This embodiment does not limit it.

[0166] Step 204: Match the user's ECG vector loop with each preset template ECG vector loop to obtain each matching value, wherein each preset template ECG vector loop corresponds to different user identity information;

[0167] The template ECG vector loop is created when a user first uses a device with ECG monitoring, by entering their personal information through a standard application. The device then measures the user's ECG data, and a template ECG vector loop is generated based on this data. A single user can create multiple ECG vector loop templates; for example, templates can be created based on different body postures (e.g., leaning forward, leaning back, and normal sitting posture). This improves matching efficiency.

[0168] It should be noted that the preset matching algorithm in this embodiment includes matching algorithms such as Hu moment, and the specific algorithm can be set according to the actual situation. This embodiment does not limit it here. The number of ECG vector loops of the user can be one or more, and the number of ECG vector loops of the user is the same as the number of ECG vector loops in the template.

[0169] In one embodiment, step 204 can be implemented in the following two ways:

[0170] If the user has multiple ECG vector rings, then for any template ECG vector ring, the user's ECG vector ring is matched with ECG vector rings of the same type in the template ECG vector ring to obtain intermediate matching values. The intermediate matching values ​​corresponding to each type are weighted and summed to obtain the matching value between the user's ECG vector ring and the template ECG vector ring.

[0171] If the user has only one ECG vector loop, then the user's ECG vector loop is matched with each of the preset template ECG vector loops to obtain each matching value.

[0172] Step 205: Determine the user's identity information based on the matching values.

[0173] In one embodiment, the user's identity information is determined in the following two ways:

[0174] Method 1: If there is a matching value greater than a specified threshold among the matching values, then the template ECG vector ring corresponding to the matching value with the largest value among the matching values ​​greater than the specified threshold is determined as the target template ECG vector ring. After determining the identity information corresponding to the target template ECG vector ring by using the preset correspondence between the template ECG vector ring and identity information, the determined identity information is determined as the user's identity information.

[0175] For example, taking the number of ECG vector rings for a user as one, the matching value between user 1's ECG vector ring and template ECG vector ring 1 is 65%, the matching value between user 1's ECG vector ring and template ECG vector ring 2 is 30%, and the matching value between user 1's ECG vector ring and template ECG vector ring 3 is 90%. If the specified threshold is 60%, then the target template ECG vector rings are determined to be template ECG vector ring 1 and template ECG vector ring 3. Since the matching value of template ECG vector ring 3 is greater than the matching value of template ECG vector ring 1, the identity information corresponding to template ECG vector ring 3 is determined to be user 1's identity information.

[0176] Method 2: If none of the matching values ​​is greater than a specified threshold, the ECG vector ring is rotated in each specified direction by a specified angle to obtain multiple intermediate ECG vector rings. For any intermediate ECG vector ring, multiple different shrinkage ratios are used to shrink the intermediate ECG vector ring to obtain multiple target ECG vector rings. For any one of the preset template ECG vector rings, a preset matching algorithm is used to match the multiple target ECG vector rings with the template ECG vector ring to obtain matching values. The maximum value among the matching values ​​is determined as the target matching value between the user's ECG vector ring and the template ECG vector ring. The template ECG vector ring with a target matching value greater than a specified threshold is determined as the target template ECG vector ring. Using the preset correspondence between template ECG vector rings and identity information, the identity information corresponding to the target template ECG vector ring is determined, and the determined identity information is then used as the user's identity information.

[0177] In this embodiment, due to the slight change in the heart axis angle caused by leaning forward or backward while sitting, and the change in contraction intensity caused by physiological factors such as before or after meals and exercise, the specified rotation angle can be set to ±20 degrees, and the contraction ratio range can be set to 0.67–1.5. However, this embodiment does not limit the specified rotation angle and contraction ratio, and can be set according to the actual situation. Table 1 shows the correspondence between the template ECG vector loop and the identity information:

[0178] Template ECG vector loop Identity information Template ECG Vector Loop 1 Identity Information A Template ECG Vector Loop 2 Identity Information B Template ECG Vector Loop 3 Identity Information C … …

[0179] Table 1

[0180] It should be noted that the identity information in this embodiment includes name, gender, age, etc., which can be set according to the actual situation, and this embodiment will not limit it here. Furthermore, after each match with the target template ECG vector loop, methods such as geometric averaging or piecewise fitting can be used to track the user's ECG vector loop to update the template ECG vector loop for better matching.

[0181] After identifying the user's identity information, the test data can be associated with that user's identity information so that the user can access their own test data, which includes data such as electrocardiogram data and urine test data.

[0182] In one embodiment, if the user's identity information cannot be determined, the user should be prompted that the identification has failed and reminded to log in through a regular means such as an app so that the user's detection data can be associated with the user's identity information. At the same time, the ECG vector loop of the user detected this time should be set as the user's template ECG vector loop so that the user's identity information can be automatically identified next time.

[0183] If the user is a new user, they can be prompted via voice to register and log in through conventional methods such as an app, so that the user's test data can be associated with their identity information. Simultaneously, the ECG vector loop detected for this user will be set as their template ECG vector loop.

[0184] To ensure automatic identification of user identity information, in one embodiment, before performing step 201, as follows: Figure 7 As shown, it includes the following steps:

[0185] Step 701: After confirming that the user is sitting on the smart toilet, obtain the user's human body parameters, including body fat and weight;

[0186] It should be noted that body fat is obtained through electrodes on the smart toilet, and the weight is measured by a pressure sensor on the smart toilet. The pressure sensor can also be used to determine whether the user is sitting on the smart toilet. That is, when the pressure sensor value is greater than a specified threshold, it is determined that the user is sitting on the smart toilet. The specific determination method can be set according to the actual situation. This embodiment is only used for illustration and does not limit the specific determination method.

[0187] Step 702: Correct the user's body fat percentage using the user's weight to obtain the corrected body fat percentage;

[0188] In one embodiment, body fat is corrected in the following two ways:

[0189] Method 1: For example Figure 8 The diagram shown illustrates the process of correcting body fat percentage, which includes the following steps:

[0190] Step 801: If the user's weight includes two pressure values, then obtain a proportionality coefficient based on the two pressure values ​​included in the weight;

[0191] In one embodiment, step 801 may be specifically implemented as: dividing the two pressure values ​​to obtain the proportionality coefficient.

[0192] Step 802: Based on the scaling factor and the pre-set fitting factor, obtain the target correction factor;

[0193] The fitting coefficient can be linear or nonlinear, and can be set according to the actual situation. For example, when pressure sensors are installed at the front and back of the smart toilet seat, the fitting coefficient can be linear when the user sits on the seat and leans forward or backward; when the user's sitting posture is in other states, the fitting coefficient can be nonlinear. This embodiment does not limit this. The fitting coefficient in this embodiment includes a first fitting coefficient and a second fitting coefficient.

[0194] In one embodiment, step 802 may be specifically implemented as follows: multiplying the proportional coefficient by the first fitting coefficient to obtain an intermediate fitting coefficient, and adding the intermediate fitting coefficient to the second fitting coefficient to obtain the target correction coefficient.

[0195] Step 803: Correct the user's body fat using the target correction coefficient to obtain the corrected body fat.

[0196] In one embodiment, step 803 may be implemented by multiplying the target correction coefficient by the body fat percentage to obtain the corrected body fat percentage. The corrected body fat percentage can be determined using formula (4):

[0197]

[0198] Wherein, F0 is the user's body fat percentage, F1 is the corrected body fat percentage, P1 is one of the two pressure values, P2 is the other of the two pressure values, N1 is the first fitting coefficient, and N2 is the second fitting coefficient.

[0199] Method 2: If the user's weight includes more than two stress values, then input each stress value included in the weight and the body fat into a pre-trained body fat correction model to obtain the corrected body fat.

[0200] It should be noted that the training method of the body fat correction model in this embodiment can be adjusted according to the actual situation. This embodiment does not limit the training method of the body fat correction model.

[0201] Step 703: Match the corrected body fat percentage with each registered human parameter corresponding to the smart toilet to obtain each matching value;

[0202] In one embodiment, each matching value is determined in the following two ways:

[0203] Method 1: For any registered human parameter, divide the corrected body fat percentage by the registered body fat percentage in the registered human parameter to obtain a first similarity value; and determine the absolute value of the difference between the first similarity value and a specified value as the matching value between the corrected body fat percentage and the registered human parameter. The matching value can be obtained using formula (5):

[0204]

[0205] Among them, S n The matching value is F1, and the corrected body fat percentage is F. n For registered body fat, A is the specified value.

[0206] It should be noted that: In this embodiment, the specified value A is 1, but the specified value is not limited. The specific value of the specified value can be set according to the actual situation.

[0207] Method 2: For any registered human body parameter, sum the registered pressure values ​​in the registered weight to obtain a first total pressure value, and sum the pressure values ​​in the user's weight to obtain a second total pressure value; subtract the second total pressure value from the first total pressure value to obtain a pressure difference, then divide the pressure difference by the first total pressure value to obtain a second similarity value, and determine the absolute value of the second similarity value and the absolute value of the difference between the first similarity value and a specified value as the corrected body fat and the matching value of the registered human body parameter, wherein the number of pressure values ​​included in the registered weight is the same as the number of pressure values ​​included in the user's weight. The second similarity value is obtained through formula (6):

[0208]

[0209] Where H is the second similarity value, P1~P n For each pressure value in the user's weight, P 10 ~P n0 These are the registered stress values ​​for each registered weight.

[0210] Step 704: Based on the matching values, obtain the target registered human body parameters corresponding to the user's corrected body fat, and determine the registered identity information corresponding to the target registered human body parameters as the user's identity information.

[0211] In one embodiment, the target registered human parameters can be determined in two ways:

[0212] Method 1: When the matching value includes a body fat matching value, for any registered human parameter, if the body fat matching value in the matching value corresponding to the registered human parameter is less than a preset body fat threshold, then the registered human parameter is determined as the target registered human parameter corresponding to the user's corrected body fat, wherein the body fat matching value is the matching value determined based on the corrected body fat.

[0213] For example, the user-corrected body fat percentage matches registered body fat percentage 1 in registered human parameters 1 with a value of A; the user-corrected body fat percentage matches registered body fat percentage 2 in registered human parameters 1 with a value of B; and the user-corrected body fat percentage matches registered body fat percentage 3 in registered human parameters 3 with a value of C. If C is determined to be less than a preset body fat percentage threshold, then registered human parameter 3 corresponding to the matching value C is determined as the target registered human parameter that matches the user-corrected body fat percentage.

[0214] Method 2: When the matching value includes body fat matching value and weight matching value, for any registered human parameter, if the body fat matching value is less than a preset body fat threshold and the weight matching value is less than a preset weight threshold, then the registered human parameter is determined as the target registered human parameter corresponding to the user's corrected body fat, wherein the weight matching value is a matching value determined based on the user's weight.

[0215] For example, the user-corrected body fat percentage matches the registered body fat percentage 1 in registered anatomy parameter 1 with a value of A, and matches the registered weight percentage 1 in registered anatomy parameter 1 with a value of M. The user-corrected body fat percentage matches the registered body fat percentage 2 in registered anatomy parameter 2 with a value of B, and the user-corrected weight matches the registered weight percentage 2 in registered anatomy parameter 2 with a value of N. The user-corrected body fat percentage matches the registered body fat percentage 3 in registered anatomy parameter 3 with a value of C, and the user-corrected weight matches the registered weight percentage 3 in registered anatomy parameter 3 with a value of Q. If it is determined that the matching value C is less than a preset body fat percentage threshold and the matching value Q is less than a preset weight percentage threshold, then the registered anatomy parameter 3 corresponding to the registered body fat percentage 3 and registered weight percentage 3 is determined to be the target registered anatomy parameter.

[0216] It should be noted that the preset body fat threshold and preset weight threshold in this embodiment can be set according to the actual situation, and this embodiment does not limit them.

[0217] After identifying the user, in one embodiment, the registered body fat percentage in the user's registered anatomy parameters is updated in the following way:

[0218] The user's corrected body fat percentage and the user's registered body fat percentage are weighted and summed to obtain the updated registered body fat percentage, which is then determined as the user's registered body fat percentage. The updated registered body fat percentage is obtained using formula (7):

[0219] F′ n =m×F n +n×F1……(7);

[0220] Among them, F′ n For the updated registered body fat, F n The registered body fat percentage is F1, the user-corrected body fat percentage is m, the preset weight of the registered body fat percentage is n, and the preset weight of the corrected body fat percentage is n.

[0221] It should be noted that in this embodiment, m is 0.9 and n is 0.1, but the specific values ​​of m and n are not limited. The specific values ​​of m and n can be set according to the actual situation.

[0222] To ensure automatic identification of user identity information, after obtaining the registered human body parameters that match the user's human body parameters based on the matching values, the following two scenarios may be included:

[0223] Scenario 1: If the number of registered human parameters matching the user's human parameters is a specified number, then the step of determining the identity information corresponding to the registered human parameters as the user's identity information is executed. For example, Table 2 shows the correspondence between registered human parameters and identity information:

[0224] Register anthropometric parameters (body fat and / or weight) Identity information Register human body parameters 1 Identity Information A Register human body parameters 2 Identity Information B Register human body parameters 3 Identity Information C ... ...

[0225] Table 2

[0226] The identity information includes name, age, gender, etc., which can be set according to the actual situation. This embodiment does not limit it.

[0227] As shown in Table 2, if the registered human parameters that match the user's human parameters are determined to be registered human parameters 1, and the specified quantity is 1, then the identity information A corresponding to registered human parameters 1 will be determined as the user's identity information.

[0228] Scenario 2: If the number of registered human parameters matching the user's human parameters is not equal to the specified number, then an electrocardiogram (ECG) signal is used to identify the user. It should be noted that the specified number in this embodiment is 1, but this embodiment does not limit the specified number; the specified number can be set according to actual circumstances.

[0229] To further understand the technical solution of this disclosure, the following is in conjunction with... Figure 9 A detailed explanation may include the following steps:

[0230] Step 901: After confirming that the user is sitting on the smart toilet, obtain the user's human body parameters, including body fat and weight;

[0231] Step 902: Correct the user's body fat percentage using the user's weight to obtain the corrected body fat percentage;

[0232] Step 903: Match the corrected body fat percentage with each registered human parameter corresponding to the smart toilet to obtain the matching values;

[0233] Step 904: Based on the matching values, obtain the target registered human body parameters corresponding to the user's corrected body fat, and determine the registered identity information corresponding to the target registered human body parameters as the user's identity information;

[0234] Step 905: Determine whether the number of the target registered human parameters is equal to the specified number. If yes, proceed to step 906; otherwise, proceed to step 907.

[0235] Step 906: Determine the identity information corresponding to the target registered human body parameters as the user's identity information;

[0236] Step 907: Obtain ECG data from at least two leads of the user, wherein the leads include limb leads and / or chest leads;

[0237] Step 908: Perform contour recognition on each ECG data to obtain the contour of each wave of a specified type in each ECG data, wherein each wave of the specified type includes at least one of P wave, T wave and QRS wave;

[0238] Step 909: Project the contours of each wave corresponding to each ECG data onto a specified plane to obtain the user's ECG vector loop;

[0239] Step 910: Match the user's ECG vector loop with each preset template ECG vector loop to obtain each matching value, wherein each preset template ECG vector loop corresponds to different user identity information;

[0240] Step 911: Determine the user's identity information based on the matching values.

[0241] Based on the same disclosed concept, the identity recognition method described above can also be implemented by an identity recognition device. The effect of this device is similar to that of the aforementioned method, and will not be described further here.

[0242] Figure 10 This is a schematic diagram of the structure of an identity recognition device according to an embodiment of the present disclosure.

[0243] like Figure 10 As shown, the identity recognition device 1000 disclosed herein may include a first acquisition module 1010, a contour recognition module 1020, an electrocardiogram vector loop determination module 1030, a first matching module 1040, and a first identity information determination module 1050.

[0244] The first acquisition module 1010 is used to acquire electrocardiogram data of at least two leads of the user, wherein the leads include limb leads and / or chest leads;

[0245] The contour recognition module 1020 is used to perform contour recognition on each electrocardiogram data to obtain the contour of each wave of a specified type in each electrocardiogram data, wherein the specified wave of each type includes at least one of P wave, T wave and QRS wave.

[0246] The ECG vector loop determination module 1030 is used to project the contours of each wave corresponding to each ECG data onto a specified plane to obtain the user's ECG vector loop.

[0247] The first matching module 1040 is used to match the user's ECG vector ring with each preset template ECG vector ring to obtain each matching value, wherein each preset template ECG vector ring corresponds to different user identity information.

[0248] The first identity information determination module 1050 is used to determine the user's identity information based on the matching values.

[0249] In one embodiment, the profile of any wave is composed of the potential difference of the heart at various points in time;

[0250] The ECG vector loop determination module 1030 is specifically used for:

[0251] For any given wave of any specified type in any electrocardiogram (ECG) data, based on the wave's contour, the potential difference value corresponding to the wave at each time point is obtained; and,

[0252] Based on the potential difference value corresponding to the wave at each time point, the position coordinates of each projection point of the wave at each time point on the target coordinate axis are obtained, wherein the target coordinate axis is determined based on the lead corresponding to the electrocardiogram data;

[0253] The target position coordinates of the projection point are obtained by using the position coordinates of the projection point on the target coordinate axis at the same time point in each electrocardiogram data.

[0254] By using the target position coordinates of each projection point, the ECG vector loop corresponding to each wave of the specified type can be obtained;

[0255] The user's ECG vector loop is obtained by using the ECG vector loops corresponding to each wave of the specified type, wherein the number of the user's ECG vector loops is the same as the number of wave types.

[0256] In one embodiment, the first identity information determination module 1050 is specifically used for:

[0257] If any of the matching values ​​exceeds a specified threshold, the template ECG vector ring corresponding to the largest value among those exceeding the specified threshold is determined as the target template ECG vector ring. Then, using a preset correspondence between the template ECG vector ring and identity information, the identity information corresponding to the target template ECG vector ring is determined, and this determined identity information is then used as the user's identity information; or,

[0258] If none of the matching values ​​is greater than a specified threshold, the ECG vector rings are rotated in specified directions by specified angles to obtain multiple intermediate ECG vector rings. For any intermediate ECG vector ring, multiple different shrinkage ratios are used to shrink the intermediate ECG vector rings to obtain multiple target ECG vector rings. For any one of the preset template ECG vector rings, a preset matching algorithm is used to match the multiple target ECG vector rings with the template ECG vector rings to obtain matching values. The maximum value among the matching values ​​is determined as the target matching value between the user's ECG vector ring and the template ECG vector ring. The template ECG vector rings with target matching values ​​greater than a specified threshold are determined as the target template ECG vector rings. Using the preset correspondence between template ECG vector rings and identity information, the identity information corresponding to the target template ECG vector rings is determined, and the determined identity information is then used as the user's identity information.

[0259] In one embodiment, the apparatus further includes:

[0260] The preprocessing module 1060 is used to perform contour recognition on each electrocardiogram (ECG) data and to perform filtering and noise reduction processing on the ECG data before obtaining the contours of each wave of a specified type in each ECG data.

[0261] In one embodiment, the apparatus further includes:

[0262] The second acquisition module 1070 is used to acquire the user's human body parameters after determining that the user is sitting on the smart toilet, before acquiring the user's electrocardiogram data of at least two leads. The human body parameters include body fat and weight.

[0263] The correction module 1080 is used to correct the user's body fat percentage based on the user's weight to obtain the corrected body fat percentage.

[0264] The second matching module 1090 is used to match the corrected body fat percentage with each registered human body parameter corresponding to the smart toilet to obtain each matching value.

[0265] The second identity information determination module 1091 is used to obtain target registered human body parameters corresponding to the user's corrected body fat percentage based on the matching values, and to determine the registered identity information corresponding to the target registered human body parameters as the user's identity information. In one embodiment, the weight includes at least two pressure values, wherein each pressure value is obtained by measuring the user's weight at different locations on the smart toilet;

[0266] In one embodiment, the correction module 1080 is specifically used for:

[0267] If the weight includes two pressure values, a proportionality coefficient is obtained based on these two pressure values. A target correction coefficient is then obtained based on the proportionality coefficient and a pre-set fitting coefficient. This target correction coefficient is then used to correct the user's body fat percentage, resulting in the corrected body fat percentage; or...

[0268] If the user's weight includes more than two stress values, then the stress values ​​included in the weight and the body fat are input into a pre-trained body fat correction model to obtain the corrected body fat.

[0269] In one embodiment, the fitting coefficients include a first fitting coefficient and a second fitting coefficient;

[0270] The correction module 1080 executes the process of obtaining the target correction coefficient based on the proportional coefficient and the preset fitting coefficient, specifically for:

[0271] Multiply the proportional coefficient by the first fitting coefficient to obtain the intermediate fitting coefficient, and add the intermediate fitting coefficient to the second fitting coefficient to obtain the target correction coefficient;

[0272] The correction module 1080 executes the process of obtaining a proportionality coefficient based on the two pressure values ​​included in the weight, specifically for:

[0273] Divide the two pressure values ​​to obtain the proportionality coefficient;

[0274] The correction module 1080 performs the step of correcting the user's body fat using the target correction coefficient to obtain the corrected body fat percentage, specifically for:

[0275] The corrected body fat percentage is obtained by multiplying the target correction factor by the body fat percentage.

[0276] In one embodiment, the correction module 1080 is specifically used for:

[0277] The corrected body fat percentage is obtained using the following formula:

[0278]

[0279] Wherein, F0 is the user's body fat percentage, F1 is the corrected body fat percentage, P1 is one of the two pressure values, P2 is the other of the two pressure values, N1 is the first fitting coefficient, and N2 is the second fitting coefficient.

[0280] In one embodiment, the second matching module 1090 is specifically used for:

[0281] For any registered human parameter, the corrected body fat percentage is divided by the registered body fat percentage in the registered human parameter to obtain a first similarity value; the absolute value of the difference between the first similarity value and a specified value is determined as the matching value between the corrected body fat percentage and the registered human parameter; or,

[0282] For any registered human body parameter, the registered pressure values ​​in the registered weight are summed to obtain a first total pressure value, and the pressure values ​​in the user's weight are summed to obtain a second total pressure value. The second total pressure value is subtracted from the first total pressure value to obtain a pressure difference. The pressure difference is then divided by the first total pressure value to obtain a second similarity value. The absolute value of the second similarity value and the absolute value of the difference between the first similarity value and a specified value are determined as the corrected body fat and the matching value of the registered human body parameter, wherein the number of pressure values ​​included in the registered weight is the same as the number of pressure values ​​included in the user's weight.

[0283] In one embodiment, the second identity information determination module 1091 is specifically used for:

[0284] When the matching value includes a body fat matching value, then for any registered human parameter, if the body fat matching value in the matching value corresponding to the registered human parameter is less than a preset body fat threshold, then the registered human parameter is determined as the target registered human parameter corresponding to the user's corrected body fat, wherein the body fat matching value is a matching value determined based on the corrected body fat; or,

[0285] When the matching value includes body fat matching value and weight matching value, for any registered human parameter, if the body fat matching value is less than a preset body fat threshold and the weight matching value is less than a preset weight threshold, then the corresponding registered human parameter is determined as the target registered human parameter corresponding to the user's corrected body fat, wherein the weight matching value is a matching value determined based on the user's weight.

[0286] Having introduced an identity recognition method and apparatus according to an exemplary embodiment of the present disclosure, we will now introduce an electronic device according to another exemplary embodiment of the present disclosure.

[0287] Those skilled in the art will understand that various aspects of this disclosure can be implemented as a system, method, or program product. Therefore, various aspects of this disclosure can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, collectively referred to herein as a "circuit," "module," or "system."

[0288] In some possible implementations, the electronic device according to this disclosure may include at least one processor and at least one computer storage medium. The computer storage medium stores program code that, when executed by the processor, causes the processor to perform the steps of the identification methods according to the various exemplary embodiments of this disclosure described above. For example, the processor may perform actions such as... Figure 2 Steps 201-205 are shown in the diagram.

[0289] The following reference Figure 11 To describe an electronic device 1100 according to such an embodiment of the present disclosure. Figure 11 The electronic device 1100 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.

[0290] like Figure 11 As shown, the electronic device 1100 is manifested in the form of a general electronic device. The components of the electronic device 1100 may include, but are not limited to: at least one processor 1101, at least one computer storage medium 1102, and a bus 1103 connecting different system components (including the computer storage medium 1102 and the processor 1101).

[0291] Bus 1103 represents one or more of several bus structures, including a computer storage media bus or computer storage media controller, peripheral bus, processor, or local bus using any of the various bus structures.

[0292] Computer storage medium 1102 may include readable media in the form of volatile computer storage media, such as random access computer storage medium (RAM) 1121 and / or cache storage medium 1122, and may further include read-only computer storage medium (ROM) 1123.

[0293] The computer storage medium 1102 may also include a program / utility 1125 having a set (at least one) of program modules 1124, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.

[0294] Electronic device 1100 can also communicate with one or more external devices 1104 (e.g., keyboard, pointing device, etc.), and with one or more devices that enable a user to interact with electronic device 1100, and / or with any device that enables electronic device 1100 to communicate with one or more other electronic devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 1105. Furthermore, electronic device 1100 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 1106. As shown, network adapter 1106 communicates with other modules used in electronic device 1100 via bus 1103. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 1100, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0295] In some possible implementations, aspects of an identity recognition method provided in this disclosure may also be implemented as a program product comprising program code that, when run on a computer device, causes the computer device to perform the steps of the identity recognition method according to the various exemplary embodiments of this disclosure described above.

[0296] The program product may take the form of any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access computer storage media (RAM), read-only computer storage media (ROM), erasable programmable read-only computer storage media (EPROM or flash memory), optical fibers, portable compact disk read-only computer storage media (CD-ROM), optical computer storage media, magnetic computer storage media, or any suitable combination thereof.

[0297] The identity recognition program product of the embodiments of this disclosure can be a portable compact disc read-only computer storage medium (CD-ROM) and include program code, and can run on an electronic device. However, the program product of this disclosure is not limited thereto. In this document, the readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0298] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying readable program code. This propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0299] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0300] Program code for performing the operations of this disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's electronic device, partially on the user's device, as a standalone software package, partially on the user's electronic device and partially on a remote electronic device, or entirely on a remote electronic device or server. In cases involving remote electronic devices, the remote electronic device can be connected to the user's electronic device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external electronic device (e.g., via the Internet using an Internet service provider).

[0301] It should be noted that although several modules of the apparatus have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules described above can be embodied in one module. Conversely, the features and functions of one module described above can be further divided and embodied by multiple modules.

[0302] Furthermore, although the operations of the methods disclosed herein are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all of the operations shown must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.

[0303] Those skilled in the art will understand that embodiments of this disclosure can be provided as methods, systems, or computer program products. Therefore, this disclosure can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this disclosure can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk computer storage media, CD-ROMs, optical computer storage media, etc.) containing computer-usable program code.

[0304] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0305] These computer program instructions may also be stored in a computer-readable computer storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable computer storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0306] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0307] Obviously, those skilled in the art can make various modifications and variations to this disclosure without departing from its spirit and scope. Therefore, if such modifications and variations fall within the scope of the claims of this disclosure and their equivalents, this disclosure is also intended to include such modifications and variations.

Claims

1. An identity recognition method, characterized in that, The method includes: Acquire ECG data from a user in at least two leads, wherein the leads include limb leads and / or chest leads; Contour recognition is performed on each electrocardiogram (ECG) data to obtain the contours of each wave of a specified type in each ECG data, wherein each wave of the specified type includes at least one of P wave, T wave and QRS wave; The contours of each wave corresponding to each ECG data are projected onto a specified plane to obtain the user's ECG vector loop; The user's ECG vector ring is matched with each preset template ECG vector ring to obtain a matching value, wherein each preset template ECG vector ring corresponds to different user identity information. Based on the matching values, the user's identity information is determined, including: If none of the matching values ​​is greater than a specified threshold, the ECG vector rings are rotated in specified directions by specified angles to obtain multiple intermediate ECG vector rings. For any intermediate ECG vector ring, multiple different shrinkage ratios are used to shrink the intermediate ECG vector rings to obtain multiple target ECG vector rings. For any one of the preset template ECG vector rings, a preset matching algorithm is used to match the multiple target ECG vector rings with the template ECG vector rings to obtain matching values. The maximum value among the matching values ​​is determined as the target matching value between the user's ECG vector ring and the template ECG vector ring. The template ECG vector rings with target matching values ​​greater than a specified threshold are determined as target template ECG vector rings. Using the preset correspondence between template ECG vector rings and identity information, the identity information corresponding to the target template ECG vector ring is determined, and the determined identity information is then used as the user's identity information.

2. The method according to claim 1, characterized in that, The profile of any wave is composed of the potential difference of the heart at various points in time; The step of projecting the contours of each wave corresponding to each ECG data onto a specified plane to obtain the user's ECG vector loop includes: For any given wave of any specified type in any electrocardiogram (ECG) data, based on the wave's contour, the potential difference value corresponding to the wave at each time point is obtained; and, Based on the potential difference value corresponding to the wave at each time point, the position coordinates of each projection point of the wave at each time point on the target coordinate axis are obtained, wherein the target coordinate axis is determined based on the lead corresponding to the electrocardiogram data; The target position coordinates of the projection point are obtained by using the position coordinates of the projection point on the target coordinate axis at the same time point in each electrocardiogram data. By using the target position coordinates of each projection point, the ECG vector loop corresponding to each wave of the specified type can be obtained; The user's ECG vector loop is obtained by using the ECG vector loops corresponding to each wave of the specified type, wherein the number of the user's ECG vector loops is the same as the number of wave types.

3. The method according to claim 1, characterized in that, Before performing contour recognition on each electrocardiogram (ECG) data point to obtain the contours of each wave of a specified type in each ECG data point, the method further includes: The electrocardiogram data is then filtered and denoised.

4. The method according to any one of claims 1 to 3, characterized in that, Before acquiring ECG data from at least two leads of the user, the method further includes: Once it is determined that a user is sitting on the smart toilet, the user's human body parameters are obtained, including body fat and weight. The user's body fat percentage is adjusted using the user's weight to obtain the adjusted body fat percentage; The corrected body fat percentage is matched with each registered human parameter corresponding to the smart toilet to obtain each matching value; Based on the matching values, target registered human body parameters corresponding to the user's corrected body fat are obtained, and the registered identity information corresponding to the target registered human body parameters is determined as the user's identity information.

5. The method according to claim 4, characterized in that, The weight includes at least two pressure values, wherein each pressure value is obtained by measuring the user's weight at different locations on the smart toilet. The step of correcting the user's body fat percentage using the user's weight to obtain the corrected body fat percentage includes: If the weight includes two pressure values, a proportionality coefficient is obtained based on these two pressure values. A target correction coefficient is then obtained based on the proportionality coefficient and a pre-set fitting coefficient. This target correction coefficient is then used to correct the user's body fat percentage, resulting in the corrected body fat percentage; or... If the user's weight includes more than two stress values, then the stress values ​​included in the weight and the body fat are input into a pre-trained body fat correction model to obtain the corrected body fat.

6. An identity recognition device, characterized in that, The device includes: The first acquisition module is used to acquire ECG data of at least two leads of the user, wherein the leads include limb leads and / or chest leads; The contour recognition module is used to perform contour recognition on each electrocardiogram (ECG) data to obtain the contours of each wave of a specified type in each ECG data, wherein the specified wave of each type includes at least one of P wave, T wave and QRS wave. The ECG vector loop determination module is used to project the contours of each wave corresponding to each ECG data onto a specified plane to obtain the user's ECG vector loop. The first matching module is used to match the user's ECG vector ring with each preset template ECG vector ring to obtain each matching value, wherein each preset template ECG vector ring corresponds to different user identity information. The first identity information determination module is used to determine the user's identity information based on the matching values, including: If none of the matching values ​​is greater than a specified threshold, the ECG vector rings are rotated in specified directions by specified angles to obtain multiple intermediate ECG vector rings. For any intermediate ECG vector ring, multiple different shrinkage ratios are used to shrink the intermediate ECG vector rings to obtain multiple target ECG vector rings. For any one of the preset template ECG vector rings, a preset matching algorithm is used to match the multiple target ECG vector rings with the template ECG vector rings to obtain matching values. The maximum value among the matching values ​​is determined as the target matching value between the user's ECG vector ring and the template ECG vector ring. The template ECG vector rings with target matching values ​​greater than a specified threshold are determined as target template ECG vector rings. Using the preset correspondence between template ECG vector rings and identity information, the identity information corresponding to the target template ECG vector ring is determined, and the determined identity information is then used as the user's identity information.

7. The apparatus according to claim 6, characterized in that, The profile of any wave is composed of the potential difference of the heart at various points in time; The ECG vector loop determination module is specifically used for: For any wave of any specified type in any electrocardiogram data, based on the contour of the wave, the potential difference value corresponding to the wave at each time point is obtained; and, Based on the potential difference value corresponding to the wave at each time point, the position coordinates of each projection point of the wave at each time point on the target coordinate axis are obtained, wherein the target coordinate axis is determined based on the lead corresponding to the electrocardiogram data; The target position coordinates of the projection point are obtained by using the position coordinates of the projection point on the target coordinate axis at the same time point in each electrocardiogram data. By using the target position coordinates of each projection point, the ECG vector loop corresponding to each wave of the specified type can be obtained; The user's ECG vector loop is obtained by using the ECG vector loops corresponding to each wave of the specified type, wherein the number of the user's ECG vector loops is the same as the number of wave types.

8. An electronic device, characterized in that, The method includes at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that are executed by the at least one processor; the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1-5.

9. A computer storage medium, characterized in that, The computer storage medium stores a computer program for performing the method according to any one of claims 1-5.