CN116485535A - Label generation method and device, electronic equipment and storage medium - Google Patents

Label generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116485535A
CN116485535A CN202310397282.2A CN202310397282A CN116485535A CN 116485535 A CN116485535 A CN 116485535A CN 202310397282 A CN202310397282 A CN 202310397282A CN 116485535 A CN116485535 A CN 116485535A
Authority
CN
China
Prior art keywords
real
tag
data
transaction data
label
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310397282.2A
Other languages
Chinese (zh)
Inventor
王芸
李悦
邓何
唐伟程
杨灵芝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank Of Chongqing Co ltd
Original Assignee
Bank Of Chongqing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank Of Chongqing Co ltd filed Critical Bank Of Chongqing Co ltd
Priority to CN202310397282.2A priority Critical patent/CN116485535A/en
Publication of CN116485535A publication Critical patent/CN116485535A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/254Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application discloses a label generation method, a label generation device, electronic equipment and a storage medium. The method comprises the following steps: receiving current transaction data sent by a user; generating a real-time tag of the current transaction data based on the current transaction data; judging whether the real-time label accords with a predetermined pushing rule or not; and when the real-time label does not accord with a predetermined pushing rule, optimizing the real-time label based on a basic database to obtain a target label of the current transaction data. According to the method, the basic tag and the real-time generated tag can be combined to generate diversified real-time tags, so that the generated real-time tags can be more flexible, diversified and comprehensive. The method can further reflect real-time transaction information of the user rapidly and intuitively, so that business personnel can make effective and rapid decisions on single consumption or consumption with risk, and user experience is improved.

Description

Label generation method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the field of big data processing, in particular to a tag generation method, a tag generation device, electronic equipment and a storage medium.
Background
In recent years, with the development of internet technology, banks have changed from providing only offline services to providing online and offline synchronization to provide financial services for users, such as internet financial services like internet banking, mobile phone banking, etc. In addition to basic financial services, more and more life services are also being embedded into the service category of banks, such as buying telephone charge traffic, train tickets and air tickets; booking hotel, website ticket, medical consumption, visa transaction, game recharging and oil card replacing recharging, etc. services make the customer consumption mode of the bank become diversified and the consumption amount interval is wide. In order to better serve users, a label system can be utilized to generate consumption labels for the users according to transaction information such as different consumption amounts, consumption habits, payment modes and the like of different users so as to provide services meeting the demands of the users.
When the conventional label system processes the transaction information of the user, the user can only be labeled according to the historical transaction information before the transaction information so as to be decided by banking staff. The method ignores the current transaction information, cannot intuitively reflect the transaction information of the user, lacks a solution for realizing real-time interaction of the transaction information, causes certain limitation in business decision execution and marketing judgment of business personnel, cannot make effective decisions on single consumption or consumption with risks, increases the mobile risk of user assets, and reduces user experience.
Disclosure of Invention
The method, the device, the electronic equipment and the storage medium for generating the label can quickly and intuitively reflect real-time transaction information of the user, so that business personnel can make effective and quick decisions on single consumption or consumption with risk, and user experience is improved.
In a first aspect, an embodiment of the present application provides a tag generating method, where the method includes:
receiving current transaction data sent by a user;
generating a real-time tag of the current transaction data based on the current transaction data;
judging whether the real-time label accords with a predetermined pushing rule or not;
and when the real-time tag does not accord with a predetermined pushing rule, optimizing the real-time tag based on a basic database to obtain the target tag of the current transaction data.
In a second aspect, an embodiment of the present application further provides a label generating apparatus, where the apparatus includes:
the receiving module is used for receiving current transaction data sent by a user;
the generation module is used for generating a real-time tag of the current transaction data based on the current transaction data;
the judging module is used for judging whether the real-time tag accords with a predetermined pushing rule or not;
And the optimizing module is used for optimizing the real-time tag based on a basic database to obtain the target tag of the current transaction data when the real-time tag does not accord with a predetermined pushing rule.
In a third aspect, embodiments of the present application further provide an electronic device, including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a tag generation method as provided by any of the embodiments of the present application.
In a fourth aspect, embodiments of the present application further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a label generation method as provided by any of the embodiments of the present application.
In the embodiment of the application, current transaction data sent by a user is received; generating a real-time tag of the current transaction data based on the current transaction data; judging whether the real-time label accords with a predetermined pushing rule or not; and when the real-time label does not accord with a predetermined pushing rule, optimizing the real-time label based on a basic database to obtain a target label of the current transaction data. In other words, in the embodiment of the application, the tags can be generated in real time according to the current transaction data of the user, and the basic tags and the tags generated in real time are combined to generate diversified real-time tags, so that the generated real-time tags have higher flexibility, diversity and comprehensiveness. The method can further reflect real-time transaction information of the user rapidly and intuitively, so that business personnel can make effective and rapid decisions on single consumption or consumption with risk, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a first flowchart of a label generation method provided in an embodiment of the present application;
FIG. 2 is a technical architecture diagram of a target tag for obtaining current transaction data according to an embodiment of the present application;
FIG. 3 is a second flowchart of a label generation method provided by an embodiment of the present application;
FIG. 4 is a flowchart of a method for generating a base database according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a label generating apparatus provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present application are shown in the drawings.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a first flowchart of a label generating method provided in the embodiment of the present application, where the method of the present embodiment can quickly and intuitively reflect real-time transaction information of a user, so that a business person can make an effective and quick decision on single consumption or consumption with risk, and improve user experience. The method may be performed by the tag generating apparatus in the embodiments of the present application, where the apparatus may be integrated in an electronic device, which may be a server, and the method may be implemented in software and/or hardware. The label generation method provided by the embodiment specifically comprises the following steps:
step 101, receiving current transaction data sent by a user.
Wherein the transaction data is data generated by the user when the transaction occurs. For example, data such as a time spent, an amount spent, an object spent, and articles spent when the user consumes the bank card. In an alternative embodiment, when the user uses a terminal (such as a mobile phone App), POS, etc. to conduct financial transaction or consumption, the terminal, POS device, etc. may send the transaction data of the user to the data exchange interface, and the server may receive the current transaction data of the user through the data exchange interface.
In this embodiment, optionally, after receiving the current transaction data sent by the user, the method further includes the following steps A1-A2:
step A1: a current transaction type of the current transaction data is determined.
Wherein the transaction types are classified according to different properties of the transaction. Transactions can differentiate financial expenditures into purchasing expenditures (or expenditures) and transferring expenditures according to their economic nature. In the scheme, the transaction types comprise financial product consumption, life service consumption, entertainment consumption, transportation travel consumption, medical service consumption, transfer consumption and the like. Specifically, after the server receives the current transaction data, the current transaction type of the current transaction data may be determined according to the data such as the consumption amount, the consumption object, and the consumption object of the current transaction data.
Step A1: judging whether the current transaction type is matched with a predetermined transaction type or not; when the current transaction type matches the predetermined transaction type, step 102 is performed.
The server can obtain a predetermined transaction type according to specific requirements and actual environments, wherein the predetermined transaction type is a transaction type for which a real-time label needs to be generated. In an alternative embodiment, after the server obtains the current transaction type, the current transaction type may be matched with a predetermined transaction type to determine whether the current transaction type is the transaction type for which a real-time tag needs to be generated. If the current transaction type matches the predetermined transaction type, a real-time tag of the current transaction data is generated based on the current transaction data.
Illustratively, the predetermined transaction types are financial product consumption, entertainment consumption, travel consumption, medical service consumption, and metastatic consumption. The user uses the mobile phone App to sell, and transaction data is generated. The server determines that the current transaction type is life service consumption according to the transaction data, matches the life service consumption with a predetermined transaction type, and obtains a matching result that the matching is failed, and the server does not generate a real-time tag of the current transaction data according to the current transaction data.
Through the steps, the current transaction data of the user can be screened according to the transaction type, and the efficiency and the accuracy of the label generation method are improved.
Step 102, generating a real-time tag of the current transaction data based on the current transaction data.
The real-time tag is generated by the server according to the current transaction data and is used for representing the characteristics of the user and the current transaction data. In an alternative embodiment, after receiving the current transaction data sent by the user, the server may capture variable data in the current transaction data and convert the variable data into corresponding kaff card data; acquiring data item configuration information and theme configuration information of the Kaff card data; a real-time tag is generated based on the data item configuration information and the subject configuration information.
Step 103, judging whether the real-time label accords with a predetermined pushing rule.
The pushing rule is used for judging whether the real-time label can be used for representing the characteristics of the user and the current transaction data. In an alternative embodiment, after generating the real-time tag of the current transaction data, the server calculates the real-time tag by using a real-time tag engine based on a preconfigured rule function to obtain a tag calculation result; matching the label calculation result with a predetermined pushing rule to obtain a matching result; when the matching result is that the matching is successful, determining that the real-time tag accords with a predetermined pushing rule; and when the matching result is that the matching fails, determining that the real-time label does not accord with a predetermined pushing rule.
And 104, when the real-time label does not accord with a predetermined pushing rule, optimizing the real-time label based on a basic database to obtain a target label of the current transaction data.
Wherein, the base database stores the historical transaction data of the user and the base label of the historical transaction data. The target tag is a tag that meets a predetermined push rule. In an optional implementation manner, when the real-time tag does not conform to a predetermined pushing rule, the server may acquire a base tag corresponding to the current transaction data from the base database; and optimizing the real-time label based on the basic label to obtain the target label meeting the predetermined pushing rule.
Fig. 2 is a technical architecture diagram of a target tag for obtaining current transaction data according to an embodiment of the present application. As shown in fig. 2, the server includes a source data layer, a data transmission layer, a service layer, a data storage layer, and a service layer. Wherein:
the source data layer includes various business transaction systems such as credit, log analysis, and the like. The source data layer is mainly used for recording transaction data when users generate the transaction data in various service systems, performing preliminary processing on the data through GBase and change data capture (Change Data Capture, CDC) through an API interface, and then transmitting the transaction data to Hadoop and a Kaff card of the data transmission layer respectively.
And the data transmission layer is mainly used for respectively acquiring historical transaction data and current transaction data from GBase and CDC, and respectively carrying out timing data warehouse technology (extract transform load, ETL) processing and real-time ETL processing on the historical transaction data and the current transaction data. After the data after the timing ETL processing and the real-time ETL processing are obtained, the data after the timing ETL processing and the real-time ETL processing are respectively stored into a Hadoop and a Kaff card. And the data are respectively transmitted into a basic label engine and a real-time label engine in the form of timing ETL data and real-time ETL data for processing.
The business layer comprises a basic label engine and a real-time label engine. The real-time label generation engine mainly provides real-time label engine rule processing for real-time ETL data transmitted by the data transmission layer, assembles the processed data into a pre-processed real-time label, and then writes the real-time label data into the data storage layer so as to facilitate subsequent use of the real-time label. The basic tag engine is used for processing the timing ETL data, and judges whether the timing ETL data accords with a preset matching rule or not according to the preset tag. And when the matching result is successful, the timing ETL data is assembled into the basic tag and is periodically written into the data storage layer in batches. In practical application, the basic tag engine and the real-time tag engine are engines for performing stream processing on data by using the system after secondary development and encapsulation of developers based on an open source averager rule engine. The averator rule engine can store the label rule customized by the service personnel into the data storage layer to serve as a pre-processed label rule, wherein the pre-processed label is divided into a basic label, an application label and a derivative label, and the basic label and the application label can serve as rule conditions to carry out secondary definition of the rule so as to generate a new derivative label. And combining the basic label and the real-time label to finally obtain the target label. The averator rule engine can also be used for processing the matching of the real-time transaction data and the historical transaction data with the preprocessing tag rule when the periodical batch running task and the real-time batch running task are executed, and storing the data after the rule matching is completed into the data storage layer.
The data storage layer comprises a relational database and a Kaff card, wherein the relational database comprises an ES data set, a mysql database, an Oracle database and the like. The relation type database is used for storing the preprocessed basic tag information and the historical transaction data, the ES data cluster is used for storing all the regular processed historical transaction data which are written in by the basic tag engine regularly and the real-time transaction data which are written in by the real-time tag engine in real time, and the Kaff card is used for storing the real-time transaction data processed by the real-time tag engine.
The service layer is used for providing specific applications of the real-time labels, such as user portraits, downstream systems and the like.
And 105, when the real-time label accords with a predetermined pushing rule, obtaining the target label of the current transaction data based on the real-time label.
When the real-time tag accords with a predetermined pushing rule, the real-time tag can be used for representing the characteristics of the user and the current transaction data, and the server can directly determine the real-time tag as a target tag of the current transaction data.
In the technical solution of this embodiment, current transaction data sent by a user is received. A real-time tag of the current transaction data is generated based on the current transaction data. And judging whether the real-time label accords with a predetermined pushing rule. And when the real-time label does not accord with a predetermined pushing rule, optimizing the real-time label based on a basic database to obtain a target label of the current transaction data. According to the technical scheme, the tags can be generated in real time according to the current transaction data of the user, and the basic tags and the tags generated in real time are combined to generate diversified real-time tags, so that the generated real-time tags have higher flexibility, diversity and comprehensiveness. The method can further reflect real-time transaction information of the user rapidly and intuitively, so that business personnel can make effective and rapid decisions on single consumption or consumption with risk, and user experience is improved.
Fig. 3 is a second flowchart of a label generating method according to an embodiment of the present application, as shown in fig. 3, the method mainly includes the following steps:
step 301, current transaction data sent by a user is received.
Step 302, capturing variable data in the current transaction data, and converting the variable data into corresponding card data.
Wherein the variable data is data that changes in the course of generating transaction data. Such as a consumption amount and a consumption object, etc. The card data is data stored in the card platform. The Kaff card is an open source stream processing platform and can be written in the Scala language and the Java language. A card is a high throughput distributed publish-subscribe messaging system that can handle all action flow data for consumers in a web site.
In an alternative embodiment, after the server receives the current transaction data, ETL preprocessing is performed on the current transaction data to obtain preprocessed current transaction data. And observing the changed data in the database for storing the current transaction data by utilizing the CDC technology, storing the data into the card, and converting the variable data into corresponding card data.
Step 303, acquiring data item configuration information and theme configuration information of the card data.
Wherein the data items and topics are the requisite parameters in the kava message queue. In an alternative embodiment, the technician may configure the data item configuration information and the theme configuration information in the card in advance according to specific requirements and actual environments. After the server performs CDC processing on the current transaction data, the data item configuration information and the theme configuration information which are configured in advance by the user can be obtained.
Step 304, generating a real-time tag based on the data item configuration information and the theme configuration information.
In particular, the server may use a card for fault tolerant storage. After the theme configuration information of the card is obtained, the card can copy the theme log partition in the transaction data to different servers according to the theme configuration information. The card is a framework for real-time streaming data, provides real-time analysis, and can automatically generate a real-time label for current transaction data by utilizing the card after the server acquires the data item configuration information and the main body configuration information of the card.
Step 305, determining whether the real-time tag meets a predetermined pushing rule.
The pushing rule is used for judging whether the real-time label can be used for representing the characteristics of the user and the current transaction data. In this embodiment, optionally, the step of determining whether the real-time tag meets a predetermined pushing rule includes the following steps B1-B2:
step B1: and calculating the real-time label based on a preconfigured rule function by a real-time label engine to obtain a label calculation result.
Wherein the real-time tag engine may be a lightweight JAVA rules engine (Aviator). The Aviator supports basic types such as numbers, character strings, regular expressions, boolean values, regular expressions and the like, and completely supports all Java operators, priorities and the like. The user can configure rule functions in the Aviator in advance according to specific requirements and actual environments. The Aviator supports closure and functional programming. The Aviator is internally provided with complete script grammar support, including a plurality of lines of data, conditional sentences, loop sentences, lexical scopes, exception handling and the like.
In an alternative embodiment, after the server generates the real-time tag, the card automatically writes the data into the tag engine in real time, and meanwhile, invokes the real-time tag batch running task to calculate the real-time tag according to a pre-configured rule function to obtain a tag calculation result.
Step B2: matching the label calculation result with a predetermined pushing rule to obtain a matching result; and when the matching result is that the matching is successful, determining that the real-time label accords with a predetermined pushing rule.
The pushing rule is used for judging whether the real-time label can be used for representing the characteristics of the user and the current transaction data. When the tag calculation result and the matching result of the predetermined pushing rule are successful, the real-time tag can be used for representing the characteristics of the user and the current transaction data, and the real-time tag can be further determined to accord with the predetermined pushing rule.
Step B3: and when the matching result is that the matching fails, determining that the real-time label does not accord with a predetermined pushing rule.
When the matching result of the tag calculation result and the predetermined pushing rule is that the matching fails, the real-time tag is indicated to be incapable of being used for representing the characteristics of the user and the current transaction data, and further, the fact that the real-time tag does not accord with the predetermined pushing rule can be determined.
Through the steps, whether the real-time label needs to be optimized or not can be accurately judged in real time, and the label generation efficiency is improved.
And 306, when the real-time label does not accord with a predetermined pushing rule, optimizing the real-time label based on a basic database to obtain a target label of the current transaction data.
Wherein, the basic database stores basic labels of historical transaction data of users. In this embodiment, optionally, optimizing the real-time tag based on the base database to obtain the target tag of the current transaction data includes: acquiring a basic label corresponding to current transaction data from a basic database; and optimizing the real-time label based on the basic label to obtain the target label.
In an alternative embodiment, the server may acquire historical transaction data of the user from the external database according to a preset period before receiving the current transaction data sent by the user; performing data warehouse technology (ETL) processing on the historical transaction data to obtain ETL data corresponding to the historical transaction data; converting ETL data corresponding to the historical transaction data into Hadoop data, and acquiring basic tag rules stored in a rule database through a basic tag engine; and configuring Hadoop data according to basic label rules through a basic label engine to obtain a basic label of a user, and storing the basic label of the user and historical transaction data corresponding to the basic label into a basic database. When the real-time tag does not accord with a predetermined pushing rule, the server can acquire the basic tag with the missing real-time tag from the basic database according to the judging result, and perform supplementary optimization on the real-time tag based on the basic tag with the missing real-time tag to acquire the target tag of the current transaction data.
The label calculation result is an 'warning' label, which indicates that warning information needs to be pushed to a user. When the label calculation result is matched with a predetermined pushing rule, determining that basic information such as a user name and the like is absent in the calculation result. The server can search the basic label corresponding to the user name in the basic label of the user in the basic database, and supplement and optimize the real-time label by using the label to obtain the target label of the current transaction data.
In the above steps, the basic tag and the real-time generated tag can be combined to generate diversified real-time tags, so that the generated real-time tags have higher flexibility, diversity and comprehensiveness.
Step 307, when the real-time tag accords with a predetermined pushing rule, obtaining the target tag of the current transaction data based on the real-time tag.
The label generating method provided by the embodiment of the application receives the current transaction data sent by the user. Variable data in the current transaction data is captured and converted into corresponding card data. And acquiring data item configuration information and theme configuration information of the Kaff card data. A real-time tag is generated based on the data item configuration information and the subject configuration information. And judging whether the real-time label accords with a predetermined pushing rule. And when the real-time label does not accord with a predetermined pushing rule, optimizing the real-time label based on a basic database to obtain a target label of the current transaction data. And when the real-time tag accords with a predetermined pushing rule, obtaining the target tag of the current transaction data based on the real-time tag. According to the technical scheme, the tags can be generated in real time according to the current transaction data of the user, and the basic tags and the tags generated in real time are combined to generate diversified real-time tags, so that the generated real-time tags have higher flexibility, diversity and comprehensiveness. The method can further reflect real-time transaction information of the user rapidly and intuitively, so that business personnel can make effective and rapid decisions on single consumption or consumption with risk, and user experience is improved.
Fig. 4 is a flowchart of a basic database generating method according to an embodiment of the present application, as shown in fig. 4, where the method mainly includes the following steps:
step 401, obtaining historical transaction data of a user from an external database according to a preset period.
Wherein the historical transaction data of the user is transaction data generated by the user before the current period. The external database is used for acquiring transaction data of the user according to a preset period from equipment such as a terminal of the user according to the preset period. The external database may be a database such as GBase.
In an alternative embodiment, when the user uses a terminal (such as a mobile App), POS, etc. to conduct a financial transaction or consume, the user may send the transaction data of the user to the data exchange interface through the terminal, POS device, etc. The external database may receive historical transaction data of the user through the data exchange interface according to a preset period.
Step 402, performing data warehouse technology ETL processing on the historical transaction data to obtain ETL data corresponding to the historical transaction data.
The ETL is used to describe a process of extracting data from a source end, converting the data, and loading the data to a destination end. The ETL can integrate scattered, scattered and non-uniform data in the enterprise, provides analysis basis for decision making of the enterprise, and is an important link of business intelligence projects.
Specifically, the process of the ETL may be completed by any programming language, for example, the java programming language is used to perform data extraction, data conversion and data loading on the historical transaction data, and the built-in metadata function is used to store the historical transaction data and obtain the ETL data corresponding to the historical transaction data.
And step 403, converting ETL data corresponding to the historical transaction data into Hadoop data of a sea Du Pu distributed cluster, and obtaining a basic database based on the Hadoop data.
The Hadoop is a distributed system infrastructure, and a user can develop a distributed program by utilizing the Hadoop under the condition that the detail of a distributed bottom layer is not known, and fully utilize the power of a cluster to perform high-speed operation and storage. Hadoop implements a distributed file system in which one component is HDFS, which is characterized by high fault tolerance and is designed to be deployed on inexpensive hardware. HDFS can provide high throughput access to data of applications that fit applications with very large data sets. Hadoop provides storage and computation for massive amounts of data. And obtaining ETL processed data, and storing the ETL processed data into the Hadoop cluster.
In an alternative implementation mode, after the server acquires the historical transaction information of the user, ETL data processing is performed on the historical transaction information, the historical transaction data are converted into Hadoop data, and a basic database is obtained based on the Hadoop data. In this embodiment, optionally, obtaining the base database based on Hadoop data includes: acquiring basic tag rules stored in a rule database through a basic tag engine; and configuring Hadoop data according to basic label rules through a basic label engine to obtain a basic label of a user, and storing the basic label of the user and historical transaction data corresponding to the basic label into a basic database.
The rule database stores basic tag rules of users, and the rule database can be databases such as Oracle. The base database may be a label mix repository made up of data storage media such as ES clusters, oracle, mySQL, redis, etc.
In an alternative embodiment, the basic tag engine can introduce the Hadoop data which is cached in the Hadoop and is subjected to ETL processing into the basic tag engine through the timing batch running task, and meanwhile, the timing batch running task calls a corresponding interface to inquire basic tag rules stored in a rule database, so that a basic tag of a user is obtained. Further, the basic tag engine calculates and matches the preprocessed tag rules for the introduced Hadoop data, assembles the data into corresponding and matched client tags and stores the data in the basic database.
In practical application, when the downstream system needs to use the Hadoop data processed by the basic tag engine, the downstream system can execute corresponding service through the interface by calling the corresponding service interface to inquire the historical transaction data and the basic tag data stored in the basic tag database, and the basic tag database can return the historical transaction data and the basic tag data meeting the conditions.
Through the steps, the basic label of the user can be accurately and rapidly generated according to the historical transaction data, and a foundation is laid for optimizing the real-time label by using the basic label later.
According to the basic database generation method provided by the embodiment, historical transaction data of a user is obtained from an external database according to a preset period; performing data warehouse technology (ETL) processing on the historical transaction data to obtain ETL data corresponding to the historical transaction data; ETL data corresponding to the historical transaction data are converted into Hadoop data of a sea Du Pu distributed cluster, and a basic database is obtained based on the Hadoop data. According to the technical scheme provided by the embodiment, the basic label can be generated according to the historical transaction data, a basis is provided for optimizing the real-time label by using the basic label, and the generated real-time label has higher flexibility, diversity and comprehensiveness.
Fig. 5 is a schematic structural diagram of a label generating apparatus according to an embodiment of the present application. The embodiment of the application provides a label generating device, which comprises:
a receiving module 501, configured to receive current transaction data sent by a user;
a generating module 502, configured to generate a real-time tag of the current transaction data based on the current transaction data;
a judging module 503, configured to judge whether the real-time tag meets a predetermined pushing rule;
and an optimizing module 504, configured to optimize the real-time tag based on a base database to obtain a target tag of the current transaction data when the real-time tag does not conform to a predetermined pushing rule.
Optionally, the generating module 502 is specifically configured to: capturing variable data in the current transaction data and converting the variable data into corresponding card data;
acquiring data item configuration information and theme configuration information of the card data;
the real-time tag is generated based on the data item configuration information and the theme configuration information.
Optionally, the judging module 503 is specifically configured to: calculating the real-time label based on a preconfigured rule function by a real-time label engine to obtain a label calculation result;
Matching the label calculation result with the predetermined pushing rule to obtain a matching result; when the matching result is that the matching is successful, determining that the real-time tag accords with the predetermined pushing rule;
and when the matching result is that the matching fails, determining that the real-time tag does not accord with the predetermined pushing rule.
Optionally, the optimizing module 504 is specifically configured to: acquiring a basic label corresponding to the current transaction data from the basic database;
and optimizing the real-time tag based on the basic tag to obtain the target tag.
Optionally, the optimizing module 504 is further configured to: acquiring historical transaction data of the user from an external database according to a preset period;
performing data warehouse technology (ETL) processing on the historical transaction data to obtain ETL data corresponding to the historical transaction data;
and converting ETL data corresponding to the historical transaction data into Hadoop data of a sea Du Pu distributed cluster, and obtaining the basic database based on the Hadoop data.
Optionally, the optimizing module 504 is further configured to: acquiring basic tag rules stored in a rule database through a basic tag engine;
And configuring the Hadoop data according to the basic tag rule by the basic tag engine to obtain a basic tag of the user, and storing the basic tag of the user and historical transaction data corresponding to the basic tag into the basic database.
Optionally, the receiving module 501 is specifically configured to: determining a current transaction type of the current transaction data;
judging whether the current transaction type is matched with a predetermined transaction type or not; and when the current transaction type is matched with the predetermined transaction type, executing the step of generating the real-time label of the current transaction data according to a predetermined label generation rule.
The label generating device provided by the embodiment of the application can execute the label generating method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the executing method.
Fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and referring to fig. 6, a schematic structural diagram of a computer system 12 suitable for implementing the electronic device in an embodiment of the present application is shown. The electronic device shown in fig. 6 is only an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present application. Components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, industry standard architecture (interface SA) buses, micro-channel architecture (MAC) buses, enhanced interface SA buses, video Electronics Standards Association (VESA) local buses, and peripheral component interconnect (PC interface) buses.
Electronic device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in fig. 6, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the present application.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods in the embodiments described herein.
The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (interface/O) interface 22. In the electronic device 12 of the present embodiment, the display 24 is not provided as a separate body but is embedded in the mirror surface, and the display surface of the display 24 and the mirror surface are visually integrated when the display surface of the display 24 is not displayed. Also, the electronic device 12 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 over the bus 18. It should be appreciated that although not shown in fig. 6, other hardware and/or software modules may be used in connection with electronic device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RA interface D systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and tag generation by running a program stored in the system memory 28, for example, implementing a tag generation method provided in the embodiment of the present application: receiving current transaction data sent by a user; generating a real-time tag of the current transaction data based on the current transaction data; judging whether the real-time label accords with a predetermined pushing rule or not; and when the real-time tag does not accord with a predetermined pushing rule, optimizing the real-time tag based on a basic database to obtain the target tag of the current transaction data.
The present embodiments provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a label generation method as provided by all the embodiments of the present application: receiving current transaction data sent by a user; generating a real-time tag of the current transaction data based on the current transaction data; judging whether the real-time label accords with a predetermined pushing rule or not; and when the real-time tag does not accord with a predetermined pushing rule, optimizing the real-time tag based on a basic database to obtain the target tag of the current transaction data. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present application and the technical principle applied. Those skilled in the art will appreciate that the present application is not limited to the particular embodiments described herein, but is capable of numerous obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the present application. Therefore, while the present application has been described in connection with the above embodiments, the present application is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present application, the scope of which is defined by the scope of the appended claims.

Claims (10)

1. A method of tag generation, the method comprising:
receiving current transaction data sent by a user;
generating a real-time tag of the current transaction data based on the current transaction data;
judging whether the real-time label accords with a predetermined pushing rule or not;
and when the real-time tag does not accord with a predetermined pushing rule, optimizing the real-time tag based on a basic database to obtain the target tag of the current transaction data.
2. The method of claim 1, wherein generating a real-time tag of the current transaction data based on the current transaction data comprises:
Capturing variable data in the current transaction data and converting the variable data into corresponding card data;
acquiring data item configuration information and theme configuration information of the card data;
the real-time tag is generated based on the data item configuration information and the theme configuration information.
3. The method of claim 1, wherein determining whether the real-time tag meets a predetermined push rule comprises:
calculating the real-time label based on a preconfigured rule function by a real-time label engine to obtain a label calculation result;
matching the label calculation result with the predetermined pushing rule to obtain a matching result; when the matching result is that the matching is successful, determining that the real-time tag accords with the predetermined pushing rule;
and when the matching result is that the matching fails, determining that the real-time tag does not accord with the predetermined pushing rule.
4. The method of claim 1, wherein optimizing the real-time tag based on a base database results in a target tag for the current transaction data, comprising:
acquiring a basic label corresponding to the current transaction data from the basic database;
And optimizing the real-time tag based on the basic tag to obtain the target tag.
5. The method of claim 1, wherein prior to obtaining current transaction data sent by the user, the method further comprises:
acquiring historical transaction data of the user from an external database according to a preset period;
performing data warehouse technology (ETL) processing on the historical transaction data to obtain ETL data corresponding to the historical transaction data;
and converting ETL data corresponding to the historical transaction data into Hadoop data of a sea Du Pu distributed cluster, and obtaining the basic database based on the Hadoop data.
6. The method of claim 5, wherein obtaining the base database based on Hadoop data comprises:
acquiring basic tag rules stored in a rule database through a basic tag engine;
and configuring the Hadoop data according to the basic tag rule by the basic tag engine to obtain a basic tag of the user, and storing the basic tag of the user and historical transaction data corresponding to the basic tag into the basic database.
7. The method of claim 1, wherein prior to generating the real-time tag of the current transaction data according to a predetermined tag generation rule, the method further comprises:
Determining a current transaction type of the current transaction data;
judging whether the current transaction type is matched with a predetermined transaction type or not; and when the current transaction type is matched with the predetermined transaction type, executing the step of generating the real-time label of the current transaction data according to a predetermined label generation rule.
8. A label producing apparatus, comprising:
the receiving module is used for receiving current transaction data sent by a user;
the generation module is used for generating a real-time tag of the current transaction data based on the current transaction data;
the judging module is used for judging whether the real-time tag accords with a predetermined pushing rule or not;
and the optimizing module is used for optimizing the real-time tag based on a basic database to obtain the target tag of the current transaction data when the real-time tag does not accord with a predetermined pushing rule.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the label generation method according to any one of claims 1 to 7 when executing the program.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a label generating method according to any of claims 1-7.
CN202310397282.2A 2023-04-14 2023-04-14 Label generation method and device, electronic equipment and storage medium Pending CN116485535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310397282.2A CN116485535A (en) 2023-04-14 2023-04-14 Label generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310397282.2A CN116485535A (en) 2023-04-14 2023-04-14 Label generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116485535A true CN116485535A (en) 2023-07-25

Family

ID=87218800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310397282.2A Pending CN116485535A (en) 2023-04-14 2023-04-14 Label generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116485535A (en)

Similar Documents

Publication Publication Date Title
US11915123B2 (en) Fusing multimodal data using recurrent neural networks
CN110543946A (en) method and apparatus for training a model
CN112463968B (en) Text classification method and device and electronic equipment
CN112861662B (en) Target object behavior prediction method based on face and interactive text and related equipment
Madakam et al. The next generation intelligent automation: hyperautomation
CN111768322A (en) Charitable service platform system
CN114358147A (en) Training method, identification method, device and equipment of abnormal account identification model
US20230316129A1 (en) Auxiliary implementation method and apparatus for online prediction using machine learning model
CN115168460A (en) Data processing method, data transaction system, device and storage medium
CN108830715A (en) Batch file part disk returning processing method and system
CN113570468A (en) Enterprise payment wind control service platform
US12118622B2 (en) System and method for dimensionality reduction of vendor co-occurrence observations for improved transaction categorization
CN116860856A (en) Financial data processing method and device, computer equipment and storage medium
US20210349920A1 (en) Method and apparatus for outputting information
CN114357280A (en) Information pushing method and device, electronic equipment and computer readable medium
CN117033431A (en) Work order processing method, device, electronic equipment and medium
CN117273968A (en) Accounting document generation method of cross-business line product and related equipment thereof
US20220383125A1 (en) Machine learning aided automatic taxonomy for marketing automation and customer relationship management systems
CN116485535A (en) Label generation method and device, electronic equipment and storage medium
CN113032586B (en) Method and device for extracting time information in text and electronic equipment
KR20230059364A (en) Public opinion poll system using language model and method thereof
Selvaraj et al. Offline-to-Online Service and Big Data Analysis for End-to-end Freight Management System.
CN112950382A (en) Transaction business matching method and device, electronic equipment and medium
CN113743906A (en) Method and device for determining service processing strategy
CN113569256A (en) Vulnerability scanning method and device, vulnerability scanning system, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination