House rental information management method based on block chain
By constructing the house information node graph and state characteristic parameters on the blockchain, combined with the graph convolution network and attention mechanism, the problem of data identification limitations in house rental information management is solved, and efficient and reliable management of house rental information is achieved. Improved accuracy and efficiency of anomaly detection.
Patent Information
- Application Number
- CN202410698603.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-23
AI Technical Summary
Existing technology has limitations in identifying single types of data in house rental information management, making it difficult to quickly and accurately identify problems in parameter data and relational data, resulting in insufficient management efficiency and reliability.
Through the blockchain-based house rental information management method, the house information node graph and status feature parameters are constructed, the rental status abnormal type detection module is used for anomaly detection, and the graph convolution network and attention mechanism are combined to extract and fuse multi-layer features. Achieve comprehensive processing of data relationships and parameter data.
It achieves efficient and reliable management of house rental information, improves the accuracy and efficiency of anomaly detection, can quickly identify data recording errors and relationship recording errors, and improves management quality and efficiency.
Smart Images

Figure CN118536040A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of house information management, and in particular to a house rental information management method based on blockchain. Background Art
[0002] House rental information management is very important to various house rental institutions, as it facilitates targeted management and work arrangements.
[0003] Information recording through blockchain has strong security and traceability, which makes it easy for various institutions to extract house rental information. In order to ensure the accuracy of the data, it is necessary to extract and check the data regularly to check for errors in the records. Generally, manual verification requires a lot of time and effort. Existing technology can perform some error troubleshooting and identification through neural networks, but house rental information involves parameter data, relationship data, etc., and the data type is not single. If a single type of data is considered for identification, the result has certain limitations, but it is challenging to coordinate and integrate different types of data for automatic identification.
[0004] Therefore, it is necessary to find a faster housing information management method to more quickly find possible problems and loopholes from the extracted parameter data, relationship data, etc., so as to achieve more efficient and reliable housing rental information management. Summary of the invention
[0005] The purpose of the present invention is to provide a house rental information management method based on blockchain, which can comprehensively consider and integrate data values and data relationships to achieve more efficient and reliable house rental information management.
[0006] The embodiments of the present invention are implemented by the following technical solutions:
[0007] A method for managing house rental information based on blockchain, comprising the following steps:
[0008] Based on the house rental information stored in the blockchain, the individuals involved in the house rental are numbered, the house information node graph is constructed, and the node relationship matrix R is obtained;
[0009] Acquire the housing status characteristic parameters based on the housing rental information stored in the blockchain, wherein the housing status characteristic parameters include a plurality of time parameters between two individuals participating in the housing rental, and the time parameters include a timestamp when the two individuals start to establish contact and a timestamp when the transaction contract is completed;
[0010] Anomaly detection is performed based on the house information node graph and house status characteristic parameters through the constructed rental status anomaly type detection module.
[0011] Preferably, the house rental information stored in the blockchain is updated in real time, and the anomaly detection is performed periodically.
[0012] Preferably, the method for constructing the housing information node graph is:
[0013] Build node cluster X:
[0014] X={x i}, i = 1, 2, ..., n;
[0015] Among them, x i represents an individual person who participates in house rental, i is the number of the individual person who participates in house rental, and n is the total number of individuals who participate in house rental;
[0016] Construct vector cluster Y:
[0017] Y={y k},j=1,2,…,m;
[0018] Among them, y j Represents the connection between two individuals who jointly participate in the house rental, j is the number of the connection, m is the total number of connections, and the corresponding rental transaction information is stored on each node;
[0019] Establish the node relationship matrix R:
[0020] r pq =cl pq ;
[0021]
[0022] r pq Represents the element in the pth row and qth column of the relationship matrix R, cl pq Represents the consistency evaluation parameter of the connection between individuals numbered p and q, er r1,p The difference between the number of rental transaction information stored in the node corresponding to the individual numbered p and the number of connections possessed by the node, er r1,1 The difference between the number of rental transaction information stored in the node corresponding to the individual numbered q and the number of connections possessed by the node, er r2,u The difference between the uth parameter of the rental transaction information corresponding to the connection stored in the two nodes corresponding to the personnel numbered p and q, θ u is the weight of the u-th parameter.
[0023] Preferably, the rental status abnormal type detection module includes an input layer, a feature extraction layer, a feature fusion layer and a classification output layer connected in sequence;
[0024] The feature extraction layer includes a first extraction layer and a second extraction layer, which are used to extract feature information based on the house status feature parameters;
[0025] The feature fusion layer is used to integrate the feature information;
[0026] The classification output layer is used to perform rental status anomaly detection.
[0027] Preferably, the first extraction layer includes a plurality of convolutional layers, and the expression of the first extraction layer is:
[0028]
[0029] L=ID -1 / 2 RD -1 / 2 ;
[0030]
[0031] Among them, Out1 k is the output of the kth convolutional layer of the first extraction layer, Out1 k-1 is the output of the k-1th convolutional layer of the first extraction layer, ReLU(.) is the ReLU activation function, L is the Laplace matrix, ω k is the training weight of the kth convolutional layer, D is the degree matrix of the node relationship matrix R, iter or (.) is the orth order expression in the iterative polynomial, iter or-· (.) is the or-1th order expression in the iterative polynomial, iter or (.) is the or-2th order expression in the iterative polynomial, λ 1 is the maximum eigenvalue of the Laplace matrix, and I is the identity matrix;
[0032] The output Out1 of the first extraction layer is the output of the last convolutional layer.
[0033] Preferably, the expression of the second extraction layer includes:
[0034] The timestamp of when the connection between individuals is established, the timestamp of when the transaction contract is completed, the lease start time and the lease duration
[0035] Get the initial extraction output matrix Out2_ori:
[0036]
[0037] Among them, Out2_ori(a,b) is the element in the ath row and bth column of the initial extraction output matrix Out2_ori, Time a,b,signThe timestamp when the connection between individual personnel numbered a and individual personnel numbered b is established. a,b,new The timestamp of the completion of the transaction contract between the individual numbered a and the individual numbered b. is the average value of the timestamp difference between the establishment of contact between individuals and the completion of the transaction contract in the normal sample, ω cost is the timestamp weight;
[0038] To remove redundancy:
[0039] Out2 = Out2_ori⊙Fliter;
[0040]
[0041] Among them, Out2 is the output of the secondary extraction module at the current moment, Fliter is the redundant filter matrix, ⊙ is the point multiplication operator, and Fliter(u,v) is the element in the uth row and vth column of the redundant filter matrix.
[0042] Preferably, the expression of the feature fusion layer is:
[0043] e 1 =ρ T tanh(ρ 1 Out1+ρ 2 *Out2+b);
[0044] e 2 =ρ T tanh(ρ 1 *Out2+ρ 2 *Out1+b);
[0045] g t =e 1 ⊙Out1+e 2 ⊙Out2;
[0046] Among them, e 1 and e 2 is the fusion weight, ρ is the attention weight vector, ρ 1 and ρ 2 is the feature weight, b is the bias, g is t is the output of the feature fusion layer.
[0047] Preferably, the classification output layer adopts a softmax function, and the classification results of the anomaly detection include data recording errors, relationship recording errors and normal.
[0048] Preferably, the time parameters also include the lease start time and lease duration, and a push reminder is performed D days before the lease expires.
[0049] The technical solution of the embodiment of the present invention has at least the following advantages and beneficial effects:
[0050] The present invention stores, manages and extracts house rental information based on blockchain, which is safe and reliable and easy to extract quickly;
[0051] The present invention extracts relational data and parameter data by constructing a node graph and extracting data in a comprehensive manner, and the construction and extraction methods are efficient and have high accuracy.
[0052] The present invention processes both relational data and parameter data and extracts multi-layer features, so as to accurately and reliably extract the relational features of the data and the features of the data values themselves, which helps to classify the presence and type of errors by combining the model.
[0053] The present invention performs attention fusion on different extracted features, retains and combines the features of different types of data, and further improves the accuracy and reliability of model identification.
[0054] The present invention is reasonably designed and easy to implement, and is convenient for promoting and improving the quality and efficiency of monitoring and management of house rental information. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 A flowchart of a housing rental information management method based on blockchain provided in Example 1 of the present invention. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0057] Example 1
[0058] This embodiment provides a housing rental information management method based on blockchain, see Figure 1 , including the following steps:
[0059] Step S1: Numbering the individuals involved in the house rental based on the house rental information stored in the blockchain, constructing a house information node graph, and obtaining a node relationship matrix R;
[0060] Step S2: Acquire the housing status characteristic parameters based on the housing rental information stored in the blockchain, wherein the housing status characteristic parameters include a plurality of time parameters between two individuals participating in the housing rental, and the time parameters include a timestamp of when the two individuals start to establish contact and a timestamp of when the transaction contract is completed;
[0061] Step S3: Anomaly detection is performed based on the house information node graph and house status characteristic parameters through the constructed rental status anomaly type detection module.
[0062] The present invention stores house rental information through blockchain, and the storage method is safe, reliable and neat, and it is easy to extract on demand. When it is finally used for anomaly detection, the extracted data is converted into two types: node graph and pure data. The main purpose is to subsequently extract the relationship between individual personnel and the associated data relationship from the node graph, and simply extract numerical features from the pure data. The features extracted based on the above two types of data are used for identification, and the feature extraction is more comprehensive. Then the two types of data are merged, which helps to improve the accuracy of the results.
[0063] Example 2
[0064] This embodiment is based on the technical solution of Embodiment 1 and further explains the implementation method of each step.
[0065] As a preferred solution of this embodiment, the house rental information stored in the blockchain is updated in real time, and the anomaly detection is performed periodically, so as to ensure the validity of the stored data.
[0066] In this embodiment, the method for constructing the housing information node graph in step S1 is:
[0067] Build node cluster X:
[0068] X={x i}, i = 1, 2, ..., n;
[0069] Among them, x i represents an individual person who participates in house rental, i is the number of the individual person who participates in house rental, and n is the total number of individuals who participate in house rental;
[0070] Construct vector cluster Y:
[0071] Y={y j},j=1,2,…,m;
[0072] Among them, y j Represents the connection between two individuals who jointly participate in the house rental, j is the number of the connection, m is the total number of connections, and the corresponding rental transaction information is stored on each node;
[0073] Establish the node relationship matrix R:
[0074] r pq =cl pq ;
[0075]
[0076] r pq Represents the element in the pth row and qth column of the relationship matrix R, cl pq Represents the consistency evaluation parameter of the connection between individuals numbered p and q, er r1,p The difference between the number of rental transaction information stored in the node corresponding to the individual numbered p and the number of connections possessed by the node, er r1,q The difference between the number of rental transaction information stored in the node corresponding to the individual numbered q and the number of connections possessed by the node, er r2,u The difference between the uth parameter of the rental transaction information corresponding to the connection stored in the two nodes corresponding to the personnel numbered p and q, θ u is the weight of the u-th parameter, by adjusting θ u The value of can change the numerical difference of the parameter and the change of the connection relationship difference to cl pq degree of impact.
[0077] The house information node graph constructed by the above steps can reflect the relationship between individuals in the house rental information. The relationship is determined by the rental relationship. The values of the elements in the node relationship matrix represent the degree of error and can reflect the credibility of the node connection relationship.
[0078] Further, the rental status abnormal type detection module includes an input layer, a feature extraction layer, a feature fusion layer and a classification output layer connected in sequence;
[0079] The feature extraction layer includes a first extraction layer and a second extraction layer, which are used to extract feature information based on the house status feature parameters;
[0080] The feature fusion layer is used to integrate the feature information;
[0081] The classification output layer is used to perform rental status anomaly detection.
[0082] As a preferred solution, the first extraction layer includes multiple convolutional layers, and the expression of the first extraction layer is:
[0083]
[0084] L=ID -1 / 2 RD -1 / 2 ;
[0085]
[0086] Among them, Out1 k is the output of the kth convolutional layer of the first extraction layer, Out1 k-1 is the output of the k-1th convolutional layer of the first extraction layer, ReLU(.) is the ReLU activation function, L is the Laplace matrix, ω k is the training weight of the kth convolutional layer, D is the degree matrix of the node relationship matrix R, iter or (.) is the orth order expression in the iterative polynomial, iter or-· (.) is the or-1th order expression in the iterative polynomial, iter or (.) is the or-2th order expression in the iterative polynomial, λ 1 is the maximum eigenvalue of the Laplace matrix, and I is the identity matrix;
[0087] The output Out1 of the first extraction layer is the output of the last convolutional layer.
[0088] The first extraction layer of the above embodiment is based on the graph convolution network setting, but the conventional graph convolution network will have problems of complex calculation and reduced efficiency after multiple layers are set. Therefore, the present embodiment combines the graph convolution network with the fitting iterative expression for optimization design, which improves the calculation efficiency and reduces the calculation difficulty. At the same time, it can well handle the relationship matrix R constructed based on the house information node graph, and then more quickly and reliably extract the relationship information involved in the house rental information and the partially related data information involved in the relationship.
[0089] On the other hand, the expression of the second abstraction layer includes:
[0090] The timestamp of when the connection between individuals is established, the timestamp of when the transaction contract is completed, the lease start time and the lease duration
[0091] Get the initial extraction output matrix Out2_ori:
[0092]
[0093] Among them, Out2_ori(a,b) is the element in the ath row and bth column of the initial extraction output matrix Out2_ori, Time a,b,sign The timestamp when the connection between individual personnel numbered a and individual personnel numbered b is established. a,b,new The timestamp of the completion of the transaction contract between the individual numbered a and the individual numbered b. is the average value of the timestamp difference between the establishment of contact between individuals and the completion of the transaction contract in the normal sample, ω cost is the timestamp weight;
[0094] To remove redundancy:
[0095] Out2 = Out2_ori⊙Fliter;
[0096]
[0097] Among them, Out2 is the output of the secondary extraction module at the current moment, Fliter is the redundant filter matrix, ⊙ is the point multiplication operator, and Fliter(u,v) is the element in the uth row and vth column of the redundant filter matrix.
[0098] The second extraction layer mentioned above mainly extracts and processes the recorded pure data information, and uses the conventional values as a reference to obtain the degree of deviation to extract features, which is convenient for subsequent identification of abnormal situations. Redundant filtering is because based on the establishment of the initial extraction output matrix Out2_ori, there will be a large amount of duplicate data. For example, the values of Out2_ori(1,3) and Out2_ori(3,1) are the same, so half of them can be retained, and all diagonal elements are set to zero.
[0099] In addition, the expression of the feature fusion layer can be:
[0100] e 1 =ρ T tanh(ρ 1 *Out1+ρ 2 *Out2+b);
[0101] e 2 =ρ T tanh(ρ 1 *Out2+ρ 2 *Out1+b);
[0102] g t =e 1 ⊙Out1+e 2 ⊙Out2;
[0103] Among them, e 1 and e 2 is the fusion weight, ρ is the attention weight vector, ρ 1 and ρ 2 is the feature weight, b is the bias, g is t is the output of the feature fusion layer. Fusion through the attention mechanism helps to retain and focus on important features.
[0104] Finally, the classification output layer uses a softmax function, and the classification results of the anomaly detection include data record errors, relationship record errors, and normal. This embodiment can realize comprehensive and comprehensive detection and analysis based on the main extraction of relationships between individual personnel and associated data relationships from the node graph and the simple extraction of numerical features from pure data, to find out whether there are anomalies, and whether the anomalies mainly occur in the data or the associated relationship. It can also check the error points according to the possibility of anomalies at each node, and combine the error types to assist in locating the location and error type of abnormal data at the same time.
[0105] As a preferred solution, the time parameters also include the lease start time and lease duration, and a push reminder may be sent D days before the lease expires.
[0106] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A housing rental information management method based on blockchain, characterized in that: The following steps are involved: Based on the house rental information stored in the blockchain, the individuals involved in the house rental are numbered, the house information node graph is constructed, and the node relationship matrix R is obtained; Extracting the house status characteristic parameters based on the house rental information stored in the blockchain, the house status characteristic parameters including a plurality of time parameters between two individuals participating in the house rental, the time parameters including a timestamp when the two individuals start to establish contact and a timestamp when the transaction contract is completed; Anomaly detection is performed based on the house information node graph and house status characteristic parameters through the constructed rental status anomaly type detection module.
2. According to a blockchain-based housing rental information management method according to claim 1, it is characterized in that: The house rental information stored in the blockchain is updated in real time, and the anomaly detection is performed periodically.
3. According to a blockchain-based housing rental information management method according to claim 1, it is characterized in that: The method for constructing the housing information node graph is: Build node cluster X: X={x i },i=1,2,...,n; Among them, x i represents an individual person who participates in house rental, i is the number of the individual person who participates in house rental, and n is the total number of individuals who participate in house rental; Construct vector cluster Y: Y={y j }, j, 1, 2,..., m; Among them, y j Represents the connection between two individuals who jointly participate in the house rental, j is the number of the connection, m is the total number of connections, and the corresponding rental transaction information is stored on each node; Establish the node relationship matrix R: r pq =cl pq ; r pq Represents the element in the pth row and qth column of the relationship matrix R, cl pq Represents the consistency evaluation parameter of the connection between individuals numbered p and q, er r1,p The difference between the number of rental transaction information stored in the node corresponding to the individual numbered p and the number of connections possessed by the node, er r1,q The difference between the number of rental transaction information stored in the node corresponding to the individual numbered q and the number of connections possessed by the node, er r2,u The difference between the uth parameter of the rental transaction information corresponding to the connection stored in the two nodes corresponding to the personnel numbered p and q, θ u is the weight of the u-th parameter.
4. According to a blockchain-based housing rental information management method according to claim 3, it is characterized in that: The rental status abnormal type detection module includes an input layer, a feature extraction layer, a feature fusion layer and a classification output layer connected in sequence; The feature extraction layer includes a first extraction layer and a second extraction layer, which are used to extract feature information based on the house status feature parameters; The feature fusion layer is used to integrate the feature information; The classification output layer is used to perform rental status anomaly detection.
5. According to a blockchain-based housing rental information management method according to claim 4, it is characterized in that: The first extraction layer includes multiple convolutional layers, and the expression of the first extraction layer is: L=ID -1 / 2 DR -1 / 2 ; Among them, Out1 k is the output of the kth convolutional layer of the first extraction layer, Out1 k-1 is the output of the k-1th convolutional layer of the first extraction layer, ReLU(.) is the ReLU activation function, L is the Laplace matrix, ω k is the training weight of the kth convolutional layer, D is the degree matrix of the node relationship matrix R, iter or (.) is the orth order expression in the iterative polynomial, iter or-. (.) is the or-1th order expression in the iterative polynomial, iter or (.) is the or-2th order expression in the iterative polynomial, λ1 is the maximum eigenvalue of the Laplace matrix, and I is the identity matrix; The output Out1 of the first extraction layer is the output of the last convolutional layer.
6. A method for managing house rental information based on blockchain according to claim 5, characterized in that: The expression of the second abstraction layer includes: The timestamp of when the connection between individuals is established, the timestamp of when the transaction contract is completed, the lease start time and the lease duration Get the initial extraction output matrix Out2_ori: Among them, Out2_ori(a, b) is the element in the ath row and bth column of the initial extraction output matrix Out2_ori, Time a,b,sign The timestamp when the connection between individual personnel numbered a and individual personnel numbered b is established. a,b,new The timestamp of the completion of the transaction contract between individual personnel numbered a and individual personnel numbered b. is the average value of the timestamp difference between the establishment of contact between individuals and the completion of the transaction contract in the normal sample, ω cost is the timestamp weight; To remove redundancy: Out2 = Out2_ori⊙Fliter; Among them, Out2 is the output of the secondary extraction module at the current moment, Fliter is the redundant filter matrix, ⊙ is the point multiplication operator, and Fliter(u, v) is the element in the uth row and vth column in the redundant filter matrix.
7. A method for managing house rental information based on blockchain according to claim 6, characterized in that: The expression of the feature fusion layer is: e1=ρ T tanh(ρ1*Out1+ρ2*Out2+b); e2=ρ T tanh(ρ1*Out2+ρ2*Out1+b); g t =e1⊙Out1+e2⊙Out2; Among them, e1 and e2 are fusion weights, ρ is the attention weight vector, ρ1 and ρ2 are feature weights, b is the bias, and g t is the output of the feature fusion layer.
8. The method for managing housing rental information based on blockchain according to claim 1, characterized in that: The classification output layer adopts a softmax function, and the classification results of the anomaly detection include data record errors, relationship record errors and normal.
9. The method for managing house rental information based on blockchain according to claim 1, characterized in that: The time parameters also include the lease start time and lease duration, and a push reminder will be sent D days before the lease expires.
Citation Information
Cited By
Electronic nursing medical record safety management system based on block chain
CN119170187A
