CN107995181B - Gait-based identity authentication method, device, equipment and storage medium - Google Patents

Gait-based identity authentication method, device, equipment and storage medium Download PDF

Info

Publication number
CN107995181B
CN107995181B CN201711207319.1A CN201711207319A CN107995181B CN 107995181 B CN107995181 B CN 107995181B CN 201711207319 A CN201711207319 A CN 201711207319A CN 107995181 B CN107995181 B CN 107995181B
Authority
CN
China
Prior art keywords
gait data
current
gait
data
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711207319.1A
Other languages
Chinese (zh)
Other versions
CN107995181A (en
Inventor
谈剑锋
聂文静
杨德光
姜立稳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinruide Holding Group Co ltd
Original Assignee
Shanghai Peoplenet Security Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Peoplenet Security Technology Co Ltd filed Critical Shanghai Peoplenet Security Technology Co Ltd
Priority to CN201711207319.1A priority Critical patent/CN107995181B/en
Publication of CN107995181A publication Critical patent/CN107995181A/en
Application granted granted Critical
Publication of CN107995181B publication Critical patent/CN107995181B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0861Network architectures or network communication protocols for network security for authentication of entities using biometrical features, e.g. fingerprint, retina-scan

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The invention discloses an identity authentication method, device, equipment and storage medium based on gait. The gait-based identity authentication method comprises the following steps: collecting current gait data of a user to be identified; calculating the distance between the current gait data and each datum gait data in a datum gait data set; calculating a weighted average value corresponding to the current gait data according to the total distance between the current gait data and each datum gait data in the datum gait data set and a weighted value corresponding to each datum gait data which is stored in advance; and verifying the identity of the user to be identified according to the weighted average value. So as to reduce the calculation amount and improve the effect of identifying the user.

Description

Gait-based identity authentication method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an identity authentication method, device, equipment and storage medium based on gait.
Background
Gait recognition is a new biometric authentication technique that has been of increasing interest to more and more researchers in recent years. Gait recognition is a method of recognizing the identity of a person by walking.
With the continuous development of the sensors, the gait data of the human body can be collected by the sensors under the condition that people do not sense the gait data, and then the identity of the people can be identified. At present, a common gait recognition method is to collect gait data of a human body and bring the gait data into a classification model to recognize a user. The existing gait recognition classification model usually adopts a KNN (nearest neighbor algorithm, K-nearest neighbor) model, and two groups of sample data are stored in the KNN model, wherein one group is the sample data of the user, and the other group is the sample data of the non-user; when the gait data to be identified is collected, calculating the distance between the gait data to be identified and all sample data in the KNN model according to an Euclidean distance formula, selecting K nearest sample data to form a neighbor sample set, calculating the proportion of sample data of the person and sample data of a non-person in the neighbor sample set respectively, if the proportion of the sample data of the person is greater than that of the sample data of the non-person, determining that the person to be identified is the person, otherwise, determining that the person to be identified is not the person.
In the identification method in the prior art, the distances between the gait data of the person to be identified and all sample data in the model need to be calculated, and the calculated amount is particularly large. And the walking of people has great randomness, which leads to a plurality of gait data of one person. The user sample data of certain gait data in the K nearest sample data is less, but the non-user sample data is more, so that the identification result is wrong, and the user identity identification effect is reduced.
Disclosure of Invention
The invention provides an identity authentication method, device, equipment and storage medium based on gait, which can reduce the calculation amount and improve the effect of identifying a user.
In a first aspect, an embodiment of the present invention provides a gait-based identity verification method, where the method includes:
collecting current gait data of a user to be identified;
calculating the distance between the current gait data and each datum gait data in a datum gait data set;
calculating a weighted average value corresponding to the current gait data according to the total distance between the current gait data and each datum gait data in the datum gait data set and a weighted value corresponding to each datum gait data which is stored in advance;
and verifying the identity of the user to be identified according to the weighted average value.
In a second aspect, an embodiment of the present invention further provides a gait-based identity authentication device, where the device includes: the device comprises an acquisition module, a calculation module and a verification module; wherein,
the acquisition module is used for acquiring the current gait data of the user to be identified;
the calculation module is used for calculating the distance between the current gait data and each datum gait data in a datum gait data set;
calculating a weighted average value corresponding to the current gait data according to the total distance between the current gait data and each datum gait data in the datum gait data set and a weighted value corresponding to each datum gait data which is stored in advance;
and the verification module is used for verifying the identity of the user to be identified according to the weighted average value.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method according to any one of the first aspects above.
In a fourth aspect, an embodiment of the present invention further provides a storage medium storing computer-executable instructions, where the computer-executable instructions are configured to perform the method according to any one of the above first aspects.
According to the technical scheme of the embodiment of the invention, the distance between the current gait data and each datum gait data in the datum gait data set is calculated by collecting the current gait data of the user to be identified, the weighted average value corresponding to the current gait data is calculated according to the total distance between the current gait data and each datum gait data in the datum gait data set and the weighted value corresponding to each datum gait data stored in advance, and the identity of the user to be identified is verified according to the weighted average value. So as to reduce the calculation amount and improve the effect of identifying the user.
Drawings
Fig. 1 is a flowchart of a gait-based authentication method according to an embodiment of the invention;
FIG. 2 is a flowchart of model training in a gait-based authentication method according to a second embodiment of the invention;
FIG. 3 is a flow chart of a gait-based authentication method according to a third embodiment of the invention;
fig. 4 is a schematic structural diagram of a gait-based authentication apparatus according to a fourth embodiment of the invention;
fig. 5 is a schematic structural diagram of an apparatus provided in the fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a gait-based authentication method according to an embodiment of the present invention, where the embodiment is applicable to an authentication situation, the method may be executed by a gait-based authentication device, and as shown in fig. 1, the gait-based authentication method may include the following steps:
and S110, collecting current gait data of the user to be identified.
In this embodiment, the current gait data refers to a gait cycle data of the user to be identified in the current state, and one gait cycle refers to a gait cycle from the heel at one side to the heel at the same side in walking. And acquiring current gait data of the user to be identified through a sensor in the terminal equipment. Illustratively, the sensor may be an acceleration sensor, a gyro sensor, a gravity sensor, or the like.
And S120, calculating the distance between the current gait data and each datum gait data in the datum gait data set.
And S130, calculating a weighted average value corresponding to the current gait data according to the total distance between the current gait data and each datum gait data in the datum gait data set and a weighted value corresponding to each datum gait data which is stored in advance.
In the present embodiment, a reference gait data set having 3 pieces of reference gait data will be described as an example. Illustratively, the current gait data of the user to be identified is [1, 3], and the reference gait data set is { [1, 2 ]: 3; [3,3]: 4; [1,8]: 5, wherein [1, 2], [3, 3], [1, 8] is reference gait data; 3, 4, 5 are the number of occurrences of the corresponding reference gait data in the reference gait data set.
According to the Euclidean distance formula,
a[x1,y1];=[x2,y2]
Figure BDA0001483938890000051
and calculating the distance between the current gait data and each datum gait data in the datum gait data set. The distance between the current gait data [1, 3] and the reference gait data [1, 2] is 1, the distance between the current gait data [1, 3] and the reference gait data [3, 3] is 2, and the distance between the current gait data [1, 3] and the reference gait data [1, 8] is 5.
And the frequency of the occurrence of each datum gait data in the datum gait data set is used as a weighted value corresponding to each datum gait data. And calculating a weighted average value corresponding to the current gait data according to the total distance between the current gait data and each datum gait data in the datum gait data set and a weighted value corresponding to each datum gait data which is stored in advance.
The formula of the weighted average value is that if the weights of n numbers d1, d2, d3, … … and dn are w1, w2, w3, … … and wn respectively; the weighted average of the n numbers is
Figure BDA0001483938890000052
And calculating the weighted average value corresponding to the current gait data according to the formula.
The distance between the current gait data [1, 3] and the reference gait data [1, 2] is 1, and the weighted value is 3; the distance between the current gait data [1, 3] and the reference gait data [3, 3] is 2, and the weighted value is 4; the distance between the current gait data [1, 3] and the reference gait data [1, 8] is 5, and the weighted value is 5.
The weighted average corresponding to the current gait data is:
Figure BDA0001483938890000053
and S140, verifying the identity of the user to be identified according to the weighted average value.
Judging whether the weighted average value is smaller than a preset threshold value or not; and when the weighted average value is greater than or equal to the preset threshold value, the identity verification of the user to be identified is not passed, namely the user to be identified is not the user.
Further, the determination of the preset threshold value can be set manually according to actual conditions, and an appropriate threshold value can also be set according to the accuracy. Where accuracy is equal to the correct number divided by the total number.
For example, the preset threshold is set to 4, and in S130, the weighted average corresponding to the current gait data is calculated to be 3, and the weighted average 3 is smaller than the preset threshold 4. It is indicated that the user to be identified is himself.
According to the technical scheme of the embodiment of the invention, the distance between the current gait data and each datum gait data in the datum gait data set is calculated by collecting the current gait data of the user to be identified, the weighted average value corresponding to the current gait data is calculated according to the total distance between the current gait data and each datum gait data in the datum gait data set and the weighted value corresponding to each datum gait data stored in advance, and the identity of the user to be identified is verified according to the weighted average value. So as to reduce the calculation amount and improve the effect of identifying the user.
Example two
Fig. 2 is a flowchart of model training in the gait-based authentication method according to the second embodiment of the present invention, and the second embodiment of the present invention further adds a model training method in the gait-based authentication method to the above embodiments. As shown in fig. 2. The model training in the gait-based identity verification method can comprise the following steps:
and S210, collecting the current sample gait data of the user to be identified.
In this embodiment, the sample gait data refers to all gait data of the user to be identified.
And S220, calculating the distance between the current sample gait data and each preset current reference gait data.
S230, judging whether the distance between the current sample gait data and any one current reference gait data is smaller than a preset distance; if yes, go to S240; if not, executing S250;
s240, when the distance between the current sample gait data and any one current reference gait data is smaller than a preset distance, adding 1 to a weighted value corresponding to the current reference gait data;
and S250, when the distance between the current sample gait data and any one current reference gait data is not less than the preset distance, setting the current sample gait data as new current reference gait data.
In the embodiment, for each user to be identified, taking the first-appearing sample gait data as the first-class reference gait data, and counting, wherein the corresponding number of the first-class reference gait data is 1;
calculating the distance between the second sample gait data and the first type of reference gait data, merging the two data when the distance between the second sample gait data and the first type of reference gait data is less than the preset distance, and counting, wherein the corresponding number of the first type of reference gait data is 2;
calculating the distance between the third sample gait data and the first type of reference gait data, and when the distance between the third sample gait data and the first type of reference gait data is smaller than a preset distance, merging the third sample gait data into the first type of data reference gait data, wherein the corresponding number of the first type of reference gait data is 3;
and calculating the distance between the fourth sample gait data and the first type of reference gait data, and when the distance between the fourth sample gait data and the first type of data reference gait data is not less than the preset distance, the fourth sample gait data is not merged with the first type of data reference gait data. Taking the fourth sample gait data as second type reference gait data, wherein the second type reference gait data count is 1;
and if the distance between the fifth sample gait data and the second type of reference gait data is less than the preset distance and the distance between the fifth sample gait data and the first type of reference gait data is greater than the preset distance, the fifth sample gait data is merged into the second type of data reference gait data, and the second type of data reference gait data count is 2. And if the distance between the fifth sample gait data and the second type of reference gait data is less than the preset distance and the distance between the fifth sample gait data and the first type of reference gait data is also less than the preset distance, merging the fifth sample gait data and the type of reference gait data with the minimum distance. Exemplarily, if the distance between the fifth sample gait data and the first type of reference gait data is less than the distance between the fifth sample gait data and the second type of reference gait data, the fifth sample gait data is merged with the first type of reference gait data, and the first type of reference gait data count is 4; if the distance between the fifth sample gait data and the second type of reference gait data is less than the distance between the fifth sample gait data and the first type of reference gait data, then the fifth sample gait data and the second type of reference gait data are merged, and the second type of reference gait data count is 2.
If new sample gait data appear, the calculation, combination and counting are carried out by analogy.
Illustratively, the first occurrence of sample gait data is [1, 2 ]; the second sample gait data is [2, 1 ]; the third sample gait data is [1, 3 ]; the fourth sample gait data is [2, 2 ]; the fifth sample gait data is [2, 5 ]; the preset distance is 2.
The first-appearing sample gait data is [1, 2] as the first-class reference gait data [1, 2], and the first-class reference gait data count is 1.
Calculating second sample gait data [2, 1] according to Euclidean distance formula]With reference gait data of the first type [1, 2]]A distance of
Figure BDA0001483938890000081
Less than the predetermined distance 2, second sample gait data [2, 1]]With radicals of the first kindQuasi gait data [1, 2]Merging, first class reference gait data [1, 2]]The count of (2).
And calculating the distance between the third sample gait data [1, 3] and the first type reference gait data [1, 2] as 1 and smaller than the preset distance 2 according to the Euclidean distance formula, merging the third sample gait data [1, 3] and the first type reference gait data [1, 2], and counting the first type reference gait data [1, 2] as 3.
Calculating the fourth sample gait data as [2, 4] according to the Euclidean distance formula]With reference gait data of the first type [1, 2]]A distance of
Figure BDA0001483938890000082
If the distance is greater than the preset distance 2, the fourth sample gait data is [2, 4]]As second type reference gait data [2, 4]]The second type of baseline gait data count is noted as 1.
Calculating the gait data of the fifth sample as [2, 5] according to the Euclidean distance formula]Reference gait data [1, 2] with first class data]A distance of
Figure BDA0001483938890000091
If the distance is larger than the preset distance 2, calculating the gait data of the fifth sample as [2, 5]]And second type of reference gait data [2, 4]]Is 1, is less than the preset distance 2, the fifth sample gait data is [2, 5]]And second type of reference gait data [2, 4]]And merging, and counting and recording the second-class data reference gait data as 2.
And (3) forming a reference gait data set by the first-type reference gait data, the second-type reference gait data and the corresponding numbers of the first-type reference gait data and the second-type reference gait data to form a reference gait data set { [1, 2 ]: 3; [2,4]: 2}. If the current sample gait data is collected, when the distance between the sample gait data and any one current reference gait data is less than the preset distance, adding 1 to the weighted value corresponding to the current reference gait data; and when the distance between the current sample gait data and any one current reference gait data is not less than the preset distance, setting the current sample gait data as new current reference gait data. By analogy, the sample gait data is calculated, merged and counted, and the reference gait data set is continuously updated.
The model training method provided by the embodiment of the invention comprises the steps of collecting current sample gait data of a user to be identified, calculating the distance between the current sample gait data and each piece of predetermined current reference gait data, adding 1 to a weighted value corresponding to the current reference sample gait data when the distance between the current sample gait data and any one piece of current reference gait data is less than a preset distance, and setting the current sample gait data as new current reference gait data when the distance between the current sample gait data and any one piece of current reference gait data is not less than the preset distance. The method solves the problems that the calculation amount of new data and all training data is large and the calculation is repeated in the calculation method in the prior art, and the training data is simply deduplicated, so that a large amount of information of the data is difficult to avoid losing, can reduce the calculation amount of model training, and avoids the loss of data information.
EXAMPLE III
Fig. 3 is a flowchart of an authentication method based on gait according to a third embodiment of the present invention, and in this embodiment, based on the above embodiments, the authentication method based on gait is optimized, and as shown in fig. 3, the authentication method based on gait may include the following steps:
and S310, collecting current gait data of the user to be identified.
And S320, calculating the distance between the current gait data and each datum gait data in the datum gait data set.
And S330, acquiring a preset number of reference gait data with the minimum distance to the current gait data from all the reference gait data.
And S340, calculating a weighted average value corresponding to the current gait data according to the preset number of datum data with the minimum distance from the current gait data and the weighted value corresponding to the preset number of datum gait data with the minimum distance from the current gait data.
In this embodiment, the distance between the current gait data and each reference gait data in the reference gait data set calculated in the first embodiment will be described. The distance between the current gait data [1, 3] and the reference gait data [1, 2] is 1, the distance between the current gait data [1, 3] and the reference gait data [3, 3] is 2, and the distance between the current gait data [1, 3] and the reference gait data [1, 8] is 5. And acquiring a preset number of reference gait data with the minimum distance from the current gait data from all the reference gait data. Illustratively, the predetermined number is 2. And acquiring 2 pieces of reference gait data with the minimum distance from the current gait data from the 3 pieces of reference gait data, namely reference gait data [1, 2] and reference gait data [3, 3 ].
And acquiring the times corresponding to the reference gait data [1, 2] and the reference gait data [3, 3] in the reference gait data set as respective weighted values. The weighting value of the acquired reference gait data [1, 2] is 3, and the weighting value of the reference gait data [3, 3] is 4.
The weighted average corresponding to the current gait data is:
Figure BDA0001483938890000101
and S350, judging whether the weighted average value is smaller than a preset threshold value.
And S360, when the weighted average value is smaller than a preset threshold value, the identity verification of the person to be identified is passed.
And S370, when the weighted average value is smaller than the preset threshold value, the identity authentication of the person to be identified is not passed.
Judging whether the weighted average value is smaller than a preset threshold value or not; and when the weighted average value is greater than or equal to the preset threshold value, the identity verification of the user to be identified is not passed, namely the user to be identified is not the user.
Further, the determination of the preset threshold value can be set manually according to actual conditions, and an appropriate threshold value can also be set according to the accuracy. Where the accuracy is the correct number divided by the total number.
For example, the preset threshold is set to 4, and the weighted average corresponding to the current gait data is calculated as
Figure BDA0001483938890000111
Weighted average
Figure BDA0001483938890000112
Less than a preset threshold 4. It is indicated that the user to be identified is himself.
Furthermore, under the condition that the identity of the user needs to be verified once, a plurality of pieces of gait data of the user to be identified are collected, and when the verification results of the plurality of pieces of gait data are different, the verification results can be determined according to the proportion of the verified gait data in all the gait data. Further, calculating the proportion of the verified gait data in all gait data, and when the proportion of the verified gait data in all gait data is greater than a preset proportion, passing the identity verification; otherwise, the authentication is not passed.
In the embodiment of the invention, the preset number of pieces of reference gait data with the minimum distance from the current gait data are acquired from all pieces of reference gait data, the weighted average value corresponding to the current gait data is calculated according to the preset number of pieces of reference gait data with the minimum distance from the current gait data and the weighted value corresponding to the preset number of pieces of reference gait data with the minimum distance from the current gait data, whether the weighted average value is smaller than the preset threshold value or not is judged, and when the weighted average value is smaller than the preset threshold value, the identity verification of a person to be identified is passed. So as to reduce the calculation amount and improve the effect of identifying the user.
Example four
Fig. 4 is a schematic structural diagram of an identity authentication device based on gait according to a fourth embodiment of the present invention, where the embodiment is applicable to the case of identity authentication, and the specific structure of the identity authentication device based on gait is as follows: an acquisition module 410, a calculation module 420 and a verification module 430; wherein,
the acquisition module 410 is configured to acquire current gait data of a user to be identified.
A calculating module 420, configured to calculate a distance between the current gait data and each reference gait data in the reference gait data set; and calculating a weighted average value corresponding to the current gait data according to the total distance between the current gait data and each datum gait data in the datum gait data set and a weighted value corresponding to each datum gait data which is stored in advance.
And the verification module 430 is configured to verify the identity of the user to be identified according to the weighted average.
Further, the collecting module 410 is further configured to collect current sample gait data of the user to be identified.
The calculating module 420 is further configured to calculate distances between the current sample gait data and each of the predetermined current reference gait data; when the distance between the current sample gait data and any one current reference gait data is smaller than the preset distance, adding 1 to the weighted value corresponding to the current reference sample gait data; and when the distance between the current sample gait data and any one current reference gait data is not less than the preset distance, setting the current sample gait data as new current reference gait data.
Further, the calculation module 420 includes: an acquisition unit and a calculation unit; wherein,
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a preset number of reference gait data with the minimum distance from the current gait data from all the reference gait data;
and the calculating unit is used for calculating a weighted average value corresponding to the current gait data according to the reference gait data with the preset number and the minimum distance from the current gait data and the weighted value corresponding to the reference gait data with the preset number and the minimum distance from the current gait data.
Further, the verification module is specifically configured to determine whether the weighted average is smaller than a preset threshold; and when the weighted average value is smaller than the preset threshold value, the identity verification of the person to be identified is passed.
The gait-based identity verification device provided by the embodiment of the invention calculates the distance between the current gait data and each datum gait data in the datum gait data set by collecting the current gait data of the user to be recognized, calculates the weighted average value corresponding to the current gait data according to the total distance between the current gait data and each datum gait data in the datum gait data set and the weighted value corresponding to each datum gait data stored in advance, and verifies the identity of the user to be recognized according to the weighted average value. So as to reduce the calculation amount and improve the effect of identifying the user.
The gait-based identity authentication device provided by the embodiment of the invention can execute the gait-based identity authentication method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an apparatus provided in the fifth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary device 512 suitable for use in implementing embodiments of the present invention. The device 512 shown in fig. 5 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present invention.
As shown in fig. 5, device 512 is in the form of a general purpose device. Components of device 512 may include, but are not limited to: one or more processors or processing units 516, a system memory 528, and a bus 518 that couples the various system components including the system memory 528 and the processing unit 516.
Bus 518 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 512 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by device 512 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 528 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)530 and/or cache memory 532. The device 512 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 534 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 518 through one or more data media interfaces. System memory 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 540 having a set (at least one) of program modules 542 may be stored, for example, in system memory 528, such program modules 542 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 542 generally perform the functions and/or methods of the described embodiments of the invention.
Device 512 may also communicate with one or more external devices 514 (e.g., keyboard, pointing device, display 524, etc.), with one or more devices that enable a user to interact with the device 512, and/or with any devices (e.g., network card, modem, etc.) that enable the device 512 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 522. Also, the device 512 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 520. As shown, the network adapter 520 communicates with the other modules of the device 512 via the bus 518. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the device 512, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 516 executes various functional applications and data processing by running programs stored in the system memory 528, for example, implementing the gait-based authentication method provided by the embodiment of the present invention:
and acquiring current gait data of the user to be identified.
And calculating the distance between the current gait data and each datum gait data in the datum gait data set.
And calculating a weighted average value corresponding to the current gait data according to the total distance between the current gait data and each datum gait data in the datum gait data set and a weighted value corresponding to each datum gait data which is stored in advance.
And verifying the identity of the user to be identified according to the weighted average value.
Further, before collecting the current gait data of the user to be identified, the gait-based identity authentication method further comprises:
acquiring current sample gait data of a user to be identified;
calculating the distance between the current sample gait data and each predetermined current reference gait data;
when the distance between the current sample gait data and any one current reference gait data is smaller than the preset distance, adding 1 to the weighted value corresponding to the current reference gait data;
and when the distance between the current sample gait data and any one current reference gait data is not less than the preset distance, setting the current sample gait data as new current reference gait data.
Further, calculating a weighted average value corresponding to the current gait data according to the total distance between the current gait data and each datum gait data in the datum gait data set and a weighted value corresponding to each datum gait data which is stored in advance, and the method comprises the following steps:
acquiring a preset number of reference gait data with the minimum distance from the current gait data from all the reference gait data;
and calculating a weighted average value corresponding to the current gait data according to the preset number of pieces of reference gait data with the minimum distance from the current gait data and the weighted value corresponding to the preset number of pieces of reference gait data with the minimum distance from the current gait data.
Further, verifying the identity of the person to be identified according to the weighted average value, comprising:
judging whether the weighted average value is smaller than a preset threshold value or not;
and when the weighted average value is smaller than the preset threshold value, the identity verification of the person to be identified is passed.
The device provided by the embodiment of the invention calculates the distance between the current gait data and each datum gait data in the datum gait data set by collecting the current gait data of the user to be identified, calculates the weighted average value corresponding to the current gait data according to the total distance between the current gait data and each datum gait data in the datum gait data set and the weighted value corresponding to each datum gait data stored in advance, and verifies the identity of the user to be identified according to the weighted average value. So as to reduce the calculation amount and improve the effect of identifying the user.
EXAMPLE six
The sixth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the gait-based identity authentication method provided in all the embodiments of the present invention:
and acquiring current gait data of the user to be identified.
And calculating the distance between the current gait data and each datum gait data in the datum gait data set.
And calculating a weighted average value corresponding to the current gait data according to the total distance between the current gait data and each datum gait data in the datum gait data set and a weighted value corresponding to each datum gait data which is stored in advance.
And verifying the identity of the user to be identified according to the weighted average value.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A gait-based identity verification method, the method comprising:
acquiring current sample gait data of a user to be identified;
calculating the distance between the current sample gait data and each predetermined current reference gait data;
when the distance between the current sample gait data and any one current reference gait data is smaller than a preset distance, adding 1 to the weighted value corresponding to the current reference gait data;
when the distance between the current sample gait data and any one current reference gait data is not less than a preset distance, setting the current sample gait data as new current reference gait data;
acquiring current gait data of a user to be identified, wherein the current gait data refers to data of one gait cycle of the user to be identified in the current state, the one gait cycle refers to a period from heel landing at one side to heel landing at the same side again in walking, and the current gait data is acquired by a sensor in terminal equipment;
calculating the distance between the current gait data and each datum gait data in a datum gait data set;
calculating a weighted average value corresponding to the current gait data according to the total distance between the current gait data and each datum gait data in the datum gait data set and a weighted value corresponding to each datum gait data which is stored in advance;
and verifying the identity of the user to be identified according to the weighted average value.
2. The method of claim 1, wherein calculating a weighted average corresponding to the current gait data based on the total distance between the current gait data and each reference gait data in the reference gait data set and a weighting value corresponding to each reference gait data saved in advance comprises:
acquiring a preset number of reference gait data with the minimum distance from the current gait data from all the reference gait data;
and calculating a weighted average value corresponding to the current gait data according to the preset number of pieces of reference gait data with the minimum distance to the current gait data and the weighted value corresponding to the preset number of pieces of reference gait data with the minimum distance to the current gait data.
3. The method according to claim 1, wherein the verifying the identity of the person to be identified according to the weighted average value comprises:
judging whether the weighted average value is smaller than a preset threshold value or not;
and when the weighted average value is smaller than a preset threshold value, the identity verification of the person to be identified is passed.
4. A gait-based authentication apparatus, characterized in that the apparatus comprises: the device comprises an acquisition module, a calculation module and a verification module; wherein,
the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring current gait data of a user to be identified, the current gait data refers to data of one gait cycle of the user to be identified in the current state, the one gait cycle refers to the state from heel landing at one side to heel landing at the same side again in walking, and the current gait data is acquired by a sensor in terminal equipment;
the calculation module is used for calculating the distance between the current gait data and each datum gait data in a datum gait data set;
calculating a weighted average value corresponding to the current gait data according to the total distance between the current gait data and each datum gait data in the datum gait data set and a weighted value corresponding to each datum gait data which is stored in advance;
the verification module is used for verifying the identity of the user to be identified according to the weighted average value;
the acquisition module is also used for acquiring the current sample gait data of the user to be identified;
the calculation module is further used for calculating the distance between the current sample gait data and each preset current reference gait data; when the distance between the current sample gait data and any one current reference gait data is smaller than a preset distance, adding 1 to the weighted value corresponding to the current reference gait data; and when the distance between the current sample gait data and any one current reference gait data is not less than the preset distance, setting the current sample gait data as new current reference gait data.
5. The apparatus of claim 4, wherein the computing module comprises: an acquisition unit and a calculation unit; wherein,
the acquiring unit is used for acquiring a preset number of pieces of reference gait data with the minimum distance from the current gait data from all pieces of reference gait data;
the calculating unit is used for calculating a weighted average value corresponding to the current gait data according to the reference gait data with the preset number and the minimum distance from the current gait data and the weighted value corresponding to the reference gait data with the preset number and the minimum distance from the current gait data.
6. The apparatus according to claim 4, wherein the verification module is specifically configured to determine whether the weighted average is smaller than a preset threshold; and when the weighted average value is smaller than a preset threshold value, the identity verification of the person to be identified is passed.
7. An apparatus, characterized in that the apparatus comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 3.
8. A storage medium storing computer-executable instructions for performing the method of any one of claims 1 to 3.
CN201711207319.1A 2017-11-27 2017-11-27 Gait-based identity authentication method, device, equipment and storage medium Active CN107995181B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711207319.1A CN107995181B (en) 2017-11-27 2017-11-27 Gait-based identity authentication method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711207319.1A CN107995181B (en) 2017-11-27 2017-11-27 Gait-based identity authentication method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107995181A CN107995181A (en) 2018-05-04
CN107995181B true CN107995181B (en) 2020-10-30

Family

ID=62033438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711207319.1A Active CN107995181B (en) 2017-11-27 2017-11-27 Gait-based identity authentication method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107995181B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108831526A (en) * 2018-05-21 2018-11-16 四川斐讯信息技术有限公司 A kind of wearable sports equipment of intelligence with identification function and its recognition methods

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014052507A2 (en) * 2012-09-25 2014-04-03 Aliphcom Wearable device and method to generate biometric identifier for authentication using near-field communications
CN105279411A (en) * 2015-09-22 2016-01-27 电子科技大学 Gait bio-feature based mobile device identity recognition method
CN106056013A (en) * 2016-06-03 2016-10-26 深圳市金立通信设备有限公司 Terminal burglary prevention method and terminal
CN106921500A (en) * 2017-03-22 2017-07-04 深圳先进技术研究院 The identity identifying method and device of a kind of mobile device
CN107016346A (en) * 2017-03-09 2017-08-04 中国科学院计算技术研究所 gait identification method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9578024B2 (en) * 2014-12-18 2017-02-21 Sri International Continuous authentic of mobile device users

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014052507A2 (en) * 2012-09-25 2014-04-03 Aliphcom Wearable device and method to generate biometric identifier for authentication using near-field communications
CN105279411A (en) * 2015-09-22 2016-01-27 电子科技大学 Gait bio-feature based mobile device identity recognition method
CN106056013A (en) * 2016-06-03 2016-10-26 深圳市金立通信设备有限公司 Terminal burglary prevention method and terminal
CN107016346A (en) * 2017-03-09 2017-08-04 中国科学院计算技术研究所 gait identification method and system
CN106921500A (en) * 2017-03-22 2017-07-04 深圳先进技术研究院 The identity identifying method and device of a kind of mobile device

Also Published As

Publication number Publication date
CN107995181A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
US11610394B2 (en) Neural network model training method and apparatus, living body detecting method and apparatus, device and storage medium
CN107992596B (en) Text clustering method, text clustering device, server and storage medium
CN109583332B (en) Face recognition method, face recognition system, medium, and electronic device
CN111785384B (en) Abnormal data identification method based on artificial intelligence and related equipment
CN111612037B (en) Abnormal user detection method, device, medium and electronic equipment
CN110633991A (en) Risk identification method and device and electronic equipment
CN112990294B (en) Training method and device of behavior discrimination model, electronic equipment and storage medium
US11120297B2 (en) Segmentation of target areas in images
CN110796108B (en) Method, device and equipment for detecting face quality and storage medium
CN113313053A (en) Image processing method, apparatus, device, medium, and program product
CN113379469A (en) Abnormal flow detection method, device, equipment and storage medium
US9928408B2 (en) Signal processing
CN108460335B (en) Video fine-granularity identification method and device, computer equipment and storage medium
CN107995181B (en) Gait-based identity authentication method, device, equipment and storage medium
CN114120454A (en) Training method and device of living body detection model, electronic equipment and storage medium
CN111738290A (en) Image detection method, model construction and training method, device, equipment and medium
JP2014032605A (en) Image recognition device, image recognition method, and image recognition program
CN115762704A (en) Prescription auditing method, device, equipment and storage medium
CN113177479B (en) Image classification method, device, electronic equipment and storage medium
CN113553888B (en) Personnel identity verification method, device, equipment and storage medium
CN110059180B (en) Article author identity recognition and evaluation model training method and device and storage medium
JP2014067352A (en) Apparatus, method, and program for biometric authentication
CN117478434B (en) Edge node network traffic data processing method, device, equipment and medium
CN113591916B (en) Data processing method and device based on classification model
CN114003630B (en) Data searching method and device, electronic equipment and storage medium

Legal Events

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

Effective date of registration: 20240709

Address after: Room 503, Building 3, No. 6, Xicheng Xi'an North Road, Xinluo District, Longyan City, Fujian Province, 364000

Patentee after: Xie Xinyong

Country or region after: China

Address before: Room 211, building 4, No. 1411, Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai, 201821

Patentee before: SHANGHAI PEOPLENET SECURITY TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240722

Address after: No. 825 Xuejia, Fengyang Village, Fengyang Town, Qian County, Xianyang City, Shaanxi Province, 713300

Patentee after: Jinruide Holding Group Co.,Ltd.

Country or region after: China

Address before: Room 503, Building 3, No. 6, Xicheng Xi'an North Road, Xinluo District, Longyan City, Fujian Province, 364000

Patentee before: Xie Xinyong

Country or region before: China