A real-time risk monitoring intelligent early warning method and system
Through the intelligent early warning system that processes transaction data in real time, it uses the MIDAS algorithm and the streaming clustering algorithm to construct micro-clusters and detect abnormal points, solving the problem of the failure of traditional risk early warning models in complex industrial chains and achieving high-accuracy risk assessment. Monitoring and early warning.
Patent Information
- Application Number
- CN202410167712.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-02-06
AI Technical Summary
When faced with complex industrial chains and opaque underlying assets, traditional risk warning models lack the ability to in-depth development and are unable to iterate in a timely manner, resulting in early warning models gradually becoming "outdated" and losing their original effectiveness.
Adopt real-time risk monitoring intelligent early warning system, including data access module, data preprocessing module, MIDAS algorithm module and streaming clustering algorithm module, to build and maintain micro-clusters, detect abnormal points, and conduct risk assessment by processing transaction data in real time and early warning.
It achieves real-time, anomaly detection capabilities and clustering capabilities, can adapt to the market environment, improve the accuracy and reliability of risk assessment, reduce false alarm rates, and is suitable for complex industrial chain risk monitoring.
Smart Images

Figure CN118014713B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer system engineering, and in particular relates to a real-time risk monitoring intelligent early warning system. Background Art
[0002] "It is better to cure the disease before it occurs" is a general principle of risk management. In the closed loop of risk management of commercial banks' risk identification, measurement, monitoring and control, risk warning is the most important means of monitoring. Proactively discovering the source of various risk hazards, "strengthening the body" in advance and taking preventive measures are regarded as the highest level of risk management. With the deepening of digital transformation of banks, traditional risk warning is not suitable for screening reliable underlying assets based on the industrial chain. In order to meet the needs of high-quality development of banks, the intelligent risk warning system shows great potential.
[0003] Under the influence of a series of banking risk events and the financial crisis, the Basel Accord was issued. Banking regulatory authorities from various countries formed the Basel Committee and regulated credit risk for the first time. Since then, the banking industry has begun to think deeply about how to understand risks, issue warnings in advance, and seek the best pre-control measures. With the development of China's market-oriented economy, the financial system and its operating mechanism have gradually undergone fundamental changes. In 1994, domestic commercial banks began to establish a risk warning system. Especially after joining the WTO, commercial banks need to implement international standards to participate in international competition, which further promoted the improvement of the risk warning system.
[0004] Risk warning refers to the process by which commercial banks, in their business management, evaluate the degree to which various risk states deviate from warning lines through specific warning models for credit entities, especially enterprises, involved in underlying assets, in terms of their operating risks, credit risks, financial risks, etc., send warning signals to decision-makers, and take preventive measures, thereby achieving accurate risk analysis and effective risk disposal.
[0005] Entering the digital economy era, as various industries accelerate the process of digital transformation and data becomes a new production factor, the traditional risk warning model of commercial banks when providing industrial financial services has gradually revealed its shortcomings.
[0006] After the risk warning model was put into production, there was a lack of data interaction such as user feedback, and it was impossible to use machine learning to grasp the rules and predict the future from the ever-expanding data, so it could not be iterated in time. This caused the warning model to gradually become "outdated" and lose its original effectiveness.
[0007] Large commercial banks have conducted many explorations in the digital upgrade of risk warning systems, mainly focusing on the retail loan sector. Through the application of mature technologies such as big data, artificial intelligence, and face recognition, they have realized functions such as user credit rating assessment and prevention of telecommunications fraud. For example, the "Golden Eye" system of Industrial Bank has significantly increased the accuracy of risk customer prediction from 19% to 60% through "gold scoring". The Sunshine Early Warning Platform of China Everbright Bank integrates early warning customer lists, internal and external data, signal models, and early warning process disposal, creating an intelligent risk early warning capability that leads the industry.
[0008] In industrial financial services, large commercial banks have established big data public opinion processing platforms, automatic post-loan early warning systems, account behavior analysis systems, etc. to warn of the operating risks of core enterprises. However, when industrial finance develops to the stage of industrial digital finance, faced with the complexity of the industrial chain, the opacity of underlying assets, and the lack of credit of most small and medium-sized enterprises in the industrial chain, the bank's risk early warning system lacks the ability to deeply cultivate the industrial chain and urgently needs to be transformed. Summary of the invention
[0009] In view of the defects existing in the above-mentioned prior art, the present invention provides a real-time risk monitoring intelligent early warning system, comprising:
[0010] A data access module, which is used to receive transaction data streams from the trading platform in real time;
[0011] The data preprocessing module is used to clean the received transaction data stream, remove invalid or erroneous data, and convert the data into the format required by the MIDAS algorithm;
[0012] MIDAS algorithm module, which is used to build and maintain micro-clusters, assign newly arrived data points to corresponding micro-clusters, and detect outliers;
[0013] a streaming clustering algorithm module, which is used to perform cluster analysis on the data points assigned to the microclusters;
[0014] The risk assessment and early warning module is used to perform risk assessment and early warning on the output results of the MIDAS algorithm module and the streaming clustering algorithm module.
[0015] The data preprocessing module performs data stream processing by setting a sliding window or a fixed-size buffer to store recent transaction data and updating the data each time a new transaction is received.
[0016] The removing of invalid or erroneous data includes replacing missing values or abnormal values with default values or performing interpolation processing.
[0017] Wherein, the MIDAS algorithm module performs the following steps:
[0018] Step 101: Assume that the financial transaction data set contains N transaction records, use the transaction amount as a feature to construct micro-clusters, and create an m×1 matrix C to represent the center points of the micro-clusters, where m represents the number of micro-clusters.
[0019] Step 103: For a new transaction record, calculate the distance between the transaction amount and the center point of each micro-cluster, and select the micro-cluster with the closest distance for allocation;
[0020] Step 105: When a new transaction record arrives, assuming that the index of the new transaction record is t, find the micro-cluster to which the transaction record belongs according to the allocation result A(t);
[0021] Step 107: For each transaction record, calculate the distance between it and the center point of the micro-cluster to which it belongs, and compare it with a preset threshold. If the distance exceeds the threshold, the transaction record can be marked as an abnormal transaction.
[0022] Among them, the transaction records timestamp, transaction amount and other relevant information.
[0023] Wherein, the step 103 comprises:
[0024] Assume there is an N×m matrix D, where D(i,j) represents the distance between the transaction amount of the i-th transaction record and the center point of the j-th micro-cluster;
[0025] Create an N×1 vector A to represent the allocation result of the transaction record, and A(i) represents the micro-cluster number to which the i-th transaction record belongs.
[0026] Wherein, step 105 comprises:
[0027] Update the center point C(A(t)) of the micro-cluster. Assuming that the original center point is C_old and the new center point is C_new, use the following formula to update the center point:
[0028] C_new=(C_old*k-amount(tk)+amount(t)) / k,
[0029] Where amount(t) represents the transaction amount of the new transaction record, amount(tk) represents the transaction amount of the tkth transaction record, and k is the size of the time window;
[0030] Update the radius of the micro-cluster. Assuming the original radius is R_old and the new radius is R_new, use the following formula to update the radius:
[0031] R_new=max(|amount(t)-C_new|,R_old),
[0032] Where |amount(t)-C_new| represents the absolute difference between the transaction amount of the new transaction record and the new center point.
[0033] The streaming clustering algorithm module performs the following steps:
[0034] When the MIDAS algorithm module detects an abnormal data point, it is input into the streaming clustering algorithm module for clustering analysis;
[0035] For the first abnormal data point, it is taken as the center of the first cluster, and the cluster represents an abnormal trading behavior category;
[0036] For subsequent abnormal data points, calculate their similarity with the existing cluster centers;
[0037] If the similarity between an abnormal data point and the center of a cluster exceeds a preset threshold, it will be added to the cluster;
[0038] If the similarity between an abnormal data point and the centers of all clusters does not exceed the threshold, a new cluster is created and the abnormal data point is used as the center of the cluster.
[0039] For each cluster, the average anomaly score of its internal abnormal data points is calculated as the risk assessment of the cluster;
[0040] If the risk assessment of a cluster exceeds the preset threshold, a corresponding risk warning is generated.
[0041] The risk assessment and early warning module performs the following steps:
[0042] If the anomaly score output by the MIDAS algorithm module is higher than the pre-set risk threshold, and the streaming clustering algorithm module also identifies the cluster to which the transaction belongs as abnormal, a high-level alarm is triggered;
[0043] If only one of the MIDAS algorithm module or the streaming clustering algorithm module detects an anomaly, a low-level alarm is triggered.
[0044] Compared with the prior art, the present invention has the following advantages:
[0045] Real-time: Both the MIDAS algorithm and the streaming clustering algorithm are suitable for processing real-time data streams. This means that the system can detect and respond to new transaction data in a timely manner to achieve real-time risk monitoring and early warning.
[0046] Anomaly detection capability: The MIDAS algorithm is specifically used for anomaly detection and can effectively identify abnormal transactions. It is based on the idea of multivariate indexes and detects abnormal behavior by analyzing the liquidity of transaction data, with high accuracy and sensitivity.
[0047] Clustering capability: Streaming clustering algorithms can cluster transaction data points into different clusters to better understand and organize the data. This can help identify transactions with similar characteristics and assess risk as a whole. Clustering results can provide a more comprehensive perspective and help discover potential abnormal patterns.
[0048] Comprehensive consideration: By combining the MIDAS algorithm and the streaming clustering algorithm, the system can comprehensively consider the liquidity and feature similarity of transaction data to more comprehensively assess risks. This comprehensive consideration can improve the accuracy and reliability of risk assessment.
[0049] Adaptability: Since both the MIDAS algorithm and the streaming clustering algorithm are suitable for streaming data processing, the system can adaptively adjust and learn new data patterns and abnormal behaviors. This enables the system to adapt to the ever-changing market environment and risk situation.
[0050] Improve accuracy and reduce false positives: By using multiple algorithms and technologies in combination, the accuracy and reliability of risk assessment can be improved and the false positive rate can be reduced. The combination of MIDAS algorithm and streaming clustering algorithm can provide more comprehensive information and reduce the limitations of a single algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present disclosure will become readily understood. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0052] Figure 1 It is a flow chart showing a method executed by the MIDAS algorithm module in a real-time risk monitoring intelligent early warning system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all 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.
[0054] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.
[0055] It should be understood that although the terms first, second, third, etc. may be used to describe ... in the embodiments of the present invention, these ... should not be limited to these terms. These terms are only used to distinguish .... For example, without departing from the scope of the embodiments of the present invention, the first ... may also be referred to as the second ..., and similarly, the second ... may also be referred to as the first ....
[0056] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0057] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0058] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.
[0059] The optional embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0060] Embodiment 1
[0061] like Figure 1 As shown, the present invention discloses a real-time risk monitoring intelligent early warning system, comprising:
[0062] A data access module, which is used to receive transaction data streams from the trading platform in real time;
[0063] The data preprocessing module is used to clean the received transaction data stream, remove invalid or erroneous data, and convert the data into the format required by the MIDAS algorithm;
[0064] MIDAS algorithm module, which is used to build and maintain micro-clusters, assign newly arrived data points to corresponding micro-clusters, and detect outliers;
[0065] a streaming clustering algorithm module, which is used to perform cluster analysis on the data points assigned to the microclusters;
[0066] The risk assessment and early warning module is used to perform risk assessment and early warning on the output results of the MIDAS algorithm module and the streaming clustering algorithm module.
[0067] In one embodiment, the MIDAS algorithm module performs the following steps:
[0068] Suppose there is an m-dimensional transaction data vector X=[x1,x2,...,xm], where xi represents the transaction amount of the i-th dimension.
[0069] Use n micro-cluster centers to represent the distribution of data. Assume there are n micro-cluster center vectors C = [c1, c2, ..., cn], where ci represents the i-th micro-cluster center.
[0070] The Euclidean distance is used to measure the distance between a data point and a micro-cluster center. For a data point X and a micro-cluster center C, the distance can be expressed as d(X,C)=||XC||^2, where ||.|| represents the Euclidean norm.
[0071] For each data point X, calculate its distance to all micro-cluster centers and select the nearest micro-cluster center. Then take the distance between X and the micro-cluster center as the anomaly score.
[0072] Based on historical data or domain knowledge, set a threshold to determine which anomaly scores are considered abnormal data points.
[0073] In one embodiment, the streaming clustering algorithm module performs the following steps:
[0074] Assume there is a set D of abnormal data points, where each abnormal data point is represented as a vector Xd.
[0075] Use similarity metrics to calculate the similarity between abnormal data points. Common metrics include cosine similarity, Euclidean distance, etc.
[0076] Use K-means algorithm to perform cluster analysis on abnormal data points. The result of clustering can be a group of clusters, each cluster represents a type of abnormal trading behavior with similar characteristics.
[0077] For each abnormal data point Xd, a cluster label is assigned to it, indicating the category of abnormal trading behavior to which it belongs.
[0078] In one embodiment, using the K-means algorithm to perform cluster analysis on abnormal data points includes:
[0079] Suppose we monitor transaction data of an online retailer and perform streaming clustering using the K-means algorithm.
[0080] First, K cluster centers are initialized, which can be selected based on historical data or domain knowledge.
[0081] Each cluster center represents a cluster.
[0082] As new transaction data arrives, it is assigned to the nearest cluster center.
[0083] If the distance between a new data point and any cluster center exceeds a preset threshold, it is considered that the data point cannot be assigned to any cluster, that is, the data point belongs to an abnormal transaction.
[0084] For data points that are determined to be abnormal transactions, their degree of abnormality can be further evaluated.
[0085] This may involve computing the distance or other similarity measure between a data point and its nearest cluster center.
[0086] Based on the size of the distance or measure, abnormal transactions can be classified into different severity levels, such as high, medium, and low risk.
[0087] Based on the severity assessment of abnormal transactions, corresponding early warning signals are generated.
[0088] Early warning signals can be in the form of alarms, notifications, reports, etc., used to alert relevant personnel or systems.
[0089] Here, the K-means algorithm is used to cluster transaction data points into different clusters and determine abnormal transactions based on distance. Then, an early warning signal is generated based on the evaluation results of abnormal transactions.
[0090] Embodiment 2
[0091] The present invention proposes a real-time risk monitoring intelligent early warning system, which includes:
[0092] A data access module, which is used to receive transaction data streams from the trading platform in real time;
[0093] The data preprocessing module is used to clean the received transaction data stream, remove invalid or erroneous data, and convert the data into the format required by the MIDAS algorithm;
[0094] MIDAS algorithm module, which is used to build and maintain micro-clusters, assign newly arrived data points to corresponding micro-clusters, and detect outliers;
[0095] a streaming clustering algorithm module, which is used to perform cluster analysis on the data points assigned to the microclusters;
[0096] The risk assessment and early warning module is used to perform risk assessment and early warning on the output results of the MIDAS algorithm module and the streaming clustering algorithm module.
[0097] The data preprocessing module performs data stream processing by setting a sliding window or a fixed-size buffer to store recent transaction data and updating the data each time a new transaction is received.
[0098] The removing of invalid or erroneous data includes replacing missing values or abnormal values with default values or performing interpolation processing.
[0099] The MIDAS algorithm usually requires input data in a specific format, such as a vector or matrix. Convert the transaction data into the format required by the MIDAS algorithm. Usually, each transaction is represented as a vector that contains the features of the transaction. For example, if only the transaction amount is considered as a feature, each transaction can be converted into a vector with a single element.
[0100] Before format conversion, the transaction data can be normalized to ensure scale consistency between different features.
[0101] Common normalization methods include scaling the transaction amount to a specific range (e.g., between 0 and 1) or using a standardization method (e.g., Z-score normalization).
[0102] In one embodiment, the functions of the MIDAS algorithm module include: micro-cluster construction, micro-cluster maintenance, anomaly detection and model update.
[0103] Among them, micro-cluster construction: The MIDAS algorithm module represents the distribution of data by constructing micro-clusters in the data stream. A micro-cluster is a collection of similar data points, usually used to represent the clustering or distribution characteristics of data. The MIDAS algorithm module uses an incremental method to gradually build and update micro-clusters.
[0104] Micro-cluster maintenance: As new data points arrive, the MIDAS algorithm module will assign them to the corresponding micro-clusters according to certain rules. If a new data point has a similarity with an existing micro-cluster that exceeds a preset threshold, it will be assigned to that micro-cluster. If a new data point has a similarity with all micro-clusters that does not exceed the threshold, and of course it also needs to be greater than a certain minimum preset value, a new micro-cluster will be created to represent the data point.
[0105] Anomaly Detection: The MIDAS algorithm module uses microclusters to detect anomalies. When a new data point cannot be assigned to any microcluster, it is considered an anomaly. Anomalies may indicate abnormal behavior or abnormal events in the data. This is based on the premise that the number of microclusters does not increase, that is, the types of microclusters are limited.
[0106] Model update: As the data stream continues to change, the MIDAS algorithm module needs to regularly update the micro-cluster model. This can be achieved by deleting outdated micro-clusters, merging similar micro-clusters, or adjusting the parameters of micro-clusters.
[0107] Wherein, the MIDAS algorithm module performs the following steps:
[0108] Step 101: Assume that the financial transaction data set contains N transaction records, use the transaction amount as a feature to construct micro-clusters, and create an m×1 matrix C to represent the center points of the micro-clusters, where m represents the number of micro-clusters.
[0109] Step 103: For a new transaction record, calculate the distance between the transaction amount and the center point of each micro-cluster, and select the micro-cluster with the closest distance for allocation;
[0110] Step 105: When a new transaction record arrives, assuming that the index of the new transaction record is t, find the micro-cluster to which the transaction record belongs according to the allocation result A(t);
[0111] Step 107: For each transaction record, calculate the distance between it and the center point of the micro-cluster to which it belongs, and compare it with a preset threshold. If the distance exceeds the threshold, the transaction record can be marked as an abnormal transaction.
[0112] Among them, the transaction records timestamp, transaction amount and other relevant information.
[0113] Wherein, the step 103 comprises:
[0114] Assume there is an N×m matrix D, where D(i,j) represents the distance between the transaction amount of the i-th transaction record and the center point of the j-th micro-cluster;
[0115] Create an N×1 vector A to represent the allocation result of the transaction record, and A(i) represents the micro-cluster number to which the i-th transaction record belongs.
[0116] Wherein, step 105 comprises:
[0117] Update the center point C(A(t)) of the micro-cluster. Assuming that the original center point is C_old and the new center point is C_new, use the following formula to update the center point:
[0118] C_new=(C_old*k-amount(tk)+amount(t)) / k,
[0119] Where amount(t) represents the transaction amount of the new transaction record, amount(tk) represents the transaction amount of the tkth transaction record, and k is the size of the time window;
[0120] Update the radius of the micro-cluster. Assuming the original radius is R_old and the new radius is R_new, use the following formula to update the radius:
[0121] R_new=max(|amount(t)-C_new|,R_old),
[0122] Where |amount(t)-C_new| represents the absolute difference between the transaction amount of the new transaction record and the new center point.
[0123] The streaming clustering algorithm module performs the following steps:
[0124] When the MIDAS algorithm module detects an abnormal data point, it is input into the streaming clustering algorithm module for clustering analysis;
[0125] For the first abnormal data point, it is taken as the center of the first cluster, and the cluster represents an abnormal trading behavior category;
[0126] For subsequent abnormal data points, calculate their similarity with the existing cluster centers;
[0127] If the similarity between an abnormal data point and the center of a cluster exceeds a preset threshold, it will be added to the cluster;
[0128] If the similarity between an abnormal data point and the centers of all clusters does not exceed the threshold, a new cluster is created and the abnormal data point is used as the center of the cluster.
[0129] For each cluster, the average anomaly score of its internal abnormal data points is calculated as the risk assessment of the cluster;
[0130] If the risk assessment of a cluster exceeds the preset threshold, a corresponding risk warning is generated.
[0131] The risk assessment and early warning module performs the following steps:
[0132] If the anomaly score output by the MIDAS algorithm module is higher than the pre-set risk threshold, and the streaming clustering algorithm module also identifies the cluster to which the transaction belongs as abnormal, a high-level alarm is triggered;
[0133] If only one of the MIDAS algorithm module or the streaming clustering algorithm module detects an anomaly, a low-level alarm is triggered.
[0134] In one embodiment, the MIDAS algorithm module marks each new transaction data point as normal or abnormal. If the anomaly score output by the MIDAS algorithm module exceeds a pre-set risk threshold, an alarm is triggered. For example, if the anomaly score exceeds 90 percent of the threshold, the transaction can be considered very abnormal and an alarm is triggered.
[0135] The streaming clustering algorithm module clusters transaction data points into different clusters. If the size of a cluster exceeds a preset threshold, the transactions in the cluster are considered abnormal. For example, if the size of a cluster exceeds twice the average cluster size, an alarm is triggered.
[0136] The alarms of the MIDAS algorithm module and the streaming clustering algorithm module are coordinated by setting different alarm levels and priorities. If the anomaly score output by the MIDAS algorithm module is higher than the pre-set risk threshold, and the streaming clustering algorithm module also identifies the cluster to which the transaction belongs as abnormal, a high-level alarm can be triggered. If only one algorithm module detects an anomaly, a low-level alarm can be triggered or further monitoring and investigation can be performed.
[0137] Embodiment 3
[0138] An embodiment of the present disclosure provides a non-volatile computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the method steps described in the above embodiment.
[0139] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0140] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0141] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (AN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0142] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0143] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0144] The above introduces the preferred embodiments of the present invention, which is intended to make the spirit of the present invention clearer and easier to understand, but is not intended to limit the present invention. All modifications, substitutions, and improvements made within the spirit and principles of the present invention should be included in the scope of protection outlined by the claims attached to the present invention.
Claims
1. A real-time risk monitoring intelligent early warning system, characterized in that: include: A data access module, which is used to receive transaction data streams from the trading platform in real time; The data preprocessing module is used to clean the received transaction data stream, remove invalid or erroneous data, and convert the data into the format required by the MIDAS algorithm; MIDAS algorithm module, which is used to build and maintain micro-clusters, assign newly arrived data points to corresponding micro-clusters, and detect outliers; A streaming clustering algorithm module, which is used to perform clustering analysis on the data points assigned to the micro-clusters; A risk assessment and early warning module, which is used to perform risk assessment and early warning on the output results of the MIDAS algorithm module and the streaming clustering algorithm module; The MIDAS algorithm module performs the following steps: Step 101: Assume that the financial transaction data set contains N transaction records, use the transaction amount as a feature to construct micro-clusters, create an m×1 matrix C to represent the center points of the micro-clusters, where m represents the number of micro-clusters, and step 103: For a new transaction record, calculate the distance between the transaction amount and the center point of each micro-cluster, and select the micro-cluster with the closest distance for allocation; Step 105: When a new transaction record arrives, assuming that the index of the new transaction record is t, find the micro-cluster to which the transaction record belongs according to the allocation result A(t); Step 107: For each transaction record, calculate the distance between it and the center point of the micro-cluster to which it belongs, and compare it with a preset threshold. If the distance exceeds the threshold, the transaction record is marked as an abnormal transaction. The streaming clustering algorithm module performs the following steps: When the MIDAS algorithm module detects an abnormal data point, it is input into the streaming clustering algorithm module for clustering analysis; For the first abnormal data point, it is taken as the center of the first cluster, and the cluster represents an abnormal trading behavior category; For subsequent abnormal data points, calculate their similarity with the existing cluster centers; If the similarity between an abnormal data point and the center of a cluster exceeds a preset threshold, it will be added to the cluster; If the similarity between an abnormal data point and the centers of all clusters does not exceed the threshold, a new cluster is created and the abnormal data point is used as the center of the cluster; For each cluster, the average anomaly score of its internal abnormal data points is calculated as the risk assessment of the cluster; If the risk assessment of a cluster exceeds the preset threshold, a corresponding risk warning is generated; The risk assessment and early warning module performs the following steps: If the anomaly score output by the MIDAS algorithm module is higher than the pre-set risk threshold, and the streaming clustering algorithm module also identifies the cluster to which the transaction belongs as abnormal, a high-level alarm is triggered; If only one of the MIDAS algorithm module or the streaming clustering algorithm module detects an anomaly, a low-level alarm is triggered.
2. The system as claimed in claim 1, wherein the data preprocessing module performs data stream processing including setting a sliding window or a fixed-size buffer to store recent transaction data and updating the data each time a new transaction is received.
3. The system of claim 2, wherein removing invalid or erroneous data comprises replacing missing values or outliers with default values or performing interpolation processing.
4. The system as claimed in claim 1, wherein the transaction records timestamp, transaction amount and other relevant information.
5. The system of claim 1, wherein step 103 comprises: Assume there is an N×m matrix D, where D(i,j) represents the distance between the transaction amount of the i-th transaction record and the center point of the j-th micro-cluster; Create an N×1 vector A to represent the allocation result of the transaction record, and A(i) represents the micro-cluster number to which the i-th transaction record belongs.
6. The system of claim 5, wherein step 105 comprises: Update the center point C(A(t)) of the micro-cluster. Assuming that the original center point is C_old and the new center point is C_new, use the following formula to update the center point: C_new=(C_old*k-amount(tk)+amount(t)) / k, Where amount(t) represents the transaction amount of the new transaction record, amount(tk) represents the transaction amount of the tkth transaction record, and k is the size of the time window; Update the radius of the micro-cluster. Assuming the original radius is R_old and the new radius is R_new, use the following formula to update the radius: R_new=max(|amount(t)-C_new|,R_old), Where |amount(t)-C_new| represents the absolute difference between the transaction amount of the new transaction record and the new center point.
