User tag-based message pushing method, device, equipment and medium

By combining historical user data with real-time data streams in traditional push notification methods, user tags are generated and push strategies are determined, solving the problems of data lag and ignoring users' historical preferences, thus improving the accuracy of push notifications and user experience.

CN117061471BActive Publication Date: 2026-11-24CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311156694.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-06
Publication Date
2026-11-24
Estimated Expiration
2043-09-06

AI Technical Summary

Technical Problem

Traditional message push methods, when based on users' historical or real-time data, suffer from data lag or ignore users' historical preferences, resulting in low message push accuracy and poor user experience.

Method used

By associating user historical data with real-time data streams, user tags are generated, and push strategies are determined based on these tags. Data processing is then performed using open-source databases and message queues.

Benefits of technology

It improves the accuracy of push notifications and user experience by combining user history and real-time data to generate more accurate customer tags, thus enabling more targeted push notifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117061471B_ABST
    Figure CN117061471B_ABST
Patent Text Reader

Abstract

This application belongs to the field of data analysis and relates to a message push method based on user tags. The method includes acquiring historical user data, acquiring user data streams in real time, transmitting the user data streams to a message queue, extracting the user data streams from the message queue and storing them in an open-source database, importing historical user data into the open-source database, associating the user data streams and historical user data in the open-source database to obtain associated data streams, generating multiple user tags based on the associated data streams, determining a user push strategy based on the message to be pushed and the multiple user tags, and pushing the message to be pushed to the user according to the user push strategy. This application also provides a message push device, computer equipment, and storage medium based on user tags. Furthermore, this application relates to blockchain technology, where historical user data can be stored in the blockchain. This application improves the accuracy of message push and enhances user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data analysis, and in particular to a message push method, apparatus, computer device, and storage medium based on user tags. Background Technology

[0002] In the context of big data, push notifications rely on the internet's powerful recording, transmission, and sharing capabilities to collect information from target users. By integrating and identifying this information, user behavior is analyzed to determine past and potential needs, enabling targeted message delivery. For example, in the financial sector, insurance platforms, in order to maintain customer traffic, push notifications related to insurance products (such as product discounts and new product launches) to increase user engagement.

[0003] Traditional message push methods involve obtaining user behavior and preference information, building user profiles based on this information, and then pushing messages based on these user profiles.

[0004] However, the user data obtained by this traditional method is generally all historical user data or all real-time data. When all the user data is historical, there is a data lag, which makes the accuracy of message push lower. When all the data is real-time, the user's historical preferences are ignored, which further reduces the accuracy of message push and results in a poor user experience. Summary of the Invention

[0005] The purpose of this application is to provide a message push method, apparatus, computer device and storage medium based on user tags, with the main objective of improving message push accuracy and user experience.

[0006] To address the aforementioned technical problems, this application provides a message push method based on user tags, employing the following technical solution:

[0007] The system retrieves historical user data from a preset database and acquires real-time user data streams, transmits the user data streams to a preset message queue, and extracts the user data streams from the message queues and stores them in a preset open-source database.

[0008] Import the user's historical data into the open-source database;

[0009] The user data stream in the open-source database and the historical user data are correlated to obtain a correlated data stream;

[0010] Multiple user tags are generated based on the associated data stream;

[0011] Obtain the message to be pushed, determine the user push strategy based on the message to be pushed and the multiple user tags, and push the message to be pushed to the user according to the user push strategy.

[0012] Furthermore, the step of associating the user data stream in the open-source database with the historical user data to obtain an associated data stream includes:

[0013] The user's historical data and user data stream are integrated using the open-source database to obtain an integrated data stream;

[0014] Obtain the data type of the integrated data stream, and associate different types of data streams in the integrated data stream according to the data type to obtain associated data streams.

[0015] Furthermore, importing the user's historical data into the open-source database includes:

[0016] Establish a connection between the database and the open-source database using a preset interface;

[0017] Based on the connection, user historical data is read in batches from the database to obtain batched user historical data;

[0018] Based on the number of batches, N data import tasks are created corresponding to the batches of user historical data, and the N data import tasks are executed in parallel to import the batches of user historical data into the data table of the open source database in batches, where N is an integer greater than or equal to 1.

[0019] Furthermore, the step of extracting user data streams from the message queue and storing them in a preset open-source database includes:

[0020] Obtain the record key of the user data stream;

[0021] Create an open-source data table, and import the user data stream into the partition directory corresponding to the open-source data table according to the preset timestamp based on the record key;

[0022] If the user data stream exists in the open-source data table, then the user data stream is determined to be stored in the open-source database.

[0023] Furthermore, the generation of multiple user tags based on the associated data stream includes:

[0024] The associated data stream is cleaned to obtain a cleaned data stream;

[0025] Extract the user behavior feature set from the cleaned data stream;

[0026] Clustering the user behavior feature set yields multiple clustered behavior features;

[0027] Multiple corresponding user tags are generated based on the aforementioned clustering behavior features.

[0028] Furthermore, determining the user push strategy based on the message to be pushed and the multiple user tags includes:

[0029] Extract the message features and tag features of the message to be pushed and the multiple user tags respectively to obtain the message feature matrix and the tag feature matrix;

[0030] Calculate the user interest score between the message to be pushed and the multiple user tags based on the message feature matrix and the tag feature matrix;

[0031] A user recommendation strategy is generated based on the user interest score.

[0032] To address the aforementioned technical problems, this application also provides a message push device based on user tags, employing the following technical solution:

[0033] The storage module is used to retrieve user historical data from a preset database, as well as to retrieve user data streams in real time, and transmit the user data streams to a preset message queue, and extract the user data streams from the message queues and store them in a preset open-source database.

[0034] The import module is used to import the user's historical data into the open-source database;

[0035] The association module is used to associate the user data stream in the open source database with the historical user data to obtain an associated data stream;

[0036] A tag generation module is used to generate multiple user tags based on the associated data stream; and

[0037] The push module is used to obtain the message to be pushed, determine the user push strategy based on the message to be pushed and the multiple user tags, and push the message to be pushed to the user according to the user push strategy.

[0038] To address the aforementioned technical problems, this application also provides a computer device that employs the following technical solution:

[0039] Memory, storing at least one computer program; and

[0040] The processor executes the computer program stored in the memory to implement the user tag-based message push method described above.

[0041] To address the aforementioned technical problems, this application also provides a computer-readable storage medium, employing the technical solution described below:

[0042] The computer-readable storage medium stores at least one computer program, which is executed by a processor in an electronic device to implement the aforementioned user tag-based message push method.

[0043] Compared with the prior art, the embodiments of this application have the following main advantages:

[0044] In this embodiment, a correlated data stream is obtained by associating user data streams and historical user data in an open-source database. This combines historical and real-time user data, avoiding data lag and ignoring historical user preferences, thus improving the accuracy of subsequent message pushes. Furthermore, by generating multiple user tags based on the correlated data stream, more accurate customer tags can be generated based on historical and real-time user data. The message push strategy is determined based on the message to be pushed and multiple user tags, enabling the push of corresponding messages to different user tags, thereby improving the accuracy of message pushes and the user experience. Therefore, the message push method, apparatus, computer device, and storage medium based on user tags proposed in this application can improve the accuracy of message pushes and the user experience. Attached Figure Description

[0045] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0046] Figure 1 This is an exemplary system architecture diagram to which this application can be applied;

[0047] Figure 2 A flowchart of an embodiment of the message push method based on user tags according to this application;

[0048] Figure 3 yes Figure 2 A flowchart of a specific implementation of step S203;

[0049] Figure 4 This is a schematic diagram of a structure of an embodiment of a user tag-based message push device according to this application;

[0050] Figure 5 This is a schematic diagram of the structure of one embodiment of the computer device according to this application. Detailed Implementation

[0051] Unless otherwise defined, 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 pertains; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application, are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.

[0052] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0053] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0054] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. Network 104 serves as the medium for providing communication links between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0055] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social media platform software, etc.

[0056] Terminal devices 101, 102, and 103 can be various electronic devices with displays and web browsing capabilities, including but not limited to smartphones, tablets, e-book readers, MP3 players (Moving Picture E based on user-labeled push notifications perts Group Audio Layer III, Dynamic Picture Experts Compression Standard Audio Layer 3), MP4 players (Moving Picture E based on user-labeled push notifications perts Group Audio Layer IV, Dynamic Picture Experts Compression Standard Audio Layer 4), laptops, and desktop computers, etc.

[0057] Server 105 can be a server that provides various services, such as a backend server that supports the pages displayed on terminal devices 101, 102, and 103.

[0058] It should be noted that the message push method based on user tags provided in this application embodiment is generally executed by a server / terminal device, and correspondingly, the message push device based on user tags is generally set in the server / terminal device.

[0059] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0060] Continue to refer to Figure 2 The diagram illustrates a flowchart of an embodiment of a user-tag-based message push method according to this application. The user-tag-based message push method includes the following steps:

[0061] S201. Obtain user historical data from a preset database and obtain user data stream in real time, and transmit the user data stream to a preset message queue, and extract the user data stream from the message queue and store it in a preset open source database.

[0062] In this embodiment, the user's historical data may include the user's account information (such as name, age, account level, etc.) and underwriting information (such as insurance purchases, insurance claims, etc.) on the insurance platform within a historical period. The user data stream includes the user's behavioral data generated on the insurance platform on that day (such as insurance browsing, insurance purchases, etc.), as well as the real-time account information and real-time underwriting information for that day. Historical user data can be obtained from a preset database (such as a property insurance business database), and the user data stream can be obtained from the property insurance business database using data query statements, such as SQL statements.

[0063] In this embodiment, the message queue can be Kafka, which buffers the user data stream flowing into the open-source database, ensuring its proper storage. The open-source database can be Hudi, which stores historical user data and the user data stream.

[0064] In this embodiment of the application, by acquiring user data streams in real time and transmitting the user data streams to a preset message queue, and extracting the user data streams from the message queues and storing them in a preset open-source database, the problem of data lag and neglect of user historical preferences caused by only extracting user historical data during subsequent message pushes is avoided, which facilitates the improvement of the accuracy of subsequent message pushes.

[0065] As one embodiment of this application, the step of extracting user data streams from the message queue and storing them in a preset open-source database includes:

[0066] Obtain the record key of the user data stream;

[0067] Create an open-source data table, and import the user data stream into the partition directory corresponding to the open-source data table according to the preset timestamp based on the record key;

[0068] If the user data stream exists in the open-source data table, then the user data stream is determined to be stored in the open-source database.

[0069] The record key refers to the primary key of the user stream data, which can uniquely identify user data in the open-source data table, such as the user's name. The open-source data table is the Hudi table, which is used to store real-time user data streams.

[0070] In this embodiment, the timestamp is a sequence of characters or encoded information used to identify when an event occurred, including date and time. Monotonically increasing timestamps allow user stream data to be imported into corresponding partition directories according to different times. The partition directory refers to directories under different base paths (root paths). Using the base path and different timestamps, user data streams can be stored in corresponding partition tables.

[0071] Furthermore, in this embodiment of the application, the user data stream in the partition directory is queried by querying the query statement. If the user data stream exists in the open source data table, it is determined that the user data stream is stored in the open source database.

[0072] In this embodiment of the application, by importing the user data stream into the partition directory corresponding to the open source data table according to the record key and the preset timestamp, real-time data import can be realized. Furthermore, the real-time data is imported in a split manner according to the timestamp, which improves the import efficiency and avoids the problem of import anomalies due to large data flow.

[0073] S202. Import the user's historical data into the open-source database.

[0074] In this embodiment of the application, by importing the user's historical data into the open-source database, it is possible to avoid ignoring the user's historical preferences when pushing messages. By combining the user's historical data, it is easier to improve the accuracy of message push in the future.

[0075] As one embodiment of this application, importing the user historical data into the open-source database includes:

[0076] Establish a connection between the database and the open-source database using a preset interface;

[0077] Based on the connection, user historical data is read in batches from the database to obtain batched user historical data;

[0078] Based on the number of batches, N data import tasks are created corresponding to the batches of user historical data, and the N data import tasks are executed in parallel to import the batches of user historical data into the data table of the open source database in batches, where N is an integer greater than or equal to 1.

[0079] The preset interface can be a JDBC connection interface. The connection-manager function determines the connection object as a database and an open-source database, and the driver function specifies the interface driver. The driver drives the interface to realize the connection between the database and the open-source database.

[0080] In this embodiment, the connection batch can be determined by retrieving all columns and their SQL data types from the database table storing user historical data using JDBC. Each batch can consist of one column of data. For example, in the insurance field, a user's historical data includes account information and underwriting information on an insurance platform. The account information includes name, age, ID card number, family members, etc. Each account information includes multiple columns, and each column can be a batch of data. For instance, if the name is one column and its corresponding data type is text, then the name column constitutes a batch of data.

[0081] Furthermore, in this embodiment, Sqoop is used to generate a Java class based on all columns and their SQL data types. The Java class inserts values ​​of appropriate types into the batched user historical data in the database. Sqoop is then used to start MapReduce to create N data import MapReduce tasks. These N MapReduce tasks are applied to InputFormat to import the batched user historical data from the database table into the data table of the open-source database via JDBC. Here, N is an integer greater than or equal to 1, and the number of N is determined based on the number of batched user historical data.

[0082] In this embodiment of the application, by creating N data import tasks corresponding to the batches of user historical data according to the batch quantity, and executing the N data import tasks in parallel, the batches of user historical data are imported into the data table of the open source database in batches. This enables batch import during data import, which improves the efficiency of importing user historical data and avoids import anomalies due to excessive data flow.

[0083] S203. Associate the user data stream in the open-source database with the historical user data to obtain an associated data stream.

[0084] In this embodiment, the associated data stream refers to data that associates the same information in historical user data and user data streams. For example, in the insurance field, both historical user data and user data streams include account information and underwriting information. In this case, information such as name, age, and ID number from historical user data and user data streams are stored in the account information to achieve data association.

[0085] As an embodiment of this application, reference is made to Figure 3 As shown, the step of associating the user data stream in the open-source database with the historical user data to obtain an associated data stream includes the following steps S2031-S2032:

[0086] S2031. The user's historical data and user data stream are integrated using the open-source database to obtain an integrated data stream;

[0087] S2032. Obtain the data type of the integrated data stream, and associate different types of data streams in the integrated data stream according to the data type to obtain associated data streams.

[0088] Specifically, Flink SQL uses the Hudi connector to create the Hudi table in an open-source database. The Hudi table integrates user historical data and user data streams. Specifically, the Hudi database integrates user historical data with user information such as name, age, and ID number from the user data stream to obtain integrated account stream information. The user historical data is then integrated with information such as insurance type, insurance period, and insurance payout from the user data stream into the insurance information to obtain integrated insurance stream information.

[0089] In this embodiment, the data type is a data type categorized based on actual business operations, including Hudi account type and Hudi underwriting type. Associating the Hudi account type with the Hudi underwriting type allows for the acquisition of associated data for each user. For example, in the insurance field, there is an insured user named User A. The associated data for User A consists of User A's account information and underwriting information from historical data.

[0090] In this embodiment of the application, by associating different types of data streams in the integrated data stream according to the data type, a related data stream is obtained. This ensures that each user's historical data and real-time data are linked in real time. Through real-time association, the latest news of each user on the platform can be accurately grasped, which facilitates the provision of accurate message push services to users in the future and improves the user experience on the insurance platform.

[0091] S204. Generate multiple user tags based on the associated data stream.

[0092] In this embodiment, the multiple user tags refer to tags that describe the characteristics of associated data. For example, if a user has multiple medical insurance accounts at the intermediate level, the corresponding user tags are "medical insurance purchase and intermediate account".

[0093] As one embodiment of this application, the generation of multiple user tags based on the associated data stream includes:

[0094] The associated data stream is cleaned to obtain a cleaned data stream;

[0095] Extract the user behavior feature set from the cleaned data stream;

[0096] Clustering the user behavior feature set yields multiple clustered behavior features;

[0097] Multiple corresponding user tags are generated based on the aforementioned clustering behavior features.

[0098] The process of cleaning the associated data includes operations such as cleaning up duplicate data, deleting outliers, and adding missing values ​​to obtain a cleaned data stream. By cleaning the associated data stream, duplicate and dirty data in the associated data can be removed, thereby improving the data quality of the associated data.

[0099] In this embodiment, the user behavior feature set is key behavioral information of the user on the insurance platform extracted based on the associated data, including the user's browsing, clicking, and purchasing behaviors on the insurance platform. For example, if user B purchases insurance b and insurance c, then user B's behavior feature set can be purchase, insurance b, insurance c, insurance type, and purchase amount.

[0100] Furthermore, in this embodiment of the application, the Euclidean distance from each user behavior feature to each cluster center can be calculated using the k-means algorithm. Based on the Euclidean distance, the user behavior features are divided into the nearest clusters to cluster the user behavior feature set and obtain multiple clustered behavior features.

[0101] For example, if a user's behavioral characteristic is purchasing different types of insurance, then this purchasing behavior can be clustered to obtain clustered purchasing behavior characteristics.

[0102] In this embodiment of the application, by clustering the user behavior feature set, multiple clustered behavior features can be obtained, which can reduce redundant data, improve the tag generation speed, and thus improve the efficiency of subsequent message push.

[0103] S205. Obtain the message to be pushed, determine the user push strategy based on the message to be pushed and the multiple user tags, and push the message to be pushed to the user according to the user push strategy.

[0104] In this embodiment, the message to be pushed refers to a message related to the insurance platform that is to be pushed to the user. Examples include news of new insurance product launches, comparisons of insurance product advantages, and after-sales customer service contact information for insurance products on the insurance platform.

[0105] In this embodiment, the user recommendation strategy is determined based on at least one user tag. For example, in the insurance field, if a user A has user tags such as intermediate account, family policyholder, and purchase of car insurance D, the corresponding push strategy would be to push relevant messages about car insurance D to the intermediate family account or to push insurance types that family members can purchase together to the intermediate family account.

[0106] As an embodiment of this application, the step of determining the user push strategy based on the message to be pushed and the multiple user tags includes:

[0107] Extract the message features and tag features of the message to be pushed and the multiple user tags respectively to obtain the message feature matrix and the tag feature matrix;

[0108] Calculate the user interest score between the message to be pushed and the multiple user tags based on the message feature matrix and the tag feature matrix;

[0109] A user recommendation strategy is generated based on the user interest score.

[0110] The extraction of message features and tag features can be achieved by performing convolution operations on the message to be pushed and multiple user tags to obtain message feature matrix and tag feature matrix.

[0111] In this embodiment of the application, the user interest score between the message to be pushed and the multiple user tags can be calculated based on the message feature matrix and the tag feature matrix using the following formula:

[0112]

[0113] Where, r ui P represents the user interest score between the u-th message to be pushed and the i-th user tag; u Q represents the message feature matrix of the u-th message to be pushed; i P represents the tag feature matrix of the i-th user tag; k represents the matrix dimension; j represents a matrix dimension of 1; P uj Q represents the j-th dimension of the row vector corresponding to the u-th message to be pushed in the message feature matrix P; ij Let represent the j-th dimension of the column vector corresponding to the i-th user label in the label feature matrix Q.

[0114] In this embodiment, the user interest score refers to the score between the message to be pushed and the user tag. When the user interest score exceeds a preset threshold, it indicates that there is a correlation between the user tag and the message to be pushed, and the user tag should be considered when generating the recommendation strategy. When the user interest score does not exceed the preset threshold, the user tag and the message to be pushed are not correlated, and the user tag is not considered when generating the recommendation strategy. The preset threshold can be 0.7.

[0115] In this embodiment of the application, by calculating the user interest score between the message to be pushed and the multiple user tags based on the message feature matrix and the tag feature matrix, it is possible to understand the correlation between the message to be pushed and the user tags, further understand the user's interests and preferences, and improve the accuracy of push strategy generation.

[0116] Compared with the prior art, the embodiments of this application have the following main advantages:

[0117] In this embodiment, a correlated data stream is obtained by associating user data streams and historical user data from an open-source database. This combines historical and real-time user data, avoiding data lag and ignoring historical user preferences, thus improving the accuracy of subsequent message pushes. Furthermore, by generating multiple user tags based on the correlated data stream, more accurate customer tags can be generated based on historical and real-time user data. The message push strategy is determined based on the message to be pushed and multiple user tags, enabling the push of corresponding messages to different user tags, thereby improving the accuracy of message pushes and the user experience. Therefore, the message push method based on user tags proposed in this application can improve the accuracy of message pushes and the user experience.

[0118] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware with computer-readable instructions. These computer-readable instructions can be stored in a computer-readable storage medium. When executed, the program can include the processes of the embodiments of the above methods. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).

[0119] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0120] Further reference Figure 4 As a response to the above Figure 2 To implement the method shown, this application provides an embodiment of a message push device based on user tags, which is similar to... Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.

[0121] like Figure 4 As shown, the message push device 400 based on user tags described in this embodiment includes: a storage module 401, an import module 402, an association module 403, a tag generation module 404, and a push module 405. Wherein:

[0122] The storage module 401 is used to obtain user historical data from a preset database, and to obtain user data streams in real time, and to transmit the user data streams to a preset message queue, and to extract user data streams from the message queues and store them in a preset open source database.

[0123] Import module 402 is used to import the user's historical data into the open-source database;

[0124] The association module 403 is used to associate the user data stream in the open source database with the historical user data to obtain an associated data stream;

[0125] The tag generation module 404 is used to generate multiple user tags based on the associated data stream;

[0126] The push module 405 is used to obtain a message to be pushed, determine a user push strategy based on the message to be pushed and the multiple user tags, and push the message to be pushed to the user according to the user push strategy.

[0127] In this embodiment, the functions of each module / unit are as follows:

[0128] The integration submodule is used to integrate the user's historical data and user data stream using the open-source database to obtain an integrated data stream;

[0129] The association submodule is used to obtain the data type of the integrated data stream, and associate different types of data streams in the integrated data stream according to the data type to obtain the associated data stream.

[0130] In this embodiment, a correlated data stream is obtained by associating user data streams and historical user data from an open-source database. This combines historical and real-time user data, avoiding data lag and ignoring historical user preferences, thus improving the accuracy of subsequent message pushes. Furthermore, by generating multiple user tags based on the correlated data stream, more accurate customer tags can be generated based on historical and real-time user data. The push strategy is determined based on the message to be pushed and multiple user tags, enabling the delivery of corresponding messages to different user tags, thereby improving the accuracy of message pushes and the user experience. Therefore, the user tag-based message push device proposed in this application can improve message push accuracy and user experience.

[0131] The computer device 5 includes a memory 51, a processor 52, and a network interface 53 that are interconnected via a system bus. It should be noted that only the computer device 5 with components 51-53 is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Those skilled in the art will understand that the computer device described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0132] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.

[0133] The memory 51 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or D-type user tag-based push memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 51 may be an internal storage unit of the computer device 5, such as the hard disk or 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, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the computer device 5. Of course, the memory 51 may include both the internal storage unit and its external storage device of the computer device 5. In this embodiment, the memory 51 is typically used to store the operating system and various application software installed on the computer device 5, such as computer-readable instructions for user tag-based push methods. In addition, the memory 51 can also be used to temporarily store various types of data that have been output or will be output.

[0134] In some embodiments, the processor 52 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. The processor 52 is typically used to control the overall operation of the computer device 5. In this embodiment, the processor 52 is used to execute computer-readable instructions stored in the memory 51 or to process data, for example, to execute computer-readable instructions for the user-tag-based message push method.

[0135] The network interface 53 may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 5 and other electronic devices.

[0136] In this embodiment, a correlated data stream is obtained by associating user data streams and historical user data from an open-source database. This combines historical and real-time user data, avoiding data lag and ignoring historical user preferences, thus improving the accuracy of subsequent message pushes. Furthermore, by generating multiple user tags based on the correlated data stream, more accurate customer tags can be generated based on historical and real-time user data. The message push strategy is determined based on the message to be pushed and multiple user tags, enabling the push of corresponding messages to different user tags, thereby improving the accuracy of message pushes and the user experience. Therefore, the user tag-based message push computer device proposed in this application can improve message push accuracy and user experience.

[0137] This application also provides another embodiment, namely, providing a computer-readable storage medium storing computer-readable instructions that can be executed by at least one processor to cause the at least one processor to perform the steps of the user tag-based message push method described above.

[0138] In this embodiment, a correlated data stream is obtained by associating user data streams and historical user data in an open-source database. This combines historical and real-time user data, avoiding data lag and ignoring historical user preferences, thus improving the accuracy of subsequent message pushes. Furthermore, by generating multiple user tags based on the correlated data stream, more accurate customer tags can be generated based on historical and real-time user data. The message push strategy is determined based on the message to be pushed and multiple user tags, enabling the push of corresponding messages to different user tags, thereby improving the accuracy of message pushes and the user experience. Therefore, the user tag-based message push storage medium proposed in this application can improve message push accuracy and user experience.

[0139] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0140] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, the purpose of providing these embodiments is to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.

Claims

1. A message push method based on user tags, characterized in that, Includes the following steps: The system retrieves historical user data from a preset database and acquires real-time user data streams, transmits the user data streams to a preset message queue, and extracts the user data streams from the message queues and stores them in a preset open-source database. Import the user's historical data into the open-source database; The user data stream and the user historical data in the open source database are correlated to obtain a correlated data stream; Multiple user tags are generated based on the associated data stream; Obtain the message to be pushed, determine the user push strategy based on the message to be pushed and the multiple user tags, and push the message to be pushed to the user according to the user push strategy; The user historical data includes the user's account information and underwriting information on the insurance platform within a historical period. The user data stream includes the user's behavioral data generated on the insurance platform on that day, as well as the real-time account information and real-time underwriting information for that day. The step of associating the user data stream in the open-source database with the user historical data to obtain an associated data stream includes: The user's historical data and user data stream are integrated using the open-source database to obtain an integrated data stream. This includes using Flink SQL with the Hudi connector to create a Hudi table in the open-source database, integrating the user's historical data with the user information in the user data stream through the Hudi table to obtain integrated account stream information; and integrating the user's historical data with the underwriting type, underwriting time, and underwriting payout in the user data stream into underwriting information to obtain integrated underwriting stream information. Obtain the data type of the integrated data stream, wherein the data type is a data type divided based on actual business, including Hudi account type and Hudi underwriting type; Based on the data type, the different types of data streams in the integrated data stream are correlated to obtain correlated data streams, including associating the Hudi account type with the Hudi coverage type to obtain the correlated data for each user.

2. The message push method based on user tags according to claim 1, characterized in that, The step of importing the user's historical data into the open-source database includes: Establish a connection between the database and the open-source database using a preset interface; Based on the connection, user historical data is read in batches from the database to obtain batched user historical data; Based on the number of batches, N data import tasks are created corresponding to the batches of user historical data, and the N data import tasks are executed in parallel to import the batches of user historical data into the data table of the open source database in batches, where N is an integer greater than or equal to 1.

3. The message push method based on user tags according to claim 1, characterized in that, The step of extracting user data streams from the message queue and storing them in a preset open-source database includes: Obtain the record key of the user data stream; Create an open-source data table, and import the user data stream into the partition directory corresponding to the open-source data table according to the preset timestamp based on the record key; If the user data stream exists in the open-source data table, then the user data stream is determined to be stored in the open-source database.

4. The message push method based on user tags according to any one of claims 1-3, characterized in that, The generation of multiple user tags based on the associated data stream includes: The associated data stream is cleaned to obtain a cleaned data stream; Extract the user behavior feature set from the cleaned data stream; Clustering the user behavior feature set yields multiple clustered behavior features; Multiple corresponding user tags are generated based on the aforementioned clustering behavior features.

5. The message push method based on user tags according to any one of claims 1-3, characterized in that, The step of determining the user push strategy based on the message to be pushed and the multiple user tags includes: Extract the message features and tag features of the message to be pushed and the multiple user tags respectively to obtain the message feature matrix and the tag feature matrix; Calculate the user interest score between the message to be pushed and the multiple user tags based on the message feature matrix and the tag feature matrix; A user recommendation strategy is generated based on the user interest score.

6. A message push device based on user tags, characterized in that, include: The storage module is used to retrieve user historical data from a preset database, as well as to retrieve user data streams in real time, and transmit the user data streams to a preset message queue, and extract the user data streams from the message queues and store them in a preset open-source database. The import module is used to import the user's historical data into the open-source database; The association module is used to associate the user data stream and the user historical data in the open source database to obtain an associated data stream; The tag generation module is used to generate multiple user tags based on the associated data stream; and The push module is used to obtain a message to be pushed, determine a user push strategy based on the message to be pushed and the multiple user tags, and push the message to be pushed to the user according to the user push strategy. The user historical data includes the user's account information and underwriting information on the insurance platform within a historical period; the user data stream includes the user's behavioral data generated on the insurance platform on that day, as well as the real-time account information and real-time underwriting information for that day; the associated module includes: The integration submodule is used to integrate the user's historical data and user data stream using the open-source database to obtain an integrated data stream. This includes using Flink SQL with the Hudi connector to create a Hudi table in the open-source database, integrating the user's historical data with the user information in the user data stream through the Hudi table to obtain integrated account stream information; and integrating the user's historical data with the underwriting type, underwriting time, and underwriting claims in the user data stream into underwriting information to obtain integrated underwriting stream information. The association submodule is used to obtain the data type of the integrated data stream, wherein the data type is a data type divided based on actual business, including Hudi account type and Hudi coverage type; according to the data type, the different types of data streams in the integrated data stream are associated with each other to obtain the associated data stream, including associating the Hudi account type with the Hudi coverage type to obtain the associated data for each user.

7. A computer device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and the processor, when executing the computer-readable instructions, implements the steps of the message push method based on user tags as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the message push method based on user tags as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Information real-time pushing method and device, computing device and medium

    CN110688581A

  • Data processing method based on data medium table and related equipment thereof

    CN113836235A

  • Big data analysis method and system based on mobile terminal

    CN116070018A