Solvency stress testing method, device, equipment and storage medium

By defining field identification rules and parsing target calculation formulas, the problems of difficult formula maintenance and low calculation efficiency in solvency stress testing in the existing technology are solved, and a more efficient testing process is achieved.

CN110458712BActive Publication Date: 2024-09-13CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910603375.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-05
Publication Date
2024-09-13
Estimated Expiration
2039-07-05

AI Technical Summary

Technical Problem

In the existing technology, formula maintenance is difficult and calculation efficiency is low in solvency stress testing, resulting in low testing efficiency.

Method used

Obtain the corresponding field identification set by defining field identification rules, find and parse the target calculation formula, use the preset formula parsing rules and calculation logic parameters to analyze, and generate stress test results.

Benefits of technology

It reduces maintenance costs during solvency stress testing, improves testing efficiency, and simplifies formula maintenance and calculation processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110458712B
    Figure CN110458712B
Patent Text Reader

Abstract

The present invention is applicable to the field of computer technology and provides a solvency stress test method, device, equipment and storage medium. The method includes: when a solvency stress test request is received, a field identification set corresponding to the solvency stress test request is obtained according to a defined field identification rule, a target calculation formula corresponding to each field identification in the field identification set and a calculation priority of the target calculation formula are searched from an established field information table, and the target calculation formula is parsed in turn according to preset formula parsing rules and calculation priorities to obtain a solvency stress test result, thereby reducing the maintenance cost in the solvency stress test process and improving the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and in particular relates to a solvency stress testing method, device, equipment and storage medium. Background Art

[0002] Currently, insurance companies' solvency stress tests are all completed through Excel tables, that is, firstly, the original data related to the stress test to be performed is saved in an Excel table, and then the Excel table is configured with formulas corresponding to the stress test to achieve the ultimate stress test goal.

[0003] In order to meet the complex and ever-changing stress testing needs, there are usually a large number of calculation formulas in Excel, which are not easy to maintain. In addition, some formulas have complex relationships. Once the formulas are changed, a huge workload will be generated, which will lead to difficulties in formula maintenance and low stress testing efficiency. Summary of the invention

[0004] The object of the present invention is to provide a solvency stress testing method, device, equipment and storage medium, aiming to solve the problems of difficult formula maintenance and low calculation efficiency in the solvency stress testing process due to the prior art.

[0005] In one aspect, the present invention provides a solvency stress testing method, the method comprising the following steps:

[0006] When receiving a solvency stress test request, obtaining a field identification set corresponding to the solvency stress test request according to a defined field identification rule;

[0007] Searching the target calculation formula corresponding to each field identifier in the field identifier set and the calculation logic parameters corresponding to the target calculation formula from the established field information table;

[0008] The target calculation formula is analyzed in sequence according to the preset formula analysis rules and the calculation logic parameters to obtain the stress test result of the solvency.

[0009] Preferably, before the step of acquiring a set of field identifiers corresponding to the solvency stress test request according to a defined field identifier rule, the step includes:

[0010] Receive scene data input by the user;

[0011] Acquire the field identification set corresponding to the scene data according to the scene data;

[0012] A solvency stress test request corresponding to the scenario data is generated according to the acquired field identifier set.

[0013] Preferably, the step of sequentially parsing the target calculation formula according to the preset formula parsing rules and the calculation logic parameters includes:

[0014] Determine the formula type of the target calculation formula, the formula type including simple arithmetic operation formulas and complex logical operation methods;

[0015] If the formula type of the target calculation formula is a simple four arithmetic operation formula, the target calculation formula is parsed according to the preset four arithmetic operation parsing rules;

[0016] If the formula type of the target calculation formula is a complex logic operation method, the target calculation formula is parsed according to a preset complex logic operation parsing rule.

[0017] Preferably, the method further comprises:

[0018] When a formula backtracking request is received, obtaining a first field identifier and a second field identifier corresponding to the formula backtracking request according to the defined field identifier rule;

[0019] Searching for a first target calculation formula corresponding to the first field identifier from the established field information table;

[0020] The first target calculation formula is parsed according to the preset backtracking formula parsing rule and the second field identifier to obtain a second target calculation formula;

[0021] The first target calculation formula is updated to the second target calculation formula.

[0022] Preferably, after the step of updating the first target calculation formula to the second target calculation formula, the following steps are included:

[0023] When a data backtracking request is received, obtaining a field identifier corresponding to the data backtracking request according to the defined field identifier rule;

[0024] Searching the second target calculation formula corresponding to the field identifier from the established field information table;

[0025] The second target calculation formula is parsed according to a preset formula parsing rule to obtain a data backtracking result.

[0026] On the other hand, the present invention provides a solvency stress test device, characterized in that the device comprises:

[0027] A test request processing unit, configured to, when receiving a solvency stress test request, obtain a field identification set corresponding to the solvency stress test request according to a defined field identification rule;

[0028] A formula search unit, used to search for a target calculation formula corresponding to each field identifier in the field identifier set and a calculation logic parameter corresponding to the target calculation formula from an established field information table; and

[0029] The formula parsing unit is used to parse the target calculation formula in sequence according to the preset formula parsing rules and the calculation logic parameters to obtain the stress test result of the solvency.

[0030] Preferably, the device further comprises:

[0031] A scene data receiving unit, used for receiving scene data input by a user;

[0032] a scene data processing unit, configured to obtain, according to the scene data, the field identifier set corresponding to the scene data; and

[0033] A test request generating unit is used to generate a stress test request for solvency corresponding to the scenario data according to the acquired field identifier set.

[0034] Preferably, the device further comprises:

[0035] A backtracking request processing unit, configured to, when receiving a formula backtracking request, obtain a first field identifier and a second field identifier corresponding to the formula backtracking request according to the defined field identifier rule;

[0036] A first formula searching unit, configured to search the established field information table for a first target calculation formula corresponding to the first field identifier;

[0037] A second formula generating unit is used to parse the first target calculation formula according to a preset backtracking formula parsing rule and a second field identifier to obtain a second target calculation formula;

[0038] A formula replacement unit is used to update the first target calculation formula to the second target calculation formula.

[0039] On the other hand, the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0040] On the other hand, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0041] When receiving a solvency stress test request, the present invention obtains a field identification set corresponding to the solvency stress test request according to a defined field identification rule, searches for a target calculation formula corresponding to each field identification in the field identification set and a calculation priority of the target calculation formula from an established field information table, and analyzes the target calculation formula in turn according to preset formula analysis rules and calculation priorities to obtain a solvency stress test result, thereby reducing the maintenance cost during the solvency stress test and improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 is a flow chart of the implementation of the solvency stress testing method provided in the first embodiment of the present invention;

[0043] Figure 2 is a flow chart for implementing a scenario-based solvency stress testing method provided in Embodiment 2 of the present invention;

[0044] Figure 3 is a flow chart of the implementation of the formula backtracking method provided in the third embodiment of the present invention;

[0045] Figure 4 is a flow chart of the implementation of the data backtracking method provided in the fourth embodiment of the present invention;

[0046] Figure 5 is a schematic diagram of the structure of a solvency stress testing device provided in Embodiment 5 of the present invention;

[0047] Figure 6 is a structural flow chart of a scenario-based solvency stress testing device provided in Embodiment 6 of the present invention;

[0048] Figure 7 is a structural flow chart of a formula backtracking device provided in Embodiment 7 of the present invention;

[0049] Figure 8 is a structural flow chart of a data backtracking device provided in Embodiment 8 of the present invention; and

[0050] Fig. 9 It is a structural diagram of a computer device provided in Embodiment 9 of the present invention. DETAILED DESCRIPTION

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

[0052] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments:

[0053] Embodiment 1:

[0054] Figure 1 The implementation process of the solvency stress test method provided in the first embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:

[0055] In step S101, when a solvency stress test request is received, a field identification set corresponding to the solvency stress test request is obtained according to a defined field identification rule.

[0056] In an embodiment of the present invention, the calculation method is applicable to database systems such as Oracle, SQL Server, and Mysql. When obtaining a set of field identifiers corresponding to the solvency stress test request according to a defined field identification rule, specifically, when a solvency stress test request is received, the request parameter of the solvency stress test request is read, the request parameter carries field identification information, and the field identifier contained in the request parameter is obtained according to the defined field identification rule. The obtained set of one or more field identification combinations is the set of field identifiers corresponding to the solvency stress test request. It should be noted here that the field identifiers carried in the request parameters of each solvency stress test request are pre-established by the user according to actual computing requirements, and the request parameters of each solvency stress test request may carry one field identifier or multiple field identifiers, which are not limited here.

[0057] Before obtaining the field identifier corresponding to the solvency stress test request according to the defined field identification rule, the field identification rule needs to be defined. When defining the field identification rule, specifically, the field sequence number and the parent class of the field can be defined respectively, and the association method between the field sequence number and the field parent class can be established, so that the defined field identifier can establish a corresponding relationship with the target field.

[0058] As an example, if the parent class sheet1 of table 1 is defined as CA, the field numbers of the fields net earned premium, earned premium, and reinsurance premium income are defined as 1, 2, and 3 respectively, and the association method between the two is "_", then the field identifiers of the fields net earned premium, earned premium, and reinsurance premium income are CA_1, CA_2, and CA_3 respectively.

[0059] Table 1

[0060] It should be noted here that when defining fields, you can define a field identifier for each field, or you can define a field identifier for multiple fields. For example, the two fields of unexpired reserve withdrawal and unexpired reserve transfer in Table 1 can be defined as CA_4.

[0061] In step S102, the target calculation formula corresponding to each field identifier in the field identifier set and the calculation logic parameters corresponding to the target calculation formula are searched from the established field information table.

[0062] In an embodiment of the present invention, before searching for a target calculation formula corresponding to the field identifier from an established field information table, it is necessary to establish a field information table, which contains a calculation formula corresponding to each field identifier and a calculation logic parameter corresponding to the calculation formula. The calculation logic parameter may be one or more, and the logic parameter at least includes the calculation priority of the target calculation formula. Of course, it may also include information other than the calculation priority, such as the insurance type serial number, which is not limited here. When searching for a calculation method corresponding to the field identifier from an established field information table, specifically, firstly, the field identifier is split according to the defined association relationship between the field parent class and the field serial number to obtain the field parent class identifier and the field serial number, and then a set matching the field parent class identifier is searched from the field information table, and finally, according to the field serial number, an item matching the field serial number is located in the found set containing the field parent class identifier, and the calculation formula corresponding to the item and the calculation priority of the calculation formula, such as the priority, are obtained. The calculation formula is the target calculation formula, and the priority of the calculation formula is the calculation logic parameter of the target calculation formula.

[0063] As an example, the field information table contains the field parent class, field serial number and calculation formula. The field parent class CA and field serial number 1 correspond to formula one. The defined association relationship between the field parent class and the field serial number is "_". If the field identifier is CA_1, the field identifier is first split according to the above association relationship to obtain the field parent class CA and the field serial number 1, and then the set whose field parent class is CA is searched from the field information table. Finally, the item with the field serial number 1 is searched in the found set containing the field parent class CA, and the calculation formula corresponding to the field identifier CA_1 is formula one, and the calculation priority corresponding to the calculation formula one is level 1.

[0064] Field number Parent Class …… Calculation formula Calculation Order 1 CA …… Formula 1 1 2 CA …… Formula 1 2 3 CA …… Formula 1 3 1 CB …… Formula 2 4

[0065] Table 2

[0066] Of course, the field information table may also include information other than field identifiers and calculation methods, such as field names, field subcategories, and insurance type serial numbers, etc., to meet actual calculation requirements, which is not limited here.

[0067] In step S103, the target calculation formula is analyzed in turn according to the preset formula analysis rules and calculation logic parameters to obtain the stress test result of the solvency.

[0068] In an embodiment of the present invention, the types of target calculation formulas include simple four arithmetic operations and complex logical operation methods. Specifically, the simple four arithmetic operations formula may be a simple four arithmetic operations formula composed of addition, subtraction, multiplication and division, for example, CA_1*0.8. It should be noted here that in the simple four arithmetic operations formula, no operators other than addition, subtraction, multiplication and division (for example, brackets) will appear. The complex logical operation method may be a complex operation method composed of the above-mentioned simple four arithmetic operations and one or more dimensional logics and placeholders, for example, a complex operation method composed of different time logics and simple four arithmetic operations.

[0069] When the target calculation formula is parsed in sequence according to the preset formula parsing rules and calculation logic parameters, the preset formula parsing rules are understood as formula parsing rules established for the calculation method, for example, the way to find the value corresponding to the character identifier, the way to segment the formula, and the data storage rules during the parsing process. The preset formula parsing rules may include different parsing rules set for different calculation methods, and the preset formula parsing rules may include simple four arithmetic operations parsing rules and complex logic method parsing rules. When the calculation formula is parsed according to the preset formula parsing rules, preferably, the formula type of the target calculation formula is determined. If the formula type of the target calculation formula is a simple four arithmetic operations formula, the target calculation formula is parsed according to the preset four arithmetic operations parsing rules. If the formula type of the target calculation formula is a complex logic operation method, the target calculation formula is parsed according to the preset complex logic operation parsing rules, thereby improving the parsing efficiency of the calculation method.

[0070] When judging the formula type of the calculation formula, specifically, it can be judged by judging whether the calculation formula contains brackets. If so, the calculation formula is judged to be a complex logical operation method, otherwise, the calculation formula is judged to be a simple arithmetic formula. Of course, the formula type can also be judged by methods other than the above, for example, by judging whether the calculation formula contains symbols or specific characters such as:,. (colon, dot symbol), which is not limited here.

[0071] When parsing the calculation formula according to the preset four arithmetic operations parsing rules, specifically, the calculation formula can be segmented according to the addition, subtraction, multiplication and division characters, and the segmented fields and operators are placed in an array. Then, the fields are segmented according to the association relationship characters (such as "_") between the field parent class and the field serial number in the field identifier, and the field identifier is decomposed into the field parent class and the field serial number. Then, the field parent class and the field serial number are used as query conditions to query the value corresponding to the field identifier from the data table and put it back into the array. The array is looped, the value and the four arithmetic operations are operated, and the final result value is calculated.

[0072] As an example, the field identifier corresponding to field 7 is CB_7, the field identifier corresponding to field 13 is CB_13, and the calculation formula is: CB_7+CB_13*0.8, which includes a time cycle. The time dimensions corresponding to field 7 and field 13 include 201412, 201501, and 201502, as shown in Table 3. When parsing the calculation formula, firstly, according to the "+-* / " character segmentation formula, the fields and operators are split into an array, that is, the array [CB_7,+,CB_13,*,0.8], and then according to the "_" character segmentation field, CB_7 is split into parent class CB and field number 7, and CB_13 is split into parent class CB and field number 13. Then, the parent class and field number are passed into the data table as query conditions to query the specific value. From the data table, find out that the parent class code CB, field number 7, and time 201412 have a value of 25, and the parent class code CB, field number 7, and time 201412 have a value of 10. Put the queried values ​​25 and 10 into an array, that is, the array [25,+,10,*,0.8]. Finally, perform four arithmetic operations to obtain the calculation result of time 201412 as 33. According to the above method, the calculation results of 201501 and 201502 are 36 and 34 respectively.

[0073] suject 201412 201501 201502 Field 7 25 20 10 … Field 13 10 20 30 …

[0074] Table 3

[0075] When parsing the calculation formula according to the preset complex logic operation parsing rules, specifically, the placeholders in the calculation formula can be parsed first, and the placeholders can be replaced with corresponding variables. Then, the corresponding simple four arithmetic operations can be entered in sequence according to the logical priority order in the calculation method, and then the analysis can be performed according to the above four arithmetic operation parsing rules to calculate the final result, wherein different logics (for example, insurance type dimension or time dimension) can correspond to different four arithmetic operations.

[0076] As an example, the calculation formula includes time dimension logic, and the corresponding calculation formula is method 1 (stress test ID, time, special time, CA_1*0.8, CA_2*0.8). When the time meets the first time threshold (2014), the corresponding calculation formula is CA_1*0.8, and when the time meets the second time threshold (2015), the corresponding calculation formula is CA_2*0.8. The calculation formula includes a stress test ID placeholder and a time placeholder. When parsing the calculation formula, the stress test ID placeholder and the time placeholder are first parsed, and the stress test ID and time generated in the stress test request are sequentially passed into the calculation formula, and the passed-in time is judged. If the passed-in time is 2014.2, the formula CA_1*0.8 is entered, and the formula is then parsed according to the simple four arithmetic operations parsing rules to obtain the calculation result. If the passed-in time is 2015.5, the formula CA_2*0.8 is entered, and the formula is then parsed according to the simple four arithmetic operations parsing rules to obtain the stress test result of the solvency.

[0077] When the target calculation formula is parsed in sequence according to the preset formula parsing rules and calculation logic parameters, the calculation logic parameters at least include the calculation priority. For example, if the calculation logic parameters include the calculation priority and the insurance type number, the calculation formula includes calculation formula 2 and calculation formula 3, the calculation priority corresponding to calculation formula 2 is 2, the insurance type number is 1, the insurance type number corresponds to the insurance type table, and the insurance type information table includes insurance types 1 to 6, the calculation priority corresponding to calculation formula 3 is 3, and does not correspond to the insurance type number. Formula 2 is specifically method 2 (stress test ID, time, insurance Type, special type, CA_1*0.8, CA_2*0.8), type of insurance can be understood as the first type of insurance threshold (type 1 to type 3), special type of insurance can be understood as the second type of insurance threshold (type 4 to type 6), then firstly parse calculation formula 2 according to the calculation priority, when parsing formula 2, it is necessary to pass the type of insurance information corresponding to the solvency stress test request into calculation formula 2, parse it according to the formula corresponding to the type of insurance information, and obtain the calculation result of formula 2, and then parse calculation formula 3 to obtain the calculation result of calculation formula 3.

[0078] When the stress test result of the solvency is obtained, the stress test result is inserted into the field corresponding to the field identifier according to the field identifier corresponding to the calculation formula.

[0079] After obtaining the solvency stress test result, preferably, a test log of the solvency stress test request is generated for user viewing and management. The test log may include the time of the test request, several field identification information corresponding to the request, the test result corresponding to each field identification, the test request ID, the insurance type involved in the test, etc., which are not limited here.

[0080] It is understandable that, in order to ensure the simplicity of the language, Tables 1 to 3 only schematically show some field information tables and field table information, and may also include information other than the above. Tables 1 to 3 are only to help understand the field information table and field identifiers, and the actual meaning of the specific meanings in the tables may not be studied.

[0081] In an embodiment of the present invention, when a stress test request for solvency is received, a field identification set corresponding to the stress test request for solvency is obtained according to a defined field identification rule, a target calculation formula corresponding to each field identification in the field identification set and a calculation priority of the target calculation formula are searched from an established field information table, and the target calculation formula is parsed in sequence according to the calculation priority according to a preset formula parsing rule to obtain the stress test result of the solvency, thereby reducing the maintenance cost during the stress test of solvency and improving the test efficiency.

[0082] Embodiment 2:

[0083] Based on the first embodiment, the present invention combines the stress test scenario. Figure 2 The implementation process of the scenario-based solvency stress testing method provided in the second embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:

[0084] In step S201, scene data is received.

[0085] In an embodiment of the present invention, before receiving the scenario data input by the user, the user needs to establish a test scenario in the database in advance, and the test scenario includes several sub-scenarios. Each test scenario corresponds to a set of scenario data, and the scenario data may include a scenario value and a scenario identifier (for example, a scenario name or a scenario ID), wherein the scenario value can be understood as a variable that affects the calculation result under the scenario, and the scenario value can be adjusted by the user as needed to meet the calculation needs of different scenario values ​​under the same scenario. For example, the scenario value is an exchange rate. It should be noted here that the scenario data input by the user may include one or more sets of scenario data for test scenarios, and the user can arbitrarily combine the established test scenarios according to the established test scenarios and actual calculation or test needs, without limitation here.

[0086] In step S202, a field identification set corresponding to the scene data is acquired according to the scene data.

[0087] In an embodiment of the present invention, before obtaining the field identifier corresponding to the test scenario according to the scenario data, it is necessary to pre-establish an association relationship between the scene and several sub-scenes under the scene. When establishing the association relationship between the test scenario and several sub-scenes under the test scenario, specifically, when a request to establish a test scenario is received, an established sub-scene set is obtained, and the sub-scene set includes all established sub-scenes. When a request to associate the test scenario with several sub-scenes is received, the test scene is associated with the several sub-scenes, wherein each sub-scene corresponds to a field, and each field corresponds to a field identifier. When obtaining the field identifier set corresponding to the test scenario according to the scenario data, according to the above-mentioned established association relationship between the scene and the several sub-scenes, several field identifiers corresponding to the several sub-scenes under the scene are obtained, and the set formed by the several field identifiers is the field identifier set.

[0088] In step S203, a stress test request for solvency corresponding to the scenario data is generated according to the acquired field identifier set corresponding to the scenario data.

[0089] In the embodiment of the present invention, specifically, the field identifier set is included in the stress test request of the solvency.

[0090] In step S204, when a solvency stress test request is received, a field identification set corresponding to the solvency stress test request is obtained according to a defined field identification rule.

[0091] In step S205, the target calculation formula corresponding to the field identifier and the calculation priority of the target calculation formula are searched from the established field information table.

[0092] In the embodiment of the present invention, the implementation of steps S204-S205 may correspond to the description of steps S101-S102 in the aforementioned embodiment 1, and will not be repeated here.

[0093] In step S206, the target calculation formula is parsed in turn according to the preset formula parsing rules and calculation priorities to obtain the stress test result of the solvency.

[0094] In the embodiment of the present invention, the implementation of step S206 may correspond to the description of step S103 in the aforementioned embodiment 1, which will not be repeated here. It should be noted here that the target calculation formula includes the scene value, and the calculation result is also affected by the scene value.

[0095] In an embodiment of the invention, by receiving scenario data input by a user, a field identification set corresponding to the test scenario is obtained according to the scenario data, and a stress test request for solvency corresponding to the scenario is generated according to the obtained field identification set corresponding to the test scenario, thereby realizing the combined calculation or testing requirements of multiple target fields based on the test scenario, and improving the flexibility and efficiency of the stress test.

[0096] Embodiment three:

[0097] Based on the first embodiment, the present invention provides a formula backtracking method. Figure 3 The implementation process of the formula backtracking method provided in the third embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:

[0098] In step S301, when a formula backtracking request is received, a first field identifier and a second field identifier corresponding to the formula backtracking request are obtained according to a defined field identifier rule.

[0099] In an embodiment of the present invention, when a formula backtracing request is received, the request parameters of the formula backtracing request are read, and the request parameters of the formula backtracing request carry field identification information. When obtaining the first field identification and the second field identification corresponding to the formula backtracing request according to the defined field identification rule, the first field identification can be understood as the field identification corresponding to the calculation formula to be backtraced, and the second field identification can be understood as the field identification corresponding to the coefficient to be solved. For example, if the formula backtracing request carries the field identification CH_3 of the calculation formula to be backtraced, and the coefficient CH_53 to be solved, then according to the defined field identification rule, the first field identification corresponding to the backtracing request is obtained as CH_3, and the second field identification is CH_53.

[0100] In step S302, a first target calculation formula corresponding to the first field identifier is searched from the established field information table.

[0101] In an embodiment of the present invention, the first target calculation formula is a simple arithmetic formula. The step of searching for the first target calculation formula corresponding to the first field identifier from the established field information table can refer to the description in step S102 in embodiment 1. It should be noted that the first target calculation formula is a calculation formula corresponding to a field identifier in the field information table, so there is no need to consider the priority of the first target calculation formula. Based on the embodiment in step S301, the calculation formula corresponding to CH_3 in the established field information table is CH_1-CH_2. If the first field identifier is CH_3, the first target calculation formula corresponding to CH_3 found in the established field information table is CH_1-CH_2.

[0102] In step S303, the first target calculation formula is parsed according to the preset backtracking formula parsing rule and the second field identifier to obtain a second target calculation formula.

[0103] In the embodiment of the present invention, when the first target calculation formula is parsed according to the preset backtracking formula parsing rules, specifically, (1) the first target calculation formula is divided into individuals to be solved and put into an array. (2) Formula backtracking is performed on each individual. During the backtracking process, if the formula corresponding to the individual is a method, the method is directly returned without parsing. If the individual is not a formula but a four-arithmetic operation symbol, it is not parsed but directly returned. If the formula corresponding to the individual is a simple four-arithmetic operation formula, the individual is replaced with a four-arithmetic operation formula to obtain a replaced array. (3) All individuals in the above replaced array are reassembled into a formula, which can be a simple four-arithmetic operation formula or a complex logic operation method. (4) Repeat the above steps (2) and (3) until each individual parsed is actual data, and return the preliminary parsing result, wherein the judgment basis of the actual data is historical data or imported data. It should be noted here that the preliminary parsing result may contain complex logic operation methods. (5) When the analysis result includes a complex logical operation method, a user's request to modify the preliminary analysis result is received to obtain a final analysis result, i.e., a second target calculation formula.

[0104] As an example, based on the embodiment in step S302, if the formula corresponding to CH_1 is method 1, method 1 is specifically (stress test ID, time, special time, CH_53*0.8, CH_53*0.6), and the formula of CH_2 is CH_1*CH_53+CH_50, then the formula is parsed as follows: (1) the first target calculation formula CH_1-CH_2 is split and put into an array to obtain an array [CH_1,-,CH_2]. (2) The formulas of CH_1, minus sign and CH_2 are backtracked respectively, and the backtracking result is that the formula corresponding to CH_1 is method 1, the minus sign is arithmetic operation, no parsing is done, and it is directly returned. The formula corresponding to CH_2 is CH_1*CH_53+CH_50, that is, CH_1 is replaced by method 1, and CH_2 is replaced by CH_1*CH_53+CH_50, and the replaced array [method 1,-,CH_1*CH_53+CH_50] is obtained. (3) All the individuals in the numerical values ​​obtained in step (2) are reassembled into the formula: Method 1-(CH_1*CH_53+CH_50). (4) Steps (2) and (3) are repeated to obtain the final analysis result: Method 1-(Method 1*CH_53+CH_50), where CH_53 is the required unknown number and CH_50 is the historical data, i.e. the known number; (5) The user's analysis of the preliminary analysis result is received, and the final analysis result is Method 2 (stress test ID, time, special time, CH_53*0.8-CH_53*CH_53*0.8-CH_50, CH_53*0.6-CH_53*CH_53*0.6-CH_50)

[0105] In step S304, the first target calculation formula is updated to the second target calculation formula.

[0106] In an embodiment of the present invention, when a formula backtracking request is received, a first field identifier and a second field identifier corresponding to the formula backtracking request are obtained according to a defined field identifier rule, a first target calculation formula corresponding to the first field identifier is searched from an established field information table, the first target calculation formula is parsed according to a preset backtracking formula parsing rule and the second field identifier, a second target calculation formula is obtained, and the first target calculation formula is updated to the second target calculation formula, thereby realizing formula backtracking in the calculation process, so that users can solve the problem of single variable solution and sensitivity stress testing requirements in the calculation process through formula backtracking.

[0107] Embodiment 4:

[0108] The embodiment of the present invention provides a data backtracking method based on the formula backtracking method on the basis of the third embodiment. Figure 4The implementation process of the data backtracking method provided by the fourth embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:

[0109] In step S401, when a data backtracking request is received, a field identifier corresponding to the data backtracking request is obtained according to the defined field identifier rule.

[0110] In an embodiment of the present invention, the specific implementation of step S401 may correspond to the description of steps S101-S102 in the aforementioned embodiment 1, and will not be repeated here. It should be noted here that the data backtracking request can be triggered when the user types a specific value for the target field, or it can be triggered by a separate data backtracking command input by the user, which is not limited here. The field identifier corresponding to the target field can be understood as the field identifier corresponding to the data backtracking request. The field identifier corresponding to the data backtracking request is one, and the data backtracking request also carries the value of the field identifier typed by the user.

[0111] In step S402, a second target calculation formula corresponding to the field identifier is searched from the established field information table.

[0112] In the embodiment of the present invention, the specific implementation of steps S401-S402 may correspond to the description of steps S101-S102 in the above embodiment 1, which will not be repeated here. It should be noted here that the second target calculation formula is a formula and does not involve the issue of formula priority.

[0113] In step S403, the second target calculation formula is parsed according to a preset formula parsing rule to obtain a data backtracking result.

[0114] In an embodiment of the present invention, when the second target calculation formula is parsed according to the preset formula parsing rule, the second target calculation formula can first be preliminarily parsed with reference to the description in step S103 of the first embodiment, and then the value corresponding to the second field identifier is calculated according to the data entered by the user carried in the data backtracking request. As an example, if the second target calculation formula corresponds to method 2, method 2 is specifically (stress test ID, time, special time, CH_53*0.8-CH_53*CH_53*0.8-CH_50, CH_53*0.6-CH_53*CH_53*0.6-CH_50); wherein the value corresponding to CH_50 is 1.6, and the special time is 2015.1; the value entered by the user is 0, and the time dimension is 2014.12, then when parsing method 2, according to the time logic, the formula CH_53*0.8-CH_53*CH_53*0.8-CH_50=0 is taken for calculation, and the value of CH_53 obtained by parsing is: -2.

[0115] In an embodiment of the present invention, when a data backtracking request is received, a field identifier corresponding to the data backtracking request is obtained according to a defined field identifier rule, a second target calculation formula corresponding to the field identifier is searched from an established field information table, and the second target calculation formula is parsed according to a preset formula parsing rule to obtain a data backtracking result, thereby solving the problem of single variable solution in the calculation process and the sensitivity stress testing requirement.

[0116] Embodiment five:

[0117] Figure 5 The structure of the solvency stress testing device provided by the fifth embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, including:

[0118] The test request processing unit 51 is configured to, when receiving a solvency stress test request, obtain a field identification set corresponding to the solvency stress test request according to a defined field identification rule;

[0119] A formula search unit 52 is used to search the target calculation formula corresponding to each field identifier in the field identifier set and the calculation logic parameters corresponding to the target calculation formula from the established field information table; and

[0120] The formula parsing unit 53 is used to parse the target calculation formula in sequence according to preset formula parsing rules and calculation logic parameters to obtain the stress test result of the solvency.

[0121] In the embodiment of the present invention, each unit of the solvency stress test device can be implemented by a corresponding hardware or software unit, and each unit can be an independent software or hardware unit, or can be integrated into a software or hardware unit, which is not intended to limit the present invention. The specific implementation of each unit of the solvency stress test device can refer to the description of the aforementioned method embodiment 1, which will not be repeated here.

[0122] Embodiment six:

[0123] Figure 6 The structure of the scenario-based solvency stress testing device provided in the sixth embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, including:

[0124] A scene data receiving unit 61, used for receiving scene data;

[0125] A scene data processing unit 62, configured to obtain a field identification set corresponding to the scene data according to the scene data;

[0126] A test request generating unit 63, configured to generate a stress test request for solvency corresponding to the scenario data according to the acquired field identifier set;

[0127] The test request processing unit 64 is configured to, when receiving a solvency stress test request, obtain a field identification set corresponding to the solvency stress test request according to a defined field identification rule;

[0128] A formula search unit 65 is used to search for a target calculation formula corresponding to the field identifier and a calculation priority of the target calculation formula from the established field information table; and

[0129] The formula parsing unit 66 is used to parse the target calculation formula in sequence according to preset formula parsing rules and calculation priorities to obtain the stress test result of the solvency.

[0130] In the embodiment of the present invention, each unit of the scenario-based solvency stress test device can be implemented by a corresponding hardware or software unit, and each unit can be an independent software or hardware unit, or can be integrated into a software or hardware unit, which is not intended to limit the present invention. The specific implementation of each unit of the scenario-based solvency stress test device can refer to the description of the aforementioned method embodiment 2, which will not be repeated here.

[0131] Embodiment seven:

[0132] Figure 7 The structure of the formula backtracking device provided by the seventh embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, including:

[0133] The formula backtracking processing unit 71 is used for, upon receiving a formula backtracking request, obtaining a first field identifier and a second field identifier corresponding to the formula backtracking request according to a defined field identifier rule;

[0134] A first formula searching unit 72 is used to search a first target calculation formula corresponding to the first field identifier from an established field information table;

[0135] A second formula generating unit 73 is used to parse the first target calculation formula according to a preset backtracking formula parsing rule and a second field identifier to obtain a second target calculation formula; and

[0136] The formula replacing unit 74 is used to update the first target calculation formula to the second target calculation formula.

[0137] In the embodiment of the present invention, each unit of the formula backtracking device can be implemented by a corresponding hardware or software unit, and each unit can be an independent software or hardware unit, or can be integrated into a software or hardware unit, which is not intended to limit the present invention. The specific implementation of each unit of the formula backtracking device can refer to the description of the aforementioned method embodiment 3, which will not be repeated here.

[0138] Embodiment eight:

[0139] Figure 8 The structure of the data backtracking device provided by the eighth embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, including:

[0140] The data backtracking processing unit 81 is used for, when receiving a data backtracking request, obtaining a field identifier corresponding to the data backtracking request according to a defined field identifier rule;

[0141] A second formula searching unit 82 is used to search the established field information table for a second target calculation formula corresponding to the field identifier; and

[0142] The second formula parsing unit 83 is used to parse the second target calculation formula according to a preset formula parsing rule to obtain a data backtracking result.

[0143] In the embodiment of the present invention, each unit of the data backtracking device can be implemented by a corresponding hardware or software unit, and each unit can be an independent software or hardware unit, or can be integrated into a software or hardware unit, which is not intended to limit the present invention. The specific implementation of each unit of the data backtracking device can refer to the description of the aforementioned method embodiment 4, which will not be repeated here.

[0144] Embodiment nine:

[0145] Fig. 9 The structure of a computer device provided by Embodiment 9 of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown.

[0146] The embodiment of the present invention provides a computer device 9 including a processor 90, a memory 91, and a computer program 92 stored in the memory 91 and executable on the processor 90. When the processor 90 executes the computer program 92, the steps in the above-mentioned method embodiments are implemented, for example: Figure 1 Alternatively, when the processor 90 executes the computer program 92, the functions of each unit in the above-mentioned device embodiments are realized, for example Figure 3 The functions of the units 31 to 33 are shown.

[0147] In an embodiment of the present invention, when a solvency stress test request is received, a field identification set corresponding to the solvency stress test request is obtained according to a defined field identification rule, a target calculation formula corresponding to each field identification in the field identification set and a calculation priority of the target calculation formula are searched from an established field information table, and the target calculation formula is parsed in turn according to preset formula parsing rules and calculation priorities to obtain a solvency stress test result, thereby reducing the maintenance cost during the solvency stress test and improving the test efficiency.

[0148] Embodiment ten:

[0149] In an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above method embodiment are implemented, for example, Figure 1 Alternatively, when the computer program is executed by a processor, the functions of each unit in the above-mentioned device embodiments are realized, for example Figure 5 The functions of the units 51 to 53 are shown.

[0150] In an embodiment of the present invention, when a solvency stress test request is received, a field identification set corresponding to the solvency stress test request is obtained according to a defined field identification rule, a target calculation formula corresponding to each field identification in the field identification set and a calculation priority of the target calculation formula are searched from an established field information table, and the target calculation formula is parsed in turn according to preset formula parsing rules and calculation priorities to obtain a solvency stress test result, thereby reducing the maintenance cost during the solvency stress test and improving the test efficiency.

[0151] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0152] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0153] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A solvency stress testing method, characterized in that: The method comprises the following steps: When receiving a solvency stress test request, obtaining a field identification set corresponding to the solvency stress test request according to a defined field identification rule; Searching the target calculation formula corresponding to each field identifier in the field identifier set and the calculation logic parameters corresponding to the target calculation formula from the established field information table; The target calculation formula is analyzed in sequence according to the preset formula analysis rules and the calculation logic parameters to obtain the stress test result of the solvency; When a formula backtracking request is received, a first field identifier and a second field identifier corresponding to the formula backtracking request are obtained according to the defined field identifier rule; Searching for a first target calculation formula corresponding to the first field identifier from the established field information table; The first target calculation formula is parsed according to the preset backtracking formula parsing rule and the second field identifier to obtain a second target calculation formula; The first target calculation formula is updated to the second target calculation formula.

2. The method according to claim 1, characterized in that Before the step of acquiring a set of field identifiers corresponding to the solvency stress test request according to a defined field identifier rule, the method further comprises: Receive scene data; Acquire the field identification set corresponding to the scene data according to the scene data; A stress test request for the solvency corresponding to the scenario data is generated according to the acquired field identifier set.

3. The method according to claim 1, characterized in that The step of sequentially parsing the target calculation formula according to the preset formula parsing rules and the calculation logic parameters includes: Determine the formula type of the target calculation formula, the formula type including simple arithmetic operation formulas and complex logical operation methods; If the formula type of the target calculation formula is a simple four arithmetic operation formula, the target calculation formula is parsed according to the preset four arithmetic operation parsing rules; If the formula type of the target calculation formula is a complex logic operation method, the target calculation formula is parsed according to a preset complex logic operation parsing rule.

4. The method according to claim 1, characterized in that After the step of updating the first target calculation formula to the second target calculation formula, the method further comprises: When a data backtracking request is received, obtaining a field identifier corresponding to the data backtracking request according to the defined field identifier rule; Searching the second target calculation formula corresponding to the field identifier from the established field information table; The second target calculation formula is parsed according to a preset formula parsing rule to obtain a data backtracking result.

5. A solvency stress testing device, characterized in that: The device comprises: A test request processing unit, configured to, when receiving a solvency stress test request, obtain a field identification set corresponding to the solvency stress test request according to a defined field identification rule; A formula search unit, used to search for a target calculation formula corresponding to each field identifier in the field identifier set and a calculation logic parameter corresponding to the target calculation formula from an established field information table; and A formula parsing unit, used to parse the target calculation formula in sequence according to preset formula parsing rules and the calculation logic parameters to obtain the stress test result of the solvency; The device also includes: A formula backtracking processing unit, configured to, when receiving a formula backtracking request, obtain a first field identifier and a second field identifier corresponding to the formula backtracking request according to the defined field identifier rule; A first formula searching unit, configured to search the established field information table for a first target calculation formula corresponding to the first field identifier; A second formula generating unit is used to parse the first target calculation formula according to a preset backtracking formula parsing rule and a second field identifier to obtain a second target calculation formula; and A formula replacement unit is used to update the first target calculation formula to the second target calculation formula.

6. The device according to claim 5, characterized in that The device also includes: A scene data receiving unit, used for receiving scene data input by a user; a scene data processing unit, configured to obtain, according to the scene data, the field identifier set corresponding to the scene data; and A test request generating unit is used to generate a stress test request for solvency corresponding to the scenario data according to the acquired field identifier set.

7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.