CN110909259A - Block chain-based user recommendation method, device, equipment and storage medium - Google Patents

Block chain-based user recommendation method, device, equipment and storage medium Download PDF

Info

Publication number
CN110909259A
CN110909259A CN201911181565.3A CN201911181565A CN110909259A CN 110909259 A CN110909259 A CN 110909259A CN 201911181565 A CN201911181565 A CN 201911181565A CN 110909259 A CN110909259 A CN 110909259A
Authority
CN
China
Prior art keywords
user
information
gene
genetic
gene sequence
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.)
Pending
Application number
CN201911181565.3A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911181565.3A priority Critical patent/CN110909259A/en
Publication of CN110909259A publication Critical patent/CN110909259A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9536Search customisation based on social or collaborative filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a user recommendation method, device, equipment and storage medium based on a block chain, and belongs to the technical field of block chains. The embodiment provides a technical scheme for recommending marriage and love friends by using a block chain, wherein gene information of a user is stored in the block chain, and when the user needs to recommend a marriage and love object, the gene information of the user is respectively matched with gene information of other users to find the users matched with the gene information of the user, so that a proper marriage and love object is recommended to the user. The block chain technology has the characteristic of decentralization, and the gene information is stored by using the block chain, so that the risk of data leakage caused by the fault of a centralization node can be avoided, and the risk of gene information leakage of a user is avoided. In addition, since the genetic information includes abundant characteristics such as characters and genetic risks, matching the love and marriage targets by using the genetic information is helpful for finding love and marriage targets matching the characters of the user and avoiding genetic risks.

Description

Block chain-based user recommendation method, device, equipment and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a user recommendation method, apparatus, device, and storage medium based on blockchain.
Background
The rise of the internet provides great convenience for users in life, work, social contact and the like. Some applications support users to identify marriage objects through the internet, for example, many marriage websites, social applications, etc. support the function of automatically recommending the marriage objects, so that the users can find the other half of the marriage objects by using the applications without going out.
At present, marriage and love objects are generally recommended to users based on the interests and hobbies of the users. Specifically, each user needs to fill in his or her own interest information when registering on the application, and the server of the application stores the interest information of the user in the database. When a user initiates a recommendation request, the server of the application queries the interest information of the user stored in the database, matches the interest information of the user with the interest information of other users, and recommends the other users to the user if the interest information of the other users is matched with the interest information of the user.
When the method is adopted for recommendation, the interest information of the user has a risk of leakage, the user carries out matching depending on the interest filled by the user, and the credibility and the accuracy of the individual interest filled by the user are low, so that the credibility and the accuracy of the recommended love and marriage object are poor.
Disclosure of Invention
The embodiment of the application provides a user recommendation method, device, equipment and storage medium based on a block chain, and can solve the problem that credibility and accuracy of a recommended love and marriage object in the related technology are poor. The technical scheme is as follows:
in one aspect, a user recommendation method based on a blockchain is provided, and is applied to a node device in a blockchain system, and the method includes:
receiving a recommendation request of a first user, wherein the recommendation request comprises a user identification of the first user, and the recommendation request is used for requesting to recommend a marriage and love object for the first user;
according to the user identification of the first user, inquiring the gene information of the first user stored in the block chain system;
respectively matching the gene information of the first user with the gene information of each candidate user to obtain at least one matching value, wherein each matching value is used for expressing the matching degree between the gene information of the corresponding candidate user and the gene information of the first user;
determining a second user according to the at least one matching value, wherein the matching value of the second user and the first user meets the condition;
recommending the second user to the first user.
Optionally, the determining the second user according to the at least one matching value includes:
according to the at least one character matching value, determining a second user with the character matching value higher than a threshold value; or determining a second user with the character matching value ranked in the front preset digits according to the at least one character matching value.
Optionally, the determining the second user according to the at least one matching value includes:
determining a second user with a genetic risk value below a threshold value based on the at least one genetic risk value.
In another aspect, an apparatus for recommending a user based on a blockchain is provided, the apparatus including:
the device comprises a receiving module, a recommending module and a recommending module, wherein the recommending module is used for receiving a recommending request of a first user, the recommending request comprises a user identification of the first user, and the recommending request is used for requesting to recommend a marriage and love object for the first user;
the query module is used for querying the gene information of the first user stored in the block chain system according to the user identification of the first user;
the matching module is used for respectively matching the gene information of the first user with the gene information of each candidate user to obtain at least one matching value, and each matching value is used for expressing the matching degree between the gene information of the corresponding candidate user and the gene information of the first user;
the determining module is used for determining a second user according to the at least one matching value, and the matching value of the second user and the first user meets the condition;
and the recommending module is used for recommending the second user to the first user.
Optionally, the matching module includes:
the coding submodule is used for coding the gene information of the first user and the gene information of each candidate user respectively to obtain the character characteristics of the first user and the character characteristics of each candidate user;
and the obtaining sub-module is used for obtaining the at least one character matching value according to the character features of the first user and the character features of each candidate user, and each character matching value is used for expressing the matching degree between the character features of the corresponding candidate user and the character features of the first user.
Optionally, the encoding sub-module is configured to input the genetic information of the first user and the genetic information of each candidate user into a personality identification model, where the personality identification model is configured to identify personality characteristics according to the genetic information; and respectively processing the gene information of the first user and the gene information of each candidate user through the character recognition model, and outputting character features of the first user and character features of each candidate user.
Optionally, the at least one matching value comprises at least one genetic risk value, the matching module comprising:
the combination submodule is used for respectively combining the gene sequence of the first user and the gene sequence of each candidate user to obtain at least one gene sequence set, and each gene sequence set comprises the gene sequence of the first user and the gene sequence of one candidate user;
an obtaining submodule, configured to obtain the at least one genetic risk value according to the at least one gene sequence set, where each genetic risk value is a probability that an offspring of the corresponding candidate user and the first user has a genetic disease.
Optionally, the combining submodule is configured to: determining a pathogenic gene sequence contained in the gene sequence of the first user; determining a pathogenic gene sequence contained in the gene sequence of each candidate user; combining the pathogenic gene sequence of the first user with the pathogenic gene sequence of each candidate user respectively to obtain at least one gene sequence set, wherein each gene sequence set comprises the pathogenic gene sequence of the first user and the pathogenic gene sequence of one candidate user;
the acquisition submodule is used for detecting a genetic risk value corresponding to each gene sequence set in the at least one gene sequence set according to gene pathogenic information, wherein the gene pathogenic information comprises at least one of a genetic mode, a mutation probability and a pathogenic type of a pathogenic gene sequence.
Optionally, the receiving module is further configured to receive the genetic disease information from a medical institution server;
the device further comprises: and the storage module is used for storing the first block comprising the genetic pathogenic information to the block chain of the block chain system.
Optionally, the receiving module is further configured to receive authorization information of the first user, where the authorization information indicates that the blockchain system is authorized to use genetic information for user recommendation, and the authorization information includes the genetic information of the first user;
the device further comprises: a storage module, configured to store a second block including genetic information of the first user onto a block chain of the block chain system.
In another aspect, a node device is provided, which includes one or more processors and one or more memories, where at least one program code is stored in the one or more memories, and loaded and executed by the one or more processors to implement the operations performed by the above block chain based user recommendation method.
In another aspect, a computer-readable storage medium is provided, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement the operations performed by the above block chain-based user recommendation method.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the embodiment provides a technical scheme for recommending marriage and love friends by using a block chain, wherein a block chain technology and a genetic engineering technology are combined, gene information of users is stored in the block chain, and when the users need to recommend the marriage and love objects, the gene information of the users and the gene information of other users are respectively matched to find the users matched with the gene information of the users, so that the users are recommended proper marriage and love objects. The block chain technology has the characteristic of decentralization, and the gene information is stored by using the block chain, so that the risk of data leakage caused by the fault of a centralization node can be avoided, the safety of storing the gene information is greatly improved, the risk of user information leakage is avoided, and the privacy of a user is ensured not to be invaded. Moreover, since the data stored in the blockchain cannot be tampered, the genetic information of the user used in the process of matching the marriage object can be guaranteed to be authentic and cannot be forged and tampered, and the credibility and the accuracy of the marriage object recommended by the authentic genetic information can also be guaranteed. In addition, because the gene information contains abundant characteristics such as the personality of the user, the genetic risk of the user and the like, the genetic information is used for matching the love and marriage objects, the love and marriage objects matched with the personality of the user can be found, the objects with high genetic disease risk probability of the offspring combined with the user are removed, and the genetic risk is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment of a block chain-based user recommendation method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a block chain according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a new block generation provided by an embodiment of the present application;
fig. 4 is a functional architecture diagram of a node device in a blockchain system according to an embodiment of the present disclosure;
fig. 5 is an interaction flowchart of a block chain-based user recommendation method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of gene-based character matching provided in the examples herein;
fig. 7 is an architecture diagram of a blockchain system according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a block chain-based user recommendation device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The genetic information of the user and the genetic disease information referred to in the present application may be information authorized by the user or sufficiently authorized by each party.
The term "and/or" in this application is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in the present application generally indicates that the former and latter related objects are in an "or" relationship.
The term "plurality" in this application means two or more, e.g., a plurality of packets means two or more packets.
The terms "first," "second," and the like in this application are used for distinguishing between similar items and items that have substantially the same function or similar functionality, and it should be understood that "first," "second," and "nth" do not have any logical or temporal dependency or limitation on the number or order of execution.
Hereinafter, terms related to the present application are explained.
Block chain (English: blockchain): the method is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The blockchain is essentially a decentralized database, which is a string of data blocks associated by using cryptography, each data block contains information of a batch of network transactions, and the information is used for verifying the validity (anti-counterfeiting) of the information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after the effective request is identified in a consensus, and for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the encrypted service information to a shared account (network communication) completely and consistently, and records and stores the encrypted service information; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
The platform product service layer provides basic capability and an implementation framework of typical application, and developers can complete block chain implementation of business logic based on the basic capability and the characteristics of the superposed business. The application service layer provides the application service based on the block chain scheme for the business participants to use.
Consensus mechanism (English: consensus mechanism): the block chain system is a mathematical algorithm for establishing trust and obtaining rights and interests among different nodes. In the block chain system, the verification and confirmation of the transaction can be completed in a short time through the voting of special nodes, and if a plurality of nodes with irrelevant benefits can achieve consensus on a transaction, all the nodes in the system can also achieve consensus on the transaction.
Smart contract (english): is a computer protocol intended to propagate, validate or execute contracts in an informational manner. Each node in the blockchain system can automatically execute a contract program according to a specific condition, can operate data stored in the chain, and is an important way for a user to interact with the blockchain and realize business logic by using the blockchain. The goal of smart contracts is to provide a secure method over traditional contracts and to reduce other transaction costs associated with the contracts, which allows for trusted transactions that are traceable and irreversible without third parties.
Public key (English) and private key (English): is a key pair (i.e., a public key and a private key) obtained by an algorithm, the public key being a public part of the key pair, and the private key being a non-public part. Public keys are typically used to encrypt data, verify digital signatures, and the like. By means of this algorithm it is ensured that the resulting key pair is unique, and that when using this key pair, if one of the keys is used to encrypt a piece of data, the other key must be used to decrypt it, e.g. if the data is encrypted with the public key, the private key must be used to decrypt it, and if the data is encrypted with the private key, the public key must be used to decrypt it, otherwise the decryption will not succeed.
The embodiment of the present application provides a blockchain system implemented based on the above-mentioned blockchain technology, and a system architecture of the blockchain system is introduced below.
Referring to fig. 1, a blockchain system 100 may include a plurality of node apparatuses 101, and the blockchain system 100 may further include a client.
The node device 101 may be a first node device, a second node device, a third node device or a fourth node device in the method embodiments described below. Node device 101 may be any form of computing device in a network, such as a server, a host, a user terminal, etc. Data can be shared between node device 101 and node device 101, for example, in the method embodiment described below, different node devices 101 may share a public key of a user in a blockchain system, genetic information of the user, and genetic disease information. Among them, the node devices 101 may establish a P2P network based on a Peer-To-Peer (P2P) protocol. The P2P Protocol is an application layer Protocol that runs on top of the Transmission Control Protocol (TCP) Protocol.
Each node apparatus 101 may receive input information during normal operation, and maintain shared data in the blockchain system 100 based on the received input information, for example, in the following method embodiment, the input information received by the node apparatus 101 may be genetic information and genetic disease information of a user. In order to ensure information intercommunication in the blockchain system 100, there may be an information connection between each node device in the blockchain system 100, and information transmission may be performed between the node devices through the information connection. For example, when any node device in the blockchain system 100 receives input information, other node devices in the blockchain system 100 acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored in all the node devices in the blockchain system 100 are consistent.
Each node device in the blockchain system 100 has an identifier of a node device corresponding thereto, and each node device in the blockchain system 100 may store node device identifiers of other node devices in the blockchain system 100, so that a generated block is broadcast to other node devices in the blockchain system 100 according to the node device identifiers of the other node devices in the subsequent process. Each node device may maintain a node device identifier list as shown in table 1 below, and store the node device name and the node device identifier in the node device identifier list correspondingly. The node device identifier may be an IP (Internet Protocol) address and any other information that can be used to identify the node device, and table 1 only illustrates the IP address as an example.
TABLE 1
Node device name Node device identification
Node device 1 117.114.151.174
Node device 2 117.116.189.145
Node device N 119.123.789.258
Each node device in the blockchain system 100 stores one identical blockchain. The block chain is composed of a plurality of blocks, referring to fig. 2, the block chain is composed of a plurality of blocks, the starting block includes a block header and a block main body, the block header stores an input information characteristic value, a version number, a timestamp and a difficulty value, and the block main body stores input information; the next block of the starting block takes the starting block as a parent block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the parent block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain is associated with the block data stored in the parent block, and the safety of the input information in the block is ensured.
When each block in the block chain is generated, referring to fig. 3, when the node device where the block chain is located receives input information, the input information is verified, after the verification is completed, the input information is stored in the memory pool, and the hash tree for recording the input information is updated; and then, updating the updating time stamp to the time when the input information is received, trying different random numbers, and calculating the characteristic value for multiple times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
wherein, SHA256 is a characteristic value algorithm used for calculating a characteristic value; version is version information of the relevant block protocol in the block chain; prev _ hash is a block head characteristic value of a parent block of the current block; merkle _ root is a characteristic value of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, is a fixed value within a period of time, and is determined again after exceeding a fixed time period; x is a random number; TARGET is a feature threshold, which can be determined from nbits.
Therefore, when the random number meeting the formula is obtained through calculation, the information can be correspondingly stored, and the block head and the block main body are generated to obtain the current block. Then, the node device where the blockchain is located sends the newly generated blocks to other node devices in the blockchain system 100 where the newly generated blocks are located respectively according to the node device identifiers of the other node devices in the blockchain system 100, the newly generated blocks are verified by the other node devices, and the newly generated blocks are added to the blockchain stored in the newly generated blocks after the verification is completed.
In the following, a functional architecture of the node apparatus 101 is described.
Referring to fig. 4, the node device 101 may be functionally divided into a hardware layer, an intermediate layer, an operating system layer and an application layer, and the specific functions involved may be as follows:
1) routing, a basic function that the node device has for supporting communication between the node devices.
The node device may have the following functions in addition to the routing function:
2) the application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization functions to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other node equipment in the block chain system for the other node equipment to add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
For example, the services implemented by the application include:
2.1) wallet, for providing the function of transaction of electronic money, including initiating transaction (i.e. sending the transaction record of current transaction to other node devices in the blockchain system, after the other node devices are successfully verified, writing the record data of transaction into the temporary blocks of the blockchain as the response of affirming that the transaction is valid; of course, the wallet also supports the querying of the electronic money remaining in the electronic money address.
And 2.2) the shared account book is used for providing functions of operations such as storage, query and modification of account data, sending the recorded data of the operations on the account data to other node equipment in the block chain system, writing the recorded data into a temporary block as a response for acknowledging that the account data is valid after the other node equipment verifies that the operation is valid, and sending confirmation to the node equipment initiating the operation.
2.3) Intelligent contracts, computerized agreements, which can enforce the terms of a contract, implemented by codes deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions according to actual business requirement codes, such as querying the logistics status of goods purchased by a buyer, transferring the buyer's electronic money to the merchant's address after the buyer signs for the goods; of course, smart contracts are not limited to executing contracts for trading, but may also execute contracts that process received information.
3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and the blocks record the record data submitted by the node equipment in the Block chain system.
Fig. 5 is an interaction flowchart of a block chain-based user recommendation method according to an embodiment of the present application. Taking fig. 5 as an example, the following description is given to the process of recommending a love and marriage object:
501. a first node device in the blockchain system receives genetic disease information.
In this embodiment, the gene knowledge base may be stored by a blockchain system, the knowledge related to the gene may be recorded in the gene knowledge base, and the stored gene knowledge base may be continuously expanded and updated with the continuous development of medical technology and the continuous enrichment of clinical experience.
Specifically, the blockchain of the blockchain system can store gene pathogenic information, and the gene pathogenic information contains various knowledge related to genes. The gene is a genetic basic unit, a deoxyribonucleic Acid (DNA) or Ribonucleic Acid (RNA) sequence carrying genetic information transmits the genetic information to the next generation through replication, and the genetic information carried by the gene is expressed by guiding the synthesis of protein, so that the character expression of an individual organism is controlled.
As an example, the genetic disease information may include at least one of a genetic pattern, a mutation probability, and a disease type of the disease gene sequence. In addition, the genetic disease information may also include genetic identification numbers (IDs), clinical manifestations, treatment regimens, and the like.
The genetic mode refers to the characteristic of genetic information transmission. By analyzing the similarity and variation of the parent and offspring genetic traits, the genetic mode can be understood. The human genetic mode is mainly divided into a monogenic genetic mode and a polygenic genetic mode, and correspondingly, the gene pathogenic information can be divided into two types, namely gene pathogenic information of a single pathogenic gene and gene pathogenic information of a combined pathogenic gene. Furthermore, the monogenic patterns can be divided into autosomal patterns and sex chromosomal patterns. The monogenic inheritance pattern located in autosomes follows the mendelian inheritance pattern, whereas the mitochondrial gene is the maternal inheritance pattern.
The mutation probability is also called gene mutation rate, and refers to the probability of gene mutation in vivo. For human such a sexually reproducing organism, the mutation rate is usually expressed in terms of the probability of each gamete undergoing a mutation, i.e. the number of mutated gametes in a certain number of gametes.
The pathogenic type refers to the type of genetic disease caused by gene abnormality.
The gene ID is used to identify the corresponding gene, and may be, for example, a gene name, a gene number, or the like.
In this embodiment, the data source of the genetic disease information stored in the blockchain system may include a plurality of data sources. For example, the system may cooperate with a medical institution, and after the medical institution passes clinically obtained genetic disease information, the genetic disease information may be stored in a medical institution server, and the medical institution server may transmit the genetic disease information to the first node device so as to upload the genetic disease information to the blockchain. If this is the case, step 501 may be: the first node equipment receives the gene pathogenic information sent by the medical institution server.
In other embodiments, the system may also cooperate with laboratories of some colleges and universities, and after obtaining the genetic disease information through experiments, the colleges and universities may store the genetic disease information to the campus server, and the campus server may transmit the genetic disease information to the first node device so as to upload the genetic disease information to the blockchain. If this is the case, step 501 may be: the first node equipment receives the gene pathogenic information sent by the campus server.
In other embodiments, the system may also cooperate with some biopharmaceutical enterprises, and after the enterprises obtain the genetic disease information through experiments, the genetic disease information may be stored in an enterprise server, and the enterprise server may send the genetic disease information to the first node device so as to upload the genetic disease information to the blockchain. If this is the case, step 501 may be: the first node equipment receives the gene pathogenic information sent by the enterprise server.
Of course, several cases listed above are optional embodiments of step 501, in other embodiments, a personal user may upload the developed genetic disease information to the block chain through a terminal, and then step 501 may be: the first node device receives genetic disease information from the terminal. In other embodiments, the genetic disease information stored in the blockchain system may also come from a website, and step 501 may be: the first node device receives the genopathogenic information from a server of the website. In other embodiments, the genetic disease information stored in the blockchain system may also come from a database, and step 501 may be: the first node device receives the genetic disease information from the storage device corresponding to the database.
In this embodiment, the timing of the genetic disease information stored in the blockchain system may include a plurality of types, and accordingly, the triggering condition of step 501 may include a plurality of types.
Taking a data source of the gene pathogenic information as the medical structure server as an example, the medical structure server can send the acquired gene pathogenic information to the first node device whenever the gene pathogenic information is acquired, so as to upload the latest gene pathogenic information to the block chain in real time. For another example, the medical structure server may periodically interact with the first node device, and the medical structure server sends the genetic disease information acquired in the current time period to the first node device every preset time period, so as to periodically upload the latest genetic disease information to the block chain. For another example, the medical structure server may send the genetic disease information to the first node device when receiving a storage instruction, where the storage instruction is used to instruct to store the genetic disease information to the block chain, and may be triggered by an operation of the user. Of course, these 3 timings are merely examples, and the present embodiment is not limited to when the first node apparatus receives the genetic risk information.
502. The first node device stores a first block including genetic predisposition information onto a blockchain of a blockchain system.
The blockchain typically includes a plurality of blocks, and the first block is a block in the blockchain that includes genetic disease information.
It should be understood that the first block including the gene pathogenic information is an open description, and does not limit the first block to include only the gene pathogenic information and not other information, and in some alternative embodiments, the first block may include the gene pathogenic information and other information, for example, the first block may include the gene pathogenic information and identity information, the identity information being used to identify a data source of the gene pathogenic information, for example, the identity information may be a public key or a digital signature of the data source of the gene pathogenic information in the blockchain system, such as a public key of a medical institution server in the blockchain system, a public key of a college blockchain system, and a public key of an enterprise blockchain system. Then, since the first block includes the genetic disease information and also includes the identity information, when the genetic disease information is read from the first block, the data source of the genetic disease information can be identified by the identity information, and the reliability of the genetic disease information can be proved.
With respect to technical details of storing genetic predisposition information, in some embodiments, genetic predisposition information may be stored onto blockchains based on consensus mechanisms. Specifically, the first node device, as any node device in the blockchain system, may spread the received genetic disease information to other node devices in the blockchain system by means of broadcasting, and after the other node devices receive the genetic disease information, may generate a first block, perform consensus based on the first block, and when the consensus passes, each node device in the blockchain system may store the first block to the blockchain of the blockchain system, thereby implementing recording and sharing of the genetic disease information on the whole blockchain system.
For details of the first block generation, please refer to the above description related to fig. 2 and fig. 3, which is not repeated herein for brevity.
Through the steps 501 to 502, the obtained effects at least include: by storing the genetic predisposition information in the blockchain of the blockchain system, the genetic predisposition information can be synchronized to each node device of the blockchain system, such that each node device can share the genetic predisposition information. Then, in the process of recommending a marriage and love object, each node device can inquire genetic disease information from the block chain so as to predict the probability of generating genetic diseases after different users are combined by using the genetic disease information. In addition, as the data stored in the blockchain cannot be tampered, the used gene pathogenic information can be ensured to be authentic and credible in the process of matching the marriage and love objects, so that the recommenders with genetic risks are filtered out.
503. A second node device in the blockchain system receives authorization information of a first user.
The second node device may be any node device in the blockchain system, and the second node device may be the same as or different from the first node device described above.
The authorization information indicates that the blockchain system is authorized to use the genetic information for user recommendation. The authorization information includes genetic information of the first user. Where genetic information and the genetic predisposition information above are two distinct concepts, the genetic information represents a gene-related characteristic of the user, e.g., the genetic information may include one or more gene sequences of the first user. The gene sequence may be the primary structure of a real or hypothetical DNA molecule carrying genetic information, represented using a string of letters.
There may be a variety of sources from which the second node device receives the authorization information. In some embodiments, the authorization information may be generated by the terminal of the first user and sent to the second node device.
The genetic information may be obtained by detecting blood, other body fluids, or cells of the first user under the authorization of the first user. For example, the first user may collect blood through the blood collection device, and the blood collection device may detect the collected blood to obtain genetic information, and send the genetic information to the terminal of the first user. Of course, the blood collection device may also extract data included in the collected blood, transmit the data to the medical institution server, detect the data by the medical institution server to obtain genetic information, and transmit the genetic information to the terminal of the first user.
The opportunity for the second node device to receive the authorization information may include a variety of circumstances. In one exemplary scenario, the second node device receives authorization information from a client of the social application when the first user registers with the social application. The social application may be a love application, an instant messaging application, and the like. Specifically, when the terminal runs the client of the social application, authorization prompt information used for prompting whether the user authorizes the use of the genetic information for user recommendation may be displayed in the registration interface, and if the terminal detects a registration operation, the terminal may send a registration request to a background server of the social application and send authorization information to the second node device of the blockchain system.
It should be understood that the authorization information includes a description that the genetic information is open, and the first block is not limited to include only the genetic information and not other information, and in some alternative embodiments, the authorization information may further include attribute information of the user, and the attribute information of the user may include basic information, appearance information, stature information, and the like. The basic information may include information such as user nickname, gender, age, school calendar, region, etc. The appearance information comprises appearance characteristics of the user, the stature information comprises stature characteristics of the user, and the appearance information and the stature information can be photos or videos comprising images of the user or parameters. The territory may include a work location of the user, a home location of the user, and so on. By carrying the attribute information of the user in the authorization information, the attribute information of the user can be stored in the blockchain, so that each node device of the blockchain can share the attribute information of the user, and then recommendation can be performed by combining the attribute information of the user when wedding object recommendation is performed subsequently.
In some optional embodiments, the authorization information may also include a public key of the user. Specifically, when the first user registers as a user of the blockchain system, the first user may possess a public key and a private key, the public key and the private key form a key pair, and when the terminal of the first user sends authorization information, the public key may also be carried in the authorization information. In this manner, genetic information may be identified to correspond to the first user by the public key, thereby associating the genetic information with the user identity.
In some optional embodiments, the second node device may further receive a digital signature of the user on the basis of receiving the authorization information. Specifically, when the terminal of the first user sends the authorization information, the terminal may sign the authorization information using the private key to obtain a digital signature, and send the authorization information and the digital signature to the second node device together, so as to verify the authenticity of the authorization information using the digital signature. Regarding the generation process of the digital signature, in some embodiments, the terminal may calculate a hash value of the authorization information, encrypt the hash value of the authorization information using a private key, and obtain a hash value of the authorization information in a ciphertext form, where the hash value of the authorization information in the ciphertext form is the digital signature.
504. The second node device stores a second chunk including genetic information of the first user onto a blockchain of the blockchain system.
The blockchain typically includes a plurality of blocks, and the second block refers to a block in the blockchain that includes genetic information of the first user. For details of the second block generation, please refer to the above description related to fig. 2 and fig. 3, and for brevity, the details are not repeated herein.
The process of storing genetic information of the first user and the process of storing genetic disease information can be performed based on a consensus mechanism as well. Specifically, all node devices in the block chain system can integrate the gene information of the users received within a period of time to form blocks, and the blocks are diffused to the whole system; after any node equipment receives the gene information, the received gene information is compared with the locally stored gene information, and the approved gene information is sent to the block chain system. And finally, through diffusion iteration, gene information stored by all node equipment in the block chain system is agreed. In addition, the specific details of the storage may refer to the step 502, which is not described herein.
In some embodiments, if the second node device receives not only the authorization information but also a digital signature, the digital signature may be verified using the public key of the user, and if the digital signature verifies, step 504 may be performed, and if the digital signature does not verify, step 504 may be refused to be performed.
By using digital signature technology for verification, the effects achieved at least can include: the method utilizes a cryptography method to ensure the safety of gene information chaining. Specifically, if the digital signature passes the verification, on one hand, it can be proved that the authorization information is signed and sent by the user operating the terminal, and the authorization information is not the authorization information forged by other users, so that the authenticity of the identity of the user is verified, and it is ensured that the process of storing the genetic information of the first user into the blockchain system is executed under the authorization of the first user, and the privacy data which the first user does not want to disclose is prevented from being stored into the blockchain system by mistake due to the true intention of the first user, so that the privacy of the user is ensured not to be violated. On the other hand, the authorization information can be proved to be complete, and is not tampered or lost in the transmission process. The gene information to be stored is complete, so that the gene information stored on the block chain is real, reliable and accurate.
Through the steps 503 to 504, a way of recording the user gene by using the block chain technology is provided, and the user gene information is uploaded to the block chain under the authorization of the user. In this way, the effects achieved can at least include:
in the traditional marriage and love pairing scheme, marriage and love objects are generally recommended based on user interests and hobbies, firstly, problems are not considered from the genetic point of view, and secondly, great technical barriers exist in the genetic point of view of recommendation. This is because, once the user uploads genetic information such as a family medical history of an individual to the device, the risk of revealing the privacy of the user due to a device failure or the like is faced, and the accuracy of the manually collected genetic information is difficult to guarantee.
The method utilizes the advantages of the block chain technology, on one hand, the gene information can be stored in the block chain only under the authorization of the user, the condition that the privacy of the user is revealed due to the fact that the gene information randomly enters the chain is avoided, and the safety and the privacy of the gene information are improved. On the other hand, as the block chain has the characteristic of decentralization, the risk of gene information leakage caused by the fault of a centralization node can be avoided, and the safety of storing the gene information is greatly improved. In addition, as the data stored in the block chain can not be tampered, the gene information can be prevented from being tampered in the storage process, and the authenticity and credibility of the gene information are ensured. Based on the above, in the process of recommending the marriage object, the appropriate marriage object can be recommended to the user by inquiring the gene information stored in the block chain based on the matching condition between the gene information of different users on the basis of the authorization of the user.
505. A third node device in the blockchain system receives authorization information for a third user.
506. The third node device stores a third tile including genetic information of a third user onto the tile chain of the tile chain system.
The third user is any user different from the first user, and the third user may be a candidate love and marriage object of the first user. The third user may not be a candidate love and marriage object of the first user, for example, the third user also includes users who are eliminated before the genetic matching link due to the mismatch with the attribute information of the first user. The third node device may be any node device in the blockchain system, and the third node device may be the same as or different from the first node device and the second node device described above. The block chain generally includes a plurality of blocks, and the third block refers to a block including genetic information of a third user in the block chain. For details of the generation of the third block, please refer to the above description related to fig. 2 and fig. 3, and for brevity, the details are not repeated herein.
The authorization information of the third user includes genetic information of the third user. Further, optionally, the authorization information of the third user further includes at least one of a public key of the third user or a digital signature of the third user, as well as the authorization information of the first user.
The opportunity for the third node device to receive the authorisation information may include a number of scenarios. For example, the same can be said about the time when the second node device receives the authorization information, and see step 503 for details. In addition, the same process of storing the genetic information of the third user to the blockchain as the process of storing the genetic information of the first user to the blockchain can be performed based on the consensus mechanism. The same process of storing the genetic information of the third user to the blockchain and storing the genetic information of the first user to the blockchain can also be performed based on a consensus mechanism, and the specific details can be seen in step 502 and step 504. In addition, if the authorization information of the third user further includes the digital signature of the third user, the third node device may verify the third user by using the digital signature, for details, see step 504, and for brevity of description, the steps similar to the above are not described in detail here.
It should be understood that, since the number of users registered in the social application is usually large, the number of the third users may be multiple, the steps 505 to 506 may be performed once for each third user, and the node devices responsible for storing the genetic information into the blockchain system may be different or the same when the steps 505 to 506 are performed for different third users. In addition, the timing sequence for executing the above steps 505 to 506 for different third users may be the same or different, and may be executed sequentially or concurrently.
507. A fourth node device in the blockchain system receives a recommendation request of the first user.
The fourth node device may be any node device in the blockchain system, and the fourth node device may be the same as or different from the first node device, the second node device, or the third node device described above.
The recommendation request is for requesting a recommendation of a love and marriage object for the first user. The recommendation request may include a user identification of the first user, which may be a user ID. In addition, the recommendation request may also include the public key of the first user, etc. The recommendation request may be triggered by an operation of the first user. In an exemplary scenario, during the process of running the social application, the terminal may display a recommendation initiation interface, where the recommendation initiation interface is used to prompt the user to trigger a process for initiating a recommendation of a marriage object, and the recommendation initiation interface may include an initiation option, when the first user wants to find the marriage object, an operation may be triggered on the initiation option, and when the terminal detects the operation, a recommendation request may be generated, and the recommendation request is sent to the fourth node device.
508. And the fourth node equipment inquires the gene information of the first user, which is stored in the block chain system, according to the user identification of the first user.
The fourth node device may analyze the recommendation request to obtain a user identifier of the first user carried in the recommendation request, and obtain the genetic information of the first user from the second block of the stored block chain according to the user identifier of the first user.
509. The fourth node device determines at least one candidate user from the plurality of third users.
The candidate user refers to a user to be subjected to genetic information matching with the first user. The number of candidate users may be one or more, and determining the candidate users may include the following two implementations, as an example:
and determining users of which the basic information and the basic information of the first user meet the preset matching condition as candidate users.
For example, the preset matching condition may be that a gap between the age of the candidate user and the age of the first user is smaller than a threshold. For example, the age difference between two users is within three years or five years, and when two users match in marriage and love objects, the two users are selected as candidate users.
For another example, the preset matching condition may be that a distance between the region of the candidate user and the region of the first user is smaller than a threshold. For example, the two users are city users, and when the two users match the love and marriage objects, the two users are selected as candidate users.
For another example, the preset matching condition may be that a difference between the income of the candidate user and the income of the first user is smaller than a threshold, for example, two users are users in the same city and are selected as candidate users when the two users match the love and marriage objects.
For another example, the preset matching condition may be that the academic calendar of the candidate user is the same as or similar to the academic calendar of the first user. For example, the two users are city users, and when the two users match the love and marriage objects, the two users are selected as candidate users.
For another example, the preset matching condition may be that the appearance information of the candidate user matches with the appearance information of the first user.
For another example, the preset matching condition may be that the stature information of the candidate user is matched with the stature information of the first user.
It should be understood that the preset matching condition may be a default configuration condition of the server of the social application, or may be a condition set by a user, for example, the user may input, by performing a setting operation according to a personal requirement for a marriage object, an age difference between the ideal marriage object and the user, a region where the ideal marriage object is located, an income range of the ideal marriage object, and an academic calendar of the ideal marriage object on the terminal, and the social terminal, the server of the social application, or other devices may store the matching condition set by the user in a block chain of the block chain system, so as to use the matching condition set by the user to find a general marriage object for the user, and thus, the personal will of the user is fully considered, so as to meet the personalized requirement of the user in the marriage process.
It should also be appreciated that the plurality of preset matching conditions described above may be combined in any manner. For example, only one of the preset matching conditions may be used, or two or more of the preset matching conditions may be performed. If different preset matching conditions are combined, the logical relationship between the different preset matching conditions may be a sum relationship or an or relationship. In addition, if different preset matching conditions are combined, the different preset matching conditions may have different matching priorities.
It should also be understood that the preset matching conditions described above are optional, and in some embodiments, other matching conditions described above, such as constellation matching, hobby matching, work industry matching, etc., may also be used. The way of matching the love and marriage objects based on the basic information as a specific case of step 509 shall also be covered in the protection scope of the embodiments of the present application.
And secondly, determining each user which stores the gene information on the block chain as a candidate user. That is, the following steps may be performed by using all users linked with gene information as candidate users without using basic information for matching.
510. And the fourth node equipment respectively matches the gene information of the first user with the gene information of each candidate user to obtain at least one matching value.
Each matching value is used for representing the matching degree between the genetic information of the corresponding candidate user and the genetic information of the first user. If N candidate users are determined, step 510 may obtain N matching values, where the N matching values are in one-to-one correspondence with the N candidate users, and N is a positive integer.
The matching value may be positively correlated with the matching degree or negatively correlated with the matching degree, and the specific correlation may be determined according to the data format of the matching value, which is not limited herein.
Since genetic information contains rich features, in some embodiments, based on the genetic information, the matching degree of different users can be measured from multiple dimensions, as exemplified by implementation one through implementation two.
The first implementation mode is based on genes, and matching is carried out from the dimension of character.
As an example, the first implementation may include the following steps one to two:
the fourth node device encodes the gene information of the first user and the gene information of each candidate user respectively to obtain the character characteristics of the first user and the character characteristics of each candidate user.
The character features may include a plurality of data forms, for example, the character features may be one-dimensional vectors, two-dimensional feature maps, or three-dimensional feature cubes. In some embodiments, the genetic information may be mapped as a fixed length vector in a vector space.
For example, referring to fig. 6, a gene sequence a of user 1 may be encoded as a vector E by an encoder, a gene sequence B of user 2 may be encoded as a vector F by an encoder, and the similarity between the vector E and the vector F may be calculated as the degree of matching between the character features expressed by the gene sequence a and the character features expressed by the gene sequence B.
The effects achieved in this way may include at least: because the matching degree between different characters is difficult to measure, but the similarity between different vectors can be accurately and effectively expressed through the distance in the vector space, then, the measurement problem with similar characters can be converted into the measurement problem with similar vectors through vector expression of gene information, then, the matching degree between different user characters can be determined through calculating the similarity between different vectors, the accuracy of the obtained character matching degree is ensured to be high, and the calculation mode is simple.
The manner in which the personality is encoded into personality traits may include a variety of implementations, exemplified by steps 2.1 through 2.2 below:
and 2.1, the fourth node equipment respectively inputs the gene information of the first user and the gene information of each candidate user into the character recognition model.
The character recognition model is used for recognizing character features according to gene information. The input parameters of the character recognition model comprise genetic information of the user, and the output parameters of the character recognition model comprise character features of the user. The character recognition model may be an Artificial Intelligence (AI) model. The specific types of character recognition models may include a variety of types. For example, the personality identification model may include at least one of a neural network, a support vector machine, a linear regression model, a logistic regression model, a decision tree, or a random forest. For example, the character recognition model may be a neural network. Specifically, the character recognition model may be a convolutional neural network or a cyclic neural network, or the like.
The character recognition model can be obtained by pre-training based on labeled sample data. The sample data may include genetic information of the sample user, and the label of the sample data may be a personality characteristic of the sample user, for example, the label may be a personality match between two sample users, or a personality mismatch between two sample users. For example, in a scene of love and marriage object matching, genetic information of two married sample users can be labeled with a label of matching characters, genetic information of two divorced sample users can be labeled with a label of unmatching characters, model training is performed through the labeled samples, the model can dig out association relations between genes and character features from data in the samples, and learn rules of divorcing between genes and marriage, for example, what gene users and what gene users can divorce due to character mismatch, what gene users and what gene users can get married due to character matching, and then in a model reasoning and prediction stage, the trained model can be applied to find objects with matching characters, high marriage probability and low divorcement probability by combining the genetic information of the users, and recommend the users.
In some embodiments, the data source of the sample data may obtain a data set of the sample data from a civil administration server, or may obtain the data set of the sample data by performing a questionnaire through a network. The data set may include data of users in a married state, data of users in a divorce state, and so on. According to the data set, a sample set of the gene sequence of the user and the character matching degree of the user is constructed, and the character matching degree of different samples can be calculated in a cosine similarity measurement mode and the like.
In the details of the model training, the genetic information of the sample user may be input to the initialized character recognition model, and the genetic information of the sample user may be processed by the character recognition model to output character features. From the personality characteristics and the label, a loss value is calculated by a loss function, the loss value representing a deviation between the personality characteristics and the label, the greater the loss value. Thereafter, parameters of the personality identification model may be adjusted based on the loss values. The parameter adjusting process can be executed based on algorithms such as back propagation and the like, and the model can be optimized through parameter adjustment, so that the character recognized by the model is more accurate than before.
The above shows an iterative process of training, and after each iteration, it may be detected whether a training termination condition has been met currently, and when the training termination condition is not met, a next iterative process is executed; and when the training termination condition is met, outputting the character recognition model adopted in the iteration process as a trained character recognition model. The training termination condition may be that the number of iterations reaches a target number or that a loss function satisfies a preset condition, or that the capability of the training termination condition is not improved within a period of time when the training termination condition is verified based on a verification data set. The target times can be preset iteration times to determine the training ending time and avoid waste of training resources. The preset condition may be that the loss function value is not changed or does not decrease within a period of time in the training process, which indicates that the training process has achieved the training effect, i.e., the personality identification model has the function of identifying the personality characteristics of the user according to the genetic information.
With respect to the process of obtaining the character recognition model, in some embodiments, the character recognition model may be stored in a fourth block of the block chain system, and the fourth node device may query the stored fourth block of the block chain to obtain the character recognition model according to the identification of the character recognition model.
And 2.2, the fourth node equipment respectively processes the gene information of the first user and the gene information of each candidate user through the character recognition model and outputs the character features of the first user and the character features of each candidate user.
The fourth node device may input the genetic information of the first user into the personality identification model, process the genetic information of the first user through the personality identification model, and output the personality characteristics of the first user. Wherein the process of processing may include one or more non-linear mappings and one or more linear mappings, the process of processing may be performed by each layer of the model and each neuron of each layer. For each candidate user of the at least one candidate user, the fourth node device may input the genetic information of the candidate user into the personality identification model, process the genetic information of the candidate user through the personality identification model, and output the personality characteristics of the candidate user.
It should be understood that, in this embodiment, the time sequence of the step of identifying the personality characteristics of the first user and the personality characteristics of each candidate user is not limited, the personality characteristics of the first user may be identified by the personality identification model first, the personality characteristics of each candidate user may be identified by the personality identification model second, the personality characteristics of each candidate user may be identified by the personality identification model first, the personality characteristics of the first user may be identified by the personality identification model second, and of course, the personality characteristics of multiple users may be identified in parallel.
And step two, the fourth node equipment acquires at least one character matching value according to the character characteristics of the first user and the character characteristics of each candidate user.
Wherein each character matching value is used for representing the matching degree between the character features of the corresponding candidate user and the character features of the first user. The higher the degree of matching between the character features of the candidate user and the character features of the first user, the higher the character matching value of the candidate user.
The algorithm of the character matching value may include various kinds. In some embodiments, if the personality characteristics are in the form of a vector, for each candidate user, the personality matching value for the candidate user may be the distance in vector space between the personality characteristics of the candidate user and the personality characteristics of the first user. For example, the candidate user's character matching value may be a cosine similarity of the candidate user's character feature to the first user's character feature.
According to the first implementation mode, modeling is carried out according to the user gene sequence, vector representation is carried out on the user gene sequence, similarity calculation is carried out based on the vector, and character matching is carried out, so that the degree of character matching can be judged from the gene, and a character matching marriage and love object can be found for the user.
In the second implementation mode, based on genes, matching is carried out from the dimension of genetic risk.
As an example, the second implementation may include the following steps one to two:
the first node equipment and the fourth node equipment respectively combine the gene sequence of the first user and the gene sequence of each candidate user to obtain at least one gene sequence set.
Each gene sequence set includes a gene sequence of a first user and a gene sequence of a candidate user. Specifically, step one may include the following steps 1.1 to 1.3:
step 1.1 the fourth node device determines the pathogenic gene sequence contained in the gene sequence of the first user.
The gene sequence of the first user may include a plurality of genes, and a pathogenic gene sequence therein may be screened out to predict a probability that an offspring is suffering from a genetic disease using the pathogenic gene sequence.
Step 1.2 the fourth node device determines the pathogenic gene sequence contained in the gene sequence of each candidate user.
Step 1.3, the fourth node device combines the pathogenic gene sequence of the first user and the pathogenic gene sequence of each candidate user respectively to obtain at least one gene sequence set.
Considering that the genetic diseases can include multiple types, each genetic disease can be caused by multiple pathogenic gene sequences, the possible pathogenic gene sequences can be combined to obtain a combined gene sequence set, so as to calculate the probability of the possible pathogenic gene sequences.
And step two, the fourth node equipment acquires at least one genetic risk value according to at least one gene sequence set.
Each genetic risk value is the probability that the descendant of the corresponding candidate user and the first user suffers from the genetic disease, and the larger the genetic risk value is, the higher the probability that the descendant of the corresponding candidate user and the first user suffers from the genetic disease is, and the larger the probability that the corresponding candidate user generates the genetic risk after being loved by the first user is.
Wherein each gene sequence set may include a disease causing gene sequence of the first user and a disease causing gene sequence of one candidate user. For example, a dominant gene of a certain disease-causing gene is denoted as a, a recessive gene is denoted as a, if the disease-causing gene sequence of the first user includes Aa, and the disease-causing gene sequence of the candidate user includes Aa, the genetic risk value corresponding to the gene sequence set is the probability of the genetic disease after the combination of Aa and Aa, specifically, the combination includes three cases, the first is Aa, and the probability is 1/4; the second is aa, probability 1/4; the third is Aa, with a probability of 1/2.
The manner in which the genetic risk value is determined from the set of gene sequences may include a variety of ways. In some embodiments, for each gene sequence set of the at least one gene sequence set, the fourth node device may detect a genetic risk value corresponding to the gene sequence set based on the genetic predisposition information. For example, the genetic pattern, mutation probability and disease type of the disease-causing gene sequence can be queried from the genetic disease information according to the disease-causing gene sequence contained in the gene sequence set, and the genetic risk value can be calculated according to the genetic pattern, mutation probability and disease type of the disease-causing gene sequence.
The fourth node device may query the genetic disease information stored in the blockchain system, for example, obtain the genetic disease information from the first block of the stored blockchain. In this way, the genetic disease information of the block chains can be pre-recorded in steps 501 to 502, so as to predict the probability of genetic risk generated by combining different users.
It should be understood that the first implementation mode and the second implementation mode can be combined in any mode. For example, only one implementation of the 2 implementations may be performed, or two or more implementations of the 2 implementations may be performed. Wherein, if different implementation manners are combined, the logical relationship between different implementation manners may be a sum relationship or an or relationship. For example, the genetic information of the first user may be matched with the genetic information of each candidate user separately, resulting in at least one character match value and at least one genetic risk value.
It should also be understood that if implementation one is combined with implementation two, the timing of the different implementations in the combination scheme is not limited. The first implementation mode can be executed first, the second implementation mode can be executed first, and the two implementation modes can be executed in parallel.
It should be understood that the above-described first to second implementations are merely exemplary and do not represent the requisite implementations of the gene matching function. In other embodiments, other implementations may be used to implement gene matching functions. However, other ways of implementing the gene matching function as a specific case of implementing the gene matching function are also covered by the protection scope of the embodiments of the present application.
511. And the fourth node equipment determines the second user according to the at least one matching value.
The second user is a wedding object pointing to the first user recommendation. The matching value between the second user and the first user satisfies the condition. Specifically, for each candidate user of the at least one candidate user, the fourth node device may determine whether the matching value of the candidate user satisfies a condition, and if the matching value of the candidate user satisfies the condition, the candidate user is taken as the user to be recommended, that is, the second user. And if the matching value of the candidate user does not meet the condition, filtering the candidate user.
The manner of determining whether the matching value of the candidate user satisfies the condition may include multiple manners, which are exemplified by the following implementation manners from the first to the second.
According to the first implementation mode, the second user is determined according to at least one character matching value.
For example, for each candidate user of the at least one candidate user, the fourth node device may determine whether the character matching value of the candidate user is higher than a threshold value, and determine the candidate user as the second user if the character matching value of the candidate user is higher than the threshold value. Or, the fourth node device may sort the character matching values of the at least one candidate user in order from high to low, and select a user with a character matching value ranked in the top by a preset number of digits from the at least one candidate user as the second user. Wherein the preset number of digits may be 1, so that the candidate user with the most matched character is recommended to the user as the love object. The preset digit number can also be larger than 1, so that a plurality of candidate users with matched characters can be recommended to the user as marriage and love objects. The preset number of bits may be configured by a server of the social application, or may be set by the first user through a terminal executing a setting operation.
Through the first implementation mode, the characters of different users can be inferred by using genes, and recommendation is performed among different users with matched characters, so that gender-matched marriage objects are recommended for the users, and optimal recommendation is made.
In a second implementation, a second user is determined based on the at least one genetic risk value.
For example, for each candidate user of the at least one candidate user, the fourth node device may determine whether the genetic risk value of the candidate user is lower than a threshold value, and determine the candidate user as the second user if the genetic risk value of the candidate user is lower than the threshold value. Or, the fourth node device may sort the genetic risk values of the at least one candidate user in order from low to high, and select a user with a genetic risk value ranked in the top by a preset number from the at least one candidate user as the second user.
Through the second implementation mode, various possible pathogenic gene sequences can be combined by using the genes, the risk probability that the offspring suffers from genetic diseases after love and marriage of different users is predicted according to the pathogenic probability of different sequence combinations, and the candidate objects with high genetic risk are filtered in advance, so that the candidate people with genetic risk after combination is recommended is avoided, the genetic risk is avoided, and the optimal recommendation is made.
512. And the fourth node equipment recommends the second user to the first user.
For example, the fourth node device may send the user information of the second user to the terminal of the first user, and the terminal of the first user may display the user information of the second user in the recommendation result interface. The user information of the second user may include a user identifier of the second user, an avatar of the second user, a contact address of the second user, and the like, where the contact address may be an account number registered by the second user in the social application. In this way, the first user can know the basic situation of the second user based on the user information of the second user and contact the second user based on the contact information of the second user.
In addition, the fourth node device may further send the matching value of the second user to the terminal of the first user, and the terminal of the first user may display the matching value of the second user in the recommendation result interface. In this way, the first user can perceive how well the second user matches himself based on the level of the matching value of the second user.
In addition, if the number of the second users is plural, the terminal of the first user may display a candidate love and marriage object list including user information of each of the second users.
The embodiment provides a technical scheme for recommending marriage and love friends by using a block chain, wherein a block chain technology and a genetic engineering technology are combined, gene information of users is stored in the block chain, and when the users need to recommend the marriage and love objects, the gene information of the users and the gene information of other users are respectively matched to find the users matched with the gene information of the users, so that the users are recommended proper marriage and love objects. The block chain technology has the characteristic of decentralization, and the gene information is stored by using the block chain, so that the risk of data leakage caused by the fault of a centralization node can be avoided, the safety of storing the gene information is greatly improved, the risk of user information leakage is avoided, and the privacy of a user is ensured not to be invaded. Moreover, since the data stored in the blockchain cannot be tampered, the genetic information of the user used in the process of matching the marriage object can be guaranteed to be authentic and cannot be forged and tampered, and the credibility and the accuracy of the marriage object recommended by the authentic genetic information can also be guaranteed. In addition, because the gene information contains abundant characteristics such as the personality of the user, the genetic risk of the user and the like, the genetic information is used for matching the love and marriage objects, the love and marriage objects matched with the personality of the user can be found, the objects with high genetic disease risk probability of the offspring combined with the user are removed, and the genetic risk is avoided.
Referring to fig. 7, based on the above technical solution, hospitals, different users, gene collection nodes, gene storage nodes, gene knowledge bases, matching nodes, and other organizations and individuals can be interconnected by using block chains, and these organizations and individuals seeking marriage and friends can be registered as block chain users and have unique user identifiers and private key passwords. The user identifier may be a user public key, which is used to uniquely identify a user or an organization in the blockchain system.
For each organization in the block chain system, intelligent contracts can be signed among the organizations for agreeing on the processes of gene matching and recommending marriage objects, the organizations can encrypt the intelligent contracts through respective private keys to determine that the contracts are effective, and the intelligent contracts can be stored on the block chain by any organization user so as to facilitate the user recommendation method provided by the method embodiment based on the intelligent contracts. The blockchain system may be a federation chain to which any enterprise wants to join, requiring the approval of all member enterprises. Optionally, the intelligent contract may further include a duty ratio of people invested by each institution and a friend recommendation fee to be paid or receivable. For example, the smart contract may state how much charge needs to be deducted from the user's account each time a love object is recommended for the user, or each time the user interacts with a recommended love object.
Fig. 8 is a schematic structural diagram of a block chain-based user recommendation device according to an embodiment of the present application.
Referring to fig. 8, the apparatus includes:
a receiving module 801, configured to receive a recommendation request of a first user, where the recommendation request includes a user identifier of the first user, and the recommendation request is used to request that a marriage object is recommended for the first user;
the query module 802 is configured to query, according to the user identifier of the first user, gene information of the first user stored in the blockchain system;
a matching module 803, configured to match the genetic information of the first user with the genetic information of each candidate user, respectively, to obtain at least one matching value, where each matching value is used to indicate a matching degree between the genetic information of the corresponding candidate user and the genetic information of the first user;
a determining module 804, configured to determine a second user according to the at least one matching value, where the matching value between the second user and the first user meets a condition;
a recommending module 805 for recommending the second user to the first user.
The embodiment provides a technical scheme for recommending marriage and love friends by using a block chain, wherein a block chain technology and a genetic engineering technology are combined, gene information of users is stored in the block chain, and when the users need to recommend the marriage and love objects, the gene information of the users and the gene information of other users are respectively matched to find the users matched with the gene information of the users, so that the users are recommended proper marriage and love objects. The block chain technology has the characteristic of decentralization, and the gene information is stored by using the block chain, so that the risk of data leakage caused by the fault of a centralization node can be avoided, the safety of storing the gene information is greatly improved, the risk of user information leakage is avoided, and the privacy of a user is ensured not to be invaded. Moreover, since the data stored in the blockchain cannot be tampered, the genetic information of the user used in the process of matching the marriage object can be guaranteed to be authentic and cannot be forged and tampered, and the credibility and the accuracy of the marriage object recommended by the authentic genetic information can also be guaranteed. In addition, because the gene information contains abundant characteristics such as the personality of the user, the genetic risk of the user and the like, the genetic information is used for matching the love and marriage objects, the love and marriage objects matched with the personality of the user can be found, the objects with high genetic disease risk probability of the offspring combined with the user are removed, and the genetic risk is avoided.
Optionally, the matching module 803 includes:
the coding submodule is used for coding the gene information of the first user and the gene information of each candidate user respectively to obtain the character characteristics of the first user and the character characteristics of each candidate user;
and the obtaining submodule is used for obtaining at least one character matching value according to the character features of the first user and the character features of each candidate user, and each character matching value is used for expressing the matching degree between the character features of the corresponding candidate user and the character features of the first user.
Optionally, the coding sub-module is configured to input the genetic information of the first user and the genetic information of each candidate user into a personality identification model, where the personality identification model is configured to identify personality characteristics according to the genetic information; and respectively processing the gene information of the first user and the gene information of each candidate user through a character recognition model, and outputting character features of the first user and character features of each candidate user.
Optionally, the at least one matching value comprises at least one genetic risk value, matching module 803, comprising:
the combination submodule is used for respectively combining the gene sequence of the first user and the gene sequence of each candidate user to obtain at least one gene sequence set, and each gene sequence set comprises the gene sequence of the first user and the gene sequence of one candidate user;
and the obtaining submodule is used for obtaining at least one genetic risk value according to the at least one gene sequence set, and each genetic risk value is the probability that the descendant of the corresponding candidate user and the first user has the genetic disease.
Optionally, combining the sub-modules for: determining a pathogenic gene sequence contained in the gene sequence of the first user; determining a pathogenic gene sequence contained in the gene sequence of each candidate user; respectively combining the pathogenic gene sequence of the first user and the pathogenic gene sequence of each candidate user to obtain at least one gene sequence set, wherein each gene sequence set comprises the pathogenic gene sequence of the first user and the pathogenic gene sequence of one candidate user;
and the acquisition submodule is used for detecting the genetic risk value corresponding to the gene sequence set according to the gene pathogenic information for each gene sequence set in at least one gene sequence set, wherein the gene pathogenic information comprises at least one of a genetic mode, a mutation probability and a pathogenic type of a pathogenic gene sequence.
Optionally, the receiving module 801 is further configured to receive genetic disease information from a medical institution server;
the device still includes: the storage module is used for storing the first block comprising the genetic disease information to a block chain of the block chain system.
Optionally, the receiving module 801 is further configured to receive authorization information of the first user, where the authorization information indicates that the blockchain system is authorized to use the genetic information for user recommendation, and the authorization information includes the genetic information of the first user;
the device still includes: and the storage module is used for storing the second block comprising the genetic information of the first user to the block chain of the block chain system.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
It should be noted that: in the above embodiment, when recommending a user, the block chain-based user recommendation apparatus is exemplified by only the division of the functional modules, and in practical applications, the function distribution may be completed by different functional modules as needed, that is, the internal structure of the block chain-based user recommendation apparatus is divided into different functional modules to complete all or part of the functions described above. In addition, the block chain-based user recommendation device provided in the above embodiment and the block chain-based user recommendation method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
The node devices in the blockchain system in the above method embodiments, such as the first node device, the second node device, the third node device, or the fourth node device, may have a plurality of product forms, for example, the node devices may be implemented as terminals. For example, fig. 9 shows a block diagram of a terminal 900 according to an exemplary embodiment of the present application. The terminal 900 may be: a smart phone, a tablet computer, an MP3(Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer iv, motion video Experts compression standard Audio Layer 4) player, a notebook computer or a desktop computer. Terminal 900 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like.
In general, terminal 900 includes: one or more processors 901 and one or more memories 902.
Processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 901 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 901 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 902 is used for storing at least one program code for execution by the processor 901 to implement the blockchain based user recommendation method provided by the method embodiments in the present application.
In some embodiments, terminal 900 can also optionally include: a peripheral interface 903 and at least one peripheral. The processor 901, memory 902, and peripheral interface 903 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 903 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 904, a touch display screen 905, a camera assembly 906, an audio circuit 907, a positioning assembly 908, and a power supply 909.
The peripheral interface 903 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 901 and the memory 902. In some embodiments, the processor 901, memory 902, and peripheral interface 903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 901, the memory 902 and the peripheral interface 903 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 904 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 904 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 904 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 904 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 904 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 904 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 905 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 905 is a touch display screen, the display screen 905 also has the ability to capture touch signals on or over the surface of the display screen 905. The touch signal may be input to the processor 901 as a control signal for processing. At this point, the display 905 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 905 may be one, providing the front panel of the terminal 900; in other embodiments, the number of the display panels 905 may be at least two, and each of the display panels is disposed on a different surface of the terminal 900 or is in a foldable design; in still other embodiments, the display 905 may be a flexible display disposed on a curved surface or a folded surface of the terminal 900. Even more, the display screen 905 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display panel 905 can be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 906 is used to capture images or video. Optionally, camera assembly 906 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 906 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuit 907 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 901 for processing, or inputting the electric signals to the radio frequency circuit 904 for realizing voice communication. For stereo sound acquisition or noise reduction purposes, the microphones may be multiple and disposed at different locations of the terminal 900. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 901 or the radio frequency circuit 904 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuit 907 may also include a headphone jack.
The positioning component 908 is used to locate the current geographic location of the terminal 900 to implement navigation or LBS (location based Service). The positioning component 908 may be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 909 is used to provide power to the various components in terminal 900. The power source 909 may be alternating current, direct current, disposable or rechargeable. When the power source 909 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 900 can also include one or more sensors 910. The one or more sensors 910 include, but are not limited to: acceleration sensor 911, gyro sensor 912, pressure sensor 913, fingerprint sensor 914, optical sensor 915, and proximity sensor 916.
The acceleration sensor 911 can detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 900. For example, the acceleration sensor 911 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 901 can control the touch display 905 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 911. The acceleration sensor 911 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 912 may detect a body direction and a rotation angle of the terminal 900, and the gyro sensor 912 may cooperate with the acceleration sensor 911 to acquire a 3D motion of the user on the terminal 900. The processor 901 can implement the following functions according to the data collected by the gyro sensor 912: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 913 may be disposed on the side bezel of terminal 900 and/or underneath touch display 905. When the pressure sensor 913 is disposed on the side frame of the terminal 900, the user's holding signal of the terminal 900 may be detected, and the processor 901 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 913. When the pressure sensor 913 is disposed at a lower layer of the touch display 905, the processor 901 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 905. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 914 is used for collecting a fingerprint of the user, and the processor 901 identifies the user according to the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 901 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 914 may be disposed on the front, back, or side of the terminal 900. When a physical key or vendor Logo is provided on the terminal 900, the fingerprint sensor 914 may be integrated with the physical key or vendor Logo.
The optical sensor 915 is used to collect ambient light intensity. In one embodiment, the processor 901 may control the display brightness of the touch display 905 based on the ambient light intensity collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 905 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 905 is turned down. In another embodiment, the processor 901 can also dynamically adjust the shooting parameters of the camera assembly 906 according to the ambient light intensity collected by the optical sensor 915.
Proximity sensor 916, also known as a distance sensor, is typically disposed on the front panel of terminal 900. The proximity sensor 916 is used to collect the distance between the user and the front face of the terminal 900. In one embodiment, when the proximity sensor 916 detects that the distance between the user and the front face of the terminal 900 gradually decreases, the processor 901 controls the touch display 905 to switch from the bright screen state to the dark screen state; when the proximity sensor 916 detects that the distance between the user and the front surface of the terminal 900 gradually becomes larger, the processor 901 controls the touch display 905 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 9 does not constitute a limitation of terminal 900, and may include more or fewer components than those shown, or may combine certain components, or may employ a different arrangement of components.
The node devices in the blockchain system in the above method embodiments, such as the first node device, the second node device, the third node device, or the fourth node device, may have a variety of product forms, for example, the node devices may be implemented as servers. For example, fig. 10 is a schematic structural diagram of a server provided in this embodiment, where the server 1000 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1001 and one or more memories 1002, where the memory 1002 stores at least one program code, and the at least one program code is loaded and executed by the processors 1001 to implement the block chain based user recommendation method provided in the foregoing method embodiments. Of course, the server may also have a wired or wireless network interface, an input/output interface, and other components to facilitate input and output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, a computer readable storage medium, such as a memory including at least one program code, which is executable by a processor to perform the blockchain based user recommendation method in the above embodiments, is also provided. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact disc-Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
It should be understood that determining B from a does not mean determining B from a alone, but may also be determined from a and/or other information.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The present application is intended to cover various modifications, alternatives, and equivalents, which may be included within the spirit and scope of the present application.

Claims (10)

1. A user recommendation method based on a block chain is applied to a node device in a block chain system, and the method comprises the following steps:
receiving a recommendation request of a first user, wherein the recommendation request comprises a user identification of the first user, and the recommendation request is used for requesting to recommend a marriage and love object for the first user;
according to the user identification of the first user, inquiring the gene information of the first user stored in the block chain system;
respectively matching the gene information of the first user with the gene information of each candidate user to obtain at least one matching value, wherein each matching value is used for expressing the matching degree between the gene information of the corresponding candidate user and the gene information of the first user;
determining a second user according to the at least one matching value, wherein the matching value of the second user and the first user meets the condition;
recommending the second user to the first user.
2. The method of claim 1, wherein the at least one matching value comprises at least one character matching value, and the matching the genetic information of the first user with the genetic information of each candidate user respectively to obtain the at least one matching value comprises:
respectively coding the gene information of the first user and the gene information of each candidate user to obtain the character feature of the first user and the character feature of each candidate user;
and acquiring the at least one character matching value according to the character features of the first user and the character features of each candidate user, wherein each character matching value is used for expressing the matching degree between the character features of the corresponding candidate user and the character features of the first user.
3. The method of claim 2, wherein encoding the genetic information of the first user and the genetic information of each candidate user separately to obtain the personality traits of the first user and the personality traits of each candidate user comprises:
respectively inputting the gene information of the first user and the gene information of each candidate user into a character recognition model, wherein the character recognition model is used for recognizing character features according to the gene information;
and respectively processing the gene information of the first user and the gene information of each candidate user through the character recognition model, and outputting character features of the first user and character features of each candidate user.
4. The method of claim 1, wherein the at least one matching value comprises at least one genetic risk value, and wherein the matching the genetic information of the first user with the genetic information of each candidate user separately to obtain at least one matching value comprises:
combining the gene sequence of the first user with the gene sequence of each candidate user respectively to obtain at least one gene sequence set, wherein each gene sequence set comprises the gene sequence of the first user and the gene sequence of one candidate user;
and acquiring the at least one genetic risk value according to the at least one gene sequence set, wherein each genetic risk value is the probability that the descendant of the corresponding candidate user and the first user suffers from the genetic disease.
5. The method of claim 4, wherein the combining the gene sequence of the first user with the gene sequence of each candidate user to obtain at least one gene sequence set comprises:
determining a pathogenic gene sequence contained in the gene sequence of the first user;
determining a pathogenic gene sequence contained in the gene sequence of each candidate user;
combining the pathogenic gene sequence of the first user with the pathogenic gene sequence of each candidate user respectively to obtain at least one gene sequence set, wherein each gene sequence set comprises the pathogenic gene sequence of the first user and the pathogenic gene sequence of one candidate user;
said obtaining said at least one genetic risk value from said set of at least one gene sequence comprises:
for each gene sequence set in the at least one gene sequence set, detecting a genetic risk value corresponding to the gene sequence set according to genetic pathogenic information, wherein the genetic pathogenic information comprises at least one of a genetic mode, a mutation probability and a pathogenic type of a pathogenic gene sequence.
6. The method of claim 5, wherein prior to receiving the request for the recommendation from the first user, the method further comprises:
receiving the genopathogenic information from a medical institution server;
storing a first tile comprising the genopathogenic information onto a tile chain of the tile chain system.
7. The method of claim 1, further comprising:
receiving authorization information of the first user, wherein the authorization information indicates that the blockchain system is authorized to use genetic information for user recommendation, and the authorization information comprises the genetic information of the first user;
storing a second tile comprising genetic information of the first user onto a tile chain of the tile chain system.
8. An apparatus for block chain based user recommendation, the apparatus comprising:
the device comprises a receiving module, a recommending module and a recommending module, wherein the recommending module is used for receiving a recommending request of a first user, the recommending request comprises a user identification of the first user, and the recommending request is used for requesting to recommend a marriage and love object for the first user;
the query module is used for querying the gene information of the first user stored in the block chain system according to the user identification of the first user;
the matching module is used for respectively matching the gene information of the first user with the gene information of each candidate user to obtain at least one matching value, and each matching value is used for expressing the matching degree between the gene information of the corresponding candidate user and the gene information of the first user;
the determining module is used for determining a second user according to the at least one matching value, and the matching value of the second user and the first user meets the condition;
and the recommending module is used for recommending the second user to the first user.
9. A node device, comprising one or more processors and one or more memories having stored therein at least one program code, the at least one program code loaded into and executed by the one or more processors to perform operations performed by the blockchain based user recommendation method of any one of claims 1 to 7.
10. A computer-readable storage medium having at least one program code stored therein, the at least one program code being loaded and executed by a processor to perform operations performed by the blockchain-based user recommendation method of any one of claims 1 to 7.
CN201911181565.3A 2019-11-27 2019-11-27 Block chain-based user recommendation method, device, equipment and storage medium Pending CN110909259A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911181565.3A CN110909259A (en) 2019-11-27 2019-11-27 Block chain-based user recommendation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911181565.3A CN110909259A (en) 2019-11-27 2019-11-27 Block chain-based user recommendation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110909259A true CN110909259A (en) 2020-03-24

Family

ID=69818672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911181565.3A Pending CN110909259A (en) 2019-11-27 2019-11-27 Block chain-based user recommendation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110909259A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111523052A (en) * 2020-04-26 2020-08-11 支付宝实验室(新加坡)有限公司 Block chain-based user recommendation method and device and electronic equipment
CN112085566A (en) * 2020-09-07 2020-12-15 中国平安财产保险股份有限公司 Product recommendation method and device based on intelligent decision and computer equipment
CN112148759A (en) * 2020-09-24 2020-12-29 苏州七采蜂数据应用有限公司 Method and system for selecting image based on cloud platform
US20210241078A1 (en) * 2020-01-30 2021-08-05 Alibaba Group Holding Limited Hyper-square implementation of tree allreduce algorithm for distributed parallel deep learning

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070069901A1 (en) * 2005-09-28 2007-03-29 Tuck Edward F Matching system
US20100223281A1 (en) * 2008-12-31 2010-09-02 23Andme, Inc. Finding relatives in a database
CN102867020A (en) * 2012-07-30 2013-01-09 成都西可科技有限公司 Personal character trait-based friend making matching method
TW201403534A (en) * 2012-07-12 2014-01-16 Genomics Bioscience & Technology Co Ltd Method for building association of personality and gene and application thereof
CN104239399A (en) * 2014-07-14 2014-12-24 上海交通大学 Method for recommending potential friends in social network
CN108154704A (en) * 2017-12-27 2018-06-12 武汉邮电科学研究院 Wisdom shutdown system and method based on block chain
CN109829105A (en) * 2019-01-18 2019-05-31 王惟惟 It is a kind of can application block chain technology artificial intelligence create auxiliary system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070069901A1 (en) * 2005-09-28 2007-03-29 Tuck Edward F Matching system
US20100223281A1 (en) * 2008-12-31 2010-09-02 23Andme, Inc. Finding relatives in a database
TW201403534A (en) * 2012-07-12 2014-01-16 Genomics Bioscience & Technology Co Ltd Method for building association of personality and gene and application thereof
CN102867020A (en) * 2012-07-30 2013-01-09 成都西可科技有限公司 Personal character trait-based friend making matching method
CN104239399A (en) * 2014-07-14 2014-12-24 上海交通大学 Method for recommending potential friends in social network
CN108154704A (en) * 2017-12-27 2018-06-12 武汉邮电科学研究院 Wisdom shutdown system and method based on block chain
CN109829105A (en) * 2019-01-18 2019-05-31 王惟惟 It is a kind of can application block chain technology artificial intelligence create auxiliary system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210241078A1 (en) * 2020-01-30 2021-08-05 Alibaba Group Holding Limited Hyper-square implementation of tree allreduce algorithm for distributed parallel deep learning
US11620502B2 (en) * 2020-01-30 2023-04-04 Alibaba Group Holding Limited Hyper-square implementation of tree AllReduce algorithm for distributed parallel deep learning
CN111523052A (en) * 2020-04-26 2020-08-11 支付宝实验室(新加坡)有限公司 Block chain-based user recommendation method and device and electronic equipment
WO2021218778A1 (en) * 2020-04-26 2021-11-04 支付宝实验室(新加坡)有限公司 User recommendation based on blockchain
CN112085566A (en) * 2020-09-07 2020-12-15 中国平安财产保险股份有限公司 Product recommendation method and device based on intelligent decision and computer equipment
CN112085566B (en) * 2020-09-07 2023-04-28 中国平安财产保险股份有限公司 Product recommendation method and device based on intelligent decision and computer equipment
CN112148759A (en) * 2020-09-24 2020-12-29 苏州七采蜂数据应用有限公司 Method and system for selecting image based on cloud platform

Similar Documents

Publication Publication Date Title
CN110602089B (en) Block chain-based medical data storage method, device, equipment and storage medium
CN110402561B (en) Block chain data protection based on general account model and homomorphic encryption
CN110209952B (en) Information recommendation method, device, equipment and storage medium
CN112257876B (en) Federal learning method, apparatus, computer device and medium
CN108614878B (en) Protocol data management method, device, storage medium and system
CN110401715B (en) Resource collection task management method, device, storage medium and system
CN111612168B (en) Management method and related device for machine learning task
CN110909259A (en) Block chain-based user recommendation method, device, equipment and storage medium
JP2020503718A (en) Blockchain Data Protection Based on Account Annotation Model Using Zero Knowledge Proof
CN111602161A (en) Block chain data protection based on general account model and homomorphic encryption
CN111339086B (en) Block processing method, and data query method and device based on block chain
CN110598482A (en) Block chain-based digital certificate management method, device, equipment and storage medium
KR20220140649A (en) Methods and systems for secure and reliable identity-based computing
CN112132293A (en) Calculation method, device, equipment and medium in longitudinal federal learning
CN111045568B (en) Virtual article processing method, device, equipment and storage medium based on block chain
CN110597924B (en) Block chain-based user identification processing method, device, equipment and storage medium
CN110689460A (en) Traffic accident data processing method, device, equipment and medium based on block chain
CN111355732B (en) Link detection method and device, electronic equipment and storage medium
CN110933113B (en) Block chain-based interactive behavior detection method, device, equipment and storage medium
CN110555780B (en) Insurance data processing method, device and equipment based on block chain and storage medium
CN110598879A (en) Garbage recycling method, device and equipment based on block chain and storage medium
US20230230066A1 (en) Crypto Wallet Configuration Data Retrieval
CN110598386B (en) Block chain-based data processing method, device, equipment and storage medium
CN110826103A (en) Block chain-based document authority processing method, device, equipment and storage medium
CN110597906B (en) Entrance integral generation method, device and equipment based on blockchain 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200324

WD01 Invention patent application deemed withdrawn after publication