SQL statement intelligent auditing and risk early warning method for financial business
By constructing a virtual social network and an excitation-inhibition balance model, the problems of staticity and one-sidedness in the review of financial SQL statements are solved, enabling multi-dimensional risk assessment and forward-looking early warning, improving review efficiency and adaptability, and meeting the high-precision requirements of financial business.
Patent Information
- Application Number
- CN202512020016.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-30
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2045-12-30
AI Technical Summary
Existing methods for auditing and risk warning of financial SQL statements suffer from static auditing logic, one-sided risk assessment, and a lack of foresight and adaptability in early warning, making it difficult to meet the financial sector's needs for high precision, comprehensiveness, foresight, and traceability.
A virtual social network is constructed using a social neurodynamics model. Multi-source data is collected through a full-dimensional perception module, individual attributes of elements are defined, and the SQL individual status is iteratively updated using an excitation-inhibition balance model. Combined with risk level classification and feedback data correction, collaborative judgment and automatic adaptation across multiple risk dimensions are achieved.
It enables intelligent auditing and risk warning of financial SQL statements, covering core risks such as sensitive data, compliance authorization, business logic, and performance overload, avoiding the one-sidedness of traditional methods and improving the efficiency of risk tracing and the adaptability of the auditing system.
Smart Images

Figure CN121435283A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent auditing of financial services, in particular to a SQL statement intelligent auditing and risk early warning method for financial services. BACKGROUND
[0002] In the operation of financial services, SQL statements, as the core carrier of data access and operation, their execution security, compliance and rationality are directly related to the protection of customer sensitive data, the correctness of financial business logic and the stability of database systems. The auditing and risk early warning requirements of SQL statements in the financial field are significantly different from those in ordinary IT scenarios. They not only need to cover basic problems such as syntax errors, but also need to focus on preventing and controlling core risks such as sensitive data leakage, unauthorized access, business calculation deviation and performance overload, while strictly meeting the requirements of regulatory agencies on financial data security and compliant operation.
[0003] The current mainstream financial SQL statement auditing and risk early warning methods have significant technical limitations: Static auditing logic: Most of them rely on pre-set static rule matching, such as sensitive field keyword screening and permission whitelist verification, which cannot deal with dynamically generated complex SQL operations, are prone to risk omissions or misjudgments, and are particularly difficult to identify implicit errors at the business logic level.
[0004] One-sided risk determination: Most methods only focus on a single risk dimension, ignoring the correlation and transmission between different risks, resulting in incomplete risk assessment and inability to reflect the actual scenario of multiple risk superposition in financial services.
[0005] Lack of forward-looking early warning: Traditional methods are mostly post-auditing, that is, risks are found through log analysis after SQL statement execution, which cannot predict potential hazards before execution. If SQL triggers performance overload or data leakage, it will cause irreversible losses such as database crashes and customer information leakage.
[0006] Low efficiency of risk positioning and tracing: After discovering the risk, it is necessary to rely on manual inspection of SQL statement structure, associated tables and permission configuration, which is difficult to quickly locate the core risk inducement. At the same time, it lacks automatic association with historical risk cases and regulatory compliance clauses, resulting in low auditing efficiency and non-uniform judgment standards due to manual operation differences.
[0007] Insufficient adaptability and evolution ability: When the financial service scenario expands, the regulatory rules update or the database architecture upgrades, the auditing rules need to be manually rewritten or adjusted, which cannot automatically adapt to changes, resulting in a disconnection between the auditing system and business development.
[0008] The aforementioned technical deficiencies make it difficult for existing methods to meet the core requirements of the financial sector for high-precision, comprehensive, forward-looking, and traceable SQL auditing. There is an urgent need for an intelligent auditing and risk warning solution that can integrate the advantages of multiple technical fields and has dynamic collaboration and self-evolution capabilities. Summary of the Invention
[0009] To address the aforementioned technical problems, this invention provides a method for intelligent auditing and risk warning of SQL statements in financial transactions. The technical solution adopted is as follows: The method for intelligent auditing and risk warning of SQL statements used in financial business includes the following steps: Step 1: Define the core risk types and quantitative review dimensions for financial SQL; Step 2: Construct a full-dimensional perception module to collect multi-source data related to the SQL to be reviewed. The multi-source data includes at least SQL statement data, database operating environment data, financial business rule data, regulatory compliance data, and historical SQL execution log data. Step 3: Based on the multi-source data collected in Step 2, construct a digital twin corresponding to the real financial database environment; Step 4: Map the elements of the financial SQL review scenario to individual elements in the social neurodynamics model, define the attributes of each individual element, and construct a virtual social network through a connection weight calculation algorithm; Step 5: The improved excitation-inhibition balance model is run in the digital twin constructed in step 3 as the core of social neurodynamics calculation. The individual state of the element is iteratively updated with the individual attribute of the element as the input current until the change of the state of all individual elements is less than the preset convergence threshold. The converged SQL individual state value is extracted and the risk level is divided according to the SQL individual state value. Step 6: Trace the interaction trajectory of individual elements within the digital twin in Step 5, locate the core risk points, generate an early warning report including risk level, core risk points, related compliance clauses, and historical similar risk cases, and complete the review and output of early warning results.
[0010] Optionally, risk types include sensitive data risk, compliance authorization risk, business logic risk, and performance overload risk; The review dimensions include access to sensitive data, permission matching, business logic accuracy, and performance consumption, and specific thresholds for financial scenarios are set for each review dimension.
[0011] Optionally, step 7 is also included, which involves classifying and processing SQL execution requests in a real financial environment according to the risk level of the audit in step 5; at the same time, collecting the actual results after SQL execution as feedback data, and using the feedback data to correct the individual connection weights and iteration parameters of the elements in the social neural dynamics model. Step 8: Build a global consensus and memory bank to categorize and store historical audit cases; synchronize new compliance rules with the regulatory platform every month to update the individual attributes of compliance elements; train the social neural dynamics model with feedback data from the past three months every quarter; and upgrade the digital twin architecture every year to adapt to new database types, so as to achieve continuous evolution of audit and early warning capabilities.
[0012] Optionally, the data collection methods of the full-dimensional perception module in step 2 include: deploying lightweight probes on application servers and database servers to capture SQL execution flow, connecting to the open APIs of financial business systems and database auditing tools to synchronize structured data, and automatically supplementing historical logs that were not collected in real time the previous day at midnight every day.
[0013] Optionally, step 4, which involves building a virtual social network, includes the following sub-steps: Step 41, define the element individuals: SQL individual, risk individual, compliance individual, business individual; Step 42, define the individual attributes of each element as follows: SQL individual attributes include syntax integrity S1, number of sensitive fields accessed S2, permission requirement level S3, estimated execution time S4, and business affiliation tag S5; Individual risk attributes include risk trigger probability R1, risk impact level R2, and risk association strength R3; Compliance attributes include rule matching degree C1, rule priority C2, and rule application scope C3; Individual business attributes include business sensitivity B1 and historical risk coefficient B2; Step 43, establish association rules between individuals: SQL individuals and risk individuals trigger directed association based on attribute matching and historical case matching; SQL individuals and compliance individuals trigger directed association based on rule engine matching; SQL individuals and business individuals trigger undirected association based on business metadata matching; risk individuals and compliance individuals trigger directed association based on the correspondence of regulatory documents. Step 44, Calculate connection weights: First, calculate the basic weights of each associated combination using the basic weight formula, and then adjust them by introducing the business priority correction item Corr1 and the historical risk coefficient correction item Corr2. Step 45: A directed weighted graph is used to construct the topology, which is stored in a dual structure of adjacency matrix and adjacency list. The network timeliness is maintained by daily recalculation of attributes and weights and timed updates and event-driven updates.
[0014] Optionally, in step 44, the basic weights of the SQL individual and the risk individual association combination. The calculation formula is: ; The basic weight of the association between SQL individuals and compliant individuals The calculation formula is: ; The basic weight of the association between SQL entities and business entities The calculation formula is: ; The basic weight of the combination of risky individuals and compliant individuals The calculation formula is: ; in It is the strength of the risk association. , and These are the attributes corresponding to individual SQL statements; It is the rule matching degree. It refers to rule priority; S.S5 is the business affiliation label; It's about business acumen; This refers to the scope of application of the rules; The formulas for calculating the business priority adjustment terms Corr1 and Corr2 are: P represents business priority; ; Historical risk coefficient for individual business units; The final weighting formula is: ; in It is the final weight of the association combination between the i-th element and the j-th element. It is the basic weight of the association combination between the i-th element individual and the j-th element individual.
[0015] Optionally, in step 5, the core iterative formula of the excitation-inhibition balance model is: ; in Let be the state value of the i-th element at time t. Let be the connection weight between the i-th element individual and the j-th excitation source element individual. Let J be the output intensity of the j-th excitation source element individual. Let be the connection weight between the i-th serious individual and the k-th suppressive source element individual. The output intensity of the k-th suppressor source element is... This is the iteration step size.
[0016] Optionally, in step 5, the specific method for classifying risk levels based on individual SQL status values includes the following steps: Determine the basic interval for the SQL individual state values: based on the converged state values of the SQL individuals. Using these as core indicators, a basic risk level classification range is established; when When the risk is low, it means that the probability of the SQL statement triggering core financial risks is less than 30%, and it meets more than 90% of the compliance rules and business logic requirements. when When the risk level is determined to be medium, it means that the probability of the SQL statement triggering the core financial risk is ≥30% and <80%, or there are 1-2 non-veto-type compliance rules that are not met. when When an SQL statement is deemed high-risk, it indicates that the probability of it triggering core financial risks is ≥80%, or that it violates at least one veto-type compliance rule, and therefore it must be directly blocked.
[0017] Optionally, in step 6, the method for tracing the individual interaction trajectories of elements within the digital twin is: First, collect and store interaction logs: During the excitation-inhibition balance model iteration in step 5, collect the interaction logs of all individual elements in the digital twin simultaneously. The logs must include the following core elements: interaction subject information, interaction process data, related iteration information, time axis dimension, and weight intensity dimension. Re-visualize and reconstruct the interaction trajectory: Based on the collected interaction logs, the trajectory is reconstructed through a time-series weighted two-dimensional visualization model.
[0018] Optionally, in step 6, the quantitative positioning of core risk points includes screening of high-impact risk individuals: extracting risk individuals that directly interact with the SQL individual from the high-impact interaction links, with the screening criteria being: interaction weight and the increase in the SQL individual's status value after the interaction, to obtain a set of candidate risk individuals; For the set of candidate risk individuals, the risk contribution ratio algorithm is used to quantify the degree of influence of each risk individual on the final state value of the SQL individual; The core risk point is determined as follows: if the risk contribution of a certain individual is greater than or equal to 50%, then the risk type corresponding to that individual is the unique core risk point. If the risk contribution of all risk individuals is less than 50%, but the sum of the risk contribution of two or more risk individuals is greater than or equal to 70%, then the risk type corresponding to these risk individuals is a joint core risk point, and the primary and secondary relationships are marked in descending order of risk contribution percentage; the triggering factors of the core risk point are recorded simultaneously.
[0019] In summary, the present invention has at least one of the following beneficial technical effects: This invention provides an intelligent SQL statement review and risk warning method for financial business. By mapping the elements of financial SQL review scenarios into four categories of elements—SQL, risk, compliance, and business—and combining a connection weight algorithm to quantify the correlation strength between these elements, a virtual social network is constructed to achieve collaborative judgment across multiple risk dimensions. This covers four core risk categories: sensitive data, compliance authorization, business logic, and performance overload, avoiding the one-sidedness of traditional static rules and meeting the multi-dimensional review needs of financial business.
[0020] By replicating the real financial database environment using digital twins, SQL execution risks are iteratively simulated in the virtual environment through an improved excitation-inhibition balance model. Individual SQL state values can be calculated and risk levels can be classified in advance without actual execution, shifting from post-event remediation to pre-event prevention, effectively avoiding losses such as database failures and data leaks that may be caused by SQL execution.
[0021] By collecting all individual element interaction logs and visually reconstructing interaction trajectories, combined with a risk contribution ratio algorithm, we can accurately locate single or combined core risk points and triggering factors, replacing traditional manual investigation. At the same time, we can automatically associate compliance clauses with similar historical cases, reduce manual operations by auditors, unify judgment standards, and significantly improve the efficiency of risk tracing and compliance verification.
[0022] By correcting model parameters and individual element connection weights through feedback data, regularly synchronizing regulatory rules, training social neural dynamics models, and upgrading the digital twin architecture, it can automatically adapt to new financial business scenarios, database types, and regulatory requirements, maintain high audit accuracy in the long term, and ensure that the audit system evolves in sync with the development of financial business.
[0023] The solution classifies risk levels based on specific thresholds for financial scenarios, identifies core risk points in relation to regulatory compliance clauses, stores and reuses historical cases to meet regulatory requirements for risk tracing, and ensures that SQL auditing and risk warnings comply with financial industry regulatory standards throughout the process, thereby reducing the risk of compliance penalties. Attached Figure Description
[0024] Figure 1 This is a flowchart illustrating the intelligent SQL statement review and risk warning method for financial business according to the present invention. Detailed Implementation
[0025] The present invention will be further described in detail below with reference to the accompanying drawings.
[0026] This invention discloses a method for intelligent auditing and risk warning of SQL statements used in financial business.
[0027] Reference Figure 1 Example 1, a method for intelligent auditing and risk warning of SQL statements for financial business, includes the following steps: Step 1: Define the core risk types and quantitative review dimensions for financial SQL; Step 2: Construct a full-dimensional perception module to collect multi-source data related to the SQL to be reviewed. The multi-source data includes at least SQL statement data, database operating environment data, financial business rule data, regulatory compliance data, and historical SQL execution log data. Step 3: Based on the multi-source data collected in Step 2, construct a digital twin corresponding to the real financial database environment; Step 4: Map the elements of the financial SQL review scenario to individual elements in the social neurodynamics model, define the attributes of each individual element, and construct a virtual social network through a connection weight calculation algorithm; Step 5: The improved excitation-inhibition balance model is run in the digital twin constructed in step 3 as the core of social neurodynamics calculation. The individual state of the element is iteratively updated with the individual attribute of the element as the input current until the change of the state of all individual elements is less than the preset convergence threshold. The converged SQL individual state value is extracted and the risk level is divided according to the SQL individual state value. Step 6: Trace the interaction trajectory of individual elements within the digital twin in Step 5, locate the core risk points, generate an early warning report including risk level, core risk points, related compliance clauses, and historical similar risk cases, and complete the review and output of early warning results.
[0028] Example 2: Risk types include sensitive data risk, compliance authorization risk, business logic risk, and performance overload risk; The review dimensions include access to sensitive data, permission matching, business logic accuracy, and performance consumption, and specific thresholds for financial scenarios are set for each review dimension.
[0029] Example 3 also includes step 7, which involves classifying SQL execution requests in a real financial environment according to the risk level of the audit in step 5; at the same time, collecting the actual results after SQL execution as feedback data, and using the feedback data to correct the individual connection weights and iteration parameters of the elements in the social neural dynamics model. Step 8: Build a global consensus and memory bank to categorize and store historical audit cases; synchronize new compliance rules with the regulatory platform every month to update the individual attributes of compliance elements; train the social neural dynamics model with feedback data from the past three months every quarter; and upgrade the digital twin architecture every year to adapt to new database types, so as to achieve continuous evolution of audit and early warning capabilities.
[0030] Example 4, the data collection method of the full-dimensional perception module in step 2 includes: deploying lightweight probes on application servers and database servers to capture SQL execution flow, connecting to the open API of financial business systems and database auditing tools to synchronize structured data, and automatically supplementing historical logs that were not collected in real time the previous day at midnight every day.
[0031] By adopting the above technical solution, the audit benchmark is first clarified, defining four core risks: sensitive data, compliance authorization, business logic, and performance overload, as well as quantitative audit dimensions such as the degree of access to sensitive data and the degree of permission matching, and setting specific thresholds for financial scenarios. Then, through the full-dimensional perception module, multi-source data such as SQL statements, database environment, business rules, regulatory compliance, and historical execution logs are collected by means of capturing SQL execution flow with probes, synchronizing business and audit data with APIs, and log completion, providing a foundation for subsequent analysis.
[0032] Based on the collected data, a digital twin consistent with the real financial database is constructed to reproduce the real operating environment. Then, the elements of the review scenario are mapped to four categories of elements: SQL, risk, compliance, and business. Individual attributes are defined, and a virtual social network is constructed according to association rules and weight calculation algorithms to quantify the influence strength between individuals.
[0033] Within the digital twin, an improved excitation-inhibition balance model is run to iteratively update the individual's state, using the individual's attributes as input. Once the state change is less than the convergence threshold, the SQL individual state value is extracted and classified into low, medium, and high risk levels according to a preset range. Then, the individual's interaction trajectory is traced to locate the core risk points and generate an early warning report containing the risk level, core risk points, related compliance clauses, and historical cases, thus completing the review and early warning output.
[0034] In addition, real SQL execution requests are processed in a graded manner according to risk level, and real results are collected as feedback data to correct model parameters and individual weights; at the same time, a memory bank is built to store historical cases, and regulatory rules are regularly synchronized to update compliance attributes, train models, and upgrade the twin architecture to achieve continuous evolution of audit and early warning capabilities.
[0035] Example 5, step 4 of constructing a virtual social network includes the following sub-steps: Step 41, define the element individuals: SQL individual, risk individual, compliance individual, business individual; Step 42, define the individual attributes of each element as follows: SQL individual attributes include syntax integrity S1, number of sensitive fields accessed S2, permission requirement level S3, estimated execution time S4, and business affiliation tag S5; Individual risk attributes include risk trigger probability R1, risk impact level R2, and risk association strength R3; Compliance attributes include rule matching degree C1, rule priority C2, and rule application scope C3; Individual business attributes include business sensitivity B1 and historical risk coefficient B2; Step 43, establish association rules between individuals: SQL individuals and risk individuals trigger directed association based on attribute matching and historical case matching; SQL individuals and compliance individuals trigger directed association based on rule engine matching; SQL individuals and business individuals trigger undirected association based on business metadata matching; risk individuals and compliance individuals trigger directed association based on the correspondence of regulatory documents. Step 44, Calculate connection weights: First, calculate the basic weights of each associated combination using the basic weight formula, and then adjust them by introducing the business priority correction item Corr1 and the historical risk coefficient correction item Corr2. Step 45: A directed weighted graph is used to construct the topology, which is stored in a dual structure of adjacency matrix and adjacency list. The network timeliness is maintained by daily recalculation of attributes and weights and timed updates and event-driven updates.
[0036] By adopting the above technical solution, the core of constructing a virtual social network is to transform the dispersed participating elements in the financial SQL review scenario into quantifiable and interactive network nodes and relationships, forming a structured system that reflects the intensity of influence between various elements, and providing an accurate interactive model for subsequent risk simulation. The specific principle is as follows: First, the basic network nodes are defined by defining four types of elements: SQL individuals, risk individuals, compliance individuals, and business individuals, covering the core participants in the entire SQL review process.
[0037] Next, each node is assigned computable attribute characteristics. By defining attributes such as the syntactic integrity and the number of sensitive fields accessed for SQL individuals, the structure and requirements of the SQL itself are quantified; by defining attributes such as the trigger probability and impact level for risk individuals, the likelihood and severity of risk occurrence are quantified; by defining attributes such as the rule matching degree and priority for compliance individuals, the constraint strength and scope of application of rules are quantified; and by defining attributes such as the sensitivity and historical risk coefficient for business individuals, the risk tolerance and historical experience of business scenarios are quantified. These attributes provide data basis for subsequent calculations of the correlation and interaction strength between nodes.
[0038] Then, establish the association logic between nodes, and set association rules based on the actual role of each element in the audit scenario: the association between SQL and risk needs to be combined with the current attribute matching degree and historical case verification to ensure the accuracy of risk association; the association between SQL and compliance needs to be strictly matched through the rule engine to ensure the seriousness of compliance constraints; the association between SQL and business needs to be determined based on business metadata to ensure the accuracy of scenario adaptation; the association between risk and compliance needs to refer to regulatory documents to clarify the corresponding relationship to ensure the correspondence between risk and constraint; at the same time, the direction of influence is reflected through directed association (such as the one-way influence of risk on SQL) and the two-way adaptation is reflected through undirected association (such as the mutual matching of SQL and business), so that the association relationship conforms to the actual business logic.
[0039] Next, the interaction strength between nodes is quantified. First, the initial strength of each association combination is calculated using the basic weight formula to reflect the inherent influence at the attribute level. Then, a business priority correction term is introduced to enhance the sensitivity of associations in core business scenarios. A historical risk coefficient correction term is introduced to strengthen the association strength in high-frequency risk scenarios. Through dual correction, the weights can reflect both inherent attributes and adapt to business priorities and historical experience, ensuring that the quantitative results of interaction strength are in line with the actual needs of financial business.
[0040] Finally, the network topology is constructed to ensure timeliness. A directed weighted graph is used to represent the directional and strength relationships between nodes. Adjacency matrices enable fast weight lookups, and adjacency lists enable efficient interactive traversal, balancing query and computation efficiency. At the same time, attributes and weights are recalculated daily to ensure that the network updates with daily data changes. Event-driven updates (such as adding rules or business changes) ensure that the network can quickly respond to sudden adjustments, maintaining the timeliness of the network structure and attributes, and providing a dynamic and accurate interactive model for risk simulation within the digital twin.
[0041] Example 6, step 44: the basic weight of the SQL individual and the risk individual association combination. The calculation formula is: ; The basic weight of the association between SQL individuals and compliant individuals The calculation formula is: ; The basic weight of the association between SQL entities and business entities The calculation formula is: ; The basic weight of the combination of risky individuals and compliant individuals The calculation formula is: ; in It is the strength of the risk association. , and These are the attributes corresponding to individual SQL statements; It is the rule matching degree. It refers to rule priority; S.S5 is the business affiliation label; It's about business acumen; This refers to the scope of application of the rules; The formulas for calculating the business priority adjustment terms Corr1 and Corr2 are: P represents business priority; ; Historical risk coefficient for individual business units; The final weighting formula is: ; in It is the final weight of the association combination between the i-th element and the j-th element. It is the basic weight of the association combination between the i-th element individual and the j-th element individual.
[0042] By adopting the above technical solution, the design of the basic weight formula revolves around the core correlation logic between individual attributes and related scenarios. Through mathematical operations between attributes, qualitative correlations are transformed into quantitative weight values, ensuring that the basic strength of each correlation combination conforms to the actual review logic. The fundamental weights of SQL and risk individuals are based on the risk association strength (Rj.R3) as the core coefficient, multiplied by the weighted sum of the attributes directly related to risk triggering within the SQL individual (sensitive field access count S.S2, permission requirement level S.S3, estimated execution time S.S4). The logic behind this design is that the strength of the association between risk and SQL depends not only on the basic affinity between the risk itself and the SQL (Rj.R3), but also on the SQL's performance in risk-sensitive dimensions such as sensitive data access, permission requirements, and performance consumption.
[0043] The basic weights for SQL and compliance individuals are calculated by directly multiplying the rule matching degree (Ck.C1) and rule priority (Ck.C2) of the compliance individual. The logic is that the strength of the association between compliance and SQL depends primarily on the degree to which the SQL satisfies the compliance rule (Ck.C1) and the enforcement level of that compliance rule (Ck.C2).
[0044] The basic weights for SQL entities and business entities are calculated by multiplying the business affiliation label (S.S5) of the SQL entity by the business sensitivity (Bm.B1) of the business entity. The logic is that the strength of the association between SQL and business is first determined by whether the SQL belongs to the business scenario (S.S5=1 if the association is established, =0 if the association is not established), and then adjusted by the risk sensitivity of the business scenario (Bm.B1).
[0045] The basic weights for risk-prone and compliant entities are directly based on the applicable rules for compliant entities (Ck.C3). The logic is that the relationship between risk and compliance is essentially about the coverage of risk by compliance rules.
[0046] The purpose of the correction items (Corr1, Corr2) is to adapt the basic weights to the priority differences and historical risk experience of financial businesses, and to avoid the weights being limited to individual attributes while ignoring the actual needs of the business scenario. Business priority adjustment item (Corr1): Calculated using the formula (1 + 0.2 × P) (where P is the business priority). The logic is: there are clear priority differences in financial businesses.
[0047] Historical risk coefficient correction term (Corr2): Calculated using the formula (1 + 0.3 × Bm.B2) (where Bm.B2 is the historical risk coefficient for the individual business). The logic is: historical risk experience is an important basis for risk control.
[0048] The final weighting formula, calculated by multiplying the base weight by Corr1 and Corr2, integrates the inherent correlation strength determined by individual attributes with the requirements of two scenarios: business priority and historical risk experience. The core logic of this design is that the final correlation strength must simultaneously satisfy both individual attribute matching and business scenario adaptation.
[0049] In Example 7, step 5, the core iterative formula of the excitation-inhibition balance model is: ; in Let be the state value of the i-th element at time t. Let be the connection weight between the i-th element individual and the j-th excitation source element individual. Let J be the output intensity of the j-th excitation source element individual. Let be the connection weight between the i-th serious individual and the k-th suppressive source element individual. The output intensity of the k-th suppressor source element is... This is the iteration step size.
[0050] By adopting the above technical solution, the core of this model is to simulate the dynamic interaction logic of individual elements in a financial SQL review scenario: through the dynamic balance of excitation sources (risk individuals) driving the state upward and inhibition sources (compliance individuals) constraining the state downward, the real-time state of individual elements is iteratively calculated, and finally converges to obtain a state value that reflects the true risk level of the SQL, providing a dynamic quantitative basis for risk level determination. The specific principle is as follows: The formula uses the current state value of the i-th element. Starting from point A, calculate the state value at the next time step. The core logic is that the state of an individual element is not fixed, but changes continuously with its interaction with other individuals. The excitatory effect of a risky individual will improve its state, while the inhibitory effect of a compliant individual will decrease its state. Through successive iterations, this dynamic interaction process is simulated until the state tends to stabilize (converge), ensuring that the final state value can truly reflect the actual situation of the individual under multiple interactions.
[0051] in the formula This represents the total excitation contribution of all individual excitation source elements to the i-th individual, and its design logic aligns with the actual pattern of risk escalation in financial scenarios: This reflects the degree of connection between the two; if the connection weight between the SQL individual and a certain risk individual is higher, it indicates that the risk has a stronger impact on the SQL, and the transmission efficiency of its excitatory effect is also higher.
[0052] This reflects the risk-management ability of the individual; for example, individuals with a high probability of risk triggering and a high level of impact. A larger value has a stronger exciting and driving effect on individual SQL statements.
[0053] Summation operation Σ: Since an SQL individual may be affected by multiple risk individuals at the same time (such as simultaneous access to sensitive data or insufficient permissions), the excitation effects of all risk individuals need to be summed to obtain the total excitation contribution, ensuring that the impact of multiple risk superpositions is not missed.
[0054] in the formula This represents the total inhibitory contribution of all individual source elements (i.e., compliant individuals) to the i-th individual. Its design logic corresponds to the constraint law of compliance reducing risk in financial scenarios: This reflects the strength of the constraint imposed by the compliant individual on the i-th individual. If the connection weight between the SQL individual and a certain compliant individual is higher, it indicates that the compliant rule imposes a stricter constraint on the SQL, and the transmission efficiency of the inhibition effect is higher.
[0055] This reflects the self-restraint of a compliant individual; for example, compliant individuals with high rule compliance and high priority. A larger value results in a stronger inhibitory and constraining effect on individual SQL statements.
[0056] Summation operation Σ: SQL entities may be subject to multiple compliance rules simultaneously. The inhibitory effects of all compliant entities need to be summed to obtain the total inhibitory contribution, ensuring a comprehensive reflection of the impact of multiple compliance constraints.
[0057] in the formula It is the net change between the total excitation contribution and the total inhibition contribution. Its meaning is: if the net change is positive, it means that the driving force of risk exceeds the constraint of compliance, and the state of the i-th individual will rise (such as the SQL risk level increases); if it is negative, it means that the compliance constraint is dominant, and the state will fall (such as the SQL risk level decreases); if it is close to zero, the state tends to be stable.
[0058] The iteration step size Δt controls the magnitude of state changes in each iteration: too large a Δt leads to drastic state fluctuations, making it difficult to converge to a stable value; too small a Δt results in too many iterations and low efficiency. In financial SQL auditing scenarios, Δt is typically set to around 0.1, ensuring smooth and controllable state changes in each iteration while achieving convergence within a reasonable number of iterations (e.g., within 100), thus balancing stability and auditing efficiency.
[0059] In actual financial SQL auditing, the core focus is on the SQL individual: in each iteration, the state value S_SQL(t) of the SQL individual will be dynamically adjusted under the excitation effect of risk individuals and the inhibition effect of compliance individuals until the state change of all individuals (including risk, compliance, and business individuals) is less than the convergence threshold. At this time, the final state value S_SQL of the SQL individual can accurately quantify its risk level, providing an objective and dynamic quantitative basis for subsequent risk level classification based on state value, avoiding the one-sidedness of traditional static rule judgment.
[0060] Example 8, step 5, the specific method for classifying risk levels based on SQL individual status values includes the following steps: Determine the basic interval for the SQL individual state values: based on the converged state values of the SQL individuals. Using these as core indicators, a basic risk level classification range is established; when When the risk is low, it means that the probability of the SQL statement triggering core financial risks is less than 30%, and it meets more than 90% of the compliance rules and business logic requirements. when When the risk level is determined to be medium, it means that the probability of the SQL statement triggering the core financial risk is ≥30% and <80%, or there are 1-2 non-veto-type compliance rules that are not met. when When an SQL statement is deemed high-risk, it indicates that the probability of it triggering core financial risks is ≥80%, or that it violates at least one veto-type compliance rule, and therefore it must be directly blocked.
[0061] By adopting the above technical solution, the core of this method is to establish a direct correspondence between the converged SQL individual state value and the actual financial risk level and compliance satisfaction. By transforming the 0-1 quantitative range of the state value into a gradient risk level range, the objective and quantifiable judgment of the risk level can be achieved. The convergence state value of an SQL individual is the final result of the excitation-inhibition balance model iteration in step 5. Its value range of 0-1 essentially reflects the dynamic balance between the excitation effect of risk and the inhibition effect of compliance: the lower the state value, the stronger the compliance inhibition and the weaker the excitation effect of risk, resulting in a lower risk level for the SQL; conversely, the higher the state value, the stronger the excitation effect of risk and the weaker the inhibition effect of compliance, resulting in a higher risk level for the SQL. Based on this physical meaning, the state value is divided into three gradient intervals, each directly corresponding to a specific risk probability and compliance satisfaction, ensuring that the division logic is consistent with the state value generation logic.
[0062] When the SQL individual status value is in the range of 0-0.3, it indicates that the compliance inhibition effect is significantly stronger than the risk excitation effect, specifically corresponding to two core characteristics: From a risk probability perspective: a low state value directly reflects that the probability of SQL triggering core financial risks is less than 30%. This is because the state value is the result of the sum of the output intensity (risk trigger probability, impact level) of risk individuals and the connection weights. A low state value means that the total excitation contribution of risk individuals to SQL is much less than the total inhibition contribution of compliant individuals. The possibility of risk occurring is greatly suppressed, hence the risk probability is at a low level.
[0063] In terms of compliance satisfaction: This range corresponds to meeting more than 90% of compliance rules and business logic requirements. Since compliant individuals are the core source of the inhibitory effect, a compliance rule satisfaction rate of more than 90% means that the output strength (rule matching degree, priority) of most compliant individuals is at a high level, and their inhibitory effect on SQL is fully exerted, thereby lowering the SQL individual status value, forming a positive correlation of high compliance satisfaction → low status value → low risk.
[0064] When the SQL individual status value is in the range of 0.3-0.8, it indicates that the risk-excitement effect and the compliance-inhibition effect are in a relatively balanced state, and no single effect has an absolute advantage, corresponding to two core characteristics: From a risk probability perspective: the probability of the middle value of the state value triggering core financial risks by SQL is ≥30% and <80%. At this point, the excitation contribution of risky individuals and the inhibition contribution of compliant individuals are not much different. The risk is neither completely suppressed nor out of control, and is in an intermediate state that requires attention but is not urgent.
[0065] In terms of compliance satisfaction: This range corresponds to 1-2 non-veto-level compliance rules that are not met. Non-veto-level compliance rules have lower priority, and their non-compliance only leads to a decrease in local suppression contribution, without causing an overall collapse of the suppression effect. Therefore, the status value only rises to the middle range, rather than directly surging. If a veto-level compliance rule is not met, its high priority will cause a sharp drop in suppression contribution, and the status value will directly exceed 0.8. Therefore, the medium-risk range explicitly excludes veto-level violations.
[0066] When the SQL individual status value is in the range of 0.8-1, it indicates that the risk-excitement effect is much stronger than the compliance-inhibition effect, or that the compliance-inhibition effect is ineffective due to the breach of key rules, corresponding to two core characteristics: From a risk probability perspective: a high value in the state indicates that the probability of SQL triggering core financial risks is ≥80%. At this point, the excitatory contribution of risky individuals is absolutely dominant, and the inhibitory contribution of compliant individuals is difficult to offset, indicating that the risk level of SQL has reached an extremely high level of harm.
[0067] In terms of compliance satisfaction: This range corresponds to a violation of at least one veto-type compliance rule. Veto-type compliance rules are the bottom line requirements for financial compliance, and their priority is extremely high. Once violated, the inhibitory output strength of the compliance entity will plummet to 0, resulting in a significant reduction in the overall inhibitory contribution. The risk-excitement effect will instantly take absolute advantage, and the status value will soar directly to above 0.8. Such violations are extremely harmful and therefore must be directly intercepted to prevent actual risks from occurring.
[0068] The entire risk level classification method achieves quantified and standardized risk level determination through a three-layered correlation of state value quantification range, risk probability gradient, and compliance rule severity. This avoids the bias of risk judgment that relies solely on subjective experience, and through the special adaptation of veto-type compliance rules, it meets the core requirement of zero tolerance for bottom-line risks in the financial sector. It ensures that the judgment result of each risk level can directly guide the subsequent graded processing of SQL execution, forming a closed loop from state value calculation to risk prevention and control actions.
[0069] Example 9, in step 6, the method for tracing the interaction trajectory of individual elements within a digital twin is: First, collect and store interaction logs: During the excitation-inhibition balance model iteration in step 5, collect the interaction logs of all individual elements in the digital twin simultaneously. The logs must include the following core elements: interaction subject information, interaction process data, related iteration information, time axis dimension, and weight intensity dimension. Re-visualize and reconstruct the interaction trajectory: Based on the collected interaction logs, the trajectory is reconstructed through a time-series weighted two-dimensional visualization model.
[0070] In Example 10, step 6, the core risk point quantification and positioning includes high-impact risk individual screening: extracting risk individuals that directly interact with the SQL individual from the high-impact interaction link, with the screening criteria being: interaction weight and the increase in the SQL individual's status value after the interaction, to obtain a set of candidate risk individuals; For the set of candidate risk individuals, the risk contribution ratio algorithm is used to quantify the degree of influence of each risk individual on the final state value of the SQL individual; The core risk point is determined as follows: if the risk contribution of a certain individual is greater than or equal to 50%, then the risk type corresponding to that individual is the unique core risk point. If the risk contribution of all risk individuals is less than 50%, but the sum of the risk contribution of two or more risk individuals is greater than or equal to 70%, then the risk type corresponding to these risk individuals is a joint core risk point, and the primary and secondary relationships are marked in descending order of risk contribution percentage; the triggering factors of the core risk point are recorded simultaneously.
[0071] By adopting the above technical solution, firstly, during the iterative process of the excitation-inhibition balance model, the interaction logs of all individual elements are collected synchronously. By recording the interaction subject (the individual participating in the interaction), process data (interaction weights, state changes), iteration information (round number, convergence progress), timeline (interaction sequence), and weight strength (influence magnitude), it is ensured that no interaction process is missed, and complete data is retained for subsequent traceability. Then, based on the collected logs, a visualization model is constructed using two dimensions: time sequence (showing state changes by iteration round) and weight (marking key interactions by influence strength). This transforms the abstract interaction data into an intuitive trajectory chart, clearly presenting the interaction influence process of each individual on the SQL individual, which facilitates the rapid identification of key interaction links.
[0072] The core of this solution is to accurately pinpoint the core risk points that dominate SQL risks by screening key risk sources, quantifying the degree of impact, and clarifying judgment rules, thus avoiding vague or subjective risk identification. First, from the high-impact interaction links identified through visualization, risk individuals that directly interact with the SQL entity are extracted. A set of candidate risk individuals is obtained based on the interaction weight (ensuring close correlation) and the significant increase in the SQL state after the interaction (ensuring effective impact), excluding irrelevant or weakly influential risk individuals. Next, a risk contribution ratio algorithm is used to quantify the total impact of each candidate risk individual on the final SQL state value, transforming qualitative impact into quantitative percentage data. Finally, core risk points are determined based on contribution ratio: risk individuals with a contribution ratio ≥ 50% are considered unique core risk points; multiple risk individuals with a combined contribution ratio ≥ 70% are considered joint core risk points, marked with primary and secondary indicators, and their triggering causes are recorded to ensure accurate and quantifiable identification of core risk points and to clearly identify the root cause of the risk.
[0073] The following specific embodiments illustrate the implementation principle of the present invention: Step 1: Define the risk and audit dimensions: The core risk types are defined as sensitive data risk (R1), compliance authorization risk (R2), business logic risk (R3), and performance overload risk (R4); the audit dimensions are set as sensitive data access degree (threshold ≤ 0.3), permission matching degree (threshold ≥ 0.9), business logic correctness rate (threshold ≥ 0.95), and performance consumption degree (threshold ≤ 0.5), all of which are suitable for retail bank account query scenarios.
[0074] Step 2: Full-Dimensional Sensing and Data Acquisition The full-dimensional sensing module collects multi-source data in the following ways: SQL statement data: The collected SQL statement is SELECT customer_id, id_card, balance FROM customer_account WHERE account_no='6226001234567890' AND query_date BETWEEN'2024-01-01' AND'2024-01-30'. The syntax is complete and involves two sensitive fields (id_card and balance). Database operating environment data: The current database CPU utilization is 35%, the number of connections is 80, and the query account permission is that of a regular counter staff member, who is only allowed to query customer accounts under their jurisdiction; Financial business rules data: Account balance queries must desensitize the id_card field, and the query results must include information about the branch to which the account belongs; Regulatory compliance data: The Personal Financial Information Protection Law stipulates that sensitive customer information must be anonymized when accessed; internal compliance rules prohibit counter staff from accessing customer accounts across jurisdictions. Historical SQL execution log data: The average execution time of similar SQL queries in the past 3 months was 0.8 seconds. There were 2 instances where sensitive data risk warnings were triggered due to failure to anonymize the data.
[0075] Step 3: Digital Twin Construction A digital twin, built on a 1:1 scale with the bank's core database, was constructed based on the collected data. Structural twin: replicates the customer_account table structure, including fields such as customer_id, id_card, balance, account_no, and branch_code, with index configuration consistent with the real database; State twin: Synchronize the anonymized customer data, with the id_card field anonymized to 622******1234, and the balance field retains the original value to ensure calculation consistency. The current database CPU and connection count status are synchronized to the twin. Rule twinning: Transform "id_card needs to be de-identified" and "counter post jurisdiction limit query" into virtual constraints; Historical Twin: Stores execution logs and risk records of SQL queries for similar accounts over the past 12 months.
[0076] Step 4: Building a Virtual Social Network Element individual definitions: SQL individual (SQL query pending review), risk individuals R1-R4, compliance individuals C1 (regulatory anonymization rules) and C2 (internal permission rules), and business individual B1 (retail bank account query scenario). Individual attribute assignments: SQL individual S1=1 (syntactic complete), S2=0.6 (involves 2 sensitive fields, total 3 sensitive fields), S3=0.6 (requires normal query privileges), S4=0.4 (estimated execution time 0.4 seconds, tolerable execution time 1 second), S5=1 (belongs to B1); R1's R1=0.3 (historical trigger probability 30%), R2=0.8 (high impact level), R3=0.7 (high association strength with SQL); C1's C1=0 (not desensitized, low rule matching degree), C2=1 (desensitization rule is high priority), C3=1 (applicable to all account query scenarios); B1's B1=0.3 (low business sensitivity), B2=0.2 (low historical risk coefficient); Association rule triggers: SQL and R1 are associated because S2=0.6>0.3 and there are similar risk cases in the past; SQL and C1 are associated because the anonymization rules are not met; SQL and B1 are associated undirected because they belong to the retail banking scenario; R1 and C1 are associated because the anonymization rules in the regulatory documents are corresponding. Connection weight calculation: SQL and R1 have a base weight of 0.4, which is adjusted by the business priority adjustment item (P=1, Corr1=1.2) and the historical risk coefficient adjustment item (B2=0.2, Corr2=1.06) to a final weight of 0.42; SQL and C1 have a base weight of 0.5, which is adjusted to a final weight of 0.53. Topology and Updates: A directed weighted graph is used to construct the topology. The adjacency matrix records SQL with a weight of 0.42 and R1 with a weight of 0.53. The weights are recalculated every day at midnight. If a new de-identification rule is added, an event-driven update is triggered.
[0077] Step 5: Iteration of the excitation-inhibition balance model and risk level classification: Running an improved excitation-inhibition balance model within a digital twin: Iterative process: Using the SQL individual attributes as input current, R1 as the excitation source with an output intensity of 0.7, and C1 as the inhibition source with an output intensity of 0.5, after 15 iterations, the change in the state of all individuals is less than 0.01, and the process converges to a steady state. Risk level classification: After convergence, the individual SQL status value is 0.65, which is in the range of 0.3-0.8, and is judged as medium risk. The probability of triggering the core financial risk is 55%. There is one non-veto compliance rule that is not met (not anonymized).
[0078] Step 6: Interactive trajectory tracking and early warning report generation: Interaction trajectory tracing: Interaction logs were collected, recording that the interaction weight between SQL and R1 in the 8th iteration was 0.42, causing the SQL state value to rise from 0.5 to 0.58; the interaction weight between SQL and C1 in the 12th iteration was 0.53, causing the SQL state value to drop from 0.68 to 0.65; the visualization timeline showed that the SQL state value gradually increased to 0.65 with each iteration, and the heatmap marked SQL and R1 as high-impact interaction links; Core risk point identification: Candidate risk individuals R1 and R2 were selected. R1 contributed 45% and R2 contributed 27%, with the sum of the two being 72%, which were determined to be the joint core risk points. The primary and secondary relationship is R1 (sensitive data risk) and R2 (compliance authorization risk). The triggering factor is that the SQL involved unmasked sensitive fields and the queried account did not verify the customer's jurisdiction. Early warning report generation: The report includes a medium risk level, joint core risk points, related compliance clauses (Article 15 of the Personal Financial Information Protection Law and Article 8 of the Internal Access Control Regulations), and similar historical cases (an early warning and handling result of a counter SQL query that was not anonymized 3 months ago). The review and early warning output are completed.
[0079] Step 7: Hierarchical processing and model correction Tiered processing: Medium-risk SQL queries are pushed to the bank's data security experts for review. The experts determined that the id_card de-identification function needs to be added and that jurisdictional attribution verification conditions need to be added. Feedback and Correction: Collect expert review opinions and the execution results of the corrected SQL (risk-free) as feedback data, correct the connection weight between SQL and C1 to 0.7, and adjust the iteration step size of the E / I model to 0.08.
[0080] Step 8: The system continues to evolve. Storage memory: The cases reviewed this time (including SQL statements, weight data, and warning reports) are categorized and stored in the global consensus and storage memory; Regular updates: In the current month, synchronize newly added customer information protection rules with the regulatory authorities and update the C1 attribute; in the next quarter, use feedback data from the past 3 months to train the E / I model; at the end of the year, upgrade the digital twin architecture to adapt to the newly added distributed database.
[0081] The above are all preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Therefore, all equivalent changes made in accordance with the structure, shape and principle of the present invention should be covered within the scope of protection of the present invention.
Claims
1. A method for SQL statement intelligent auditing and risk early warning for financial services, characterized in that, Comprise the following steps: Step 1, define the financial SQL core risk type and quantitative audit dimension; Step 2, build a full-dimensional perception module to collect multi-source data related to the SQL to be audited, wherein the multi-source data at least includes SQL statement data, database running environment data, financial business rule data, regulatory compliance data and historical SQL execution log data; Step 3, based on the multi-source data collected in step 2, a digital twin corresponding to the real financial database environment is constructed; Step 4, map the financial SQL audit scene elements to the element individuals in the social neurodynamic model, define the attributes of each element individual, and build a virtual social network through a connection weight calculation algorithm; Step 5, run the improved excitation-inhibition balance model as the core of the social neurodynamic calculation in the digital twin constructed in step 3, and update the state of the element individual by taking the element individual attribute as the input current until the change of the state of all element individuals is less than the preset convergence threshold, extract the state value of the converged SQL individual, and divide the risk level according to the state value of the SQL individual; Step 6, trace the interaction trajectory of the element individual in the digital twin in step 5, locate the core risk point, generate a warning report containing the risk level, core risk point, relevant regulatory clauses and historical similar risk cases, and complete the output of the audit and warning results. 2.The SQL sentence intelligent auditing and risk early warning method for financial services according to claim 1, characterized in that, The risk types include sensitive data risk, compliance authorization risk, business logic risk and performance overload risk; The audit dimensions include sensitive data contact degree, permission matching degree, business logic correctness and performance consumption degree, and financial scene exclusive thresholds are set for each audit dimension. 3.The SQL sentence intelligent auditing and risk early warning method for financial services according to claim 2, characterized in that, It also includes step 7, according to the audit risk level of step 5, the SQL execution request in the real financial environment is processed in stages; at the same time, the real results after SQL execution are collected as feedback data, and the feedback data is used to correct the connection weight and iteration parameter of the element individual of the social neurodynamic model; Step 8, build a global consensus and memory bank to store historical audit cases; update the compliance element individual attributes every month by synchronizing the newly added compliance rules of the regulatory platform, train the social neurodynamic model every quarter with the feedback data of the last three months, and upgrade the digital twin architecture every year to adapt to the newly added database types, so as to realize the continuous evolution of the audit and warning capabilities. 4.The SQL sentence intelligent auditing and risk early warning method for financial services according to claim 3, characterized in that, The collection method of the full-dimensional perception module in step 2 includes: deploying lightweight probes on application servers and database servers to capture SQL execution flow, synchronizing structured data through open APIs of financial business systems and database audit tools, and automatically supplementing historical logs that are not collected in real time the previous day at dawn. 5.The SQL sentence intelligent auditing and risk early warning method for financial services according to claim 4, characterized in that: The construction of the virtual social network in step 4 includes the following sub-steps: Step 41, define element individuals: SQL individual, risk individual, compliance individual, business individual; Step 42, define the attributes of each element individual as follows: SQL individual attributes include syntax integrity S1, sensitive field contact number S2, permission requirement level S3, estimated execution time S4, and business attribution label S5; The attributes of the risk individual include risk trigger probability R1, risk impact level R2 and risk correlation strength R3; Compliance individual attributes include rule matching degree C1, rule priority C2, and rule applicable scope C3; Business individual attributes include business sensitivity B1 and historical risk coefficient B2; Step 43, establish inter-individual association rules: SQL individual and risk individual trigger directed association based on attribute matching and historical case matching, SQL individual and compliance individual trigger directed association based on rule engine matching, SQL individual and business individual trigger undirected association based on business metadata matching, risk individual and compliance individual trigger directed association based on regulatory document correspondence; Step 44, calculate connection weight: first calculate the basic weight of each association combination through the basic weight formula, then introduce business priority correction term Corr1 and historical risk coefficient correction term Corr2 for correction; Step 45, construct topology using directed weighted graph, store in adjacency matrix and adjacency table dual structure, and maintain network timeliness through daily recalculation of attributes and weight timed update and event-driven update.
6. The SQL statement intelligent auditing and risk early warning method for financial services according to claim 5, characterized in that: The formula for calculating the base weight of the combination of the SQL individual and the risk individual in step 44 is: The formula for calculating the base weight of the combination of the SQL individual and the risk individual in step 44 is: ; The base weight of the combination of the SQL individual and the compliance individual The calculation formula is: ; The base weight of the combination of the SQL individual and the business individual association The calculation formula is: ; The base weight of the combination of the risk individual and the compliance individual The formula for calculating the base weight is: ; wherein is a risk association strength, , and are SQL individual corresponding attributes, respectively; is a rule matching degree, is a rule priority; S.S5 is a service home label; is a service sensitivity; is a rule application scope; The calculation formulas of business priority correction terms Corr1 and Corr2 are: ; P is a traffic priority; ; is the business individual historical risk coefficient; The maximum weight formula is: ; wherein is the maximum weight of the associated combination of the i-th element individual and the j-th element individual, is the base weight of the associated combination of the i-th element individual and the j-th element individual.
7. The SQL statement intelligent auditing and risk early warning method for financial services according to claim 6, characterized in that: In step 5, the core iteration formula of the excitation-inhibition balance model is: ; wherein is the state value of the ith element individual at time t, is the connection weight between the ith element individual and the jth excitatory source element individual, is the output intensity of the jth excitatory source element individual, is the connection weight between the ith serious individual and the kth inhibitory source element individual, is the output intensity of the kth inhibitory source element individual, is the iteration step.
8. The SQL statement intelligent auditing and risk early warning method for financial services according to claim 7, characterized in that: In step 5, the specific method for dividing risk levels according to SQL individual state values includes the following steps: Determine the SQL individual state value basis partition interval: the state value of the converged SQL individual The core decision index is set to determine the basic risk level partition interval; When low risk: indicates that the probability of the SQL statement triggering the financial core risk is < 30%, and more than 90% of the compliance rules and business logic requirements are met; When the probability of the SQL statement triggering the financial core risk is ≥ 30% and < 80%, or there are 1-2 non-veto compliance rules that are not met; When High risk: indicates that the probability of the SQL statement triggering the financial core risk is ≥ 80%, or at least one veto-type compliance rule is violated, and it needs to be directly intercepted. 9.The SQL sentence intelligent auditing and risk early warning method for financial services of claim 8, characterized in that: In step 6, the method for tracing the interaction trajectory of elements within the digital twin is: First, collect and store interaction logs: during the iteration process of the excitation-inhibition balance model in step 5, collect the interaction logs of all element individuals within the digital twin simultaneously, and the logs need to include the following core elements: interaction subject information, interaction process data, association iteration information, time axis dimension, and weight intensity dimension; Then, visualize and reconstruct the interaction trajectory: based on the collected interaction logs, reconstruct the trajectory through the time sequence weight dual-dimension visualization model. 10.The SQL sentence intelligent auditing and risk early warning method for financial services of claim 9, characterized in that: In step 6, core risk point quantification includes high-impact risk individual screening: extract risk individuals that directly interact with SQL individuals from high-impact interaction links, with the screening criteria being: interaction weight, and SQL individual state value increment after interaction, to obtain a candidate risk individual set; For the candidate risk individual set, use the risk contribution ratio algorithm to quantify the influence of each risk individual on the final state value of the SQL individual; Core risk point determination: if the risk contribution ratio of a risk individual is greater than or equal to 50%, then the risk type corresponding to the risk individual is the unique core risk point; If the risk contribution ratios of all risk individuals are less than 50%, but the sum of the risk contribution ratios of 2 or more risk individuals is greater than or equal to 70%, then the risk types corresponding to these risk individuals are joint core risk points, and they are sorted and labeled in primary and secondary relationships according to the risk contribution ratio from large to small; Simultaneously record the trigger causes of core risk points.
Citation Information
Patent Citations
Network situation intelligent perception security system based on multi-source data analysis
CN121098590A
Large language model construction method fused with spatial semantic understanding
CN121189507A
Systems and methods for providing digital twin-enabled applications
US20200285788A1
System and method for ai-driven multi-modal content generation and immersive interaction experiences
US20250352907A1
