Abnormal transaction loop identification method, device, terminal and storage medium
By calculating the PR value of nodes in the enterprise transaction network, filtering and traversing transaction loops, and combining conditions such as path length and coefficient of variation, abnormal transaction loops are identified, solving the problem of low efficiency in existing technologies and achieving efficient identification of abnormal transaction loops.
Patent Information
- Application Number
- CN202111397176.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-23
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2041-11-23
AI Technical Summary
Existing technologies are inefficient at identifying corporate transaction loops and are difficult to effectively identify abnormal transaction loops.
By acquiring the enterprise transaction network, calculating the PR value of nodes, filtering nodes, traversing the transaction network, using the depth-first search algorithm to identify transaction loops, and identifying abnormal transaction loops based on preset conditions, including path length, coefficient of variation, and product consistency judgment.
It improves the efficiency of identifying abnormal transaction loops, simplifies the transaction network, reduces the time spent digging for invalid paths, and improves the accuracy and efficiency of identification.
Smart Images

Figure CN114116799B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of tax risk management, and in particular to a method, device, terminal and storage medium for identifying an abnormal transaction loop. Background Art
[0002] At present, enterprises will have trading relationships with other enterprises during the production and operation process, and the state will use the value-added amount generated by the goods in the transaction process as the basis for taxation. Based on the design principle of VAT, special VAT invoices usually do not form a closed loop. Therefore, once a VAT invoice forms a closed loop, it means that the taxpayer of the VAT invoice may have issued a false invoice. In order to identify the behavior of issuing false invoices, the current identification method is to determine whether there is an abnormality in the closed loop based on the commodity details corresponding to the VAT chain.
[0003] However, due to the large amount of transaction data and complex transaction relationships, the task of identifying abnormal transaction loops is large and the efficiency is low. Summary of the invention
[0004] The present invention provides an abnormal transaction loop identification method, device, terminal and storage medium to solve the problem of improving the abnormal transaction loop identification efficiency.
[0005] In a first aspect, the present invention provides a method for identifying an abnormal transaction loop, comprising:
[0006] Obtaining an enterprise transaction network; the enterprise transaction network takes each enterprise as a node, and the transaction relationship between each enterprise as the connection relationship between each node;
[0007] Calculate the PR value of each node, filter the nodes of the enterprise transaction network according to the PR value of each node, and obtain the enterprise transaction network after filtering the nodes;
[0008] Traversing the enterprise transaction network after the nodes are filtered, and obtaining multiple transaction loops in the enterprise transaction network after the nodes are filtered;
[0009] Based on the preset transaction screening conditions, abnormal transaction loops are identified for each transaction loop.
[0010] In a possible implementation, calculating the PR value of each node includes:
[0011] The PR value of each node is calculated based on the preset PR value calculation formula; the PR value calculation formula is:
[0012]
[0013] Among them, PR(A i ) represents node A i PR value, PR(Aj ) represents node A j PR value, N(A j ) represents node A j d represents the preset decay factor, and N represents the number of nodes.
[0014] In a possible implementation, screening nodes of the enterprise transaction network according to the PR value of each node includes:
[0015] Sort the PR values from large to small, and delete the nodes corresponding to some PR values according to the preset ratio.
[0016] In a possible implementation, traversing the enterprise transaction network after the node is filtered to obtain multiple transaction loops in the enterprise transaction network after the node is filtered includes:
[0017] The enterprise transaction network after the nodes are filtered is traversed based on a depth-first query algorithm to obtain multiple transaction loops in the enterprise transaction network after the nodes are filtered.
[0018] In a possible implementation, before identifying abnormal transaction loops for each transaction loop based on preset transaction screening conditions, the method further includes:
[0019] Invalid paths of each transaction loop are removed based on the traversal path length corresponding to each transaction loop.
[0020] In a possible implementation, identifying abnormal transaction loops for each transaction loop based on preset transaction screening conditions includes:
[0021] Obtaining the transaction amount of the first transaction loop; the first transaction loop is any transaction loop;
[0022] The coefficient of variation of the first transaction loop is calculated based on the transaction amount and the preset coefficient of variation calculation formula; the coefficient of variation calculation formula is:
[0023]
[0024] If the coefficient of variation of the first transaction loop is lower than a preset threshold, the first transaction loop is determined to be an abnormal transaction loop.
[0025] In a possible implementation, identifying abnormal transaction loops for each transaction loop based on preset transaction screening conditions includes:
[0026] Acquire transaction commodities in a first transaction loop; the first transaction loop is any transaction loop;
[0027] If all transaction commodities are the same, the first transaction loop is determined to be an abnormal transaction loop.
[0028] In a second aspect, the present invention provides a device for identifying an abnormal transaction loop, comprising:
[0029] The acquisition module is used to acquire the enterprise transaction network; the enterprise transaction network takes enterprises as nodes and the transaction relationships between enterprises as the connection relationships between nodes;
[0030] A screening module is used to calculate the PR value of each node, screen the nodes of the enterprise transaction network according to the PR value of each node, and obtain the enterprise transaction network after the nodes are screened;
[0031] A traversal module, used to traverse the enterprise transaction network after the nodes are filtered, and obtain multiple transaction loops in the enterprise transaction network after the nodes are filtered;
[0032] The judgment module is used to identify abnormal transaction loops in each transaction loop based on preset transaction screening conditions.
[0033] In a third aspect, the present invention provides a terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method as shown in the first aspect or any possible implementation of the first aspect are implemented.
[0034] In a fourth aspect, the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the method shown in the first aspect or any possible implementation of the first aspect.
[0035] The present invention provides a method, device, terminal and storage medium for identifying abnormal transaction loops, the method comprising: obtaining an enterprise transaction network; the enterprise transaction network takes each enterprise as a node, and the transaction relationship between each enterprise as the connection relationship between each node; calculating the PR value of each node, screening the nodes of the enterprise transaction network according to the PR value of each node, and obtaining the enterprise transaction network after the screening nodes; traversing the enterprise transaction network after the screening nodes, and obtaining multiple transaction loops in the enterprise transaction network after the screening nodes; and identifying abnormal transaction loops for each transaction loop based on preset transaction screening conditions. The present invention can delete special service enterprises in the enterprise transaction network by the size of the PR value of each node in the enterprise transaction network, thereby simplifying the enterprise transaction network and improving the efficiency of abnormal transaction loop identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0037] Figure 1 It is a flow chart of the implementation of the method for identifying abnormal transaction loops provided by an embodiment of the present invention;
[0038] Figure 2 It is a schematic diagram of the structure of an abnormal transaction loop identification device provided by an embodiment of the present invention;
[0039] Figure 3 is a schematic diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0041] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0042] See also Figure 1 , which shows a flowchart of the implementation of the method for identifying abnormal transaction loops provided by an embodiment of the present invention, and is described in detail as follows:
[0043] Step 101, obtaining an enterprise transaction network; the enterprise transaction network uses each enterprise as a node, and the transaction relationship between each enterprise as the connection relationship between each node.
[0044] In this embodiment, the enterprise transaction network can be a directed graph constructed based on the enterprise ticket flow information. The nodes in the graph represent the enterprises participating in the transaction, and the node information includes the enterprise business scope, enterprise scale, enterprise exception code, etc.; the edges in the graph represent the transaction relationships between enterprises, and the edge information includes the transaction goods and transaction amounts between enterprises.
[0045] Step 102, calculate the PR value of each node, and filter the nodes of the enterprise transaction network according to the PR value of each node to obtain the enterprise transaction network after filtering the nodes.
[0046] In this embodiment, since there are many special service enterprises such as banks, insurance companies, gas stations, and operators in the normal transaction network, these enterprises occupy a core position in the network due to their own nature, but the transactions between each enterprise and these special service enterprises are normal transactions. Therefore, it is necessary to exclude the transaction closed loop generated by the participation of these special service enterprises in the transaction, thereby reducing the workload of judging abnormal transaction loops and improving judgment efficiency.
[0047] The PR value is proposed by the PageRank algorithm. The PR value of a node can reflect the importance of a node in the network. i The PR value is recorded as PR(A i ), Enterprise A i The number of purchasing enterprises, i.e. the number of linked nodes, is recorded as I(A i ), the number of sales enterprises in enterprise Aj, i.e. the number of outbound nodes, is recorded as N(Aj), then the basic idea of PageRank algorithm can be expressed by the following formula:
[0048]
[0049] From the formula, we can see that the PR value of each enterprise will be evenly distributed to its linked enterprises according to the ticket flow. If the products of an enterprise are purchased by more enterprises, then the enterprise can obtain a higher PR value, and the more important it is in the trading network. Therefore, based on the PR value of an enterprise, we can judge the importance of the enterprise in the trading network, and thus determine whether the enterprise belongs to a special service enterprise.
[0050] Step 103, traverse the enterprise transaction network after the nodes are filtered, and obtain multiple transaction loops in the enterprise transaction network after the nodes are filtered.
[0051] In this embodiment, the transaction loops in the transaction network are first determined, and then it is identified whether each transaction loop is abnormal, which can improve the efficiency of identifying abnormal transaction loops.
[0052] Step 104: Identify abnormal transaction loops in each transaction loop based on preset transaction screening conditions.
[0053] In this embodiment, the transaction screening condition can be determined based on the abnormal transaction type to be identified, and is used to determine whether there are features corresponding to the abnormal transaction type in each transaction loop. For example, when it is necessary to identify whether there is circular invoicing or false transactions in the transaction loop, the transaction screening condition can be set to the transaction amount of each part of the transaction loop being close.
[0054] In some embodiments, calculating the PR value of each node includes:
[0055] The PR value of each node is calculated based on the preset PR value calculation formula; the PR value calculation formula is:
[0056]
[0057] Among them, PR(A i ) represents node A i PR value, PR(A j ) represents node A j PR value, N(A j ) represents node A j d represents the preset decay factor, and N represents the number of nodes.
[0058] In this embodiment, there may be nodes with zero outgoing nodes or zero incoming nodes. To avoid the PR value of these nodes being unable to be calculated, an attenuation factor is introduced in this embodiment. The attenuation factor is also called the damping coefficient. The attenuation factor d represents the node A. j The PR value is assigned to node A i The probability that node A j The remaining PR values of d are evenly distributed to all enterprises. In this embodiment, the value of d can be 0.85.
[0059] In some embodiments, screening nodes of the enterprise transaction network according to the PR value of each node includes:
[0060] Sort the PR values from large to small, and delete the nodes corresponding to some PR values according to the preset ratio.
[0061] In this embodiment, the characteristics of special service enterprises are that they have a large number of transactions and a large number of enterprises with transaction relationships. It can be seen that the PR value of the node corresponding to the special service enterprise will be higher than the PR value of other enterprises. Therefore, the PR value of each node can be sorted from large to small, and the nodes corresponding to the larger PR value can be deleted to complete the node screening. Specifically, the first 20% or the nodes corresponding to the preset number of PR values can be deleted. Cluster analysis can also be performed on each PR value, and the nodes corresponding to the PR value in the cluster with the largest value can be deleted.
[0062] In some embodiments, traversing the enterprise transaction network after the screening node to obtain multiple transaction loops in the enterprise transaction network after the screening node includes:
[0063] The enterprise transaction network after the nodes are filtered is traversed based on a depth-first query algorithm to obtain multiple transaction loops in the enterprise transaction network after the nodes are filtered.
[0064] In this embodiment, the idea of the depth-first query algorithm is to traverse the nodes along the depth of the tree or graph and search the branches as deeply as possible. When all the edges of node V have been explored, the search will be traced back to the starting node of the edge where node V was found. This process is carried out until all nodes reachable from the source node have been found. If there are still undiscovered nodes, one of them is selected as the source node and the above process is repeated. The whole process is repeated until all nodes have been visited.
[0065] In some embodiments, before identifying abnormal transaction loops for each transaction loop based on preset transaction screening conditions, the method further includes:
[0066] Invalid paths of each transaction loop are removed based on the traversal path length corresponding to each transaction loop.
[0067] In this embodiment, the number of edges in a transaction loop is called the traversal path length of the transaction loop. Since false transactions usually do not exist in an overly long transaction chain, if the traversal path length of a transaction loop is greater than the preset length N, the probability of false transactions in the transaction loop is low, and the transaction loop can be removed by pruning to reduce invalid mining time. The preset length N can be determined based on historical data.
[0068] In some embodiments, identifying abnormal transaction loops for each transaction loop based on preset transaction screening conditions includes:
[0069] Obtaining the transaction amount of the first transaction loop; the first transaction loop is any transaction loop;
[0070] The coefficient of variation of the first transaction loop is calculated based on the transaction amount and the preset coefficient of variation calculation formula; the coefficient of variation calculation formula is:
[0071]
[0072] If the coefficient of variation of the first transaction loop is lower than a preset threshold, the first transaction loop is determined to be an abnormal transaction loop.
[0073] In this embodiment, the coefficient of variation can reflect the change in the amount between each transaction step in the first transaction loop. If all enterprises in the first transaction loop issue false invoices, and the VAT invoices issued by each enterprise are of similar amounts, the standard deviation of the transaction amount in the first transaction loop will be very small, and the corresponding coefficient of variation of the first transaction loop will also be very small. Therefore, it can be determined whether the first transaction loop is an abnormal transaction loop based on the size of the coefficient of variation. The threshold in this embodiment can be set based on actual needs.
[0074] In some embodiments, identifying abnormal transaction loops for each transaction loop based on preset transaction screening conditions includes:
[0075] Acquire transaction commodities in a first transaction loop; the first transaction loop is any transaction loop;
[0076] If all transaction commodities are the same, the first transaction loop is determined to be an abnormal transaction loop.
[0077] In this embodiment, if all the transaction commodities in the first transaction loop are the same, it means that the commodities have been circulated in the first transaction loop and then returned to the enterprise that initially sold them, which is inconsistent with the principles of enterprise operation. Therefore, it can be determined that the transactions in the first transaction loop are false transactions.
[0078] In addition, it is also possible to determine whether the first transaction loop is an abnormal transaction loop based on the enterprise information in the first transaction loop. For example, if there is an abnormal or risky enterprise marked by the tax bureau in the first transaction loop, the probability of false transactions in the enterprise will also be high.
[0079] The method for identifying abnormal transaction loops provided by the embodiment of the present invention includes: obtaining an enterprise transaction network; the enterprise transaction network uses each enterprise as a node, and the transaction relationship between each enterprise is the connection relationship between each node; calculating the PR value of each node, screening the nodes of the enterprise transaction network according to the PR value of each node, and obtaining the enterprise transaction network after the nodes are screened; traversing the enterprise transaction network after the nodes are screened, and obtaining multiple transaction loops in the enterprise transaction network after the nodes are screened; and identifying abnormal transaction loops for each transaction loop based on preset transaction screening conditions. The present invention can delete special service enterprises in the enterprise transaction network by the size of the PR value of each node in the enterprise transaction network, thereby simplifying the enterprise transaction network and improving the efficiency of abnormal transaction loop identification.
[0080] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0081] The following is an embodiment of the device of the present invention. For details not described in detail, reference may be made to the corresponding method embodiments described above.
[0082] Figure 2 The following is a schematic diagram showing the structure of an apparatus for identifying an abnormal transaction loop provided by an embodiment of the present invention. For ease of explanation, only the parts related to the embodiment of the present invention are shown, which are described in detail as follows:
[0083] like Figure 2 As shown, the abnormal transaction loop identification device 2 includes:
[0084] The acquisition module 21 is used to acquire the enterprise transaction network; the enterprise transaction network takes enterprises as nodes and the transaction relationships between enterprises as the connection relationships between nodes;
[0085] A screening module 22 is used to calculate the PR value of each node, and screen the nodes of the enterprise transaction network according to the PR value of each node to obtain the enterprise transaction network after the nodes are screened;
[0086] A traversal module 23, used to traverse the enterprise transaction network after the node is filtered, and obtain multiple transaction loops in the enterprise transaction network after the node is filtered;
[0087] The judgment module 24 is used to identify abnormal transaction loops in each transaction loop based on preset transaction screening conditions.
[0088] In some embodiments, the screening module 22 is specifically used to:
[0089] The PR value of each node is calculated based on the preset PR value calculation formula; the PR value calculation formula is:
[0090]
[0091] Among them, PR(A i ) represents node A i PR value, PR(A j ) represents node A j PR value, N(A j ) represents node A j d represents the preset decay factor, and N represents the number of nodes.
[0092] In some embodiments, the screening module 22 is specifically used to:
[0093] Sort the PR values from large to small, and delete the nodes corresponding to some PR values according to the preset ratio.
[0094] In some embodiments, the traversal module 23 is specifically used to:
[0095] The enterprise transaction network after the nodes are filtered is traversed based on a depth-first query algorithm to obtain multiple transaction loops in the enterprise transaction network after the nodes are filtered.
[0096] In some embodiments, the traversal module 23 is further configured to:
[0097] Invalid paths of each transaction loop are removed based on the traversal path length corresponding to each transaction loop.
[0098] In some embodiments, the determination module 24 is specifically used to:
[0099] Obtaining the transaction amount of the first transaction loop; the first transaction loop is any transaction loop;
[0100] The coefficient of variation of the first transaction loop is calculated based on the transaction amount and the preset coefficient of variation calculation formula; the coefficient of variation calculation formula is:
[0101]
[0102] If the coefficient of variation of the first transaction loop is lower than a preset threshold, the first transaction loop is determined to be an abnormal transaction loop.
[0103] In some embodiments, the determination module 24 is specifically used to:
[0104] Acquire transaction commodities in a first transaction loop; the first transaction loop is any transaction loop;
[0105] If all transaction commodities are the same, the first transaction loop is determined to be an abnormal transaction loop.
[0106] An abnormal transaction loop identification device provided by an embodiment of the present invention includes: an acquisition module, which is used to acquire an enterprise transaction network; the enterprise transaction network uses enterprises as nodes, and the transaction relationship between each enterprise is the connection relationship between each node; a screening module, which is used to calculate the PR value of each node, and screen the nodes of the enterprise transaction network according to the PR value of each node, and obtain the enterprise transaction network after the nodes are screened; a traversal module, which is used to traverse the enterprise transaction network after the nodes are screened, and obtain multiple transaction loops in the enterprise transaction network after the nodes are screened; a judgment module, which is used to identify abnormal transaction loops for each transaction loop based on preset transaction screening conditions. The present invention can delete special service enterprises in the enterprise transaction network through the size of the PR value of each node in the enterprise transaction network, thereby simplifying the enterprise transaction network and improving the efficiency of abnormal transaction loop identification.
[0107] Figure 3 is a schematic diagram of a terminal provided by an embodiment of the present invention. Figure 3 As shown, the terminal 3 of this embodiment includes: a processor 30, a memory 31, and a computer program 32 stored in the memory 31 and executable on the processor 30. When the processor 30 executes the computer program 32, the steps in the above-mentioned various abnormal transaction loop identification method embodiments are implemented, for example Figure 1 Alternatively, when the processor 30 executes the computer program 32, the functions of each module in the above-mentioned device embodiments are realized, for example, Figure 2 The functions of modules 21 to 24 are shown.
[0108] Exemplarily, the computer program 32 may be divided into one or more modules, which are stored in the memory 31 and executed by the processor 30 to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 32 in the terminal 3. For example, the computer program 32 may be divided into Figure 2 Modules 21 to 24 are shown.
[0109] The terminal 3 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal 3 may include, but is not limited to, a processor 30 and a memory 31. Those skilled in the art will appreciate that Figure 3 It is only an example of terminal 3 and does not constitute a limitation on terminal 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include input and output devices, network access devices, buses, etc.
[0110] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0111] The memory 31 may be an internal storage unit of the terminal 3, such as a hard disk or memory of the terminal 3. The memory 31 may also be an external storage device of the terminal 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal 3. Further, the memory 31 may also include both an internal storage unit of the terminal 3 and an external storage device. The memory 31 is used to store the computer program and other programs and data required by the terminal. The memory 31 may also be used to temporarily store data that has been output or is to be output.
[0112] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0113] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0114] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0115] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0116] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0117] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0118] If the integrated module is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned identification method of each abnormal transaction loop can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0119] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for identifying abnormal transaction loops, characterized in that: include: Access to corporate transaction networks; The enterprise transaction network uses each enterprise as a node, and the transaction relationship between each enterprise as the connection relationship between each node; Calculate the PR value of each node, and filter the nodes of the enterprise transaction network according to the PR value of each node to obtain the enterprise transaction network after filtering the nodes; Traversing the enterprise transaction network after the nodes are filtered, and obtaining multiple transaction loops in the enterprise transaction network after the nodes are filtered; Identify abnormal transaction loops in each transaction loop based on preset transaction screening conditions; The screening of nodes of the enterprise transaction network according to the PR value of each node includes: Sort the PR values from large to small, and delete the nodes corresponding to the PR values of the preset ratio, or delete the nodes corresponding to the preset number of PR values; Alternatively, cluster the PR values and delete the nodes corresponding to the PR values in the cluster with the largest value.
2. The method for identifying abnormal transaction loops according to claim 1, characterized in that: The step of calculating the PR value of each node includes: The PR value of each node is calculated based on a preset PR value calculation formula; the PR value calculation formula is: Among them, PR(A i ) represents node A i PR value, PR(A j ) represents node A j PR value, N(A j ) represents node A j d represents the preset decay factor, and N represents the number of nodes.
3. The method for identifying abnormal transaction loops according to claim 1, characterized in that: The traversing of the enterprise transaction network after the node is filtered to obtain multiple transaction loops in the enterprise transaction network after the node is filtered includes: The enterprise transaction network after the nodes are filtered is traversed based on a depth-first query algorithm to obtain multiple transaction loops in the enterprise transaction network after the nodes are filtered.
4. The method for identifying abnormal transaction loops according to claim 1, characterized in that: Before identifying abnormal transaction loops for each transaction loop based on the preset transaction screening conditions, the method further includes: Invalid paths of each transaction loop are removed based on the traversal path length corresponding to each transaction loop.
5. The method for identifying an abnormal transaction loop according to any one of claims 1 to 4, characterized in that: The identifying of abnormal transaction loops for each transaction loop based on the preset transaction screening conditions includes: Acquire a transaction amount of a first transaction loop; the first transaction loop is any transaction loop; The coefficient of variation of the first transaction loop is calculated based on the transaction amount and a preset coefficient of variation calculation formula; the coefficient of variation calculation formula is: If the coefficient of variation of the first transaction loop is lower than a preset threshold, the first transaction loop is determined to be an abnormal transaction loop.
6. The method for identifying an abnormal transaction loop according to any one of claims 1 to 4, characterized in that: The identifying of abnormal transaction loops for each transaction loop based on the preset transaction screening conditions includes: Acquire transaction commodities in a first transaction loop; the first transaction loop is any transaction loop; If all transaction commodities are the same, the first transaction loop is determined to be an abnormal transaction loop.
7. A device for identifying abnormal transaction loops, characterized in that: include: An acquisition module, used to acquire enterprise transaction networks; The enterprise transaction network uses enterprises as nodes, and the transaction relationships between enterprises as the connection relationships between nodes; A screening module, used to calculate the PR value of each node, and screen the nodes of the enterprise transaction network according to the PR value of each node to obtain the enterprise transaction network after the nodes are screened; A traversal module, used to traverse the enterprise transaction network after the nodes are filtered, and obtain multiple transaction loops in the enterprise transaction network after the nodes are filtered; A judgment module, used to identify abnormal transaction loops in each transaction loop based on preset transaction screening conditions; The screening of nodes of the enterprise transaction network according to the PR value of each node includes: Sort the PR values from large to small, and delete the nodes corresponding to the PR values of the preset ratio, or delete the nodes corresponding to the preset number of PR values; Alternatively, cluster the PR values and delete the nodes corresponding to the PR values in the cluster with the largest value.
8. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the processor implements the steps of the method for identifying an abnormal transaction loop as described in any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for identifying an abnormal transaction loop as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Cyclic invoicing risk identification method based on knowledge graph
CN111861595A
