Rating data processing method and device, computer equipment, storage medium and computer program product

By obtaining and updating grade change rating data, the problem of rating errors caused by data transmission delays is solved, ensuring rating accuracy and system stability.

CN118673030APending Publication Date: 2024-09-20CHINA CONSTRUCTION BANK +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410726912.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

When using traditional technology to rate users, due to data transmission delays, late data cannot participate in grade calculations, and abnormal situations occur. It is urgent to solve the rating errors caused by abnormal data transmission.

Method used

By obtaining the initial change rating data and the grade validity period, the grade change type of the target processing cycle is determined, and the total change rating data is updated based on the initial change rating data to ensure that late data can participate in the grade calculation and correct rating errors.

Benefits of technology

Effectively correct rating errors caused by data transmission anomalies, allowing late data to participate in rating calculations to ensure rating accuracy and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673030A
    Figure CN118673030A
Patent Text Reader

Abstract

The invention relates to the technical field of big data processing, in particular to a rating data processing method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: acquiring initial change rating data and a rating effective period; when a target processing period corresponding to the initial change rating data is before a grade effective period, obtaining a first grade change type of the target processing period; when the first grade change type is grade retention or grade reduction, obtaining total change rating data of a target processing cycle, and updating the total change rating data of the target processing cycle based on the initial change rating data; obtaining a target change type of the target processing cycle based on the updated total change rating data of the target processing cycle; and based on the target change type and the initial change rating data, updating total change rating data of the grade effective period. By adopting the method, rating errors caused by abnormal data transmission can be corrected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of big data processing, and in particular to a rating data processing method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the development of Internet technology, users have more and more personalized needs, and better customer acquisition and retention have become an urgent need. The user growth system membership level platform can better solve this problem. The membership rating of the membership level platform is a comprehensive rating of users based on their account data, transaction data, behavior data, etc. on the application, and a certain validity period is reserved for the user level, and the level is downgraded or maintained on the expiration date.

[0003] In traditional technology, when evaluating user levels, the user level is usually determined based on the account data, transaction data, and behavior data in the current cycle. However, due to data transmission anomalies, such as data transmission delays, the user level may be calculated but the data of the level calculation cycle will arrive. Such data cannot be used for level calculation, resulting in an abnormal situation. Therefore, a solution to the above data transmission anomalies is urgently needed. Summary of the invention

[0004] Based on this, it is necessary to provide a rating data processing method, device, computer equipment, computer-readable storage medium and computer program product that can correct rating errors caused by data transmission anomalies in response to the above technical problems.

[0005] In a first aspect, the present application provides a rating data processing method, the method comprising:

[0006] Obtain initial rating change data and rating validity period;

[0007] When the target processing period corresponding to the initial change rating data is before the rating validity period, obtaining a first rating change type of the target processing period;

[0008] When the first level change type is level retention or level reduction, obtaining total change rating data of the target processing cycle, and updating the total change rating data of the target processing cycle based on the initial change rating data;

[0009] Based on the updated total change rating data of the target processing period, obtaining a target change type of the target processing period;

[0010] Based on the target change type and the initial change rating data, the total change rating data of the rating validity period is updated.

[0011] In one embodiment, updating the total change rating data of the rating validity period based on the target change type and the initial change rating data includes:

[0012] When the target change type is grade retention or grade reduction, the initial change rating data is added to the total change rating data of the grade validity period;

[0013] When the target change type is level upgrade, the level change rating data of the target processing period and the initial change rating data are added to the total change rating data of the level effective period.

[0014] In one embodiment, the method further comprises:

[0015] When the first level change type is level upgrade, the initial change rating data is added to the total change rating data of the level validity period.

[0016] In one embodiment, obtaining the initial change rating data and the rating validity period includes:

[0017] Acquire the original data to be processed, and store the original data to be processed in the middleware;

[0018] When there is an anomaly in the original data to be processed, difference data is calculated based on the original data to be processed acquired twice before and after and stored in the middleware;

[0019] The rating data to be processed is obtained based on the difference data through a real-time calculation engine.

[0020] In one embodiment, after obtaining the initial change rating data and the rating validity period, the method further includes:

[0021] When the initial change rating data processing period is after the rating validity period, determining the data direction of the initial change rating data;

[0022] updating the temporary rating data in the temporary change field based on the data direction;

[0023] When the updated temporary rating data is less than the target value, the target value is cached in the temporary change field; otherwise, the updated temporary rating data is cached in the temporary change field.

[0024] In one embodiment, after updating the total change rating data of the rating validity period based on the target change type and the initial change rating data, the method includes:

[0025] Determining a second grade change type for the grade validity period based on the total change rating data;

[0026] Based on the second level change type, each business field in the level change table is updated to obtain a level change flow record;

[0027] The first business field in the grade table is updated based on the second grade change type, and the initial value of the change rating data in the grade table is obtained based on the temporary rating data of the temporary change field.

[0028] In a second aspect, the present application further provides a rating data processing device, the device comprising:

[0029] The data acquisition module is used to obtain the initial change rating data and the validity period of the rating;

[0030] A first level change type determination module, configured to obtain a first level change type of the target processing period when the target processing period corresponding to the initial change rating data is before the level effective period;

[0031] an updating module, configured to obtain the total change rating data of the target processing cycle when the first level change type is level retention or level reduction, and update the total change rating data of the target processing cycle based on the initial change rating data;

[0032] a target change type determination module, configured to obtain a target change type of the target processing period based on the updated total change rating data of the target processing period;

[0033] A rating data updating module is used to update the total change rating data of the rating validity period based on the target change type and the initial change rating data.

[0034] In one of the embodiments, the rating data update module is specifically used to add the initial change rating data to the total change rating data of the level validity period when the target change type is level retention or level reduction; when the target change type is level upgrade, add the level change rating data of the target processing period and the initial change rating data to the total change rating data of the level validity period.

[0035] In one of the embodiments, the rating data updating module is specifically used to increase the initial change rating data to the total change rating data of the grade validity period when the first grade change type is grade upgrade.

[0036] In one embodiment, the device further comprises:

[0037] An original data acquisition module is used to acquire the original data to be processed and store the original data to be processed in the middleware;

[0038] A difference data determination module, configured to calculate difference data based on the original data to be processed acquired twice before and after and stored in the middleware when anomalies exist in the original data to be processed;

[0039] The rating data calculation module is used to obtain the rating data to be processed based on the difference data through a real-time calculation engine.

[0040] In one embodiment, the device further comprises:

[0041] A data direction determination module, configured to determine the data direction of the initial change rating data when the initial change rating data processing period is after the rating validity period;

[0042] A temporary rating data updating module, used for updating the temporary rating data in the temporary change field based on the data direction;

[0043] A cache module is used to cache the target value to the temporary change field when the updated temporary rating data is less than the target value, and otherwise cache the updated temporary rating data to the temporary change field.

[0044] In one embodiment, the device further comprises:

[0045] A level update module is used to determine a second level change type in the level validity period based on the total change rating data; to update each business field in the level change table based on the second level change type to obtain a level change flow record; to update the first business field in the level table based on the second level change type, and to obtain an initial value of the change rating data in the level table based on the temporary rating data of the temporary change field.

[0046] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in any one of the above-mentioned embodiments when executing the computer program.

[0047] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method in any one of the above-mentioned embodiments.

[0048] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the method in any one of the above-mentioned embodiments when executed by a processor.

[0049] The above-mentioned rating data processing method, device, computer equipment, storage medium and computer program product obtain initial change rating data and grade validity period; when the target processing period corresponding to the initial change rating data is before the grade validity period, that is, when the data is delayed, the first grade change type of the target processing period is obtained, and when the grade change type is determined to be a retention level or a downgrade, the actual target change type of the target period is determined based on the total change rating data of the target period and the initial change rating data, and then the total change rating data of the grade validity period is updated based on the target change type and the initial change rating data. In this way, by processing the delayed data, the late data can also participate in the calculation of the grade, thereby correcting the rating errors caused by data transmission abnormalities. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0051] FIG1 is a diagram of an application environment of a rating data processing method in one embodiment;

[0052] FIG2 is a schematic flow chart of a rating data processing method in one embodiment;

[0053] FIG3 is a flow chart of the initial change rating data processing steps in one embodiment;

[0054] FIG4 is a flow chart of a rating data processing method in another embodiment;

[0055] FIG5 is a structural block diagram of a rating data processing device in one embodiment;

[0056] FIG. 6 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0058] The rating data processing method provided in the embodiment of the present application can be applied in the application environment shown in FIG1 . The data collection terminal 102 communicates with the middleware 104 through the network, and the server 106 can obtain the data stored in the middleware 104. The data storage system can store the data that the server 106 needs to process. The data storage system can be integrated on the server 106, or it can be placed on the cloud or other network servers.

[0059] The data collection terminal 102 sends the collected raw data to be processed to the middleware 104 for storage. In addition, the middleware 104 can also store the validity period of each level; the server 106 obtains the raw data to be processed from the middleware 104 and processes it to obtain the initial rating data and the validity period of the level. When the target processing period corresponding to the initial change rating data is before the level validity period, the first level change type of the target processing period is obtained; when the first level change type is level retention or level reduction, the total change rating data of the target processing period is obtained, and based on the initial change rating data, the total change rating data of the target processing period is updated; based on the updated total change rating data of the target processing period, the target change type of the target processing period is obtained; based on the target change type and the initial change rating data, the total change rating data of the level validity period is updated. In this way, by processing the delayed data, the late data can also participate in the calculation of the level, so that the rating error caused by abnormal data transmission can be corrected.

[0060] The data collection terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The middleware 104 may be a database for temporary or permanent data storage, such as a kafka database. The server 106 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0061] In an exemplary embodiment, as shown in FIG2 , a rating data processing method is provided, which is described by taking the method applied to the server 106 in FIG1 as an example, and includes the following steps S202 to S210. Among them:

[0062] S202: Obtain initial change rating data and rating validity period.

[0063] The initial change rating data can be calculated based on each raw data to be processed. As shown in FIG1 , different data collection terminals obtain different raw data to be processed, including online transaction data, batch file data, and real-time message data. The data formats of data from different sources are different. Therefore, the server processes different raw data to be processed separately to obtain the corresponding types of initial change rating data. The different types of initial change rating data need to be calculated one by one, because the same customer may be upgraded when processing the previous one, and the next one must be processed on the basis of the previous one.

[0064] The level validity period is the validity period of the current level of a customer, for example, the validity period can be one month, one week, etc., and no special limitation is made here. The validity period of different customers can be different.

[0065] The level validity period may also be sent to the middleware in advance. Optionally, only the list of customers whose levels have expired may be sent to the middleware, or all level validity periods may be cached in the middleware. This embodiment does not specifically limit the method for obtaining the level validity period.

[0066] S204: When the target processing period corresponding to the initial change rating data is before the rating effective period, the first level change type of the target processing period is obtained.

[0067] The target processing cycle corresponding to the initial change rating data is before the effective cycle of the rating. That is to say, the data that should have been processed in the target processing cycle arrives within the effective cycle of the rating. That is, the original data to be processed corresponding to the initial change rating data arrives late. Therefore, the initial change rating data needs to be processed to compensate for the processing results of the target processing cycle.

[0068] The level change types include level retention, level reduction and level increase. In order to compensate for the processing result of the target processing cycle, the processing result of the target processing cycle is first obtained, that is, the first level change type here.

[0069] S206: When the first level change type is level retention or level reduction, obtain total change rating data of the target processing cycle, and update the total change rating data of the target processing cycle based on the initial change rating data.

[0070] The total changed rating data is a summary of all initial rating data in a processing cycle, including the initial rating data obtained in the processing cycle based on the original data to be processed belonging to the processing cycle, and the initial rating data obtained based on the original data to be processed belonging to the processing cycle that arrived in advance and was received in the previous processing cycle.

[0071] Different first-level change types have different corresponding compensation logics, so different first-level change types are processed separately. When the first-level change type is level retention or level reduction, the total change rating data of the target processing period is determined, and the total change rating data can be stored in the customer level change history table.

[0072] Among them, the initial change rating data that is subject to data delay should have been aggregated into the total change rating data in the target processing cycle. However, due to data delay, it was not aggregated, and it indicated that if the late data arrived normally, the customer should not have been downgraded or retained. It is necessary to resend the lost initial change rating data to the customer. Therefore, the initial change rating data with data delay is first aggregated into the total change rating data.

[0073] In addition, it should be noted that in this embodiment, the data direction of the initial change rating data belonging to data delay is also judged. If the data direction is to reduce the total change rating data, no processing is required. If the data direction is to increase the total change rating data, the initial change rating data of the data delay is aggregated into the total change rating data.

[0074] In one of the optional embodiments, the above method further includes: when the first level change type is level upgrade, adding the initial change rating data to the total change rating data of the level effective period.

[0075] When the first level change type is level upgrade, the initial change rating data is directly added to the total change rating data of the level effective period to compensate for the initial change rating data that was not added in the target processing period.

[0076] S208: Based on the updated total change rating data of the target processing cycle, obtain the target change type of the target processing cycle.

[0077] The server determines the actual change type of the target processing cycle, ie, the target change type here, based on the updated total change rating data of the target processing cycle.

[0078] S210: Based on the target change type and the initial change rating data, update the total change rating data of the rating validity period.

[0079] In one of the optional embodiments, the total change rating data of the level validity period is updated based on the target change type and the initial change rating data, including: when the target change type is level retention or level reduction, the initial change rating data is added to the total change rating data of the level validity period; when the target change type is level upgrade, the level change rating data of the target processing period and the initial change rating data are added to the total change rating data of the level validity period.

[0080] Among them, if the target change type is level retention or level reduction, the initial change rating data will be added to the total change rating data of the level effective period; if the target change type is level upgrade, the level change rating data and the initial change rating data of the target processing period recorded at the previous level will be added together and used as the incremental initial change rating data to be updated to the level effective period.

[0081] Specifically, if the initial rating change data is within a period before the current level validity period, it means that the customer's previous level has expired, but the data that should have been within the validity period of the previous level is late.

[0082] If the initial change rating data is revoked, there is no need to pay attention to it. Otherwise, the initial change rating data is accumulated in the field of the initial change rating data of the change revised to the next level in the corresponding record of the previous level.

[0083] Next, it is necessary to determine the action type of the previous level change. If it is an upgrade, the late initial change rating data will be added to the level validity period. If it is to maintain or downgrade, it means that if the late data arrives normally, the customer should not have been downgraded or maintained, and the customer needs to reissue this part of the lost initial change rating data. Therefore, perform the following steps: sum up the total value field of the initial change rating data in the previous level record of the member level change history table and the revised initial change rating data field after the next level, and determine whether the previous level will be upgraded. If it cannot be upgraded, the late initial change rating data will be added to the level validity period; if it can be upgraded, the initial change rating data caused by the level change in the previous level record and the revised initial change rating data field after the next level are summed up as incremental initial change rating data, and updated to the level validity period.

[0084] The above-mentioned rating data processing method obtains the initial change rating data and the grade validity period; when the target processing period corresponding to the initial change rating data is before the grade validity period, that is, when the data is delayed, the first grade change type of the target processing period is obtained, and when the grade change type is determined to be retaining the level or downgrading, the actual target change type of the target period is determined based on the total change rating data of the target period and the initial change rating data, and then the total change rating data of the grade validity period is updated based on the target change type and the initial change rating data. In this way, by processing the delayed data, the late data can also participate in the calculation of the grade, thereby correcting the rating errors caused by data transmission abnormalities.

[0085] In one of the optional embodiments, after obtaining the initial change rating data and the grade validity period, it also includes: when the initial change rating data processing cycle is after the grade validity period, determining the data direction of the initial change rating data; updating the temporary rating data in the temporary change field based on the data direction; when the updated temporary rating data is less than the target value, caching the target value to the temporary change field, otherwise caching the updated temporary rating data to the temporary change field.

[0086] The initial rating change data processing cycle is after the valid period of the rating, which means that the valid period of the customer rating is about to expire, but the rating has not been maintained or downgraded yet. Data after the valid period has arrived in advance, and the initial rating change data after the valid period needs to be cached in a temporary field. If the data direction of the newly arrived data is revocation, the temporary initial rating change data needs to be deducted, and it can only be deducted to the target value at most, such as 0. In other embodiments, the target value can also be other values.

[0087] One point that needs to be explained is that if the initial rating change data is within the effective period of the level and the transaction direction of the initial rating change data is reverse, then: the initial rating change data of the corresponding category within the effective period of the level is deducted; if the initial rating change data of the corresponding category after deduction is less than the target value, such as 0, the initial rating change data of the corresponding category is changed to the target value. The total initial rating change data of the current level is deducted.

[0088] If the transaction direction of the initial change rating data is positive, the initial change rating data and the total initial change rating data of the corresponding category within the effective period of the rating will be updated in real time.

[0089] For convenience, as shown in Figure 3, Figure 3 is a flowchart of the initial change rating data processing steps in an embodiment. In this embodiment, the initial change rating data calculation module must process one record before processing the next one; because the same customer may be upgraded when processing the previous one, the latter must be processed on the basis of the previous one. One point that needs to be explained is that the growth value in Figure 3 is the initial change rating data in this application, and the total growth value is the total change rating data in this application. Category is the classification of initial change rating data, for example, including basic rating data, active rating data, consumption rating data, etc., which is not specifically limited here. The rating data of each category is calculated from the corresponding original data to be processed.

[0090] Each customer level has a fixed validity period, such as 30 days. The data read in real time from the initial rating change data change flow may be within the customer level validity period (which is the normal case in most cases), before the validity period, or after the validity period.

[0091] In the first case, the target processing period corresponding to the initial change rating data is the rating validity period:

[0092] If the transaction direction of the initial change rating data of the change is reverse, then: the initial change rating data of the corresponding category within the effective period of the level will be deducted; if the initial change rating data of the corresponding category after deduction is less than 0, the initial change rating data of the corresponding category will be changed to 0. The total initial change rating data of the current level will be deducted.

[0093] If the transaction direction of the changed initial rating data is positive, the initial rating data of the corresponding category and the total initial rating data of the changed rating within the effective period of the rating are updated in real time. Then, it is determined whether the real-time upgrade conditions are met.

[0094] The second case: the target processing period corresponding to the initial change rating data is after the rating validity period:

[0095] This means that the customer's rating validity period is about to expire, but the customer has not yet been relegated or downgraded. Data after the validity period has arrived in advance, and the initial rating change data after the validity period needs to be cached in a temporary field. If the transaction direction of the newly arrived data is cancellation, the temporary initial rating change data needs to be deducted, and the maximum deduction can only be 0.

[0096] The third case: The target processing period corresponding to the initial change rating data is before the rating validity period:

[0097] This means that the customer’s previous level has expired, but the data that should have been within the validity period of the previous level has arrived late.

[0098] If the initial change rating data is revoked, there is no need to pay attention to it. Otherwise, the initial change rating data is accumulated in the field of the initial change rating data of the change revised to the next level in the corresponding record of the previous level.

[0099] Next, it is necessary to determine the action type of the previous level change. If it is an upgrade, the late initial change rating data will be added to the level validity period. If it is to maintain or downgrade, it means that if the late data arrives normally, the customer should not have been downgraded or maintained, and the customer needs to reissue this part of the lost initial change rating data. Therefore, perform the following steps: sum up the total value field of the initial change rating data in the previous level record of the member level change history table and the revised initial change rating data field after the next level, and determine whether the previous level will be upgraded. If it cannot be upgraded, the late initial change rating data will be added to the level validity period; if it can be upgraded, the initial change rating data caused by the level change in the previous level record and the revised initial change rating data field after the next level are summed up as incremental initial change rating data, and updated to the level validity period.

[0100] In the above embodiment, the processing mechanism for abnormal situations includes the processing methods for data delay, early arrival and correction of data. If the customer should not be downgraded due to missing the previous level validity period data, the program can automatically restore the customer's lost change rating data and restore the customer's level; for the future level validity period data, it is temporarily cached, and when the level changes, the temporary change rating data is added to the new validity period. This abnormal situation processing mechanism can effectively deal with various unexpected situations and ensure the stability and reliability of the system.

[0101] In one of the optional embodiments, obtaining the initial change rating data and before the validity period of the rating includes: obtaining the original data to be processed, and storing the original data to be processed in the middleware; when there is an abnormality in the original data to be processed, calculating the difference data based on the original data to be processed obtained twice before and after and stored in the middleware; and obtaining the rating data to be processed based on the difference data through the real-time calculation engine.

[0102] In this embodiment, combined with Figure 4, Figure 4 is a flowchart of a rating data processing method in another embodiment, wherein the flowchart includes a data acquisition step, a data correction step, a rating data calculation step, and a grade calculation step.

[0103] The data acquisition step is to send the online transaction data, batch file data, and real-time message data of the upstream source components to Kafka. In addition, the customer list with daily level expiration is also sent to Kafka at dawn every day (or other periods, not specifically limited here).

[0104] The data correction step is that when the upstream source data is incorrect for the first time, the data needs to be corrected afterwards, and the difference after comparing the two data is sent to Kafka as incremental data. That is to say, when there is an abnormality in the original data to be processed, the difference data can be calculated based on the original data to be processed obtained twice before and after and stored in the middleware, so as to avoid repeated calculation of subsequent data and reduce the amount of subsequent data calculation.

[0105] The rating data calculation step uses the Flink real-time computing engine to convert these data sources into incrementally changing initial rating data.

[0106] The grade calculation step sequentially retrieves the processing results of the rating data calculation step, summarizes and calculates the customer's current total rating change data, and calculates the corresponding grade; and calculates whether the customer should be retained or downgraded based on the total rating change data of the customer whose grade has expired.

[0107] In the above embodiment, data from different sources are uniformly sent to Kafka, and the data is processed and rated by a real-time computing engine. This real-time processing mechanism can ensure that the customer's level can be updated in a timely manner according to the latest data, and can calculate the initial change rating data in real time according to the customer's transaction behavior, and judge whether the upgrade conditions are met based on the changes in the total change rating data. It can effectively process changes in customer data and accurately reflect the customer's real-time level.

[0108] In one of the optional embodiments, after updating the total change rating data of the grade validity period based on the target change type and the initial change rating data, it includes: determining the second grade change type of the grade validity period based on the total change rating data; updating each business field in the grade change table based on the second grade change type to obtain a grade change flow record; updating the first business field in the grade table based on the second grade change type, and obtaining the initial value of the change rating data in the grade table based on the temporary rating data of the temporary change field.

[0109] Among them, the update of customer level mainly involves two tables, the first is the level change table, and the second is the member level table.

[0110] The level change table includes the start date of the current level's validity period, the end date of the current level's validity period, the growth value before the level change (rating data), the level before the change, the next level action type, the change growth value caused by the level change, the growth value before the level change, the growth value after the level change, the rating change timestamp, the update timestamp, the current level, and the revised change growth value after reaching the next level.

[0111] The member level table includes the current growth value, current level, level validity start date, level validity end date, rating change timestamp, update timestamp, level change count + 1, and the previous level primary key.

[0112] For different types of second-level changes, the above two certificate forms are processed differently, and in order to improve processing efficiency, different types of second-level changes are processed by different functional modules, such as a level upgrade module and a level retention and reduction module.

[0113] For the level upgrade module, a new record is added to the level change table, in which the fields in the original member level table are copied first: the start date of the current level validity period; the end date of the current level validity period; the growth value before the level change; the level before the change; and the next level action type is set to upgrade; the change growth value caused by the level change is set to 0; the growth value before the level change and the growth value after the level change are both set to the total growth value before the upgrade (temporary growth value is not considered); the number of level changes +1; the rating change timestamp and update timestamp are set to the current timestamp; the current level is set to the level after the change; the revised change growth value after the next level is filled with 0;

[0114] Update the corresponding business fields in the member level table: the current growth value is set to the growth value before the level change + the temporary growth value of each category of the previous level, the current level, the start date of the level validity period, the end date of the level validity period, the rating change timestamp, the update timestamp, the number of level changes + 1, and the primary key of the previous level is set to the primary key of the new record added in the first step; the L1 basic growth value is assigned to the L1 basic growth value of the previous level + the L1 temporary basic growth value of the previous level; if the temporary growth value of other categories of L1 of the previous level is not empty and not 0, the growth value of other categories of L1 of the new level is assigned to the temporary growth value of the corresponding category of L1 of the previous level, otherwise fill in 0; clear the next level action type and clear the L1 temporary growth value field of the corresponding category to 0.

[0115] For the level retention and downgrade modules, the data of downgrade and retention is sent to Kafka by scanning the database regularly. It is possible that the customer has been upgraded during the downgrade and retention process. Therefore, it is necessary to first determine whether the customer level has changed.

[0116] Real-time downgrade or relegation: Add a new record to the level change table: including copying the fields in the member level table: the start date of the current level validity period; the end date of the current level validity period; the growth value before the level change; the level before the change; the next level action type is set to downgrade or relegation; the change growth value caused by the level change is set to the total growth value before the level change - the initial value of the new level; the growth value after the level change is set to the initial value of the new level, ignoring the temporary growth value; the number of level changes + 1; the rating change timestamp and update timestamp are set to the current timestamp; the growth value after the level change is set to the initial value of the level after the change; the current level is set to the level after the change; the revised change growth value after the next level is filled with 0;

[0117] Update the member growth value level table: including updating the corresponding business fields: the current growth value is set to the initial value of the new level + the L1 temporary basic growth value of the previous level, the current level, the level validity start date, the level validity end date, the rating change timestamp and the update timestamp are set to the current timestamp; the number of level changes + 1, the previous level primary key is set to the primary key of the new record in the first step. The L1 basic growth value is assigned to: the L1 basic growth value of the previous level + the L1 temporary basic growth value of the previous level; if the L1 other category temporary growth value of the previous level is not empty and not 0, the new level L1 other category growth value is assigned to the L1 corresponding category temporary growth value of the previous level, otherwise fill in 0; clear the next level action type, and clear the L1 temporary growth value field of the corresponding category to 0.

[0118] The above embodiment provides a method for implementing customer rating, but those skilled in the art will appreciate that various algorithms, including but not limited to machine learning models or deep learning models, may be used to determine customer levels based on growth values ​​(change rating data) to improve rating accuracy and predictive power.

[0119] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0120] Based on the same inventive concept, the embodiment of the present application also provides a rating data processing device for implementing the rating data processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more rating data processing device embodiments provided below can refer to the limitations of the rating data processing method above, and will not be repeated here.

[0121] In an exemplary embodiment, as shown in FIG5 , a rating data processing device is provided, comprising: a data acquisition module 501, a first level change type determination module 502, an update module 503, a target change type determination module 504 and a target change type determination module 505, wherein:

[0122] The data acquisition module 501 is used to acquire the initial change rating data and the validity period of the rating;

[0123] A first level change type determination module 502, for obtaining a first level change type of a target processing period when the target processing period corresponding to the initial change rating data is before the level effective period;

[0124] An updating module 503, configured to obtain total change rating data of a target processing cycle when the first level change type is level retention or level reduction, and update the total change rating data of the target processing cycle based on the initial change rating data;

[0125] A target change type determination module 504 is used to obtain a target change type of the target processing period based on the updated total change rating data of the target processing period;

[0126] The rating data updating module 503 is used to update the total change rating data of the rating validity period based on the target change type and the initial change rating data.

[0127] In one of the optional embodiments, the rating data update module 503 is specifically used to add the initial change rating data to the total change rating data of the level validity period when the target change type is level retention or level reduction; when the target change type is level upgrade, add the level change rating data of the target processing period and the initial change rating data to the total change rating data of the level validity period.

[0128] In one of the optional embodiments, the rating data updating module 503 is specifically used to increase the initial change rating data to the total change rating data of the level validity period when the first level change type is level upgrade.

[0129] In one of the optional embodiments, the device further comprises:

[0130] The original data acquisition module is used to acquire the original data to be processed and store the original data to be processed in the middleware;

[0131] A difference data determination module is used to calculate the difference data based on the original data to be processed acquired twice before and after and stored in the middleware when there is an abnormality in the original data to be processed;

[0132] The rating data calculation module is used to obtain the rating data to be processed based on the difference data through a real-time calculation engine.

[0133] In one of the optional embodiments, the device further comprises:

[0134] A data direction determination module, used to determine the data direction of the initial change rating data when the initial change rating data processing period is after the rating validity period;

[0135] A temporary rating data update module, used to update the temporary rating data in the temporary change field based on the data direction;

[0136] The cache module is used to cache the target value into the temporary change field when the updated temporary rating data is less than the target value, otherwise cache the updated temporary rating data into the temporary change field.

[0137] In one of the optional embodiments, the device further comprises:

[0138] The grade update module is used to determine the second grade change type in the grade validity period based on the total change rating data; update each business field in the grade change table based on the second grade change type to obtain the grade change flow record; update the first business field in the grade table based on the second grade change type, and obtain the initial value of the change rating data in the grade table based on the temporary rating data of the temporary change field.

[0139] Each module in the above-mentioned rating data processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0140] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG6. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store various change rating data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a rating data processing method is implemented.

[0141] Those skilled in the art will understand that the structure shown in FIG. 6 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0142] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining initial change rating data and a level effective period; when a target processing period corresponding to the initial change rating data is before the level effective period, obtaining a first level change type of the target processing period; when the first level change type is level retention or level reduction, obtaining total change rating data of the target processing period, and updating the total change rating data of the target processing period based on the initial change rating data; obtaining a target change type of the target processing period based on the updated total change rating data of the target processing period; and updating the total change rating data of the level effective period based on the target change type and the initial change rating data.

[0143] In one embodiment, the processor executes a computer program to implement updating of total change rating data for a level validity period based on the target change type and the initial change rating data, including: when the target change type is level retention or level reduction, adding the initial change rating data to the total change rating data for the level validity period; when the target change type is level upgrade, adding the level change rating data of the target processing period and the initial change rating data to the total change rating data for the level validity period.

[0144] In one embodiment, when the processor executes the computer program, the following steps are further implemented: when the first grade change type is grade upgrade, the initial change rating data is added to the total change rating data of the grade effective period.

[0145] In one embodiment, the acquisition of initial change rating data and before the validity period of the rating is implemented when the processor executes a computer program, including: acquiring the original data to be processed, and storing the original data to be processed in the middleware; when there is an abnormality in the original data to be processed, calculating the difference data based on the original data to be processed acquired twice before and after and stored in the middleware; and obtaining the rating data to be processed based on the difference data through a real-time calculation engine.

[0146] In one embodiment, the acquisition of initial change rating data and the grade validity period implemented by the processor when executing a computer program also includes: determining the data direction of the initial change rating data when the initial change rating data processing cycle is after the grade validity period; updating the temporary rating data in the temporary change field based on the data direction; when the updated temporary rating data is less than the target value, caching the target value to the temporary change field, otherwise caching the updated temporary rating data to the temporary change field.

[0147] In one embodiment, after the processor executes a computer program to update the total change rating data of the grade validity period based on the target change type and the initial change rating data, it includes: determining the second grade change type of the grade validity period based on the total change rating data; updating each business field in the grade change table based on the second grade change type to obtain a grade change flow record; updating the first business field in the grade table based on the second grade change type, and obtaining the initial value of the change rating data in the grade table based on the temporary rating data of the temporary change field.

[0148] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: obtaining initial change rating data and a level effective period; when a target processing period corresponding to the initial change rating data is before the level effective period, obtaining a first level change type of the target processing period; when the first level change type is level retention or level reduction, obtaining total change rating data of the target processing period, and updating the total change rating data of the target processing period based on the initial change rating data; obtaining a target change type of the target processing period based on the updated total change rating data of the target processing period; and updating the total change rating data of the level effective period based on the target change type and the initial change rating data.

[0149] In one embodiment, the computer program implemented when executed by a processor updates the total change rating data of the level validity period based on the target change type and the initial change rating data, including: when the target change type is level retention or level reduction, adding the initial change rating data to the total change rating data of the level validity period; when the target change type is level upgrade, adding the level change rating data of the target processing period and the initial change rating data to the total change rating data of the level validity period.

[0150] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when the first grade change type is grade upgrade, the initial change rating data is added to the total change rating data of the grade effective period.

[0151] In one embodiment, the computer program executed by the processor implements the steps of obtaining the initial change rating data and the rating validity period, including: obtaining the original data to be processed, and storing the original data to be processed in the middleware; when an abnormality exists in the original data to be processed, calculating the difference data based on the original data to be processed obtained twice before and after and stored in the middleware; and obtaining the rating data to be processed based on the difference data through the real-time calculation engine.

[0152] In one embodiment, the computer program implemented by the processor when executing the computer program to obtain the initial change rating data and the grade validity period also includes: determining the data direction of the initial change rating data when the initial change rating data processing cycle is after the grade validity period; updating the temporary rating data in the temporary change field based on the data direction; when the updated temporary rating data is less than the target value, caching the target value to the temporary change field, otherwise caching the updated temporary rating data to the temporary change field.

[0153] In one embodiment, after the computer program is executed by a processor and updates the total change rating data of the grade validity period based on the target change type and the initial change rating data, it includes: determining the second grade change type of the grade validity period based on the total change rating data; updating each business field in the grade change table based on the second grade change type to obtain a grade change flow record; updating the first business field in the grade table based on the second grade change type, and obtaining the initial value of the change rating data in the grade table based on the temporary rating data of the temporary change field.

[0154] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: obtaining initial change rating data and a level effective period; when a target processing period corresponding to the initial change rating data is before the level effective period, obtaining a first level change type of the target processing period; when the first level change type is level retention or level reduction, obtaining total change rating data of the target processing period, and updating the total change rating data of the target processing period based on the initial change rating data; obtaining a target change type of the target processing period based on the updated total change rating data of the target processing period; and updating the total change rating data of the level effective period based on the target change type and the initial change rating data.

[0155] In one embodiment, the computer program implemented when executed by a processor updates the total change rating data of the level validity period based on the target change type and the initial change rating data, including: when the target change type is level retention or level reduction, adding the initial change rating data to the total change rating data of the level validity period; when the target change type is level upgrade, adding the level change rating data of the target processing period and the initial change rating data to the total change rating data of the level validity period.

[0156] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when the first grade change type is grade upgrade, the initial change rating data is added to the total change rating data of the grade effective period.

[0157] In one embodiment, the computer program executed by the processor implements the steps of obtaining the initial change rating data and the rating validity period, including: obtaining the original data to be processed, and storing the original data to be processed in the middleware; when an abnormality exists in the original data to be processed, calculating the difference data based on the original data to be processed obtained twice before and after and stored in the middleware; and obtaining the rating data to be processed based on the difference data through the real-time calculation engine.

[0158] In one embodiment, the computer program implemented by the processor when executing the computer program to obtain the initial change rating data and the grade validity period also includes: determining the data direction of the initial change rating data when the initial change rating data processing cycle is after the grade validity period; updating the temporary rating data in the temporary change field based on the data direction; when the updated temporary rating data is less than the target value, caching the target value to the temporary change field, otherwise caching the updated temporary rating data to the temporary change field.

[0159] In one embodiment, after the computer program is executed by a processor and updates the total change rating data of the grade validity period based on the target change type and the initial change rating data, it includes: determining the second grade change type of the grade validity period based on the total change rating data; updating each business field in the grade change table based on the second grade change type to obtain a grade change flow record; updating the first business field in the grade table based on the second grade change type, and obtaining the initial value of the change rating data in the grade table based on the temporary rating data of the temporary change field.

[0160] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0161] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0162] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0163] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A rating data processing method, characterized in that: The method comprises: Obtain initial rating change data and rating validity period; When the target processing period corresponding to the initial change rating data is before the rating validity period, obtaining a first rating change type of the target processing period; When the first level change type is level retention or level reduction, obtaining total change rating data of the target processing cycle, and updating the total change rating data of the target processing cycle based on the initial change rating data; Based on the updated total change rating data of the target processing period, obtaining a target change type of the target processing period; Based on the target change type and the initial change rating data, the total change rating data of the rating validity period is updated.

2. The method according to claim 1, characterized in that The updating of the total change rating data of the grade validity period based on the target change type and the initial change rating data includes: When the target change type is grade retention or grade reduction, the initial change rating data is added to the total change rating data of the grade validity period; When the target change type is level upgrade, the level change rating data of the target processing period and the initial change rating data are added to the total change rating data of the level effective period.

3. The method according to claim 1, characterized in that The method further comprises: When the first level change type is level upgrade, the initial change rating data is added to the total change rating data of the level validity period.

4. The method according to claim 1, characterized in that: The acquisition of the initial rating change data and the validity period of the rating includes: Acquire the original data to be processed, and store the original data to be processed in the middleware; When there is an anomaly in the original data to be processed, difference data is calculated based on the original data to be processed acquired twice before and after and stored in the middleware; The rating data to be processed is obtained based on the difference data through a real-time calculation engine.

5. The method according to any one of claims 1 to 4, characterized in that: After obtaining the initial change rating data and the rating validity period, the following is also included: When the initial change rating data processing period is after the rating validity period, determining the data direction of the initial change rating data; updating the temporary rating data in the temporary change field based on the data direction; When the updated temporary rating data is less than the target value, the target value is cached in the temporary change field; otherwise, the updated temporary rating data is cached in the temporary change field.

6. The method according to claim 5, characterized in that After the total change rating data of the grade validity period is updated based on the target change type and the initial change rating data, the method includes: Determining a second grade change type for the grade validity period based on the total change rating data; Based on the second level change type, each business field in the level change table is updated to obtain a level change flow record; The first business field in the grade table is updated based on the second grade change type, and the initial value of the change rating data in the grade table is obtained based on the temporary rating data of the temporary change field.

7. A rating data processing device, characterized in that: The device comprises: The data acquisition module is used to obtain the initial change rating data and the validity period of the rating; A first level change type determination module, configured to obtain a first level change type of the target processing period when the target processing period corresponding to the initial change rating data is before the level effective period; an updating module, configured to obtain the total change rating data of the target processing cycle when the first level change type is level retention or level reduction, and update the total change rating data of the target processing cycle based on the initial change rating data; a target change type determination module, configured to obtain a target change type of the target processing period based on the updated total change rating data of the target processing period; A rating data updating module is used to update the total change rating data of the rating validity period based on the target change type and the initial change rating data.

8. The device according to claim 7, characterized in that The rating data update module is specifically used to add the initial change rating data to the total change rating data of the level validity period when the target change type is level retention or level reduction; and to add the level change rating data of the target processing period and the initial change rating data to the total change rating data of the level validity period when the target change type is level upgrade.

9. The device according to claim 7, characterized in that The rating data updating module is specifically configured to increase the initial changed rating data to the total changed rating data of the effective period of the grade when the first grade change type is grade upgrade.

10. The device according to claim 7, characterized in that The device also includes: An original data acquisition module is used to acquire the original data to be processed and store the original data to be processed in the middleware; A difference data determination module, configured to calculate difference data based on the original data to be processed acquired twice before and after and stored in the middleware when anomalies exist in the original data to be processed; The rating data calculation module is used to obtain the rating data to be processed based on the difference data through a real-time calculation engine.

11. The device according to any one of claims 7 to 10, characterized in that The device also includes: A data direction determination module, configured to determine the data direction of the initial change rating data when the initial change rating data processing period is after the rating validity period; A temporary rating data updating module, used for updating the temporary rating data in the temporary change field based on the data direction; A cache module is used to cache the target value to the temporary change field when the updated temporary rating data is less than the target value, and otherwise cache the updated temporary rating data to the temporary change field.

12. The device according to claim 11, characterized in that The device also includes: A level update module is used to determine a second level change type in the level validity period based on the total change rating data; to update each business field in the level change table based on the second level change type to obtain a level change flow record; to update the first business field in the level table based on the second level change type, and to obtain an initial value of the change rating data in the level table based on the temporary rating data of the temporary change field.

13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • System data processing performance evaluation method and device, equipment and medium

    CN114780362A

  • Data processing timeliness detection method and device and computer equipment

    CN117034036A

  • Object level adjusting method and device and storage medium

    CN117081946A

  • Data processing system and data uploading method and data processing method thereof

    CN117957819A

  • Passenger rating model generation method and apparatus, and computer device and storage medium

    WO2020015140A1