One-person ID processing method and device, medium and computer program product
By using the distributed graph database and GraphFrames interface in fan ID processing, combined with the weakly connected component algorithm, the efficiency and stability problems of the single-point graph database under data expansion are solved, and efficient and reliable fan ID processing is achieved, improving Improve execution efficiency and stability.
Patent Information
- Application Number
- CN202410805004.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-08
AI Technical Summary
In the existing technology, the execution efficiency, reliability and stability of fan ID processing based on single-point graph databases continue to decline under the condition of data expansion, making it difficult to effectively process a large amount of user behavior analysis data.
It adopts distributed graph database and GraphFrames interface, combined with weakly connected component algorithm, to optimize the graph calculation process. Through SparkGraphX component extension interface, it improves the flexibility of data set format, supports more business scenarios, and optimizes the underlying data set and code in program logic. Logic,reduce the data sets involved in graph calculations.
It significantly improves the execution efficiency and stability of fan ID processing, improves read and write throughput, achieves high data availability, and increases execution efficiency by 3 to 4 times in tens of billions of fan algorithm calculations, reducing maintenance costs.
Smart Images

Figure CN118747200A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to methods, devices, media and computer program products for processing fan IDs. Background Art
[0002] With the continuous development of information technology, the retail industry is deeply integrated with the Internet and information-related technologies. Online sales, as one of the important channels in the retail industry, have gradually occupied an important position, and different online channel retail has brought a large amount of analytical data based on user behavior. In order to mine the information value in these data, the data of the same user in different channels can be summarized to establish a fan portrait. This requires associating the user ID of the user in different channels with a unique identification, which is the fan OneID. For this, the existing technical solutions are mainly based on a single-point graph database, storing the user IDs of various channels in a single-point graph database, calling the built-in graph algorithm of the graph database, calculating the relevant graph algorithm, and then classifying and summarizing the result data to obtain the fan model. However, as the data expands, the execution efficiency, reliability and stability of this technical solution will continue to decline. Summary of the invention
[0003] The purpose of the present invention is to provide a fan ID processing method, device, medium and computer program product to solve the problems of low efficiency and low stability in calculating fan IDs.
[0004] The first aspect of the present invention discloses a method for processing a fan ID, which is used in an electronic device. The method comprises:
[0005] Acquire incremental user data of different channels, wherein the user data includes factor ID data and relationship data between factor IDs;
[0006] Compare the incremental user data with the historical full user data to determine the changed relationship data;
[0007] Writing the factor ID data of the incremental user data as point data into a graph database;
[0008] Based on the changed relationship data, updating edge data in the graph database;
[0009] Calculate the weakly connected components of the graph data in the graph database, associate the incremental factor ID with the historical fan IDs of other factor IDs under the weakly connected component where the incremental factor ID is located, or associate the incremental factor ID with a new fan ID.
[0010] According to aspects of the present invention, the calculating of the weakly connected components of the graph data in the graph database further includes:
[0011] Identify outliers;
[0012] The weakly connected components are calculated using edge data in the graph database that is not associated with the isolated point.
[0013] According to aspects of the present invention, determining isolated points includes calculating using the following formula: VertexLonely=VertexAll-EdgeDist-EdgeStart, wherein VertexLonely is the isolated point data, VertexAll is all point data, EdgeDist is the distance edge data, and EdgeStart is the starting edge data.
[0014] According to aspects of the present invention, the method further comprises:
[0015] Mapping the factor ID under the same weakly connected component to a component ID;
[0016] Map the factor ID of each of the isolated points to a component ID.
[0017] According to an aspect of the present invention, it is characterized in that
[0018] Writing the factor ID data of the incremental user data as point data into the graph database further includes: adding an update time attribute to the point data;
[0019] The method further includes: classifying and aggregating the factor IDs mapped to the same component ID, and sorting them according to the update time.
[0020] According to aspects of the present invention, updating edge data in the graph database based on the changed relationship data includes:
[0021] In the case where multiple versions of the same factor ID in the same subgraph all have an edge with another factor ID, only the latest version of the multiple versions and the edge between the latest version and the other factor ID are retained.
[0022] According to aspects of the present invention, the method further comprises:
[0023] A GraphFrames component is loaded based on GraphX to calculate weakly connected components of graph data in the graph database.
[0024] According to aspects of the present invention, the step of obtaining incremental user data from different channels further includes:
[0025] Delete the data with illegal specifications in the incremental user data.
[0026] According to aspects of the present invention, writing the factor ID data of the incremental user data into a graph database as point data further includes: deleting the edge data of abnormal relationships.
[0027] The second embodiment of the present invention discloses an electronic device, which includes a memory storing computer-executable instructions and a processor. When the instructions are executed by the processor, the electronic device implements the fan ID processing method according to the first embodiment of the present invention.
[0028] The third embodiment of the present invention discloses a computer storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer executes the fan ID processing method according to the first embodiment of the present invention.
[0029] A fourth embodiment of the present invention discloses a computer program product, including computer executable instructions, which are executed by a processor to implement the fan ID processing method according to the first embodiment of the present invention.
[0030] Compared with the prior art, the main differences and effects of the embodiments of the present invention are:
[0031] In the present invention, a distributed graph database is adopted and deployed at multiple points to improve the read and write throughput. The efficiency of reading the full factor ID can be increased by an order of magnitude, thereby achieving high availability of the underlying data and ensuring the stability of the data source.
[0032] In the present invention, by expanding the GraphFrames interface and optimizing the weakly connected component algorithm, the data set can be efficiently compressed, and the execution efficiency can be improved by 3 to 4 times in the same algorithm calculation within the tens of billions level.
[0033] In the present invention, in terms of graph computing, big data cluster resources are used, and GraphFrames is combined on the basis of SparkGraphX components to expand and optimize the interface, making the data set format more flexible and supporting more business scenarios. At the same time, the execution efficiency and stability of the graph algorithm calculation process are improved, which greatly utilizes the user's existing cluster resources and reduces maintenance costs. In addition, the underlying data set and code logic are optimized in the program logic, reducing the data set involved in the graph calculation, saving computing resources and pressure, and improving execution efficiency and stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A flowchart of an ID processing method according to an embodiment of the present application is shown.
[0035] Figure 2 A technical architecture diagram of an ID processing method according to an embodiment of the present application is shown.
[0036] Figure 3 A fan subgraph according to an embodiment of the present application is shown.
[0037] Figure 4 A hardware structure block diagram of an electronic device for fan ID processing according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0038] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0039] The existing OneID solution is based on a single-point graph database for storage and graph calculations. As the data read and write throughput increases, the reading and writing speeds are limited. When calculating based on memory-mapped graphs, the algorithm execution speed is limited by the server processor and memory. The execution efficiency gradually decreases as the amount of data increases, and the reliability and stability of the entire project continue to decline.
[0040] In order to solve the above problems, an embodiment of the present application provides a fan ID processing method for use in an electronic device. Figure 1 The steps of the method are shown, Figure 2 The technical architecture diagram involved in this method is shown below. Figure 1 and Figure 2 Describe. Figure 1 As shown, the steps of the fan ID processing method include:
[0041] S101, obtaining incremental user data from different channels, where the user data includes factor ID data and relationship data between factor IDs.
[0042] For example, Figure 2As shown, the user authorizes and opens the client in multiple channels, initiates registration, browsing, adding purchases, placing orders, accessing and other requests, and the client buries or collects user behavior information and registration information according to user behavior, and transmits user registration information (encrypted), behavior and other information to the downstream system. Among them, the client, for example, includes: official mobile app, web page, social software applet, third-party platform app, etc. So the downstream system can obtain the incremental underlying business data 32, the incremental underlying business data 32 includes the user's ID, that is, the factor ID, for example, including: the official member ID1 used by the user on the official mobile app and web page, the applet ID1 used on the social software applet, the third-party member ID 2 used on the third-party platform app, and the encrypted mobile phone number ID1 used in all channels. And these factor ID data have the following relationship: the official member ID1 is associated with the encrypted mobile phone number ID1, the applet ID1 is associated with the encrypted mobile phone number ID1, and the third-party member ID 2 is associated with the encrypted mobile phone number ID1.
[0043] Developers can then use data warehouse tools to obtain T-1 offline user behavior information, filter and clean the data based on user IDs from different channels according to the types of nodes and edges in the graph database, and remove illegal data.
[0044] S102, comparing the incremental user data with the historical full user data to determine the changed relationship data.
[0045] Specifically, the incremental user edge relationship data of different channels is compared with the full edge data of T-2 to find out the edge data that needs to change the edge relationship and store it for subsequent operations. For example, the full data of T-2 contains official member ID1, third-party member ID1, and encrypted mobile phone number ID1, and has the following relationship: official member ID1 is associated with encrypted mobile phone number ID1, and third-party member ID1 is associated with encrypted mobile phone number ID1. Comparing the factor ID of the underlying business data 32 with it, it is found that the encrypted mobile phone number ID1 is newly associated with the mini program ID1; and the encrypted mobile phone number ID1 is associated with the new third-party member ID2 in addition to the association with the third-party member ID1; and then these discovered changes are stored.
[0046] S103, writing the factor ID data of the incremental user data as point data into the graph database.
[0047] Specifically, Figure 2As shown, the user's factor ID can be used as a point in the graph data and written into the distributed graph database cluster 22 in an Upsert manner. The distributed graph database can be Nebula, and the writing tool is Nebula SparkConnector. And modify the time attribute of the point, such as adding or modifying the update_time (update time) attribute, so as to facilitate the subsequent sorting operation of the user's active ID in the aggregation process. For example, add update_time = 2024-04-03 19:01:07 for the official member ID1, add update_time = 2024-04-0308:41:11 for the mini program ID1, add update_time = 2024-04-03 12:23:51 for the third-party member ID2, and add update_time = 2024-04-03 22:33:15 for the encrypted mobile phone number ID1.
[0048] According to some embodiments of the present application, writing the factor ID data of the incremental user data as point data into the graph database also includes: deleting the edge data of the abnormal relationship. For example, due to changes in user behavior, such as logout, rebinding, etc., the original variable relationship between some factors has changed. Therefore, in order to rebuild the relationship between different factor IDs, the comparison result can be obtained through S102, and the affected edge relationship data can be corrected, including the situation where the same factor corresponds to multiple member users, to ensure the uniqueness of the member user corresponding to multiple factors.
[0049] S104: Update edge data in the graph database based on the changed relationship data.
[0050] Specifically, when multiple versions of the same factor ID in the same subgraph have edges with another factor ID, only the latest version of the multiple versions and the edge between the latest version and another factor ID are retained. Figure 3As shown, there is such a fan subgraph 30 in the historical graph data in the distributed graph database 22, which contains the official member ID1, the third-party member ID1, and the encrypted mobile phone number ID1, and has the following directed relationship: the official member ID1 points to the encrypted mobile phone number ID1, and the third-party member ID1 points to the encrypted mobile phone number ID1. In the process of writing daily incremental data, through the comparison of S102, it is found that the encrypted mobile phone number ID1 points to the new third-party member ID 2 factor, and the mini program ID1 points to the official member ID1, so it is inferred that the user has generated a change operation behavior. Therefore, the edge data corresponding to the encrypted mobile phone number ID1 pointing to the third-party member ID1 is deleted in the distributed graph database 22, and the encrypted mobile phone number ID1 is written to the new edge data corresponding to the third-party member ID 2, and the mini program ID1 is written to the official member ID1, thereby realizing the operation of changing the relationship.
[0051] S105, calculating the weakly connected components of the graph data in the graph database.
[0052] Specifically, for example, Figure 2 As shown in the figure, the Nebula Spark Connector Reader is used to read all the vertex and edge data in the distributed graph database and store them as tables for subsequent graph calculations. Then, graph calculation 23 is performed. All operations in graph calculation 23 are performed based on Spark. The specific steps are as follows.
[0053] a) Build a Spark application and load the GraphFrames extension package to extend the GraphX native interface, simplify the data pipeline, and improve the computing performance of the data set.
[0054] b) Crop the data set. According to the theorem in graph theory, perform logical optimization on the points and edges involved in the graph calculation, that is, determine the isolated points. These isolated points will not participate in the calculation of the subsequent step c), but will be calculated separately. Therefore, this step will greatly reduce unnecessary data iteration calculations in the graph algorithm of step c). Among them, the isolated points are calculated using the following formula:
[0055] Vertex Lonely =Vertex All –Edge Dist -Edge Start ;
[0056] Among them, Vertex Lonely For isolated point data, Vertex All For all point data, Edge Dist Edge is the distance edge data. Start The starting edge data.
[0057] c) Using the edge data in the graph database that is not associated with the isolated point, calculate the weakly connected components to construct the initial fan model. The weakly connected component calculation can be performed, for example, through the fromEdges interface. After calculating the weakly connected components, a mapping data set of points and componentId (component ID) is obtained. ComponentId is the aggregate ID of the weakly connected components obtained by the weakly connected component algorithm. The result of the weakly connected component calculation is the initial fan model.
[0058] d) Compare the weakly connected component calculation result and the isolated point Vertex obtained in b) Lonely Specifically, the factor ID under the same weakly connected component is mapped to a componentId, and the factor ID of each isolated point is mapped to a componentId, so that the isolated point data and the initialized fan model are in a unified format. Then the isolated point data and the initialized fan model in a unified format are merged to generate a full data set with factor ID mapping componentId for subsequent aggregation.
[0059] S106, associating the incremental factor ID with the historical fan ID of other factor IDs under the weakly connected component where the incremental factor ID is located, or associating the incremental factor ID with a new fan ID. Specifically, for example, the following steps are included:
[0060] (1) The factor IDs under the same componentId are classified and summarized according to categories such as members, mini-programs, web pages, etc., and are sorted and stored in an array according to the update time (active time) of the factors.
[0061] (II) In order to generate a unified fan ID, it is necessary to merge the historical OneID (fan ID) according to the actual business scenario of the enterprise. Therefore, a merged priority relationship is established for the factor ID to match the historical OneID, and the incremental factor ID is associated with the historical OneID of other factor IDs mapped by the component ID to which it is mapped, or the incremental factor ID is associated with the new OneID. Finally, the OneID result data is generated, that is, the fan model is formed.
[0062] In this application, first of all, a distributed graph database is adopted with multi-point deployment to improve the read and write throughput, which can increase the efficiency of reading the full factor ID by an order of magnitude, achieve high availability of the underlying data, and ensure the stability of the data source.
[0063] By expanding the GraphFrames interface and optimizing the weakly connected component algorithm, the data set can be efficiently compressed, and the execution efficiency can be increased by 3 to 4 times in the calculation of the same algorithm at the tens of billions level.
[0064] In terms of graph computing, we use big data cluster resources and combine GraphFrames on the basis of SparkGraphX components to expand and optimize the interface, making the data set format more flexible and supporting more business scenarios. At the same time, we improve the execution efficiency and stability of the graph algorithm calculation process, greatly utilizing the user's existing cluster resources and reducing maintenance costs. In addition, we optimize the underlying data set and code logic in program logic, reduce the data set involved in graph computing, save computing resources and pressure, and improve execution efficiency and stability.
[0065] Figure 4 It is a hardware structure block diagram of an electronic device that implements fan ID processing according to an embodiment of the present application.
[0066] like Figure 4 As shown, the electronic device 400 may include one or more processors 402, a system motherboard 408 connected to at least one of the processors 402, a system memory 404 connected to the system motherboard 408, a non-volatile memory (NVM) 406 connected to the system motherboard 408, and a network interface 410 connected to the system motherboard 408.
[0067] The processor 402 may include one or more single-core or multi-core processors. The processor 402 may include any combination of general-purpose processors and special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In an embodiment of the present invention, the processor 402 may be configured to execute the following operations: Figure 1-Figure 3 One or more of the various embodiments shown.
[0068] In some embodiments, system board 408 may include any suitable interface controller to provide any suitable interface to at least one of processors 402 and / or any suitable device or component in communication with system board 408 .
[0069] In some embodiments, the system board 408 may include one or more memory controllers to provide an interface to the system memory 404. The system memory 404 may be used to load and store data and / or instructions. In some embodiments, the system memory 404 of the electronic device 400 may include any suitable volatile memory, such as a suitable dynamic random access memory (DRAM).
[0070] NVM 406 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. In some embodiments, NVM 406 may include any suitable non-volatile memory such as flash memory and / or any suitable non-volatile storage device, such as at least one of a HDD (Hard Disk Drive), a CD (CompactDisc) drive, and a DVD (Digital Versatile Disc) drive.
[0071] NVM 406 may include a portion of storage resources installed on a device of electronic device 400, or it may be accessible by the device but not necessarily a portion of the device. For example, NVM 406 may be accessed over a network via network interface 410.
[0072] In particular, system memory 404 and NVM 406 may include a temporary copy and a permanent copy of instructions 420, respectively. Instructions 420 may include instructions that, when executed by at least one of processors 402, cause electronic device 400 to implement the following: Figure 1-Figure 3 In some embodiments, instructions 420, hardware, firmware and / or software components thereof may additionally / alternatively be located in system board 408, network interface 410 and / or processor 402.
[0073] The network interface 410 may include a transceiver for providing a radio interface for the electronic device 400, thereby communicating with any other suitable device (e.g., a front-end module, an antenna, etc.) through one or more networks. In some embodiments, the network interface 410 may be integrated with other components of the electronic device 400. For example, the network interface 410 may be integrated with at least one of the processor 402, the system memory 404, the NVM 406, and a firmware device (not shown) having instructions. When at least one of the processors 402 executes the instructions, the electronic device 400 implements Figure 1-Figure 3 One or more of the various embodiments shown.
[0074] The network interface 410 may further include any suitable hardware and / or firmware to provide a multiple-input multiple-output radio interface. For example, the network interface 410 may be a network adapter, a wireless network adapter, a telephone modem, and / or a wireless modem.
[0075] In one embodiment, at least one of the processors 402 may be packaged together with one or more controllers for the system board 408 to form a system in package (SiP). In one embodiment, at least one of the processors 402 may be integrated on the same die with one or more controllers for the system board 408 to form a system on a chip (SoC).
[0076] The electronic device 400 may further include an input / output (I / O) device 412 connected to the system motherboard 408. The I / O device 412 may include a user interface to enable a user to interact with the electronic device 400; the design of the peripheral component interface enables the peripheral components to interact with the electronic device 400. In some embodiments, the electronic device 400 further includes a sensor for determining at least one of an environmental condition and location information related to the electronic device 400.
[0077] In some embodiments, I / O device 412 may include, but is not limited to, a display (e.g., an LCD display, a touch screen display, etc.), a speaker, a microphone, one or more cameras (e.g., a still image camera and / or a video camera), a flashlight (e.g., an LED flash), and a keyboard.
[0078] In some embodiments, the peripheral component interface may include, but is not limited to, a non-volatile memory port, an audio jack, and a power interface.
[0079] In some embodiments, the sensors may include, but are not limited to, gyroscope sensors, accelerometers, proximity sensors, ambient light sensors, and positioning units. The positioning unit may also be part of or interact with the network interface 410 to communicate with components of a positioning network (e.g., global positioning system (GPS) satellites).
[0080] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 400. In other embodiments of the present application, the electronic device 400 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0081] Program code can be applied to input instructions to perform the functions described in the present invention and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a system for processing instructions including processor 402 includes any system having a processor such as a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0082] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in the present invention is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0083] One or more aspects of at least one embodiment may be implemented by instructions stored on a computer-readable storage medium, which, when read and executed by a processor, enables an electronic device to implement the method of the embodiment described in the present invention.
[0084] According to some embodiments of the present application, a computer storage medium is disclosed, on which instructions are stored. When the instructions are executed on a computer, the computer executes a fan ID processing method according to an embodiment of the present application.
[0085] The method embodiment of the present application corresponds to this embodiment, and this embodiment can be implemented in conjunction with the method embodiment of the present application. The relevant technical details mentioned in the method embodiment of the present application are still valid in the present embodiment, and are not repeated here to reduce repetition. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the method embodiment of the present application.
[0086] According to some embodiments of the present application, a computer program product is disclosed, including computer executable instructions, which are executed by a processor to implement a fan ID processing method according to an embodiment of the present application.
[0087] The method embodiment of the present application corresponds to this embodiment, and this embodiment can be implemented in conjunction with the method embodiment of the present application. The relevant technical details mentioned in the method embodiment of the present application are still valid in the present embodiment, and are not repeated here to reduce repetition. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the method embodiment of the present application.
[0088] It is to be understood that the specific embodiments described herein are only for explaining the present application, rather than limiting the present application. In addition, for ease of description, only some but not all structures or processes related to the present application are shown in the accompanying drawings. It should be noted that in this specification, similar reference numerals and letters represent similar items in the accompanying drawings.
[0089] It should be understood that although the terms "first", "second", etc. may be used herein to describe various features, these features should not be limited by these terms. These terms are used only to distinguish and should not be understood as indicating or implying relative importance. For example, a first feature may be referred to as a second feature, and similarly a second feature may be referred to as a first feature without departing from the scope of the exemplary embodiments.
[0090] In the description of this application, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in this embodiment can be understood according to specific circumstances.
[0091] Illustrative embodiments of the present application include, but are not limited to, fan ID processing methods, devices, media, and computer program products.
[0092] The various aspects of the illustrative embodiments will be described using terms commonly used by those skilled in the art to convey the essence of their work to other persons skilled in the art. However, it is apparent to those skilled in the art that some alternative embodiments may be implemented using the features described in part. For purposes of explanation, specific numbers and configurations are set forth to provide a more thorough understanding of the illustrative embodiments. However, it is apparent to those skilled in the art that alternative embodiments may be implemented without the specific details. In some other cases, some well-known features are omitted or simplified herein to avoid obscuring the illustrative embodiments of the present application.
[0093] In addition, various operations will be described as multiple separate operations in a manner that is most helpful for understanding the illustrative embodiments; however, the order of description should not be interpreted as implying that these operations must rely on the order of description, and many of the operations can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the operations can also be rearranged. When the described operations are completed, the process can be terminated, but can also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0094] References in the specification to "one embodiment," "an embodiment," "an illustrative embodiment," etc., indicate that the described embodiment may include a particular feature, structure, or property, but each embodiment may or may not necessarily include the particular feature, structure, or property. Moreover, these phrases are not necessarily referring to the same embodiment. In addition, when particular features are described in conjunction with a specific embodiment, the knowledge of those skilled in the art can affect the combination of these features with other embodiments, whether or not these embodiments are explicitly described.
[0095] Unless the context dictates otherwise, the terms "comprising," "having," and "including" are synonymous. The phrase "A and / or B" means "(A), (B), or (A and B)."
[0096] As used herein, the term "module" may refer to, be part of, or include: memory (shared, dedicated, or group) for running one or more software or firmware programs, application-specific integrated circuits (ASICs), electronic circuits and / or processors (shared, dedicated, or group), combinational logic circuits, and / or other suitable components that provide the described functionality.
[0097] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order is not necessary. Instead, in some embodiments, these features may be described in a manner and / or order different from that shown in the illustrative drawings. In addition, the structural or method features included in a specific figure do not mean that all embodiments need to include such features. In some embodiments, these features may not be included or may be combined with other features.
[0098] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented in the form of instructions or programs carried or stored on one or more transient or non-transient machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors, etc. When the instructions or programs are run by the machine, the machine may perform the aforementioned various methods. For example, the instructions may be distributed via a network or other computer-readable medium. Therefore, the machine-readable medium may include, but is not limited to, any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, such as a floppy disk, an optical disk, a compact disk read-only memory (CD-ROMs), a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an erasable programmable read-only memory (EPROM), an electronically erasable programmable read-only memory (EEPROM), a magnetic card or an optical card, or a flash memory or a tangible machine-readable memory for transmitting network information via electrical, optical, acoustic, or other forms of signals (e.g., carrier waves, infrared signals, digital signals, etc.). Accordingly, machine-readable media includes any form of machine-readable media suitable for storing or transmitting electronic instructions or information readable by a machine (eg, a computer).
[0099] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the use of the technical solution of the present application is not limited to the various applications mentioned in the embodiments of the present application. Various structures and modifications can be easily implemented with reference to the technical solution of the present application to achieve the various beneficial effects mentioned herein. Various changes made within the knowledge of ordinary technicians in the field without departing from the purpose of the present application should all fall within the scope of the patent coverage of the present application.
Claims
1. A method for processing a fan ID, used in an electronic device, characterized in that: The method comprises: Acquire incremental user data of different channels, wherein the user data includes factor ID data and relationship data between factor IDs; Compare the incremental user data with the historical full user data to determine the changed relationship data; Writing the factor ID data of the incremental user data as point data into a graph database; Based on the changed relationship data, updating edge data in the graph database; Calculate the weakly connected components of the graph data in the graph database, associate the incremental factor ID with the historical fan IDs of other factor IDs under the weakly connected component where the incremental factor ID is located, or associate the incremental factor ID with a new fan ID.
2. The method according to claim 1, characterized in that The calculating of the weakly connected components of the graph data in the graph database further includes: Identify outliers; The weakly connected components are calculated using edge data in the graph database that is not associated with the isolated point.
3. The method according to claim 2, characterized in that Determining the isolated point includes calculating using the following formula: Vertex Lonely =Vertex All –Edge Dist -Edge Start , where Vertex Lonely For isolated point data, Vertex All For all point data, Edge Dist Edge is the distance edge data. Start The starting edge data.
4. The method according to claim 2, characterized in that: The method further comprises: Mapping the factor ID under the same weakly connected component to a component ID; Map the factor ID of each of the isolated points to a component ID.
5. The method according to claim 4, characterized in that Writing the factor ID data of the incremental user data as point data into the graph database further includes: adding an update time attribute to the point data; The method further includes: classifying and aggregating the factor IDs mapped to the same component ID, and sorting them according to the update time.
6. The method according to claim 1, characterized in that The updating of edge data in the graph database based on the changed relationship data includes: In the case where multiple versions of the same factor ID in the same subgraph all have an edge with another factor ID, only the latest version of the multiple versions and the edge between the latest version and the other factor ID are retained.
7. The method according to claim 1, characterized in that The method further comprises: A GraphFrames component is loaded based on GraphX to calculate weakly connected components of graph data in the graph database.
8. The method according to claim 1, characterized in that The obtaining of incremental user data from different channels also includes: Delete the data with illegal specifications in the incremental user data.
9. The method according to claim 1, characterized in that: The step of writing the factor ID data of the incremental user data as point data into a graph database further includes: deleting the edge data of abnormal relationships.
10. An electronic device, characterized in that: The electronic device includes a memory storing computer executable instructions and a processor. When the instructions are executed by the processor, the electronic device implements the fan ID processing method according to any one of claims 1-9.
11. A computer storage medium, characterized in that: Instructions are stored on the computer storage medium, and when the instructions are executed on a computer, the computer executes the fan ID processing method according to any one of claims 1-9.
12. A computer program product, characterized in that The invention comprises computer executable instructions, wherein the instructions are executed by a processor to implement the fan ID processing method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Graph data processing method and device, electronic equipment and storage medium
CN112000848A
Behavior analysis method and device based on graph data, electronic equipment and storage medium
CN113434607A
User data fusion processing method and system
CN116955709A
Information synchronization method and device, medium and program product
CN118214778A
Data Mining
US20090099920A1
Cited By
Multi-channel user fusion and target population matching method and product
CN119740044A
Multi-channel user integration, target population matching methods and products
CN119740044B
