CN112258195A - Transaction data processing method and device, computer equipment and storage medium - Google Patents

Transaction data processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112258195A
CN112258195A CN202011148653.6A CN202011148653A CN112258195A CN 112258195 A CN112258195 A CN 112258195A CN 202011148653 A CN202011148653 A CN 202011148653A CN 112258195 A CN112258195 A CN 112258195A
Authority
CN
China
Prior art keywords
transaction
additional
transaction object
objects
main
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
CN202011148653.6A
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202011148653.6A priority Critical patent/CN112258195A/en
Priority to PCT/CN2020/135606 priority patent/WO2022011947A1/en
Publication of CN112258195A publication Critical patent/CN112258195A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4016Transaction verification involving fraud or risk level assessment in transaction processing
    • 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/9535Search customisation based on user profiles and personalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application belongs to the technical field of big data, and relates to a transaction data processing method, a device, computer equipment and a storage medium, wherein the method comprises the following steps: determining transaction objects contained according to the transaction data to determine a main transaction object and an additional transaction object and construct a directed graph; solving a strongly connected component of the directed graph based on a TARJAN algorithm to obtain a plurality of additional transaction object sets, and sequentially combining the additional transaction object sets with the main transaction objects respectively to obtain a plurality of transaction object combinations; and judging whether each transaction object combination meets preset conditions or not, and if so, executing data operation corresponding to the preset conditions based on the preset conditions, wherein the preset conditions comprise risk control conditions and/or information push conditions. In addition, the present application also relates to blockchain techniques in which transaction data may be stored. The method and the device for recommending the trading object combination can achieve trading risk control and achieve recommendation of the trading object combination.

Description

Transaction data processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of big data technologies, and in particular, to a method and an apparatus for processing transaction data, a computer device, and a storage medium.
Background
On one hand, a large amount of transaction data are generated in the current online transaction, and on the other hand, because too many transaction objects can be used for combination, which combination can not be quickly determined to realize the maximization of benefit, information is mined from the transaction data, and the optimal transaction object combination is obtained to push the information to a user. Therefore, how to identify abnormal transaction data to realize risk control and mine effective information from the transaction data for information push becomes an urgent problem to be solved.
Disclosure of Invention
The embodiment of the application provides a transaction data processing method and device, computer equipment and a storage medium, and aims to solve the problems that in the prior art, abnormal transaction data cannot be effectively identified to achieve risk control, and effective information cannot be rapidly mined from the transaction data to be pushed.
In order to solve the above technical problem, an embodiment of the present application provides a method for processing transaction data, which adopts the following technical embodiments:
a method of processing transaction data, comprising the steps of:
acquiring multiple transaction data in real time, determining transaction objects contained according to the multiple transaction data, determining a main transaction object and an additional transaction object according to the transaction objects, and constructing a directed graph based on the main transaction object and the additional transaction object;
based on TARJAN algorithm, obtaining a strongly connected component of the directed graph, obtaining a plurality of additional transaction object sets according to the strongly connected component, and sequentially combining the additional transaction object sets with the main transaction objects respectively to obtain a plurality of transaction object combinations;
and judging whether each transaction object combination meets preset conditions or not, and if so, executing data operation corresponding to the preset conditions based on the preset conditions, wherein the preset conditions comprise risk control conditions and/or information push conditions.
Further, the determining a main transaction object and an additional transaction object according to the transaction object includes:
determining the number of transaction objects contained in each transaction data;
if the transaction object comprises at least two transaction objects, the main transaction object and the additional transaction object are determined according to the attribute information and/or the transaction frequency of the transaction objects.
Further, said constructing a directed graph based on said primary transaction object and said additional transaction objects comprises:
removing transaction data only containing a single transaction object from a plurality of items of transaction data, and sequentially constructing a directed graph of which the connecting line of the additional transaction objects points to the main transaction object for the rest transaction data;
each additional trading object points to at least one main trading object, and when the same item of trading data contains at least two additional trading objects, a bidirectional connecting line is constructed between the additional trading objects in the same item of trading data.
Further, the sequentially combining the plurality of additional transaction object sets with the main transaction objects respectively to obtain a plurality of transaction object combinations includes:
traversing all the additional transaction object sets, traversing all the main transaction objects, if the additional transaction objects in the current additional transaction object set are in a communication relation with one of the main transaction objects, reserving the additional transaction objects in the current additional transaction object set, and adding the association relation between the current additional transaction object set and the currently traversed main transaction object, so as to obtain a plurality of transaction object combinations.
Further, when the adding the association relationship between the current additional transaction object set and the currently traversed main transaction object, the method further includes:
and judging whether the association condition is met between the additional transaction objects in the current additional transaction object set, if so, adding the association relationship between the current additional transaction object set and the currently traversed main transaction object, and otherwise, canceling the association.
Further, after obtaining the plurality of transaction object combinations, the method further includes: and archiving and storing the finally obtained transaction object combination formed by the additional transaction object and the main transaction object.
Further, when the information pushing condition is satisfied, the method further includes: and generating a main and auxiliary trading object category table according to the trading object combination, converting the main and auxiliary trading object category table into a label, and pushing the label to a target object.
In order to solve the above technical problem, an embodiment of the present application further provides a device for processing transaction data, which employs the following technical embodiments:
a transaction data processing apparatus comprising:
the construction module is used for acquiring multiple transaction data in real time, determining transaction objects contained according to the multiple transaction data, determining a main transaction object and an additional transaction object according to the transaction objects, and constructing a directed graph based on the main transaction object and the additional transaction object;
an object combination generating module, configured to obtain a strongly connected component of the directed graph based on a TARJAN algorithm, obtain a plurality of additional transaction object sets according to the strongly connected component, and sequentially combine the plurality of additional transaction object sets with each of the main transaction objects, respectively, to obtain a plurality of transaction object combinations;
and the judgment processing module is used for judging whether each transaction object combination meets a preset condition or not, and if so, executing data operation corresponding to the preset condition based on the preset condition, wherein the preset condition comprises a risk control condition and/or an information push condition.
In order to solve the above technical problem, an embodiment of the present application further provides a computer device, which adopts the following technical embodiments:
a computer device comprising a memory having computer readable instructions stored therein and a processor which when executed implements the steps of a method of processing transaction data as described above.
In order to solve the above technical problem, an embodiment of the present application further provides a computer-readable storage medium, which employs the following technical embodiments:
a computer readable storage medium having computer readable instructions stored thereon which, when executed by a processor, implement the steps of a method of processing transaction data as described above.
Compared with the prior art, the transaction data processing method, the transaction data processing device, the computer equipment and the storage medium provided by the embodiment of the application have the following main beneficial effects:
the method comprises the steps of classifying the main transaction object and the additional transaction objects of the transaction objects, constructing a directed graph based on the main transaction object and the additional transaction objects to obtain a plurality of additional transaction object sets, sequentially combining each additional transaction object set with each main transaction object to obtain a plurality of transaction object combinations, judging whether the transaction object combinations can cause risk transaction or not according to whether the transaction object combinations meet preset conditions or not, or judging whether the transaction object combinations can serve as better transaction object combinations or not, and accordingly, transaction risks can be controlled, and meanwhile effective information can be rapidly mined from transaction data to be pushed to users.
Drawings
In order to illustrate the embodiments of the present application more clearly, a brief description will be given below of the drawings that are required for describing the embodiments of the present application, the drawings in the following description corresponding to some embodiments of the present application, and other drawings may be obtained by those skilled in the art without inventive effort.
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method of processing transaction data according to the present application;
FIG. 3 is an example of a directed graph constructed according to the method of processing transaction data of the present application;
FIG. 4 is a schematic block diagram of one embodiment of a transaction data processing device according to the present application;
FIG. 5 is a schematic block diagram of one embodiment of a computer device according to the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and in the claims of the present application or in the drawings described above, are used for distinguishing between different objects and not for describing a particular order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the embodiments of the present application better understood by those skilled in the art, the technical embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture experts Group Audio Layer III, mpeg compression standard Audio Layer 3), MP4 players (Moving Picture experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that, the processing method of the transaction data provided in the embodiment of the present application is generally executed by a server, and accordingly, the processing device of the transaction data is generally disposed in the server.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow diagram of one embodiment of a method of processing transaction data is shown, in accordance with the present application. The transaction data processing method comprises the following steps:
s201, acquiring multiple transaction data in real time, determining transaction objects contained according to the multiple transaction data, determining a main transaction object and an additional transaction object according to the transaction objects, and constructing a directed graph based on the main transaction object and the additional transaction object;
s202, solving a strongly connected component of the directed graph based on a TARJAN algorithm, obtaining a plurality of additional transaction object sets according to the strongly connected component, and sequentially combining the additional transaction object sets with the main transaction objects respectively to obtain a plurality of transaction object combinations;
s203, judging whether each transaction object combination meets preset conditions or not, and if so, executing data operation corresponding to the preset conditions based on the preset conditions, wherein the preset conditions comprise risk control conditions and/or information pushing conditions.
The above steps are explained in the following.
For step S201, in this embodiment, a transaction data refers to a transaction order, and a transaction object refers to a product or a service related to the transaction order, such as an electronic product or a warranty service, an insurance product, and the like. In this embodiment, in a real-time transaction scenario, for example, when the e-commerce transaction platform develops a marketing campaign, a large amount of real-time transaction data is generated, and at this time, in order to manage and control the risk of the combined product during marketing and to push a product combination to a user, the generated transaction data may be acquired so as to perform subsequent data processing operations.
In some embodiments, said determining a primary transaction object and an additional transaction object from said transaction object comprises: determining the number of transaction objects contained in each transaction data; if the transaction object comprises at least two transaction objects, the main transaction object and the additional transaction object are determined according to the attribute information and/or the transaction frequency of the transaction objects.
Specifically, in the process of determining the main transaction object and the additional transaction object according to the transaction object, since one transaction data may correspond to one or more transaction objects, if the transaction data only corresponds to one transaction object, the transaction object can be directly determined to be the main transaction object.
If one transaction data corresponds to at least two transaction objects, in some embodiments, the transaction data may be specifically determined by obtaining attribute information of the transaction objects, where the attribute information may specifically be product information or service information or information identifying a product principal and subordinate category, for example, if an insurance policy includes a principal risk and an additional risk, the principal risk may be directly determined as the principal transaction object, and the additional risk is an additional transaction object, where the information identifying the product principal and subordinate category is information that transactions of some transaction objects depend on other transaction objects, for example, transactions of warranty services of electronic products depend on transactions of electronic products; in other embodiments, determining the main transaction object and the additional transaction objects according to the transaction objects may be determined by statistically sorting transaction frequencies of the transaction objects of all transaction data, specifically, the transaction objects with the transaction frequencies satisfying a preset threshold are used as the main transaction objects, and the remaining transaction objects are used as the additional transaction objects.
In a specific embodiment, the above manners of determining the main transaction object and the additional transaction object may be combined, and are not limited herein.
In some embodiments, said constructing a directed graph based on said primary transaction object and said additional transaction objects comprises: removing transaction data only containing a single transaction object from a plurality of items of transaction data, and sequentially constructing a directed graph of which the connecting line of the additional transaction objects points to the main transaction object for the rest transaction data; each additional trading object points to at least one main trading object, and when the same item of trading data contains at least two additional trading objects, a bidirectional connecting line is constructed between the additional trading objects in the same item of trading data.
In particular, one additional trading object may point to multiple main trading objects, multiple additional trading objects may point to the same main trading object, if the main transaction object and the additional transaction object correspond to the same transaction data, a directed line segment pointing to the main transaction object by the additional transaction object is constructed, if the main transaction object and two or more additional transaction objects correspond to the same transaction data, when the directional line segment of the additional trading object pointing to the main trading object is constructed, a bidirectional line segment between the two additional trading objects is also constructed, and the like is repeated until all the trading data are processed, that is, the constructed directed graph is completed, and the constructed directed graph can be as shown in fig. 3, wherein "main 1", "main 2", and the like shown by the dark dots in the graph represent main transaction objects, and "additional 1", "additional 2", "additional 3", and the like shown by the light dots represent additional transaction objects.
For step S202, after the directed graph is constructed, an additional transaction object combination needs to be extracted from the directed graph to obtain a category combination table of the additional transaction object, the directed graph shown in fig. 3 has a combination relationship of a plurality of transaction objects, and in this embodiment, the additional transaction object combination having a relationship is obtained through a TARJAN algorithm. In the process of obtaining an additional transaction object combination with a correlation relationship through a TARJAN algorithm, each dot in a directed graph is used as a vertex, if two vertexes in the directed graph reach each other, the two vertexes are Strongly Connected (strong Connected), if every two vertexes of the directed graph are Strongly Connected, the directed graph is a strong Connected graph, in the scene of the embodiment, every two vertexes of the directed graph cannot be Strongly Connected, but the situation that parts of vertexes are Strongly Connected exists, and the Connected graphs (or the maximum Strongly Connected sub-graphs) of the vertexes are extracted as a whole to obtain Strongly Connected Components (strong Connected Components). After the strongly connected component is obtained in this embodiment, the association list of the additional transaction objects can be generated through the vertex corresponding to the strongly connected component, so as to obtain a set of multiple additional transaction objects, for example, in fig. 3, the set of additional transaction objects obtained according to the strongly connected component of the additional transaction object is { attached 1, attached 4, attached 5}, { attached 2}, and { attached 3}, respectively.
In some embodiments, the sequentially combining the plurality of additional transaction object sets with the respective main transaction objects to obtain a plurality of transaction object combinations includes: traversing all the additional transaction object sets, traversing all the main transaction objects, if the additional transaction objects in the current additional transaction object set are in a communication relation with one of the main transaction objects, reserving the additional transaction objects in the current additional transaction object set, and adding the association relation between the current additional transaction object set and the currently traversed main transaction object, so as to obtain a plurality of transaction object combinations. Specifically, with reference to fig. 3, traversing all additional transaction object sets obtained according to the graph, traversing all main transaction objects, reserving a communication relationship between an additional transaction object in the additional transaction object set and the main transaction object, then adding an association relationship between the additional transaction object set and the currently traversed main transaction object, generating an association relationship list of the main transaction object and the additional transaction objects (the additional transaction objects are optional), and obtaining a plurality of transaction object combinations as follows:
{ Main 1+ attached 1/attached 4},
{ main 1+ attached 2},
{ Master 2+ attached 1/attached 4/attached 5},
{ principal 2+ attached 3 }.
In some embodiments, in said adding an association of the current set of additional transaction objects and the currently traversed to primary transaction object, the method further comprises: and judging whether the association condition is met between the additional transaction objects in the current additional transaction object set, if so, adding the association relationship between the current additional transaction object set and the currently traversed main transaction object, and otherwise, canceling the association. Specifically, taking the insurance policy as an example, when the main insurance and a plurality of additional insurance are associated to obtain the transaction object combination, the purchase of some additional insurance depends on the purchase share of another additional insurance to reach the specified quantity, and if the specified quantity is not reached, the association combination can not be realized, thereby avoiding obtaining the meaningless transaction object combination.
For step S203, for the risk control condition, the risk control condition is mainly used to determine whether the transaction object combination may cause a malicious purchase of the user, for example, in the marketing campaign, some sales-related promotional products are maliciously combined and the price is low, such transaction object combination needs to be risk-controlled, and the correspondingly executed data operation may be to adjust the transaction price of each transaction object, so that it cannot form a combination that may cause a risk transaction.
And for the information push condition, the information push condition is mainly used for judging whether the combination of the transaction objects can promote the occurrence of the transaction or whether the transaction can improve the transaction amount or whether the combined expected benefit data meets the requirement. In some embodiments, when the information push condition is satisfied, the method further comprises: and generating a main and auxiliary trading object category table according to the trading object combination, converting the main and auxiliary trading object category table into a label, and pushing the label to a target object. Specifically, for example, a user browses a certain product, displays a combined product related to the product on a user interface, and combines with historical browsing information of the user, so as to display a product in the related combined product, which is interested by the user, in front. And the marketing personnel can select to count and sort the actually generated product sales lists in real time, preferentially carry out high-income sales combination marketing, promote the sales, limit abnormal sales combinations, reduce subsequent loss and realize the category management of marketing products. In this embodiment, the master and auxiliary transaction object category table may also be used as an output of other marketing models or embodiments to enumerate the combination situation online in real time.
In some embodiments, after the obtaining the plurality of transaction object combinations, the method further comprises: and archiving and storing the finally obtained transaction object combination formed by the additional transaction object and the main transaction object. In the embodiment, the online transaction data is filed and sorted in real time, the labor input is reduced, and the transaction loss caused by untimely analysis and processing of the transaction data is avoided.
According to the transaction data processing method provided by the application, classification of the main transaction object and the additional transaction objects is carried out on the transaction objects, a directed graph is constructed on the basis of the main transaction object and the additional transaction objects, a plurality of additional transaction object sets are obtained, the additional transaction object sets are sequentially combined with the main transaction objects respectively to obtain a plurality of transaction object combinations, whether the transaction object combinations can cause risk transaction or not is judged according to whether the transaction object combinations meet preset conditions or not, or whether the transaction object combinations can be used as better transaction object combinations or not is judged, transaction risks can be controlled, and meanwhile effective information can be quickly mined from the transaction data to be pushed to users. The scheme of the application is suitable for carrying out statistical analysis on online transaction data aiming at large-scale marketing scenes, can be directly displayed on the data billboard, and can sequence the marketing effect according to specific transaction data, help to really know the marketing condition of a user, avoid the risk of malicious bill swiping, and promote the marketing and the achievement. In addition, the scheme of the application can also be used as an artificial intelligence mode to automatically file the categories with low time efficiency requirements.
It should be emphasized that, in order to further ensure the privacy and security of the information, the transaction data and the related information of the obtained transaction object combination in the above embodiments may also be stored in the nodes of a block chain. The block chain referred by the application 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. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware associated with computer readable instructions, which can be stored in a computer readable storage medium, and when executed, the processes of the embodiments of the methods described above can be included. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
With further reference to fig. 4, as an implementation of the method shown in fig. 2, the present application provides an embodiment of a transaction data processing apparatus, which corresponds to the embodiment of the method shown in fig. 2, and which can be applied to various electronic devices.
As shown in fig. 4, the transaction data processing apparatus according to this embodiment includes: a building module 401, an object combination generating module 402, and a judgment processing module 403.
The construction module 401 is configured to obtain multiple transaction data in real time, determine a transaction object included according to the multiple transaction data, determine a main transaction object and an additional transaction object according to the transaction object, and construct a directed graph based on the main transaction object and the additional transaction object; the object combination generating module 402 is configured to obtain a strongly connected component of the directed graph based on a TARJAN algorithm, obtain a plurality of additional transaction object sets according to the strongly connected component, and sequentially combine the plurality of additional transaction object sets with each of the main transaction objects, respectively, to obtain a plurality of transaction object combinations; the judgment processing module 403 is configured to judge whether each of the transaction object combinations meets a preset condition, and if yes, execute a data operation corresponding to the preset condition based on the preset condition, where the preset condition includes a risk control condition and/or an information pushing condition.
In this embodiment, a transaction data refers to a transaction order, and the transaction object is a product or service related to the transaction order, such as an electronic product, a warranty service, an insurance product, and the like. In this embodiment, in a real-time transaction scenario, for example, when the e-commerce transaction platform develops a marketing campaign, a large amount of real-time transaction data is generated, and at this time, in order to manage and control the risk of the combined product during marketing and to push a product combination to a user, the generated transaction data may be acquired so as to perform subsequent data processing operations.
In some embodiments, the building module 401 is specifically configured to, when determining the main transaction object and the additional transaction object according to the transaction object: determining the number of transaction objects contained in each transaction data; if the transaction object comprises at least two transaction objects, the main transaction object and the additional transaction object are determined according to the attribute information and/or the transaction frequency of the transaction objects. For the process of determining the main transaction object and the additional transaction object according to the transaction object, reference is made to the above-mentioned method embodiment, which is not expanded herein.
In some embodiments, when the building module 401 builds the directed graph based on the main transaction object and the additional transaction object, it is specifically configured to: removing transaction data only containing a single transaction object from a plurality of items of transaction data, and sequentially constructing a directed graph of which the connecting line of the additional transaction objects points to the main transaction object for the rest transaction data; each additional trading object points to at least one main trading object, and when the same item of trading data contains at least two additional trading objects, a bidirectional connecting line is constructed between the additional trading objects in the same item of trading data. Reference is made in particular to the above-described method embodiments, which are not to be construed as open ended herein.
In this embodiment, after the building module 401 builds the directed graph, the additional transaction object combination needs to be extracted from the directed graph to obtain the category combination table of the additional transaction object, the directed graph shown in fig. 3 has a combination relationship of a plurality of transaction objects, in this embodiment, the additional transaction object combination having a relationship is obtained through the TARJAN algorithm, and the specific process may refer to the above method embodiment and is not expanded here.
In some embodiments, the object combination generating module 402 sequentially combines the plurality of additional transaction object sets with the main transaction objects, respectively, to obtain a plurality of transaction object combinations, which are specifically used for: traversing all the additional transaction object sets, traversing all the main transaction objects, if the additional transaction objects in the current additional transaction object set are in a communication relation with one of the main transaction objects, reserving the additional transaction objects in the current additional transaction object set, and adding the association relation between the current additional transaction object set and the currently traversed main transaction object, so as to obtain a plurality of transaction object combinations. Reference is made in particular to the above-described method embodiments, which are not to be construed as open ended herein.
In some embodiments, the object combination generation module 402, when adding the association relationship between the current set of additional transaction objects and the currently traversed primary transaction object, is further configured to: and judging whether the association condition is met between the additional transaction objects in the current additional transaction object set, if so, adding the association relationship between the current additional transaction object set and the currently traversed main transaction object, and otherwise, canceling the association. Reference is made in particular to the above-described method embodiments, which are not to be construed as open ended herein.
In this embodiment, for the risk control condition, the risk control condition is mainly used to determine whether the transaction object combination may cause malicious purchase of the user, for example, in the marketing campaign, some sales promotion products related to the sales are maliciously combined and the price is low, such transaction object combination needs risk control, and the correspondingly executed data operation may be to adjust the transaction price of each transaction object, so that it is not possible to form a combination that may cause risk transaction.
And for the information push condition, the information push condition is mainly used for judging whether the combination of the transaction objects can promote the occurrence of the transaction or whether the transaction can improve the transaction amount or whether the combined expected benefit data meets the requirement. In some embodiments, when the information pushing condition is satisfied, the determining processing module 403 is further configured to: and generating a main and auxiliary trading object category table according to the trading object combination, converting the main and auxiliary trading object category table into a label, and pushing the label to a target object. Reference is made in particular to the above-described method embodiments, which are not to be construed as open ended herein.
In some embodiments, after the object combination generation module 402 generates the plurality of transaction object combinations, the object combination generation module 402 is further configured to: and archiving and storing the finally obtained transaction object combination formed by the additional transaction object and the main transaction object. In the embodiment, the online transaction data is filed and sorted in real time, the labor input is reduced, and the transaction loss caused by untimely analysis and processing of the transaction data is avoided.
According to the processing device of the transaction data, classification of the main transaction object and the additional transaction objects is carried out on the transaction objects, the directed graph is constructed on the basis of the main transaction object and the additional transaction objects, a plurality of additional transaction object sets are obtained, then the additional transaction object sets are sequentially combined with the main transaction objects respectively to obtain a plurality of transaction object combinations, whether the transaction object combinations can cause risk transaction or not is judged according to whether the transaction object combinations meet preset conditions or not, or whether the transaction object combinations can be used as better transaction object combinations or not is judged, transaction risks can be controlled, and meanwhile effective information can be rapidly mined from the transaction data to be pushed to users. The scheme of the application is suitable for carrying out statistical analysis on online transaction data aiming at large-scale marketing scenes, can be directly displayed on the data billboard, and can sequence the marketing effect according to specific transaction data, help to really know the marketing condition of a user, avoid the risk of malicious bill swiping, and promote the marketing and the achievement. In addition, the scheme of the application can also be used as an artificial intelligence mode to automatically file the categories with low time efficiency requirements.
In order to solve the technical problem, an embodiment of the present application further provides a computer device. Referring to fig. 5, fig. 5 is a block diagram of a basic structure of a computer device according to the present embodiment. The computer device 5 includes a memory 51, a processor 52, and a network interface 53, which are communicatively connected to each other through a system bus, where the memory 51 stores computer-readable instructions, and the processor 52 implements the steps of the transaction data processing method in the above method embodiment when executing the computer-readable instructions, and has beneficial effects corresponding to the above transaction data processing method, which are not expanded herein.
It is noted that only the computer device 5 having the memory 51, the processor 52, and the network interface 53 is shown, but it is understood that not all of the illustrated components are required to be implemented, and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
In the present embodiment, the memory 51 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the memory 51 may be an internal storage unit of the computer device 5, such as a hard disk or a memory of the computer device 5. In other embodiments, the memory 51 may also be an external storage device of the computer device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the computer device 5. Of course, the memory 51 may also comprise both an internal storage unit of the computer device 5 and an external storage device thereof. In this embodiment, the memory 51 is generally used for storing an operating system installed in the computer device 5 and various types of application software, such as computer readable instructions corresponding to the above-mentioned transaction data processing method. Further, the memory 51 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 52 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 52 is typically used to control the overall operation of the computer device 5. In this embodiment, the processor 52 is configured to execute computer readable instructions stored in the memory 51 or process data, for example, execute computer readable instructions corresponding to a processing method of the transaction data.
The network interface 53 may comprise a wireless network interface or a wired network interface, and the network interface 53 is generally used for establishing communication connections between the computer device 5 and other electronic devices.
The present application further provides another embodiment, which is to provide a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, which are executable by at least one processor, so as to cause the at least one processor to execute the steps of the transaction data processing method, and have the corresponding beneficial effects, which are not expanded herein, of the transaction data processing method.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical embodiments of the present application may be essentially or partially implemented in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention and do not limit the scope of the invention. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields and are within the protection scope of the present application.

Claims (10)

1. A method of processing transaction data, comprising the steps of:
acquiring multiple transaction data in real time, determining transaction objects contained according to the multiple transaction data, determining a main transaction object and an additional transaction object according to the transaction objects, and constructing a directed graph based on the main transaction object and the additional transaction object;
based on TARJAN algorithm, obtaining a strongly connected component of the directed graph, obtaining a plurality of additional transaction object sets according to the strongly connected component, and sequentially combining the additional transaction object sets with the main transaction objects respectively to obtain a plurality of transaction object combinations;
and judging whether each transaction object combination meets preset conditions or not, and if so, executing data operation corresponding to the preset conditions based on the preset conditions, wherein the preset conditions comprise risk control conditions and/or information push conditions.
2. The method of processing transaction data of claim 1, wherein said determining a primary transaction object and an additional transaction object from said transaction object comprises:
determining the number of transaction objects contained in each transaction data;
if the transaction object comprises at least two transaction objects, the main transaction object and the additional transaction object are determined according to the attribute information and/or the transaction frequency of the transaction objects.
3. The method of processing transaction data of claim 2, wherein said constructing a directed graph based on said primary transaction object and said additional transaction objects comprises:
removing transaction data only containing a single transaction object from a plurality of items of transaction data, and sequentially constructing a directed graph of which the connecting line of the additional transaction objects points to the main transaction object for the rest transaction data;
each additional trading object points to at least one main trading object, and when the same item of trading data contains at least two additional trading objects, a bidirectional connecting line is constructed between the additional trading objects in the same item of trading data.
4. The method for processing transaction data according to any one of claims 1 to 3, wherein the combining the plurality of additional transaction object sets with the respective main transaction objects in sequence to obtain a plurality of transaction object combinations comprises:
traversing all the additional transaction object sets, traversing all the main transaction objects, if the additional transaction objects in the current additional transaction object set are in a communication relation with one of the main transaction objects, reserving the additional transaction objects in the current additional transaction object set, and adding the association relation between the current additional transaction object set and the currently traversed main transaction object, so as to obtain a plurality of transaction object combinations.
5. The method of processing transaction data of claim 4, wherein in said adding an association between the current set of additional transaction objects and the currently traversed primary transaction object, the method further comprises:
and judging whether the association condition is met between the additional transaction objects in the current additional transaction object set, if so, adding the association relationship between the current additional transaction object set and the currently traversed main transaction object, and otherwise, canceling the association.
6. A method of processing transaction data according to any of claims 1 to 3, wherein after said obtaining a plurality of transaction object combinations, the method further comprises: and archiving and storing the finally obtained transaction object combination formed by the additional transaction object and the main transaction object.
7. The method for processing transaction data according to any one of claims 1 to 3, wherein when the information pushing condition is satisfied, the method further comprises: and generating a main and auxiliary trading object category table according to the trading object combination, converting the main and auxiliary trading object category table into a label, and pushing the label to a target object.
8. An apparatus for processing transaction data, comprising:
the construction module is used for acquiring multiple transaction data in real time, determining transaction objects contained according to the multiple transaction data, determining a main transaction object and an additional transaction object according to the transaction objects, and constructing a directed graph based on the main transaction object and the additional transaction object;
an object combination generating module, configured to obtain a strongly connected component of the directed graph based on a TARJAN algorithm, obtain a plurality of additional transaction object sets according to the strongly connected component, and sequentially combine the plurality of additional transaction object sets with each of the main transaction objects, respectively, to obtain a plurality of transaction object combinations;
and the judgment processing module is used for judging whether each transaction object combination meets a preset condition or not, and if so, executing data operation corresponding to the preset condition based on the preset condition, wherein the preset condition comprises a risk control condition and/or an information push condition.
9. A computer device comprising a memory having computer readable instructions stored therein and a processor which when executed implements the steps of a method of processing transaction data according to any of claims 1 to 7.
10. A computer-readable storage medium, having computer-readable instructions stored thereon, which, when executed by a processor, implement the steps of the method of processing transaction data according to any one of claims 1 to 7.
CN202011148653.6A 2020-10-23 2020-10-23 Transaction data processing method and device, computer equipment and storage medium Pending CN112258195A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011148653.6A CN112258195A (en) 2020-10-23 2020-10-23 Transaction data processing method and device, computer equipment and storage medium
PCT/CN2020/135606 WO2022011947A1 (en) 2020-10-23 2020-12-11 Transaction data processing method and apparatus, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011148653.6A CN112258195A (en) 2020-10-23 2020-10-23 Transaction data processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112258195A true CN112258195A (en) 2021-01-22

Family

ID=74261819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011148653.6A Pending CN112258195A (en) 2020-10-23 2020-10-23 Transaction data processing method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112258195A (en)
WO (1) WO2022011947A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19616712A1 (en) * 1996-04-26 1997-11-06 Philips Patentverwaltung Determining rings within clusters in network planning method
CN103236013A (en) * 2013-05-08 2013-08-07 南京大学 Stock market data analysis method based on key stock set identification
CN103838811A (en) * 2012-11-20 2014-06-04 Sap股份公司 Circular transaction path detection
CN108766535A (en) * 2018-05-28 2018-11-06 天津中德应用技术大学 A kind of intelligence personal health management system
CN109948704A (en) * 2019-03-20 2019-06-28 中国银联股份有限公司 A kind of transaction detection method and apparatus
WO2019183156A1 (en) * 2018-03-23 2019-09-26 The Bartley J. Madden Foundation Machine-learning based systems and methods for optimizing search engine results
CN111340578A (en) * 2018-12-18 2020-06-26 北京京东尚科信息技术有限公司 Method, device, medium and electronic equipment for generating commodity association relationship
CN111476662A (en) * 2020-04-13 2020-07-31 中国工商银行股份有限公司 Anti-money laundering identification method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574649B (en) * 2015-12-10 2021-05-28 西安交通大学 Tax payer tax evasion suspicion group detection method based on multi-stage MapReduce model
CN107240005A (en) * 2017-06-13 2017-10-10 携程旅游网络技术(上海)有限公司 The commending system and method for air ticket addition product
CN111738786A (en) * 2019-04-24 2020-10-02 北京京东尚科信息技术有限公司 Method, system, apparatus and readable storage medium for building a combination of commodities
CN110335121A (en) * 2019-07-10 2019-10-15 中国民航信息网络股份有限公司 The marketing method and sale device of Additional Services product
CN111612391B (en) * 2020-04-02 2023-04-07 杭州电子科技大学 Logistics sorting equipment commodity placing method based on FP-growth

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19616712A1 (en) * 1996-04-26 1997-11-06 Philips Patentverwaltung Determining rings within clusters in network planning method
CN103838811A (en) * 2012-11-20 2014-06-04 Sap股份公司 Circular transaction path detection
CN103236013A (en) * 2013-05-08 2013-08-07 南京大学 Stock market data analysis method based on key stock set identification
WO2019183156A1 (en) * 2018-03-23 2019-09-26 The Bartley J. Madden Foundation Machine-learning based systems and methods for optimizing search engine results
CN108766535A (en) * 2018-05-28 2018-11-06 天津中德应用技术大学 A kind of intelligence personal health management system
CN111340578A (en) * 2018-12-18 2020-06-26 北京京东尚科信息技术有限公司 Method, device, medium and electronic equipment for generating commodity association relationship
CN109948704A (en) * 2019-03-20 2019-06-28 中国银联股份有限公司 A kind of transaction detection method and apparatus
CN111476662A (en) * 2020-04-13 2020-07-31 中国工商银行股份有限公司 Anti-money laundering identification method and device

Also Published As

Publication number Publication date
WO2022011947A1 (en) 2022-01-20

Similar Documents

Publication Publication Date Title
CN112365202B (en) Method for screening evaluation factors of multi-target object and related equipment thereof
WO2022142001A1 (en) Target object evaluation method based on multi-score card fusion, and related device therefor
CN112861662B (en) Target object behavior prediction method based on face and interactive text and related equipment
CN113220734A (en) Course recommendation method and device, computer equipment and storage medium
CN114398477A (en) Policy recommendation method based on knowledge graph and related equipment thereof
CN112288163A (en) Target factor prediction method of target object and related equipment
CN112529477A (en) Credit evaluation variable screening method, device, computer equipment and storage medium
CN113377372A (en) Business rule analysis method and device, computer equipment and storage medium
CN110309142A (en) The method and apparatus of regulation management
CN114281552A (en) Task scheduling method, device, equipment and medium based on directed acyclic graph
CN113902574A (en) Protocol data processing method, device, computer equipment and storage medium
CN113283222A (en) Automatic report generation method and device, computer equipment and storage medium
CN116956326A (en) Authority data processing method and device, computer equipment and storage medium
CN112860662A (en) Data blood relationship establishing method and device, computer equipment and storage medium
CN114528443A (en) Knowledge graph-based information mining method and related equipment thereof
CN115545753A (en) Partner prediction method based on Bayesian algorithm and related equipment
CN112258195A (en) Transaction data processing method and device, computer equipment and storage medium
CN115578170A (en) Financial batch certificate making method, device, equipment and storage medium
CN113297436B (en) User policy distribution method and device based on relational graph network and electronic equipment
CN114925275A (en) Product recommendation method and device, computer equipment and storage medium
CN114219664A (en) Product recommendation method and device, computer equipment and storage medium
CN113283759A (en) Account risk portrait updating method, device, equipment and storage medium
CN114066603A (en) Post-loan risk early warning method and device, electronic equipment and computer readable medium
CN113779198A (en) Electronic business card generating method, device, equipment and medium based on artificial intelligence
CN111782208A (en) Index early warning method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210122