Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification embodiment, below in conjunction with this
Attached drawing in specification embodiment is described in detail the technical solution in this specification embodiment, it is clear that described
Embodiment is only a part of the embodiment of this specification, instead of all the embodiments.The embodiment of base in this manual,
Those of ordinary skill in the art's every other embodiment obtained, all should belong to the range of protection.
In modern society, it is more and more common that online trading is carried out by network, though however online trading is carried out by network
It is so convenient, but improper use can also bring property safety problem to user, and many criminals start with various means and steal brush
User's property, also, these criminals usually tie with clique, have the division of labor, in an organized way implement batch robber's brush behavior.
In current air control system, steal that brush transaction event takes for the batch of Dao Shua clique is " subsequent intercept "
Management and control measures, specifically, using relevant database to transaction event in the online trading event namely history line occurred into
The storage of row data, then, in offline environment, according to the control period of T+N, such as T+1, passes through SQL code relational data
Transaction event is associated in the history line stored in library, so that obtaining the batch manipulated by Dao Shua clique steals brush transaction event,
It is subsequent, then the line betided in T+ (N+1) this time limit can be submitted according to the correlated characteristic that the batch steals brush transaction event
Easy event is managed.
It can be seen that current air control system timeliness is lower, the robber manipulated by Dao Shua clique can not be identified in time
Brush transaction event also just can not in real time intercept robber's brush transaction event, further also can not just ensure the property of user
Safety.
To solve the above-mentioned problems, this specification embodiment proposes a kind of online trading control method, to realize on line
In environment, identification and prevention and control are carried out for by the online trading event that Dao Shua clique manipulates in time, ensures the wealth of user as far as possible
Produce safety.It is as follows, following embodiments are shown, this method is described in detail:
It referring to Figure 1, is a kind of embodiment of online trading control method shown in one exemplary embodiment of this specification
Flow chart, method includes the following steps:
Step 102: the traded elements of current online trading event are obtained based on preset element type.
In this specification embodiment, for the air control system of online trading, preset element type may include
User and/or the media of exchange etc., wherein user can identify the user identity for initiating online trading event, and the media of exchange then may be used
With the transaction associated media of transaction event on tag line, for example, may include one or more of: bank's card number, electronics postal
Case, equipment (equipment for initiating the online trading event), payment account number, shroff account number, shipping address etc..
It will be appreciated by persons skilled in the art that the element of above-mentioned described preset kind is submitted only for line
Citing shown by easy air control system can also be in practical applications other kinds of element, also, for different
Application scenarios, preset kind can also be different, and this specification embodiment is to this and with no restriction.
In this specification embodiment, when wired upper transaction event occurs, then the online trading event is obtained first
The online trading event is known as current transaction event, what be will acquire is pre- for convenience by the element of predicted elemental type
If the element of element type is known as traded elements.
Step 104: using preset community discovery algorithm on the traded elements and history line of current online trading event
The traded elements of transaction event carry out community's division, obtain community belonging to the traded elements of current online trading event, wherein
Community belonging to this includes at least one community.
Community can reflect out the locality characteristic of individual behavior and its mutual incidence relation, example in network
Such as, there is incidence relation, and identical equipment, E-mail address, shipping address can be used in the closer user of incidence relation
Etc. the media of exchange carry out online trading, that is, there are incidence relations before these media of exchange and user, be based on this, then can be with
By with incidence relation the media of exchange and user regard a community as, on line trade scene in, the community then can express
The batch of Dao Shua clique steals brush transaction.
Based on foregoing description, in this specification embodiment, can using traded elements described in above-mentioned steps 102 as
Transaction event between node is modeled as having no right side, and carries out tax power for traded elements by node, wherein, can under original state
To carry out tax power as traded elements according to business experience by technical staff, later, based on given weight, preset community is utilized
It is drawn it was found that algorithm carries out community to the traded elements of transaction event on the traded elements and history line of current online trading event
Point, it is divided by community, at least one available community, in turn, then the transaction of available current online trading event is first
Community belonging to element, wherein the community belonging to this includes at least one community.
In one embodiment, above-mentioned preset community discovery algorithm can for improved FU (Fast Unfolding, fastly
Speed expansion) the improved FU method can be known as FUA (Fast Unfolding for convenience by method
Advanced, abbreviation FUA) method.
Fig. 2 is referred to, is the embodiment flow chart of FUA method implementation procedure in this specification embodiment, the implementation procedure
It may comprise steps of:
Step 202: for any traded elements of current online trading event, calculating separately traded elements to each community
The first modularity increment, community belonging to traded elements is determined according to the first modularity increment, and the traded elements are added
In community belonging to it, wherein community is to carry out community's division using traded elements of the FUA method to transaction event in history line
It obtains.
Step 204: constructing transaction relationship figure for community as node.
Step 206: for any node in transaction relationship figure, calculating separately node to the second of its each neighbor node
Modularity increment determines destination node to be combined and merges to destination node, obtain more according to the second modularity increment
Transaction relationship figure after new.
Step 208: for any traded elements of current online trading event, calculating separately traded elements to updated
The third modularity increment and yield value of each node in transaction relationship figure.
Step 210: the target transaction element of community to be changed being determined according to third modularity increment and yield value, and is changed
Community belonging to target transaction element.
It is as follows, above-mentioned steps 202 to step 210 are illustrated:
FUA algorithm described in step 202 to step 210 can generally be divided into three processes, and respectively node adds
Enter community, community merges, the change affiliated community of node.
For " node addition community " this process, specifically: for any of current online trading event
Traded elements, calculate the traded elements to each community modularity increment, wherein for convenience, by mould herein
Lumpiness increment is known as the first modularity increment, and " community " mentioned here refers to using preset community discovery algorithm, to history
The traded elements of online trading event carry out community's division, obtained community;In next step, it determines to be worth maximum first modularity
Increment;Then, then the traded elements can be added in the first maximum community of modularity increment.It is handled by this kind, it can
A community is added in any traded elements of current online trading event.
Secondly, for " community's merging " this process, specifically: the community currently divided is constructed as node and is handed over
Easy relational graph, and the side of the transaction relationship figure is established, and assign weight for traded elements;In next step, for transaction relationship figure
In any node, calculate separately its arrive its neighbor node modularity increment, for convenience, by herein modularity increase
Amount is known as the second modularity increment;If the second modularity increment of the node to one of neighbor node reaches preset increments threshold
The node, then can be determined as destination node to be combined, then, which be done with the neighbor node and merges place by value
Reason.It is handled by this kind, available updated transaction relationship figure.
For " the change affiliated community of node " this process, specifically: again for current online trading thing
Any traded elements of part, the modularity for calculating separately out the traded elements each node into updated transaction relationship figure increase
Modularity increment herein is known as third modularity increment for convenience by amount and yield value, and wherein yield value is then the
Difference between three modularity increments and the first modularity increment can be reflected and be carried out accordingly to the affiliated community of traded elements
Change operation after obtained community division result superiority and inferiority estimate situation, usually, if the yield value of traded elements is small
In its first modularity increment, then the traded elements can be determined as to the target transaction element of community to be changed, then changed
Community belonging to the target transaction element.
By the processing of three above process, society belonging to each traded elements of current online trading event can be obtained
Area.
It will be appreciated by persons skilled in the art that using FUA method to current online trading event described in above-mentioned
Traded elements and history line on transaction event traded elements carry out community divide as just citing, in practical applications,
Can also using other community discovery algorithms, such as label propagation clustering algorithm, FU algorithm etc., this specification embodiment to this not
It is restricted.
Step 106: according to community belonging to the traded elements of current online trading event, determining current online trading event
Corresponding target community.
In this specification embodiment, if belonging to the traded elements for the current online trading event that step 104 is determined
Community only include a community, then this community can be determined as deserving the corresponding target community of transaction event on front.
If community belonging to the traded elements for the current online trading event that step 104 is determined includes more than two societies
Area can then be directed to any community therein, calculate separately out its traded elements for deserving transaction event on front for including
Then the maximum community of the sum of corresponding weight is determined as the corresponding target community of current online trading event by the sum of weight.
As an example it is assumed that current online trading event has 4 traded elements, it is denoted as element 1, element 2, element respectively
3, element 4, wherein element 1 to element 3 belongs to community 1, and element 4 belongs to community 5, and 4 respective weights of traded elements are such as
Shown in Fig. 3, it is based on the Fig. 3, for community 1, the sum of calculated weight of institute is 3 (1+1+1), and for community 5, institute is calculated
The sum of weight is 2, thus, as described above, it is believed that the corresponding target community of currently online trading event is community 1.
Step 108: the characteristic value of target community is obtained based on preset characteristic type.
In this specification embodiment, preset characteristic type may include following one of them or multinomial: community's scale,
New user's accounting, black concentration of specimens, the transaction frequency, behavioural characteristic, with the card frequency.
Wherein, community's scale can refer to number of users involved in community, bank card quantity, number of devices, shroff account number
Etc..
New user's accounting can refer to that the quantity of new user involved in community accounts for the ratio of total number of users, wherein new user
It can refer to the user registered at the appointed time section, which can be for current time for the previous period, for example, working as
The user registered in the last week at preceding moment is new user.
Black concentration of specimens can refer to that black sample size in community accounts for the ratio of total number of samples amount, for example, as it is known that brushed by stealing
The shroff account number quantity of clique's manipulation accounts for the ratio of total shroff account number.
The transaction frequency can refer to the Bank Account Number (or payment account number or shroff account number) for including in community in preset time period
The interior number that online trading occurs.
Behavioural characteristic can then symbolize the trading activity feature of online trading event involved in community, e.g. purchase
Object, the behaviors such as transfer accounts.
The user for including in community can be worth with the card frequency and account for transaction amount amount using the quantity that bank card is traded
Ratio.
As for the detailed process for the characteristic value for obtaining features described above type, this is no longer described in detail in this specification embodiment, together
When, it will be appreciated by persons skilled in the art that above-mentioned described characteristic type is as just citing, in practical applications,
There may also be other characteristic types, this specification embodiment to this with no restriction.
Step 110: current online trading event is handled according to the characteristic value of target community.
In this specification embodiment, then current online trading event can be handled according to the characteristic value of target community, lifted
For example, it is assumed that the black concentration of specimens of target community is higher, then, it may be considered that deserving transaction event on front is robber's brush group
The batch of partner's manipulation steals brush transaction event, then can intercept and deserve transaction event on front, to avoid user's property loss.
The detailed process of current online trading event is handled according to the characteristic value of target community as other, this specification is real
Applying example, no longer citing is described in detail one by one.
In addition, in this specification embodiment generalized character propagation algorithm can also be utilized according to the preset amendment period
The weight of traded elements is adjusted, so that the weight of traded elements meets practical business status, for example, trading in the past
In, the shipping address of user is usually user's home address or business address, however, with express delivery cabinet, withholding the industry such as a little
The development of business, the shipping address of user can be express delivery cabinet or withhold a little that this also results in multiple users to use identical place of acceptance
The case where location, occurs, then, then can suitably reduce the weight of " shipping address " this traded elements so that " shipping address " this
One traded elements reduce the influence power of community division result.It can be seen that being handled by this kind, may be implemented existing according to business
Shape obtains more accurately community division result.
Technical solution provided by this specification embodiment, by obtaining current online trading based on preset element type
The traded elements of event, using preset community discovery algorithm on the traded elements and history line of current online trading event
The traded elements of transaction event carry out community's division, obtain community belonging to the traded elements of current online trading event, according to
Community belonging to the traded elements of current online trading event, determines the corresponding target community of current online trading event, is based on
Preset characteristic type obtains the characteristic value of target community, handles current online trading event according to the characteristic value of target community,
It may be implemented in environment on line, carry out identification and prevention and control for by the online trading event that Dao Shua clique manipulates in time, to the greatest extent may be used
It can ensure the property safety of user.
Corresponding to above method embodiment, this specification embodiment also provides a kind of online trading control device, referring to fig. 4
It is shown, it is a kind of embodiment block diagram of online trading control device shown in one exemplary embodiment of this specification, which can
To include: that element obtains module 41, community's division module 42, community's determining module 43, characteristic value acquisition module 44, processing module
45。
Wherein, element obtains module 41, can be used for obtaining current online trading event based on preset element type
Traded elements;
Community's division module 42 can be used for using preset community discovery algorithm to the current online trading event
The traded elements of transaction event carry out community's division on traded elements and history line, obtain the current online trading event
Community belonging to traded elements, wherein the community belonging to described includes at least one community;
Community's determining module 43 can be used for the community according to belonging to the traded elements of the current online trading event,
Determine the corresponding target community of the current online trading event;
Characteristic value acquisition module 44 can be used for obtaining the characteristic value of the target community based on preset characteristic type;
Processing module 45 can be used for handling the current online trading event according to the characteristic value of the target community.
In one embodiment, community's division module 42 may include (being not shown in Fig. 4):
First computational submodule calculates separately institute for being directed to any traded elements of the current online trading event
Traded elements are stated to the first modularity increment of each community, the traded elements institute is determined according to the first modularity increment
The community of category, and the traded elements are added into the community belonging to it, wherein the community is to be sent out using preset community
Existing algorithm carries out community to the traded elements of transaction event in history line and divides to obtain;
Submodule is constructed, for constructing transaction relationship figure for the community as node;
Third computational submodule, for calculating separately the node and arriving for any node in the transaction relationship figure
Second modularity increment of its each neighbor node determines destination node to be combined simultaneously according to the second modularity increment
The destination node is merged, updated transaction relationship figure is obtained;
4th computational submodule calculates separately institute for being directed to any traded elements of the current online trading event
State the third modularity increment and yield value of traded elements each node into the updated transaction relationship figure;
Submodule is changed, for determining the target transaction of community to be changed according to the third modularity increment and yield value
Element, and change community belonging to the target transaction element.
In one embodiment, community's determining module 43 specifically can be used for:
If community belonging to the traded elements includes a community, community belonging to the traded elements is determined as
The corresponding target community of the current online trading event;
If community belonging to the traded elements includes more than two communities, it is directed to any affiliated community, calculates it
Including the current online trading event the sum of the weight of traded elements;The maximum community of the sum of corresponding weight is determined
For the corresponding target community of the current online trading event.
In one embodiment, described device can also include (being not shown in Fig. 4):
Correction module is used for according to the preset amendment period, using generalized character propagation algorithm to the weight of traded elements
It is adjusted.
In one embodiment, the element type includes at least following one of them:
User, the media of exchange;
The media of exchange includes at least following one of them or multinomial:
Bank's card number, E-mail address, equipment, payment account number, shroff account number, shipping address.
In one embodiment, the characteristic type includes at least following one of them or multinomial:
Community's scale, new user's accounting, black concentration of specimens, the transaction frequency, behavioural characteristic, with the card frequency.
It is obtained it is understood that element obtains module 41, community's division module 42, community's determining module 43, characteristic value
The module of module 44 and processing module 45 as five kinds of functional independences can both configure in a device simultaneously as shown in Figure 4,
It can also individually configure in a device, therefore structure shown in Fig. 4 should not be construed as to this specification example scheme
It limits.
In addition, the function of modules and the realization process of effect are specifically detailed in the above method corresponding step in above-mentioned apparatus
Rapid realization process, details are not described herein.
This specification embodiment also provides a kind of computer equipment, includes at least memory, processor and is stored in
On reservoir and the computer program that can run on a processor, wherein processor is realized on line above-mentioned when executing described program
Transaction control method, this method include at least: the traded elements of current online trading event are obtained based on preset element type;
Friendship using preset community discovery algorithm to transaction event on the traded elements and history line of the current online trading event
Easy element carries out community's division, obtains community belonging to the traded elements of the current online trading event, wherein belonging to described
Community include at least one community;According to community belonging to the traded elements of the current online trading event, determine described in
The corresponding target community of currently online trading event;The characteristic value of the target community is obtained based on preset characteristic type;Root
The current online trading event is handled according to the characteristic value of the target community.
Fig. 5 shows one kind provided by this specification embodiment and more specifically calculates device hardware structural schematic diagram,
The equipment may include: processor 510, memory 520, input/output interface 530, communication interface 540 and bus 550.Wherein
Processor 510, memory 520, input/output interface 530 and communication interface 540 between the realization of bus 550 by setting
Standby internal communication connection.
Processor 510 can use general CPU (Central Processing Unit, central processing unit), micro process
Device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one or
The modes such as multiple integrated circuits are realized, for executing relative program, to realize technical solution provided by this specification embodiment.
Memory 520 can use ROM (Read Only Memory, read-only memory), RAM (RandomAccess
Memory, random access memory), static storage device, the forms such as dynamic memory realize.Memory 520 can store
Operating system and other applications are realizing technical solution provided by this specification embodiment by software or firmware
When, relevant program code is stored in memory 520, and execution is called by processor 510.
Input/output interface 530 is for connecting input/output module, to realize information input and output.Input and output/
Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.Wherein
Input equipment may include keyboard, mouse, touch screen, microphone, various kinds of sensors etc., output equipment may include display,
Loudspeaker, vibrator, indicator light etc..
Communication interface 540 is used for connection communication module (not shown), to realize the communication of this equipment and other equipment
Interaction.Wherein communication module can be realized by wired mode (such as USB, cable etc.) and be communicated, can also be wirelessly
(such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 550 includes an access, in various components (such as the processor 510, memory 520, input/output of equipment
Interface 530 and communication interface 540) between transmit information.
It should be noted that although above equipment illustrates only processor 510, memory 520, input/output interface
530, communication interface 540 and bus 550, but in the specific implementation process, which can also include realizing to operate normally
Necessary other assemblies.In addition, it will be appreciated by those skilled in the art that, it can also be only comprising realizing in above equipment
Component necessary to this specification example scheme, without including all components shown in figure.
This specification embodiment also provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
Online trading control method above-mentioned is realized when sequence is executed by processor.This method includes at least: being based on preset element type
Obtain the traded elements of current online trading event;Using preset community discovery algorithm to the current online trading event
The traded elements of transaction event carry out community's division on traded elements and history line, obtain the current online trading event
Community belonging to traded elements, wherein the community belonging to described includes at least one community;According to the current online trading thing
Community belonging to the traded elements of part determines the corresponding target community of the current online trading event;Based on preset feature
Type obtains the characteristic value of the target community;The current online trading thing is handled according to the characteristic value of the target community
Part.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification
Embodiment can be realized by means of software and necessary general hardware platform.Based on this understanding, this specification is implemented
Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words,
The computer software product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are to make
It is each to obtain computer equipment (can be personal computer, server or the network equipment etc.) execution this specification embodiment
Method described in certain parts of a embodiment or embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part description
Module may or may not be physically separated, can be each module when implementing this specification example scheme
Function realize in the same or multiple software and or hardware.Can also select according to the actual needs part therein or
Person's whole module achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not the case where making the creative labor
Under, it can it understands and implements.
The above is only the specific embodiment of this specification embodiment, it is noted that for the general of the art
For logical technical staff, under the premise of not departing from this specification embodiment principle, several improvements and modifications can also be made, this
A little improvements and modifications also should be regarded as the protection scope of this specification embodiment.