Age recognition system, method and device based on blockchain
By using denoising autoencoders, convolutional neural networks and recurrent neural networks in the blockchain distributed system to fuse and upload facial image features, the accuracy and privacy security issues of facial image age estimation are solved and achieved A combination of high accuracy and security.
Patent Information
- Application Number
- CN202011303351.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-19
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-11-19
AI Technical Summary
In the existing technology, the age estimation results of face images are not accurate enough due to factors such as angle changes, occlusion, and light, and user privacy is difficult to guarantee during the transmission process. Encryption alone cannot completely solve the privacy security problem.
Using a blockchain-based distributed system, original image features are extracted through image acquisition equipment, the server performs feature fusion, and uses denoising autoencoders, convolutional neural networks and recursive neural networks to extract and fuse features, and upload them to the blockchain The network generates data blocks to ensure the accuracy of features and privacy security.
It improves the accuracy of facial feature extraction and age prediction results, completely avoids leakage of user privacy, and ensures privacy security through the data storage and consensus mechanism of the blockchain.
Smart Images

Figure CN112446310B
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to an age recognition system, method and device based on blockchain. Background Art
[0002] Age estimation based on face images is an important biometric recognition technology and an important supplement to face detection and recognition related technologies. However, due to the interference of various factors such as angle changes, occlusion, and light in face images, the age estimation result is not accurate enough. In addition, the user's face image may be stolen during the transmission over the network, and the user's privacy is difficult to protect.
[0003] At present, it is difficult to fully obtain the image features of facial images in related technologies. Missing features or omissions of features cause inaccurate age recognition results. In addition, the privacy and security issues of user images during transmission are protected by encrypting data. However, where there is a shield, there is a spear. Encryption alone cannot completely solve the privacy and security issues of users.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The present application provides a blockchain-based age recognition system, method and device.
[0006] In a first aspect, the present application provides a distributed system for age recognition, comprising: at least one image acquisition device, used to extract multiple original image features from a facial image of any object, and send the multiple original image features to a server; a server, used to determine the age of the object based on fused features, where the fused features are obtained by fusion of multiple original image features; a blockchain network, used to generate data blocks, which store the original image features, fused features and age sent by the server.
[0007] In the second aspect, the present application provides an age recognition method based on blockchain, which is applied to a server, including: obtaining multiple original image features of any object sent by at least one image acquisition device, the original image features are extracted by the image acquisition device from the face image of the object, and the image acquisition device is a device in the distributed system where the server is located; performing feature fusion on multiple original image features to obtain target fusion features; determining a target age corresponding to the target fusion features according to an age recognition model; uploading the original image features, target fusion features and target age to the blockchain to generate a target data block that saves the original image features, target fusion features and target age.
[0008] Optionally, multiple original image features are subjected to feature fusion to obtain target fusion features, including: obtaining weight matrices of multiple categories of original image features, the weight matrices are used to store the association weights between sub-features in the original image features, different categories of original image features are extracted by an image acquisition device using different target neural network models, and the target neural network model includes at least one of a denoising autoencoder, a convolutional neural network, and a recursive neural network; using the weight matrix to determine the similarity matrix of each category of original image features, the similarity matrix is used to store similarity coefficients between sub-features; determining the adjacency matrix of each category of original image features according to the similarity matrix of each category of original image features, the adjacency matrix is used to store edges in a hypergraph; constructing a hypergraph using the weight matrix and adjacency matrix of each category of original image features, and using the hypergraph to determine the target fusion features.
[0009] Optionally, a hypergraph is constructed using the weight matrix and adjacency matrix of various original image features, and the target fusion feature is determined using the hypergraph, including: concatenating the adjacency matrices of various original image features to obtain a fused adjacency matrix; determining an edge degree matrix using the fused adjacency matrix, the edge degree matrix is used to store the number of vertices connected to each edge in the hypergraph; determining a vertex degree matrix using the weight matrix, the vertex degree matrix is used to store the number of edges connected to each vertex in the hypergraph; determining a Laplacian matrix using the edge degree matrix and the vertex degree matrix to obtain a hypergraph; determining the eigenvalue matrix of the Laplacian matrix, and using the eigenvalue matrix as the target fusion feature.
[0010] Optionally, determining the target age corresponding to the target fusion feature according to the age recognition model includes: inputting the target fusion feature into the age recognition model, obtaining multiple first probability values after the age recognition model recognizes the target fusion feature, the first probability value being the probability of the age of the object indicated by the face image predicted by the age recognition model; and taking the age indicated by the maximum value of the multiple first probability values as the target age.
[0011] Optionally, before determining the target age corresponding to the target fusion feature according to the age recognition model, the method also includes training the age recognition model in the following manner: obtaining a training image, in which the target object in the training image has a target age; scaling the training image, and converting the scaled training image into a grayscale image; extracting features from the grayscale image using the target neural network model to obtain training image features; fusing the training image features to obtain training fusion features; inputting the training fusion features into a regression model for training; and using the regression model as an age recognition model when the probability value that the age of the target object predicted by the regression model is the target age reaches a target threshold.
[0012] Optionally, after obtaining the age recognition model, the method further includes: using a hash function to determine a hash value of the age recognition model; uploading the age recognition model to the blockchain, and using the hash value to reach a consensus on the age recognition model.
[0013] On the third aspect, the present application provides a blockchain-based age recognition method, which is applied to distributed edge computing devices, including: collecting facial images of the target object; extracting image features of the facial image using a target neural network model, the target neural network model including at least one of a denoising autoencoder, a convolutional neural network, and a recursive neural network; and sending image features to a server.
[0014] In a fourth aspect, the present application provides an age recognition device based on blockchain, which is applied to a server, including: an image feature acquisition module, which is used to acquire multiple original image features of any object sent by at least one image acquisition device, where the original image features are extracted by the image acquisition device from the face image of the object, and the image acquisition device is a device in the distributed system where the server is located; a feature fusion module, which is used to fuse multiple original image features to obtain a target fusion feature; an age prediction module, which is used to determine a target age corresponding to the target fusion feature according to an age recognition model; and a data chain module, which is used to upload the original image features, the target fusion features and the target age to the blockchain to generate a target data block that saves the original image features, the target fusion features and the target age.
[0015] In the fifth aspect, the present application provides an age recognition device based on blockchain, which is applied to a distributed edge computing device, including: an image acquisition module for acquiring facial images of a target object; a feature extraction module for extracting image features of facial images using a target neural network model, the target neural network model including at least one of a denoising autoencoder, a convolutional neural network and a recursive neural network; a sending module for sending image features to a server.
[0016] In a sixth aspect, the present application provides an electronic device, comprising: a processor, a communication component, a memory and a communication bus, wherein the processor, the communication component and the memory communicate with each other through the communication bus; the memory is used to store a computer program; the processor is used to execute the program stored in the memory to implement the method described in the second aspect or the third aspect.
[0017] In a seventh aspect, the present application provides a computer-readable storage medium storing a computer program for implementing the method described in the second aspect or the third aspect.
[0018] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:
[0019] The method provided in the embodiment of the present application extracts the image features of the face image and performs feature fusion through a denoising autoencoder, a convolutional neural network and a recursive neural network, and obtains the face features more comprehensively and accurately, thereby improving the accuracy of the age prediction result. In addition, the present solution uses a distributed edge computing device to collect images and extract features, and the distributed edge computing device sends the extracted image features to the server, so that only the image features are transmitted, completely avoiding the problem of user privacy leakage. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0022] Figure 1 This is a schematic diagram of the structure of the age recognition system based on blockchain in an embodiment of the present application;
[0023] Figure 2 This is a schematic diagram of the blockchain structure in the embodiment of this application;
[0024] Figure 3 This is a schematic diagram of the functional structure of the blockchain network in the embodiment of this application;
[0025] Figure 4 A schematic diagram of the hardware environment of an optional blockchain-based age recognition method provided in an embodiment of the present application;
[0026] Figure 5 A flowchart of an optional blockchain-based age recognition method provided in an embodiment of the present application;
[0027] Figure 6 A flowchart of another optional blockchain-based age recognition method provided in an embodiment of the present application;
[0028] Figure 7 A schematic diagram of the structure of an optional blockchain-based age recognition device provided in an embodiment of the present application;
[0029] Figure 8 A schematic diagram of the structure of another optional blockchain-based age recognition device provided in an embodiment of the present application;
[0030] Fig. 9A schematic diagram of an optional electronic device structure provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0032] In the following description, reference is made to “one specific embodiment”, which describes a subset of all possible embodiments, but it can be understood that “one specific embodiment” describes the same subset or different subsets of all possible embodiments and can be combined with each other without conflict.
[0033] Unless otherwise defined, all technical science and technology used herein have the same meaning as commonly understood by those skilled in the art of the present invention. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.
[0034] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following explanations.
[0035] (1) Transaction, which is equivalent to the computer term "transaction". Transaction includes operations that need to be submitted to the blockchain network for execution, and does not refer only to transactions in a business context. Since the term "transaction" is commonly used in blockchain technology, the embodiments of the present invention follow this convention.
[0036] For example, the Deploy transaction is used to install the specified smart contract to the nodes in the blockchain network and prepare it to be called; the Invoke transaction is used to append transaction records to the blockchain by calling the smart contract and perform operations on the blockchain's state database, including update operations (including adding, deleting, and modifying key-value pairs in the state database) and query operations (i.e. querying key-value pairs in the state database).
[0037] (2) Blockchain is an encrypted, chained transaction storage structure formed by blocks.
[0038] (3) Blockchain Network: A collection of nodes that incorporate new blocks into the blockchain through consensus.
[0039] (4) Ledger is a general term for blockchain (also called ledger data) and the state database synchronized with the blockchain. The blockchain records transactions in the form of files in the file system; the state database records transactions in the blockchain in the form of different types of key-value pairs, which is used to support fast query of transactions in the blockchain.
[0040] (5) Smart Contracts, also known as chaincode or application code, are programs deployed in the nodes of the blockchain network. The nodes execute the smart contracts called in the received transactions to update or query the key-value data in the state database.
[0041] (6) Consensus is a process in a blockchain network that is used to reach agreement on transactions in a block among multiple nodes involved. The blocks that reach agreement will be appended to the end of the blockchain. The mechanisms for achieving consensus include Proof of Work (PoW), Proof of Stake (PoS), Delegated Proof-of-Stake (DPoS), Proof of Elapsed Time (PoET), etc.
[0042] (7) Artificial Neural Networks: Artificial neural networks can be composed of neural units. Neural units can refer to s and intercept b as inputs, the output of the operation unit can be:
[0043]
[0044] Where, s = 1, 2, ... n, n is a natural number greater than 1, W s For x s The weight of the neural unit, b is the bias of the neural unit. f is the activation function of the neural unit, which is used to introduce nonlinear characteristics into the neural network to convert the input signal in the neural unit into the output signal. The output signal of the activation function can be used as the input of the next convolutional layer. The activation function can be a sigmoid function. A neural network is a network formed by connecting many of the above-mentioned single neural units together, that is, the output of one neural unit can be the input of another neural unit. The input of each neural unit can be connected to the local receptive field of the previous layer to extract the features of the local receptive field. The local receptive field can be an area composed of several neural units.
[0045] (8) Deep Neural Network (DNN): also known as a multi-layer neural network, it can be understood as a neural network with many hidden layers. There is no special metric for "many" here. According to the position of different layers of DNN, the neural network inside DNN can be divided into three categories: input layer, hidden layer, and output layer. Generally speaking, the first layer is the input layer, the last layer is the output layer, and the layers in between are all hidden layers. For example, in a fully connected neural network, the layers are fully connected, that is, any neuron in the i-th layer must be connected to any neuron in the i+1-th layer. Although DNN looks complicated, the work of each layer is actually not complicated. Simply put, it is the following linear relationship expression: in, is the input vector, is the output vector, is the offset vector, W is the weight matrix (also called coefficient), and α() is the activation function. Each layer is just an input vector After such a simple operation, the output vector Since DNN has many layers, the coefficient W and the offset vector The number of these parameters is also very large. The definitions of these parameters in DNN are as follows: Take the coefficient W as an example: Assume that in a three-layer DNN, the linear coefficient from the 4th neuron in the second layer to the 2nd neuron in the third layer is defined as The superscript 3 represents the layer number of the coefficient W, while the subscripts correspond to the output third layer index 2 and the input second layer index 4. In summary, the coefficients from the kth neuron in the L-1th layer to the jth neuron in the Lth layer are defined as It should be noted that the input layer does not have a W parameter. In a deep neural network, more hidden layers allow the network to better describe complex situations in the real world. Theoretically, the more parameters a model has, the higher its complexity and the greater its "capacity", which means it can complete more complex learning tasks. Training a deep neural network is the process of learning the weight matrix, and its ultimate goal is to obtain the weight matrix of all layers of the trained deep neural network (the weight matrix formed by many layers of vector W).
[0046] (9) Convolutional neural network (CNN): A convolutional neural network is a deep neural network with a convolutional structure. A convolutional neural network contains a feature extractor consisting of a convolution layer and a subsampling layer. The feature extractor can be regarded as a filter, and the convolution process can be regarded as using a trainable filter to convolve an input image or a convolution feature plane (feature map). A convolution layer refers to a neuron layer in a convolutional neural network that performs convolution processing on the input signal. In a convolutional layer of a convolutional neural network, a neuron can only be connected to some neurons in the adjacent layer. A convolutional layer usually contains several feature planes, and each feature plane can be composed of a number of neural units arranged in a rectangular shape. The neural units in the same feature plane share weights, and the shared weights here are the convolution kernels. Shared weights can be understood as the way to extract image information is independent of position. The implicit principle is that the statistical information of a part of the image is the same as that of other parts. This means that the image information learned in one part can also be used in another part. Therefore, the same learned image information can be used for all positions on the image. In the same convolution layer, multiple convolution kernels can be used to extract different image information. Generally speaking, the more convolution kernels there are, the richer the image information reflected by the convolution operation. The convolution kernel can be initialized in the form of a matrix of random size. During the training process of the convolutional neural network, the convolution kernel can obtain reasonable weights through learning. In addition, the direct benefit of shared weights is to reduce the connections between the layers of the convolutional neural network, while reducing the risk of overfitting.
[0047] The convolutional neural network uses ReLU as the activation function, and the mapping relationship from features to tags is defined as:
[0048]
[0049] ω is the parameter of the mapping, is the activation function (i.e. ReLU). For a convolutional network with l layers, the mapping relationship can be described as:
[0050]
[0051] Among them, the learning and updating process of W is represented by ΔW:
[0052]
[0053] η is the learning rate.
[0054]
[0055] Where y is the label information. Through the above formula, the gap between the label information and the predicted value is minimized. At the same time, the parameters are optimized through the back propagation mechanism:
[0056]
[0057] (10) Denoising autoencoder (DAE) is a type of autoencoder that accepts corrupted data as input and is trained to predict the original uncorrupted data as input. It is an unsupervised hidden layer extraction method. Its loss function is defined as:
[0058]
[0059] Where m is the number of cycles of adding noise, n is the number of layers of the autoencoder stack, is the feature with noise added. It can be further rewritten as:
[0060]
[0061] in is the superimposed X after automatic encoding, that is To minimize the above equation, we need to take the derivative of W, that is, We can get:
[0062]
[0063] (11) A recursive neural network (RNN) is an artificial neural network (ANN) with a tree-like hierarchical structure and network nodes that recursively process input information in the order in which they are connected. It is one of the deep learning algorithms. Its characteristic is that it learns a series of inputs at the same time, fuses them into parent nodes through a weight matrix, and then further calculates the predicted value. Using tanh as the activation function, the feature x i and x j The parent node of:
[0064] p i,j =tanh(W[x i ;x j ])
[0065] Where W is the weight matrix, which is usually solved by stochastic gradient descent.
[0066] (12) Hypergraph: Given a hypergraph G = <V, E, W>, V is the finite vertex set of the hypergraph, E is the hyperedge set of the hypergraph, W is the weight set of the hyperedge, and any hyperedge e∈E is a subset of the vertex set V. In the hypergraph, the degree of a vertex e∈E is defined as follows:
[0067]
[0068] For a hyperedge e∈E, the degree of the hyperedge is defined as the number of vertices contained in the hyperedge:
[0069] δ(e)=|e|
[0070] Define two square matrices D v , D e , respectively represent the order of the vertices and the order of the hyperedges of the hypergraph. Similar to the matrix representation of ordinary graphs, hypergraphs can also be represented by constructing a |V|*|E|-dimensional vertex-edge association matrix H. In the association matrix, if a vertex e is on a hyperedge v, then h(v, e) = 1, otherwise h(v, e) = 0. According to the definition of the association matrix, the order of the points and the order of the hyperedges in the hypergraph can be further expressed as:
[0071]
[0072]
[0073] The following describes an exemplary application of the blockchain network provided by the embodiment of the present invention, such as Figure 1 As shown, Figure 1 1 is a schematic diagram of an age recognition system provided by an embodiment of the present invention, including a blockchain network 101, a consensus node 102, an authentication center 103, a business entity 104, a client node 104-1, a business entity 105 and a client node 105-1, which are described below respectively:
[0074] The types of blockchain network 101 are flexible and diverse, for example, it can be any one of public chain, private chain or alliance chain. Taking the public chain as an example, any electronic device of any business subject, such as user terminal and server, can access the blockchain network 101 without authorization; taking the alliance chain as an example, after the business subject obtains authorization, its electronic device (such as terminal / server) can access the blockchain network 101, and at this time, it becomes a client node in the blockchain network 101.
[0075] In some embodiments, the client node 104 can only be an observer of the blockchain network 101, that is, it can provide support for business entities to initiate transactions (for example, to store image features and age prediction results corresponding to the image features on the chain or to query on-chain data). For the functions of the consensus node 102 of the blockchain network 101, such as sorting functions, consensus services, and account book functions, the client node can implement them by default or selectively (for example, depending on the specific business needs of the business entity). Thus, the data and business processing logic of the business entity can be migrated to the blockchain network 101 to the greatest extent, and the credibility and traceability of the data and business processing process can be achieved through the blockchain network 101.
[0076] The consensus nodes in the blockchain network 101 receive data from different business entities, such as Figure 1 The transaction submitted by the client node 104 - 1 of the business entity 104 shown in the figure is executed to update the ledger or query the ledger. Various intermediate results or final results of the transaction can be returned to the client node 104 - 1 of the business entity 104 for display.
[0077] For example, client node 104-1 can subscribe to events of interest in blockchain network 101, such as transactions occurring in a specific organization / channel in blockchain network 101, and consensus node 102 pushes corresponding transaction notifications to client node 104-1, thereby triggering corresponding business logic in client node 104-1.
[0078] As an example of blockchain, Figure 2 As shown, Figure 2 It is a schematic diagram of the structure of the blockchain in the blockchain network 101 provided in an embodiment of the present invention. The header of each block can include the hash value of all transactions in the block, and also includes the hash value of all transactions in the previous block. The newly generated transaction records are filled into the block and after the consensus of the nodes in the blockchain network, they will be appended to the end of the blockchain to form a chain growth. The chain structure based on the hash value between blocks ensures the anti-tampering and anti-counterfeiting of transactions in the block.
[0079] The following describes an exemplary functional architecture of a blockchain network provided by an embodiment of the present invention. Figure 3 As shown, Figure 3 1 is a functional architecture diagram of a blockchain network 101 provided in an embodiment of the present invention, including an application layer 301, a consensus layer 302, a network layer 303, a data layer 304 and a resource layer 305, which are described below respectively:
[0080] The application layer 301 encapsulates various services that can be implemented in the blockchain network, including transaction traceability, evidence storage, and verification.
[0081] The consensus layer 302 encapsulates the mechanism (i.e., consensus mechanism) for the nodes 102 in the blockchain network 101 to reach a consensus on the block, transaction management, and account management functions. The consensus mechanism includes consensus algorithms such as POS, POW, and DPOS, and supports pluggable consensus algorithms. Transaction management is used to verify the digital signature carried in the transaction received by the node 101, verify the identity information of the business subject 104, and determine whether it has the authority to conduct transactions based on the identity information (read relevant information from the business subject identity management); for the business subject that has obtained the authorization to access the blockchain network 101, they all have a digital certificate issued by the certification center, and the business subject uses the private key in its digital certificate to sign the submitted transaction, thereby declaring its legal identity. Account management is used to maintain the blockchain and state database. For the blocks that have reached consensus, they are appended to the end of the blockchain; execute the transactions in the blocks that have reached consensus, update the key-value pairs in the state database when the transaction includes an update operation, and query the key-value pairs in the state database when the transaction includes a query operation and return the query results to the client node of the business subject. Supports query operations on the state database in multiple dimensions, including: querying blocks based on block serial numbers (such as transaction hash values); querying blocks based on block hash values; querying blocks based on transaction serial numbers; querying transactions based on transaction serial numbers; querying business subject account data based on business subject account numbers (serial numbers); querying blockchains in channels based on channel names.
[0082] The network layer 303 encapsulates the functions of point-to-point (P2P) network protocol, data transmission mechanism and data verification mechanism, access authentication mechanism and business subject identity management.
[0083] Among them, the P2P network protocol realizes the communication between nodes 102 in the blockchain network 101, the data propagation mechanism ensures the propagation of transactions in the blockchain network 101, and the data verification mechanism is used to realize the reliability of data transmission between nodes 102 based on cryptographic methods (such as digital certificates, digital signatures, public / private key pairs); the access authentication mechanism is used to authenticate the identity of the business subject joining the blockchain network 101 according to the actual business scenario, and grant the business subject the right to access the blockchain network 101 when the authentication is passed; the business subject 104 identity management is used to store the identity of the business subject 104 allowed to access the blockchain network 101, and the authority (such as the type of transaction that can be initiated).
[0084] The data layer 304 encapsulates various data structures for implementing the ledger, including the blockchain implemented as files in the file system, the key-value state database, and the existence proof (such as the hash tree of transactions in the block).
[0085] The resource layer 305 encapsulates the computing resources, storage resources, and communication resources of each node 102 in the blockchain network 101.
[0086] Based on the above architecture, the embodiment of the present invention proposes the following implementation method.
[0087] In the related technology, it is difficult to fully obtain the image features of facial images. Missing or omitted features cause inaccurate age recognition results. In addition, the privacy and security issues of user images during transmission are protected by encrypting data. However, where there is a shield, there is a spear. Encryption alone cannot completely solve the user's privacy and security issues.
[0088] In order to solve the problems mentioned in the background technology, according to one aspect of the embodiments of the present application, an embodiment of an age identification method based on blockchain is provided.
[0089] Optionally, in the embodiment of the present application, the above-mentioned method for determining the image quality level can be applied to: Figure 4 The hardware environment shown is composed of a terminal 401 and a server 403. The terminal can be a distributed edge computing device, such as a monitoring device, a driving recorder, etc. The server is a central server that can collect and process data sent by the distributed edge computing device. Figure 4 As shown, the server 403 is connected to the terminal 401 via a network, and can be used to provide services for the terminal or a client installed on the terminal. A database 405 can be set on the server or independently of the server to provide data storage services for the server 403. The above-mentioned network includes but is not limited to: a wide area network, a metropolitan area network or a local area network, and the terminal 401 includes but is not limited to a PC, a mobile phone, a tablet computer, etc.
[0090] An age recognition method based on blockchain in an embodiment of the present application can be executed by a server, such as Figure 5 As shown, the method comprises the following steps:
[0091] Step S502, obtaining multiple original image features of any object sent by at least one image acquisition device, where the original image features are extracted from the face image of the object by the image acquisition device, and the image acquisition device is a device in the distributed system where the server is located.
[0092] In the embodiment of the present application, the above-mentioned image acquisition device can be set in a distributed edge computing device, which is a terminal device independent of the server, such as a monitoring device, a driving recorder, etc. The distributed edge computing device can collect the face image of the target object by relying on the installed image acquisition device.
[0093] In an embodiment of the present application, a target neural network model may be provided in the above-mentioned distributed edge computing device, which may be executed by a processor of the distributed edge computing device. That is, after the distributed edge computing device collects the image, the image features of the face image are extracted using the target neural network model. Each neural network model may obtain a type of image features. The distributed edge computing device may send each type of image features to the server, thereby eliminating the need to transmit the user's face image, thereby protecting the user's privacy and security, and reducing the amount of data transmitted, thereby improving transmission efficiency.
[0094] Step S504: fuse multiple original image features to obtain target fused features.
[0095] In the embodiment of the present application, after obtaining various original image features sent by the distributed edge computing device, the server can fuse the various original image features to obtain richer, more comprehensive and more accurate image features than single-type features. Preferably, the various image features can be fused based on a hypergraph construction method of low-rank learning.
[0096] Optionally, the hypergraph construction method based on low-rank learning may include the following steps to fuse various image features:
[0097] Step 1: Obtain the weight matrix of multiple categories of original image features. The weight matrix of each category of original image features can be expressed as Q (i) The weight matrix is used to store the association weights between the sub-features in the original image features. The original image features of different categories are extracted by the image acquisition device using different target neural network models, and the target neural network model includes at least one of a denoising autoencoder, a convolutional neural network, and a recurrent neural network. Specifically, in the i-th category of image features, the weight matrix between the l-th sub-feature and the k-th sub-feature can be expressed as and in represents the association weight of the lth sub-feature to the kth sub-feature, Represents the association weight of the kth sub-feature to the lth sub-feature. From the input image:
[0098] X (i) =X (i) Q (i) +E (i)
[0099] Among them, i = 1, ..., m, m is the category of the feature, that is, 3, and Q can be obtained by minimizing the multimodal low-rank learning loss function (i) :
[0100]
[0101] Among them, λ and α are weight parameters, and E is the initialization parameter, which can generally be set to the unit matrix. ‖ ‖ * is the trace paradigm, ‖ ‖ 2,1 Yes 2,1 paradigm.
[0102] Step 2: Use the weight matrix to determine the similarity matrix of each type of image features. Different types of image features are extracted by different target neural network models. The similarity matrix is used to save the similarity coefficients between sub-features. The similarity between the lth and kth features of the i-th type of features is defined as:
[0103]
[0104] Where m is the category of the feature, that is, 3. Calculate the similarity between any two features to form a similarity matrix. For example, if the i-th category of features has j sub-features, then the similarity matrix of the i-th category of features is a matrix with j rows and j columns, where the similarity between the l-th sub-feature and the k-th sub-feature is placed in the l-th row and k-th column.
[0105] Step 3: Determine the adjacency matrix U of each type of image feature based on the similarity matrix of each type of image feature. The adjacency matrix is used to store the edges in the hypergraph. The matrix element in the lth row and the kth column can be expressed as:
[0106]
[0107] Among them, δ is the judgment threshold, for example 0.5. If the similarity is greater than 0.5, it means that the two vertices materialized by the two features are connected on the same edge. On the contrary, if the similarity is less than 0.5, it means that the two vertices materialized by the two features are not connected on the same edge.
[0108] Step 4: Concatenate the adjacency matrices of various image features to obtain the fused adjacency matrix U = U 1 |U 2 |…|U m .
[0109] Step 5: Use the fused adjacency matrix to determine the edge degree matrix, which is used to store the number of vertices connected by each edge in the hypergraph. Calculate the edge degree matrix D in the hypergraph e , sum each row of U and put it on the diagonal position:
[0110]
[0111] Among them, D ell Denotes the matrix D e The value at the position (l, l).
[0112] Step 6: Use the weight matrix to determine the vertex degree matrix D v , the vertex degree matrix is used to store the number of edges connected to each vertex in the hypergraph. Calculate the vertex degree matrix D in the hypergraph v , sum each row of Q and put it on the diagonal:
[0113] If U lk =1
[0114] Among them, D vll Denotes the matrix D v The value at the position (l, l).
[0115] Step 7: Use the edge degree matrix and vertex degree matrix to determine the Laplacian matrix L and obtain the hypergraph:
[0116]
[0117] Where I represents the identity matrix. The result of the hypergraph construction is essentially to obtain the Laplace matrix L, so obtaining the Laplace matrix completes the hypergraph construction.
[0118] Step 8: Determine the eigenvalue matrix of the Laplacian matrix and use the eigenvalue matrix as the target fusion feature. Perform eigenvalue decomposition on the Laplacian matrix to obtain the eigenvalue matrix, which is the fused feature.
[0119] Step S506: determining the target age corresponding to the target fusion feature according to the age recognition model.
[0120] Optionally, step S506 may specifically be inputting the target fusion feature into an age recognition model to obtain a plurality of first probability values obtained after the age recognition model recognizes the target fusion feature, the first probability value being the probability of the age of the target object indicated by the face image predicted by the age recognition model; and taking the age indicated by the maximum value of the plurality of first probability values as the target age.
[0121] In the embodiment of the present application, the age recognition model can be obtained by training the fusion features with a softmax normalization model. After the target fusion features are input into the trained age recognition model, the fully connected layer in the age recognition model predicts the age of the target object and outputs the predicted probability values of each age, i.e., the first probability value. Among them, there is a maximum value in the first probability value, and the age corresponding to the maximum value is taken as the target age, i.e., the prediction result of the age recognition model.
[0122] In the embodiment of the present application, the training process of the above-mentioned age recognition model is as follows:
[0123] Step 1, obtaining a training image, wherein the target object in the training image has a target age.
[0124] Step 2: Scale the training image and convert the scaled training image into a grayscale image. Scaling can be performed by upsampling or downsampling, such as resizing all training images to 64*64 to accommodate model input. Convert the training image into a grayscale image to make the facial texture more prominent.
[0125] Step 3: Use the target neural network model to extract features from the grayscale image to obtain training image features. Denoising autoencoders, convolutional neural networks, and recursive neural networks are used to extract training image features.
[0126] Step 4: perform feature fusion on the training image features to obtain training fusion features. The feature fusion method can use the hypergraph construction method based on low-rank learning in the above embodiment to perform feature fusion on various training image features, which will not be described in detail here.
[0127] Step 5: Input the training fusion features into the regression model for training; when the probability value of the target object's age predicted by the regression model as the target age reaches the target threshold, the regression model is used as an age recognition model.
[0128] Optionally, after obtaining the age recognition model, the trained age recognition model can also be uploaded to the blockchain to ensure that the age recognition model is not tampered with. The hash value of the age recognition model is determined by a hash function, the age recognition model is uploaded to the blockchain, and the age recognition model is consensus-based using the hash value to reach a consensus in the consensus node. The hash value can also be used to verify whether the model is legal. For example, if a user gets a model, he can extract the hash value of the model and compare it with the one in the blockchain network. If they are the same, it means that the source of the model is legal.
[0129] Step S508, uploading the original image features, the target fusion features and the target age to the blockchain to generate a target data block that stores the original image features, the target fusion features and the target age.
[0130] In an embodiment of the present application, image features and age prediction results can also be saved in the blockchain to prevent tampering, and a query function can be provided to users.
[0131] By adopting the technical solution of this application, the image features of the face image are extracted and feature fused through a denoising autoencoder, a convolutional neural network and a recursive neural network, and the face features are obtained more comprehensively and accurately, thereby improving the accuracy of the age prediction results. In addition, this solution uses distributed edge computing devices to collect images and extract features, and the distributed edge computing devices send the extracted image features to the server, so that only the image features are transmitted, completely avoiding the problem of user privacy leakage.
[0132] The present application embodiment also provides a blockchain-based age recognition method, which can be executed by a distributed edge computing device, such as Figure 6 As shown, the method comprises the following steps:
[0133] Step S602, collecting a face image of a target object;
[0134] Step S604, extracting image features of the face image using a target neural network model, where the target neural network model includes at least one of a denoising autoencoder, a convolutional neural network, and a recursive neural network;
[0135] Step S606: sending the image features to the server.
[0136] In the embodiment of the present application, the above-mentioned distributed edge computing device can be a monitoring device, a driving recorder, a mobile phone, a tablet computer, a PC and other devices. The denoising autoencoder, the convolutional neural network and the recursive neural network can be set in the processor of the distributed edge computing device to extract features of the face image collected by the device. The extracted image features are then sent to the server for age prediction. This localized processing can completely block the leakage of the user's privacy data, and if only the image features are transmitted, the amount of data can be greatly reduced.
[0137] In the embodiment of the present application, the age recognition model, image features and age prediction results are stored in the blockchain through the rules of the smart contract.
[0138] Below, in order to explain this application more clearly, we first briefly introduce the working principle of smart contracts:
[0139] Building smart contracts: Smart contracts are jointly developed by multiple users within the blockchain and can be used for any transaction between any users. The agreement clearly defines the rights and obligations of both parties to the transaction. Developers program these rights and obligations electronically, and the code contains conditions that trigger the automatic execution of the contract.
[0140] Storing smart contracts: Once the coding is completed, the smart contract is uploaded to the blockchain network, that is, every node in the entire network can receive the smart contract.
[0141] Executing smart contracts: Smart contracts will periodically check whether there are relevant events and trigger conditions, and push events that meet the conditions to the queue for verification. The verification nodes on the blockchain will first verify the signature of the event to ensure its validity. Once most verification nodes reach a consensus on the event, the smart contract will be successfully executed and notified to the user.
[0142] The present application also provides an age recognition device based on blockchain, which is applied to a server. The specific implementation of the device can be found in the description of the method embodiment part, and the repetitive parts will not be repeated. Figure 7 As shown, the device mainly includes: an image feature acquisition module 701, which is used to acquire multiple original image features of any object sent by at least one image acquisition device, where the original image features are extracted by the image acquisition device from the face image of the object, and the image acquisition device is a device in the distributed system where the server is located; a feature fusion module 703, which is used to fuse multiple original image features to obtain a target fusion feature; an age prediction module 705, which is used to determine the target age corresponding to the target fusion feature according to the age recognition model; a data chain module 707, which is used to upload the original image features, the target fusion features and the target age to the blockchain to generate a target data block that stores the original image features, the target fusion features and the target age.
[0143] It should be noted that the image feature acquisition module 701 in this embodiment can be used to execute step S502 in the embodiment of the present application, the feature fusion module 703 in this embodiment can be used to execute step S504 in the embodiment of the present application, the age prediction module 705 in this embodiment can be used to execute step S506 in the embodiment of the present application, and the data uplink module 707 in this embodiment can be used to execute step S508 in the embodiment of the present application.
[0144] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 4 In the hardware environment shown, it can be implemented by software or by hardware.
[0145] Optionally, the feature fusion module is specifically used to: obtain weight matrices of multiple categories of original image features, the weight matrices are used to save the association weights between sub-features in the original image features, different categories of original image features are extracted by the image acquisition device using different target neural network models, and the target neural network model includes at least one of a denoising autoencoder, a convolutional neural network and a recursive neural network; use the weight matrix to determine the similarity matrix of each category of original image features, the similarity matrix is used to save the similarity coefficients between the sub-features; determine the adjacency matrix of each category of original image features according to the similarity matrix of each category of original image features, the adjacency matrix is used to save the edges in the hypergraph; construct a hypergraph using the weight matrix and adjacency matrix of each category of original image features, and use the hypergraph to determine the target fusion feature.
[0146] Optionally, the feature fusion module is also used to: splice the adjacency matrices of various original image features to obtain a fused adjacency matrix; use the fused adjacency matrix to determine the edge degree matrix, the edge degree matrix is used to save the number of vertices connected to each edge in the hypergraph; use the weight matrix to determine the vertex degree matrix, the vertex degree matrix is used to save the number of edges connected to each vertex in the hypergraph; use the edge degree matrix and the vertex degree matrix to determine the Laplacian matrix to obtain a hypergraph; determine the eigenvalue matrix of the Laplacian matrix, and use the eigenvalue matrix as the target fusion feature.
[0147] Optionally, the age prediction module is specifically used to: input the target fusion feature into an age recognition model, obtain multiple first probability values obtained after the age recognition model recognizes the target fusion feature, the first probability value being the probability of the age of the object indicated by the face image predicted by the age recognition model; and take the age indicated by the maximum value of the multiple first probability values as the target age.
[0148] Optionally, the blockchain-based age recognition device also includes a model training module, which is used to: obtain a training image, in which the target object in the training image has a target age; scale the training image and convert the scaled training image into a grayscale image; extract features from the grayscale image using a target neural network model to obtain training image features; fuse the training image features to obtain training fused features; input the training fused features into a regression model for training; and use the regression model as an age recognition model when the probability value that the regression model predicts that the age of the target object is the target age reaches a target threshold.
[0149] Optionally, the blockchain-based age recognition device also includes a model uploading module, which is used to: determine the hash value of the age recognition model using a hash function; upload the age recognition model to the blockchain, and use the hash value to reach a consensus on the age recognition model.
[0150] The present application also provides an age recognition device based on blockchain, which is applied to a distributed edge computing device. The specific implementation of the device can be found in the description of the method embodiment part, and the repetitive parts will not be repeated. Figure 8 As shown, the device mainly includes: an image acquisition module 801, which is used to acquire the face image of the target object; a feature extraction module 803, which is used to extract the image features of the face image using the target neural network model, and the target neural network model includes at least one of a denoising autoencoder, a convolutional neural network and a recursive neural network; a sending module 805, which is used to send the image features to the server.
[0151] It should be noted that the image acquisition module 801 in this embodiment can be used to execute step S602 in the embodiment of the present application, the feature extraction module 803 in this embodiment can be used to execute step S604 in the embodiment of the present application, and the sending module 805 in this embodiment can be used to execute step S606 in the embodiment of the present application.
[0152] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 4 In the hardware environment shown, it can be implemented by software or by hardware.
[0153] According to another aspect of the embodiments of the present application, the present application provides an electronic device, such as Fig. 9 As shown, it includes a memory 901, a processor 903, a communication interface 905 and a communication bus 907. The memory 901 stores a computer program that can be run on the processor 903. The memory 901 and the processor 903 communicate through the communication interface 905 and the communication bus 907. When the processor 903 executes the computer program, the steps of the above method are implemented.
[0154] The memory and processor in the above electronic device communicate via a communication bus and a communication interface. The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
[0155] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0156] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0157] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any of the above embodiments.
[0158] Optionally, in an embodiment of the present application, the computer program product or the computer program is a program code for a processor to execute the following steps:
[0159] Obtaining image features sent by the distributed edge computing device, where the image features are obtained by extracting features of a face image collected by the distributed edge computing device using a target neural network model, where the target neural network model includes at least one of a denoising autoencoder, a convolutional neural network, and a recursive neural network;
[0160] Perform feature fusion on the image features to obtain target fusion features;
[0161] The target fusion feature is input into the age recognition model to obtain the age prediction result output by the age recognition model;
[0162] The image features and age prediction results are uploaded to the blockchain to generate the target data block.
[0163] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0164] When the embodiments of the present application are specifically implemented, reference may be made to the above-mentioned embodiments, which have corresponding technical effects.
[0165] Optionally, in the embodiment of the present application, the computer program product or the computer program is also a program code for the processor to execute the following steps:
[0166] Collecting a facial image of a target object;
[0167] Extracting image features of the face image using a target neural network model, the target neural network model comprising at least one of a denoising autoencoder, a convolutional neural network, and a recurrent neural network;
[0168] Send image features to the server.
[0169] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0170] When the embodiments of the present application are specifically implemented, reference may be made to the above-mentioned embodiments, which have corresponding technical effects.
[0171] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction is transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape, etc.), an optical medium (e.g., a DVD) or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0172] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0173] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A distributed system for age recognition, It is characterized in that include: at least one image acquisition device, used to extract a plurality of original image features from a facial image of any object, and send the plurality of original image features to a server; The server is used to determine the target age of the object according to the target fusion feature, wherein the target fusion feature is obtained by fusing multiple original image features; the feature fusion of multiple original image features specifically includes: obtaining weight matrices of multiple categories of the original image features, wherein the weight matrix is used to save the association weights between sub-features in the original image features, and the original image features of different categories are extracted by the image acquisition device using different target neural network models, and the target neural network model includes a denoising autoencoder, a convolutional neural network and a recursive neural network; using the weight matrix to determine the similarity matrix of each category of the original image features, wherein the similarity matrix is used to save the similarity coefficients between the sub-features; determining the adjacency matrix of each category of the original image features according to the similarity matrix of each category of the original image features, wherein the adjacency matrix is used to save the edges in the hypergraph; constructing a hypergraph using the weight matrix and the adjacency matrix of each category of the original image features, and using the hypergraph to determine the target fusion feature; The blockchain network is used to generate a data block, in which the original image features, the target fusion features and the target age sent by the server are stored.
2. A blockchain-based age recognition method, applied to the server, It is characterized in that include: Acquire multiple original image features of any object sent by at least one image acquisition device, wherein the original image features are extracted by the image acquisition device from a face image of the object, and the image acquisition device is a device in the distributed system where the server is located; Performing feature fusion on the multiple original image features to obtain a target fusion feature; Determining a target age corresponding to the target fusion feature according to an age recognition model; Uploading the original image features, the target fusion features and the target age to the blockchain to generate a target data block storing the original image features, the target fusion features and the target age; The step of fusing the multiple original image features to obtain a target fused feature includes: obtaining weight matrices of multiple categories of the original image features, wherein the weight matrix is used to store the association weights between sub-features in the original image features, and the original image features of different categories are extracted by the image acquisition device using different target neural network models, and the target neural network model includes a denoising autoencoder, a convolutional neural network, and a recursive neural network; using the weight matrix to determine a similarity matrix for each category of the original image features, wherein the similarity matrix is used to store the similarity coefficients between the sub-features; determining an adjacency matrix for each category of the original image features based on the similarity matrix of each category of the original image features, wherein the adjacency matrix is used to store the edges in a hypergraph; constructing a hypergraph using the weight matrix and the adjacency matrix of each category of the original image features, and determining the target fused feature using the hypergraph.
3. The method according to claim 2, It is characterized in that Constructing a hypergraph using the weight matrix and the adjacency matrix of each type of the original image features, and determining the target fusion feature using the hypergraph includes: splicing the adjacency matrices of various types of original image features to obtain a fused adjacency matrix; Determining an edge degree matrix using the fused adjacency matrix, wherein the edge degree matrix is used to store the number of vertices connected by each edge in the hypergraph; Determining a vertex degree matrix using the weight matrix, wherein the vertex degree matrix is used to store the number of edges connected to each vertex in the hypergraph; Determine a Laplacian matrix using the edge degree matrix and the vertex degree matrix to obtain the hypergraph; An eigenvalue matrix of the Laplacian matrix is determined, and the eigenvalue matrix is used as the target fusion feature.
4. The method according to claim 2, It is characterized in that Determining the target age corresponding to the target fusion feature according to the age recognition model includes: Inputting the target fusion feature into the age recognition model to obtain a plurality of first probability values obtained after the age recognition model recognizes the target fusion feature, wherein the first probability value is a probability of the age of the object indicated by the face image predicted by the age recognition model; The age indicated by the maximum value among the plurality of first probability values is taken as the target age.
5. The method according to any one of claims 2 to 4, It is characterized in that Before determining the target age corresponding to the target fusion feature according to the age recognition model, the method further includes training the age recognition model in the following manner: Acquire a training image, wherein a target object in the training image has a target age; Scaling the training image, and converting the scaled training image into a grayscale image; Using the target neural network model to extract features from the grayscale image to obtain training image features; Performing feature fusion on the training image features to obtain training fusion features; Inputting the training fusion features into a regression model for training; When the probability value that the age of the target object predicted by the regression model is the target age reaches a target threshold, the regression model is used as the age recognition model.
6. A blockchain-based age recognition method applied to distributed edge computing devices, It is characterized in that include: Collecting a facial image of a target object; Extracting original image features of the face image using a target neural network model; The original image features are sent to a server, and the server is used to determine the target age of the object according to the target fusion features, wherein the target fusion features are obtained by fusing multiple original image features; the feature fusion of multiple original image features specifically includes: obtaining weight matrices of multiple categories of the original image features, wherein the weight matrix is used to store the association weights between sub-features in the original image features, and the original image features of different categories are extracted by the image acquisition device using different target neural network models, and the target neural network models include denoising autoencoders, convolutional neural networks, and recursive neural networks; using the weight matrix to determine A similarity matrix for each type of the original image features, wherein the similarity matrix is used to store the similarity coefficients between the sub-features; an adjacency matrix for each type of the original image features is determined according to the similarity matrix for each type of the original image features, wherein the adjacency matrix is used to store the edges in a hypergraph; a hypergraph is constructed using the weight matrix and the adjacency matrix for each type of the original image features, and the target fusion feature is determined using the hypergraph; the server is also used to upload the original image features, the target fusion features and the target age to the blockchain to generate a target data block storing the original image features, the target fusion features and the target age.
7. An age recognition device based on blockchain, applied to a server, It is characterized in that include: An image feature acquisition module, used to acquire multiple original image features of any object sent by at least one image acquisition device, wherein the original image features are extracted by the image acquisition device from a face image of the object, and the image acquisition device is a device in the distributed system where the server is located; A feature fusion module, used for fusing the multiple original image features to obtain a target fusion feature; An age prediction module, used to determine a target age corresponding to the target fusion feature according to an age recognition model; A data uploading module, used for uploading the original image features, the target fusion features and the target age to the blockchain to generate a target data block storing the original image features, the target fusion features and the target age; The feature fusion module is specifically used to: obtain weight matrices of multiple categories of original image features, wherein the weight matrix is used to save the association weights between sub-features in the original image features, and the original image features of different categories are extracted by the image acquisition device using different target neural network models, and the target neural network model includes a denoising autoencoder, a convolutional neural network and a recursive neural network; use the weight matrix to determine the similarity matrix of each category of the original image features, wherein the similarity matrix is used to save the similarity coefficients between the sub-features; determine the adjacency matrix of each category of the original image features according to the similarity matrix of each category of the original image features, wherein the adjacency matrix is used to save the edges in the hypergraph; construct a hypergraph using the weight matrix and the adjacency matrix of each category of the original image features, and use the hypergraph to determine the target fusion feature.
8. An age recognition device based on blockchain, applied to distributed edge computing devices, It is characterized in that include: An image acquisition module, used for acquiring a face image of a target object; A feature extraction module, used to extract original image features of the face image using a target neural network model; A sending module is used to send the original image features to a server, and the server is used to determine the target age of the object according to the target fusion feature, wherein the target fusion feature is obtained by fusing multiple original image features; the feature fusion of multiple original image features specifically includes: obtaining weight matrices of multiple categories of the original image features, wherein the weight matrix is used to store the association weights between sub-features in the original image features, and the original image features of different categories are extracted by the image acquisition device using different target neural network models, and the target neural network model includes a denoising autoencoder, a convolutional neural network and a recursive neural network; using the weight matrix The server is further configured to determine a similarity matrix for each type of the original image features according to the similarity matrix, wherein the similarity matrix is used to store the similarity coefficients between the sub-features; determine an adjacency matrix for each type of the original image features according to the similarity matrix for each type of the original image features, wherein the adjacency matrix is used to store the edges in a hypergraph; construct a hypergraph using the weight matrix and the adjacency matrix for each type of the original image features, and determine the target fusion features using the hypergraph; the server is further configured to upload the original image features, the target fusion features and the target age to the blockchain to generate a target data block that stores the original image features, the target fusion features and the target age.
9. An electronic device, It is characterized in that include: A processor, a communication component, a memory and a communication bus, wherein the processor, the communication component and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the method described in any one of claims 2 to 5 or 6.
Citation Information
Patent Citations
Single-view video human body posture recovery method based on multi-mode self-coding model
CN104899921A
Age identification method based on integrated convolution neural network
CN106295506A
Facial image series-based attribute identification method and device
CN106447625A
Human face age estimation method based on fusion of deep characteristics and shallow characteristics
CN106778584A
Face recognition method and device and training method and device of face recognition system
CN111401344A
