Model daily operation stability monitoring and early warning method
Through the mobile PSI calculation method and early warning mechanism, the problem of daily operation stability monitoring of the model in special scenarios is solved, and effective monitoring and abnormal detection of model stability is realized, ensuring business continuity and data abnormality checks.
Patent Information
- Application Number
- CN202411214305.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-31
- Publication Date
- 2024-11-22
AI Technical Summary
The existing technology cannot effectively monitor the daily operation stability of the model in special scenarios, especially when the actual proportion is 0, the PSI value cannot be calculated, resulting in the inability to use conventional PSI as monitoring indicator, affecting the abnormality check and business continuity of the model. .
Using the mobile PSI calculation method, by obtaining the model variables and model scores of the reference time window, calculate the mobile PSI of the sample variables and model scores, combine the early warning threshold to judge and issue an early warning, adjust the baseline expected sample to avoid calculating the interval sample size 0 questions and visually display the alarm information.
The daily operation stability of the effective monitoring and early warning model avoids the problem of static PSI calculation failure, ensures the stability monitoring and data abnormality detection of the model in special scenarios, reduces the false alarm rate, and improves business continuity.
Smart Images

Figure CN119003280A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a model daily operation stability monitoring and early warning method. Background Art
[0002] After the model is launched, the person in charge of the model and the policy users need to pay attention to whether the model is running normally online. For daily model operation, if there is a deviation in the variables or model scoring results in the model, the person in charge of the model needs to be notified in real time to conduct abnormal investigation and processing, otherwise it will cause business losses.
[0003] In some special scenarios, the conventional PSI cannot be used for daily monitoring of the model and cannot be used as an indicator to measure the model's daily operational stability.
[0004] PSI calculation formula: (1) PSI = ∑ (actual share - expected share) * ln (actual share / expected share) or (2) PSI = ∑ (expected share - actual share) * ln (expected share / actual share) When the actual proportion = 0, for calculation method (1), ln0 does not exist, and for calculation method (2), the dividend cannot be 0, so the PSI value cannot be calculated, that is, PSI cannot be used as an indicator to monitor the stability of the model.
[0005] The following are some simple examples of special business scenarios: (1) For business A with a small number of sample items, use the model established for the general customer group / other product customer group (extended application of the model), use the ten equal points of the model division of the training set when modeling the general customer group / other product customer group as the cut point, and apply it to small sample business products. The number of customers in some intervals that are actually calculated may be 0, but the stability of the model still needs to be monitored during daily operation; (2) Product A has multiple customer sources from different channels. If one of the major channels is cut off one day and no longer receives applications, the number of customers in some intervals of the actual percentage calculation may be 0. However, the model effect can still be applied to other channels. The strategy user cannot immediately take down the strategy related to this model. The stability of the model still needs to be monitored during daily operation. (3) When the model is applied to product A, the policy user will reject the highest-risk customers based on the model's effectiveness analysis. After the policy is launched, the actual proportion of customers in the highest-risk range is 0. However, the model cannot be taken offline or directly iterated to a new version, because taking it offline will result in the inclusion of rejected high-risk customers. The stability of the model still needs to be monitored during daily operation. Summary of the invention
[0006] The technical problem to be solved by the present invention is to address the deficiencies of the above-mentioned prior art and provide a method for monitoring and early warning the daily operation stability of a model.
[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is: A model daily operation stability monitoring and early warning method comprises the following steps: S1. Obtain the model variables of the time window to be monitored and the model scores as the samples to be monitored; S2. Obtain the reference time window model variables and model scores. Assume that the current monitoring time window is t1, and define the reference time window T as the n monitoring time windows before the current monitoring time window t1; S3, calculate the missing rate change of monitoring sample variables based on the benchmark time window and the model moving PSI, The mobile PSI calculation formula is: (1) Mobile PSI = ∑{actual proportion - benchmark time window T proportion}*ln{actual proportion / benchmark time window T proportion} or (2) Mobile PSI = ∑{reference time window T ratio - actual ratio}*ln{reference time window T ratio / actual ratio} S4. Determine whether the change in the missing rate of sample variables and the PSI of model distribution have reached the warning threshold, and use this as the warning judgment standard.
[0008] Furthermore, when the change in the sample variable missing rate and the model score moving PSI reach the warning threshold, an early warning is issued; and it is determined whether the current warning sample has an abnormal variable missing rate due to an abnormal model variable data interface, which in turn causes the model score to shift. If so, the abnormal sample will be eliminated in the next monitoring time window, and normal data will be taken as the benchmark time window.
[0009] Furthermore, when the missing rate of the model variables relative to the reference time window reaches a threshold or the moving PSI index value of the model reaches a threshold, an early warning prompt is issued.
[0010] Furthermore, after the warning threshold is determined, the output structure is displayed visually, and the displayed content includes the alarm time, model name, reference PSI threshold, alarm PSI value, and missing rate difference.
[0011] From the above technology, it can be seen that the present invention has the following advantages: it adjusts the expected samples of the benchmark to avoid the inability to calculate the static PSI value in special scenarios when the model is applied, can monitor the stability of the model in special scenarios, and avoids the problem of the sample size of some actual proportion calculation intervals being 0 due to the large gap between the expectations and the modeling sample period, and better takes into account the need to monitor whether data anomalies occur in the daily operation of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a flow chart of the present invention; Figure 2 This is a schematic diagram of the benchmark time window for daily monitoring; Figure 3 This is a schematic diagram of the benchmark time window for twice-daily monitoring; Figure 4 Schematic diagram of the visual output interface of the monitored model data. DETAILED DESCRIPTION
[0013] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0014] In the description of the present invention, it should be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance. Among them, the terms "first position" and "second position" are two different positions.
[0015] In order to make a distinction, conventional PSI is defined as static PSI, and the PSI calculation method in this embodiment is called mobile PSI. The difference between mobile PSI and static PSI is that the expected sample of the benchmark is adjusted. Static PSI uses the data during modeling training as the expectation. In order to avoid the special scenario when the model is applied that cannot calculate the static PSI value and cannot monitor the stability of the model score, the present invention proposes a calculation method for mobile PSI. The expected proportion used by mobile PSI is calculated based on the data within X monitoring periods extrapolated forward at the time of monitoring. X can be set according to the actual monitoring convenience and the system calculation pressure bearing capacity. For example, when the sample size is large, a smaller X can be taken. When the sample size is small, X can be appropriately enlarged. In this way, the problem of the sample size of some actual proportion calculation intervals being 0 due to the large gap between the expectations and the modeling sample period can be avoided to the greatest extent. At the same time, it can also better take into account the need to monitor whether data anomalies occur in the daily operation of the model.
[0016] The calculation formula of mobile PSI is as follows: (1) mobile PSI = ∑ (actual proportion - proportion of previous X days) * ln (actual proportion / proportion of previous X days) or (2) mobile PSI = ∑ (proportion of previous X days - actual proportion) * ln (proportion of previous X days / actual proportion), where one monitoring period is assumed to be one day.
[0017] like Figure 1 As shown in the figure, the design method of this model monitoring system is as follows: Step 1: Monitoring data collection For the models that need to be monitored, capture the primary key fields (business serial number, certificate number), model variable list, model sub-fields, and date and time stamps as the basis for calculating monitoring indicators.
[0018] Step 2: Calculate key indicators for daily monitoring The missing rate change monitoring is used for variables, and the mobile PSI monitoring is used for model scores. When the model is operating normally, a sudden and significant change in the missing rate of the variable on the monitoring day relative to the X days before the monitoring day, or a significant increase in the mobile PSI index value of the model score on the monitoring day may be an abnormality in the business data, which is an issue that the model manager needs to investigate in conjunction with the strategy and technology department; the deviation of the model score is most likely caused by variable abnormality, and a small probability is that an error occurred in the model calculation process, so PSI monitoring is required.
[0019] The PSI monitoring of the existing technology refers to using data within a fixed time as the monitoring basis, such as taking the model scores of the modeling samples for equal frequency or equal distance cutting, taking the cutting point as the fixed threshold, dividing the model scores within the monitoring time period with the same threshold, obtaining the binning results, and then calculating the static PSI index. The mobile PSI in the present invention is carried out by adjusting the monitoring basis. Specifically, it is assumed that the model calculates the business monitoring indicators that occur within one day at 10:00 a.m. on May 31, 2024, that is, 10:00 a.m. on May 31, 2024 to 10:00 a.m. on May 30, 2024 is the monitoring time window T1, and the reference time window is set to the previous 5 days, that is, 10:00 a.m. on May 25, 2024 to 10:00 a.m. on May 30, 2024 is the reference time window T2. The model dividing point in T2 is used as the threshold, and the model points in the T1 time window are cut to obtain the mobile PSI value in T1; assuming that the monitoring indicator calculation is performed at 10:00 a.m. on June 1, 2024, and the reference time window is 10:00 a.m. on May 26, 2024 to 10:00 a.m. on May 31, 2024. This is the definition of mobile, such as Figure 2 shown.
[0020] For real-time models with many applications and high business importance, multiple monitoring calculations can be performed within a day. For example, monitoring can be performed at 10 am and 18 pm every day. Figure 3 Shown Flexibly setting up mobile PSI monitoring based on business scenarios can better detect model anomalies.
[0021] The calculation of the variable missing rate change monitoring indicator and the time window selection are the same as those of the mobile PSI. The missing rate monitoring warning method is the difference between the missing rate of the warning sample and the missing rate of the benchmark time window. For example, if the absolute value of the difference in missing rate is >10%, a warning will be issued to the person in charge of the model. The person in charge of the model can adapt different warning thresholds according to the application scenarios and call volumes of the model.
[0022] In addition, if an early warning occurs, such as the current early warning sample has an abnormal variable missing rate due to an abnormal model variable data interface, which in turn causes the model to shift, the abnormal sample needs to be eliminated in the next monitoring time window, that is, only normal data is taken as the benchmark time window to avoid abnormal data from affecting the stability indicator calculation of the next monitoring window.
[0023] Step 3: Visualization of Missing Rate Changes and Mobile PSI Data Visualize the monitored model data to intuitively analyze and understand the model's performance. Figure 4 As shown, it includes the model-based mobile PSI indicator value, variable missing rate display, list of abnormal missing rate variables, model-based distribution change display, and model-based mobile PSI changes in each monitoring period.
[0024] Step 4: Set the abnormal alarm threshold The model manager sets personalized alarm thresholds for different models based on the model's usage scenarios. For example, a smaller warning threshold can be set for important models, and a larger warning threshold can be set for models with smaller call volumes. This can ensure the accuracy of the warning and reduce the false alarm rate.
[0025] When the missing rate of model variables relative to the benchmark time window reaches the threshold or the moving PSI indicator value of the model reaches the threshold, the system sends an alarm message to the model owner in real time to remind the model owner to troubleshoot the problem.
[0026] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A model daily operation stability monitoring and early warning method, characterized in that: The steps include: S1. Obtain the model variables of the time window to be monitored and the model scores as the samples to be monitored; S2. Obtain the reference time window model variables and model scores. Assume that the current monitoring time window is t1, then define the reference time window T as the n monitoring time windows before the current monitoring time window t1, where n is an integer; S3, calculate the missing rate change of monitoring sample variables based on the benchmark time window and the model moving PSI, The mobile PSI calculation formula is: (1) Mobile PSI = ∑{actual proportion - benchmark time window T proportion}*ln{actual proportion / benchmark time window T proportion} or (2) Mobile PSI = ∑{reference time window T ratio - actual ratio}*ln{reference time window T ratio / actual ratio} S4. Determine whether the change in the missing rate of sample variables and the PSI of model distribution have reached the warning threshold, and use this as the warning judgment standard.
2. The model daily operation stability monitoring and early warning method according to claim 1 is characterized by: When the change in the sample variable missing rate and the model score moving PSI reach the warning threshold, an early warning is issued; and it is determined whether the current warning sample is caused by an abnormal model variable data interface, resulting in an abnormal variable missing rate, which in turn leads to a model score deviation. If so, the abnormal sample will be eliminated in the next monitoring time window, and normal data will be taken as the benchmark time window.
3. The model daily operation stability monitoring and early warning method according to claim 1 is characterized by: When the missing rate of model variables relative to the benchmark time window reaches a threshold or the moving PSI index value of the model reaches a threshold, an early warning prompt is issued.
4. The model daily operation stability monitoring and early warning method according to claim 1 is characterized by: After the warning threshold is determined, the output structure is displayed visually, including the alarm time, model name, reference PSI threshold, alarm PSI value, and missing rate difference.
Citation Information
Cited By
Bank digital intelligence model enabling platform and digital intelligence system
CN119398901A
