Risk data analysis method, system and device based on database

By using deep learning models to analyze data types and access patterns in the database, and dynamically updating the risk analysis model, it solves the database risk management problem where existing tools are difficult to adapt to changes, achieves efficient and accurate risk identification and assessment, and improves risk prediction. accuracy and efficiency.

CN118332609BActive Publication Date: 2024-09-06BEIJING GOLD DRILL CORE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410756597.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-06
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

Existing database risk management tools lack dynamic adjustment and self-optimization capabilities, making it difficult to adapt to changes in the data environment and risk situation. It is especially difficult to effectively identify complex and changeable risk factors in a big data environment.

Method used

By obtaining the data types and data access patterns in the database, using pre-trained deep learning models for analysis and prediction, and dynamically updating the risk analysis model, we can achieve efficient and accurate identification and assessment of data risks in the database.

Benefits of technology

It improves the accuracy and efficiency of risk prediction, helps to better manage data risks, protect data assets, and meet increasingly stringent privacy protection regulations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118332609B
    Figure CN118332609B
Patent Text Reader

Abstract

The risk data analysis method, system and device based on a database provided by the present invention include: obtaining the data type of data stored in the database, matching the corresponding initial risk analysis model based on the data type; obtaining the data access mode of the database, and obtaining the data source of the data stored in the database; analyzing and predicting the data access mode based on the first prediction model to obtain a first prediction value; analyzing and predicting the data source based on the second prediction model to obtain a second prediction value; updating the corresponding model parameters in the initial risk analysis model according to the first prediction value and the second prediction value to obtain a risk data analysis model; performing risk analysis on the data stored in the database to obtain the corresponding risk analysis results. In the present invention, the data access mode and the data source are analyzed, and then the risk analysis model is accurately adjusted to achieve efficient and accurate identification and evaluation of data risks in the database.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a risk data analysis method, system and device based on a database. Background Art

[0002] Enterprises and organizations are increasingly relying on databases to store, manage and analyze their core business data. These data not only include sensitive content such as customer information and transaction records, but also involve key information such as operational strategies and market analysis. Therefore, ensuring the security, integrity and compliance of data has become an important part of enterprise risk management. Traditional risk management often relies on manual review and simple statistical analysis, which is not only inefficient, but also difficult to effectively identify complex and changing risk factors. Especially in the big data environment, the explosive growth of data volume makes this problem more prominent.

[0003] With the development of artificial intelligence and machine learning technologies, it has become a trend to apply these advanced technologies to the field of risk management, especially database risk analysis. There are some primary automated risk management tools in the existing technology, which can monitor database activities based on preset rules or basic statistical models, such as detecting abnormal logins, high-frequency access and other behaviors, but these methods are incapable of deeply analyzing data access patterns, the complexity of data sources and their potential risks. In addition, they lack the ability to dynamically adjust and self-optimize, and are difficult to adapt to changes in the data environment and risk situation. Summary of the invention

[0004] The main purpose of the present invention is to provide a risk data analysis method, system and device based on a database, aiming to overcome the defects of the current database that lacks dynamic adjustment and self-optimization capabilities.

[0005] To achieve the above object, the present invention provides a risk data analysis method based on a database, comprising the following steps:

[0006] Acquire the data type of the data stored in the database, and match the corresponding initial risk analysis model based on the data type;

[0007] Obtaining a data access mode of a database, and obtaining a data source of data stored in the database;

[0008] Analyzing and predicting the data access pattern based on the first prediction model to obtain a first prediction value; analyzing and predicting the data source based on the second prediction model to obtain a second prediction value; wherein the first prediction value and the second prediction value are prediction values ​​for different model parameters;

[0009] Verify whether the first prediction value and the second prediction value are both reasonable; if both are reasonable, update the corresponding model parameters in the initial risk analysis model according to the first prediction value and the second prediction value to obtain a risk data analysis model;

[0010] Based on the risk data analysis model, risk analysis is performed on the data stored in the database to obtain corresponding risk analysis results.

[0011] Furthermore, the acquiring of the data type of the data stored in the database and matching the corresponding initial risk analysis model based on the data type include:

[0012] Acquire multiple data types of data stored in the database, and combine each of the data types to obtain a data type combination;

[0013] According to the preset mapping relationship between the type combination and the identification character, query the target identification character mapped with the data type combination;

[0014] Based on the preset mapping relationship between the identification character and the risk analysis model, the initial risk analysis model mapped with the target identification character is queried.

[0015] Furthermore, the first prediction model and the second prediction model are both pre-trained deep learning models.

[0016] Further, the verifying whether the first prediction value and the second prediction value are both reasonable includes:

[0017] Combining the first predicted value and the second predicted value into a predicted value data pair;

[0018] Searching among preset standard data pairs whether the predicted value data pair is included;

[0019] If included, the first predicted value and the second predicted value are both reasonable; if not included, the first predicted value and / or the second predicted value are unreasonable.

[0020] Further, the risk analysis of the data stored in the database based on the risk data analysis model to obtain the corresponding risk analysis results includes:

[0021] If the data stored in the database does not have risks, create a target folder in the database and store the data in the target folder;

[0022] Generate an encrypted password string based on the data type, data access mode, and data source;

[0023] The target folder is encrypted based on the encryption password string.

[0024] Furthermore, generating an encrypted password string based on the data type, data access mode and data source includes:

[0025] Based on the data type, data access mode, and data source, generate a coded character matrix;

[0026] Randomly generate a binary number with nine numeric characters;

[0027] Create a first blank matrix with three rows and three columns, and add the digital characters in the binary number to the first blank matrix one by one in sequence to generate a binary matrix;

[0028] Obtain a target number in the binary matrix, and use the position of the target number as the target position; wherein the target number is 1;

[0029] Align the lower left corner of the binary matrix with the coded character matrix, and obtain a character at a position overlapping with the target position of the binary matrix in the coded character matrix as the target character;

[0030] Combining the target characters in order to obtain a combined character;

[0031] The binary number is converted into a decimal number, and the combined character is combined with the decimal number to obtain the encrypted password string.

[0032] Furthermore, generating a coding character matrix based on the data type, data access mode and data source includes:

[0033] Encode the data type to obtain a first coded character; the first coded character includes a plurality of characters;

[0034] Encoding the data access mode to obtain a second coded character; the second coded character includes a plurality of characters;

[0035] Based on a preset mapping relationship between a data source and a matrix parameter, obtaining a matrix parameter corresponding to the data source; the matrix parameter includes the number of rows and columns of the matrix;

[0036] Based on the matrix parameters, a corresponding second blank matrix is ​​created; the first coded characters and the second coded characters are added to the second blank matrix according to a preset rule to generate a coded character matrix.

[0037] Furthermore, before encoding the data type, the method further comprises:

[0038] Based on the data type and data access mode, the preset encoding algorithm is modified to obtain a modified encoding algorithm; the modified encoding algorithm is used to encode the data type and data access mode.

[0039] The present invention also provides a risk data analysis system based on a database, comprising:

[0040] A first acquisition unit, configured to acquire a data type of data stored in the database, and match a corresponding initial risk analysis model based on the data type;

[0041] A second acquisition unit, used to acquire a data access mode of a database and acquire a data source of data stored in the database;

[0042] A prediction unit, configured to analyze and predict the data access pattern based on a first prediction model to obtain a first prediction value; and analyze and predict the data source based on a second prediction model to obtain a second prediction value; wherein the first prediction value and the second prediction value are prediction values ​​for different model parameters;

[0043] an updating unit, configured to verify whether the first prediction value and the second prediction value are both reasonable; if both are reasonable, updating corresponding model parameters in the initial risk analysis model according to the first prediction value and the second prediction value to obtain a risk data analysis model;

[0044] The analysis unit is used to perform risk analysis on the data stored in the database based on the risk data analysis model to obtain corresponding risk analysis results.

[0045] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0046] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.

[0047] The risk data analysis method, system and device based on the database provided by the present invention include: obtaining the data type of the data stored in the database, matching the corresponding initial risk analysis model based on the data type; obtaining the data access mode of the database, and obtaining the data source of the data stored in the database; analyzing and predicting the data access mode based on the first prediction model to obtain a first prediction value; analyzing and predicting the data source based on the second prediction model to obtain a second prediction value; wherein the first prediction value and the second prediction value are prediction values ​​for different model parameters; verifying whether the first prediction value and the second prediction value are both reasonable; if both are reasonable, updating the corresponding model parameters in the initial risk analysis model according to the first prediction value and the second prediction value to obtain a risk data analysis model; performing risk analysis on the data stored in the database based on the risk data analysis model to obtain the corresponding risk analysis results. In the present invention, it has the ability of dynamic adjustment and self-optimization, through in-depth understanding of the data type in the database, and combining the advanced prediction model to analyze the data access mode and data source, and then accurately adjusting the risk analysis model to achieve efficient and accurate identification and evaluation of data risks in the database. It aims to improve the accuracy and efficiency of risk prediction through technical means, help better manage data risks, protect data assets, and meet increasingly stringent privacy protection regulations. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 This is a schematic diagram of the steps of a risk data analysis method based on a database in one embodiment of the present invention;

[0049] Figure 2 is a structural block diagram of a risk data analysis system based on a database in one embodiment of the present invention;

[0050] Figure 3 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.

[0051] The implementation, functional features and advantages of the present invention will be further described in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0052] 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.

[0053] Reference Figure 1 In one embodiment of the present invention, a risk data analysis method based on a database is provided, comprising the following steps:

[0054] Step S1, obtaining the data type of the data stored in the database, and matching the corresponding initial risk analysis model based on the data type;

[0055] Step S2, obtaining a data access mode of a database, and obtaining a data source of data stored in the database;

[0056] Step S3, analyzing and predicting the data access pattern based on the first prediction model to obtain a first prediction value; analyzing and predicting the data source based on the second prediction model to obtain a second prediction value; wherein the first prediction value and the second prediction value are prediction values ​​for different model parameters;

[0057] Step S4, verifying whether the first prediction value and the second prediction value are both reasonable; if both are reasonable, updating the corresponding model parameters in the initial risk analysis model according to the first prediction value and the second prediction value to obtain a risk data analysis model;

[0058] Step S5: performing risk analysis on the data stored in the database based on the risk data analysis model to obtain corresponding risk analysis results.

[0059] In this embodiment, it specifically includes:

[0060] Step S1, data type identification and model matching:

[0061] First, the data types stored in the database, such as text, numbers, dates, etc., are automatically obtained. Based on different data types, the corresponding initial risk analysis model is selected or constructed. For example, for text fields containing personal identity information, a model specifically targeting privacy leakage risks can be used; while for digital data of financial transactions, a model focused on fraud detection can be applied. The purpose of this is to ensure the pertinence and effectiveness of risk analysis.

[0062] Step S2, data access pattern and source analysis:

[0063] Next, collect the data access logs of the database and analyze the data access patterns, such as access frequency, time distribution, etc. At the same time, track the source of the data and determine whether the data is entered from the internal system or imported from an external interface, etc. This information is crucial for assessing the threat environment facing the data.

[0064] Step S3, prediction model application:

[0065] Using advanced prediction models (including machine learning or statistical models), data access patterns and data sources are analyzed and predicted respectively. The first prediction model analyzes the risk factors in the data access pattern according to the data access pattern, thereby obtaining the model parameter prediction values ​​of the subsequent risk data analysis model; while the second prediction model evaluates the reliability and potential risks of the data source, thereby obtaining the model parameter prediction values ​​of the subsequent risk data analysis model. These two prediction values ​​are obtained based on different settings of the model parameters, which increases the flexibility and accuracy of the analysis.

[0066] The significance of this step is that different risk data analysis models should be used for different data access modes and data sources. In order to obtain different risk data analysis models in this embodiment, the values ​​of two model parameters can be predicted, and then the initial risk analysis model can be adjusted based on the values ​​of the model parameters to obtain the risk data analysis model. It can be understood that the prediction model predicts the value of a model parameter based on the above data access mode and data source, and the types of model parameters are different from each other.

[0067] Step S4: Prediction value verification and model update

[0068] The prediction values ​​generated in step S3 are verified for rationality to ensure that the predictions are both logical and in line with the actual situation. If the prediction values ​​are all deemed reasonable, then these prediction values ​​will be used to adjust the parameters of the initial risk analysis model to form a risk data analysis model that is more suitable for the current database data characteristics and risk conditions. This dynamic update mechanism ensures the timeliness and accuracy of the model. In one embodiment, the above-mentioned update process may be to directly replace the corresponding model parameters in the above-mentioned initial risk analysis model with the first prediction value and the second prediction value of the above-mentioned prediction.

[0069] Step S5, risk analysis and result output:

[0070] Finally, the optimized risk data analysis model is used to conduct a comprehensive risk analysis of all data in the database. This step will identify high-risk data items, access patterns or sources, generate a detailed risk analysis report, and provide enterprise decision makers with intuitive guidance on data security and compliance, helping them take preventive measures to reduce potential data leaks or other risk events.

[0071] In summary, this technical solution forms a comprehensive and flexible database risk analysis process by integrating multiple links such as data type identification, access pattern analysis, prediction model prediction, model dynamic adjustment and risk assessment, providing strong support for data security management. We have a deep understanding of the data types in the database, and use advanced prediction models to analyze data access patterns and data sources, and then accurately adjust the risk analysis model to achieve efficient and accurate identification and assessment of data risks in the database. It aims to improve the accuracy and efficiency of risk prediction through technical means, help better manage data risks, protect data assets, and meet increasingly stringent privacy protection regulations.

[0072] In one embodiment, the acquiring the data type of the data stored in the database and matching the corresponding initial risk analysis model based on the data type includes:

[0073] Acquire multiple data types of data stored in the database, and combine each of the data types to obtain a data type combination;

[0074] According to the preset mapping relationship between the type combination and the identification character, query the target identification character mapped with the data type combination;

[0075] Based on the preset mapping relationship between the identification character and the risk analysis model, the initial risk analysis model mapped with the target identification character is queried.

[0076] In this embodiment, it specifically includes:

[0077] First, instead of considering each data type separately, consider the coexistence of multiple data types in the database. For example, a database table can contain multiple types of data such as strings (names), dates (dates of birth), numbers (account balances), etc. The database will identify and combine these different types of data to form a "data type combination". This is done because the interaction between data may affect the overall risk profile, and the analysis of a single data type may not be sufficient to cover all risk dimensions.

[0078] Next, a preset mapping rule is used to map the identified data type combination to a specific "target identification character". This mapping rule is essentially a lookup table or algorithm that defines the correspondence between various data type combinations and simplified representations (i.e., identification characters). For example, a data type that combines sensitive personal information (such as name + phone number) is mapped to a special character representing "highly sensitive information". Such a mapping can simplify the subsequent model selection process and can efficiently handle complex and changing data type combinations.

[0079] Finally, based on the mapping relationship between the preset identification characters and the risk analysis model, the initial risk analysis model corresponding to the target identification character is found. This means that each identification character is pre-associated with one or a group of specific risk analysis models, and the above initial risk analysis models are designed for specific types of data risks, such as privacy leakage risk models, financial fraud detection models, etc. In this way, the risk analysis tool that best suits the current data characteristics can be quickly and accurately located, so as to conduct in-depth risk assessment.

[0080] In summary, the above technical solution constructs a flexible and efficient risk analysis model selection mechanism through step-by-step processing, from data type identification to combination, and then to mapping identification characters, and finally matching the risk analysis model. It can adapt to diverse and complex data environments and improve the accuracy and response speed of risk identification.

[0081] In one embodiment, the first prediction model and the second prediction model are both pre-trained deep learning models.

[0082] In this embodiment, it specifically includes:

[0083] First prediction model, data access pattern analysis:

[0084] Model construction: This model is mainly based on the analysis of the data access pattern of the database, including but not limited to the frequency of user or system access to the database, access time distribution, access operation type (read, write, update, etc.). The first prediction model is based on a neural network structure, such as a recurrent neural network (RNN), a long short-term memory network (LSTM), or a gated recurrent unit (GRU), because these network models are good at processing time series data and can capture long-term dependencies and periodic characteristics in data access patterns.

[0085] Training process: Model training requires historical data access records as input, and learns the rules of data access behavior through a large number of access logs. The training goal is to enable the model to accurately predict the model parameter values ​​corresponding to different data access patterns, such as predicting the model parameters of the initial risk analysis model under abnormal access patterns.

[0086] Second prediction model, data source risk assessment:

[0087] Model construction: This model focuses on assessing the reliability and potential risks of data sources. It can use convolutional neural networks (CNNs), Transformers, or other hybrid architectures, especially when the data source information can be converted into structured or semi-structured features. The model needs to be able to learn risk patterns from multi-dimensional features such as the source path of the data, the reputation of the provider, and historical data quality issues.

[0088] Training process: The training data of the model includes information such as the historical performance of various data sources, known risk cases, etc. The goal is to let the model learn to distinguish between high-risk and low-risk data sources. Through training, the model can identify the characteristics of data sources that have historically caused data leaks, errors or non-compliant behaviors, and make risk predictions based on this. Different model parameters can be predicted for data from different sources; and the risk data analysis model is updated based on the above predicted model parameters, which allows the risk data analysis model to take into account the impact of the above data access patterns and data sources on the risk analysis of the risk data analysis model, making the risk data analysis model more targeted.

[0089] Deep learning models can automatically learn and extract complex features from raw data without manually designing feature engineering, which is particularly important for understanding and predicting complex data behavior patterns. Through large amounts of data training, deep learning models can adapt to changing data access patterns and data source risk characteristics, and improve the accuracy of predictions. As the amount of data grows and new types of risks emerge, deep learning models can absorb new knowledge through continued training and continuously optimize their prediction capabilities.

[0090] In summary, by using pre-trained deep learning models, this technical solution can provide more intelligent and dynamic risk prediction, which not only enhances the real-time monitoring capability of database operation risks, but also improves the foresight of data security management.

[0091] In one embodiment, verifying whether the first prediction value and the second prediction value are both reasonable includes:

[0092] Combining the first predicted value and the second predicted value into a predicted value data pair;

[0093] Searching among preset standard data pairs whether the predicted value data pair is included;

[0094] If included, the first predicted value and the second predicted value are both reasonable; if not included, the first predicted value and / or the second predicted value are unreasonable.

[0095] In this embodiment, it specifically includes:

[0096] First, the first prediction value obtained based on the data access pattern analysis and the second prediction value obtained based on the data source analysis are combined together to form a "prediction value data pair".

[0097] The preset standard data pairs are a set of forecast value combinations that are considered reasonable by previous analysis. These standard data pairs are established based on historical data or previous model validation results, representing the acceptable or expected range of forecast results under different circumstances. They are like a reference system to measure whether the current forecast value combination falls within the normal or expected behavior pattern.

[0098] Search the preset standard data pairs to see if there are any records that completely match or are close to the current predicted value data pair. The above search process involves a certain tolerance range, and the predicted value is allowed to fluctuate within a certain range and is still considered reasonable.

[0099] Judge rationality: If a matching record is found, it means that the current predicted value data pair is consistent with historical experience or expectations, so it is judged to be reasonable. On the contrary, if the predicted value data pair exceeds the range of all standard data pairs, it means that the prediction result is abnormal, and at least one of the predicted values ​​is considered unreasonable.

[0100] In this embodiment, the above verification mechanism provides a quick verification method for the output results of the prediction model, which helps to timely discover possible problems in model prediction and avoid unnecessary waste of resources or security risks caused by model misjudgment. At the same time, it also provides feedback for the continuous optimization of the model. If unreasonable prediction values ​​appear frequently, it is necessary to adjust the model parameters, introduce new data for retraining, or improve the model structure.

[0101] In one embodiment, after performing risk analysis on the data stored in the database based on the risk data analysis model and obtaining corresponding risk analysis results, the method includes:

[0102] If the data stored in the database does not have risks, create a target folder in the database and store the data in the target folder;

[0103] Generate an encrypted password string based on the data type, data access mode, and data source;

[0104] The target folder is encrypted based on the encryption password string.

[0105] In this embodiment, it specifically includes:

[0106] Risk assessment results: If the analysis results show that the stored data does not have significant risks (that is, the data is considered relatively safe), the process proceeds to the next step. This means that the data has passed the initial security screening and can continue to be stored.

[0107] Create a target folder: Create a dedicated target folder for this batch of data in the database or associated storage system. This is done to better organize and manage data, and also to facilitate subsequent data access control and audit tracking.

[0108] Generate an encryption string: Based on the characteristics of the stored data, including but not limited to the data type (such as text, images, videos, etc.), data access mode (such as access frequency, user group characteristics), and data source (considering the credibility and security of the source), a unique encryption string is automatically generated. This personalized encryption strategy can enhance security because even data of the same type or source will generate different keys under different access modes, increasing the difficulty of cracking.

[0109] Target folder encryption: Encrypt the entire target folder using the encryption password string generated in the previous step. This step ensures that even if the data is illegally accessed, it is difficult to decipher the data content without the correct key, thereby protecting the data from unauthorized viewing or tampering.

[0110] The above technical solution achieves refined management and protection of data in the database through comprehensive risk analysis and dynamic encryption measures. It not only ensures the effective storage of low-risk data, but also enhances data security by dynamically generating encryption password strings, adapting to the needs of different data characteristics and application scenarios. In addition, this mechanism also promotes compliance and transparency of data access, which is essential for maintaining data privacy and complying with data protection regulations.

[0111] In one embodiment, generating an encrypted password string based on the data type, data access mode, and data source includes:

[0112] Based on the data type, data access mode, and data source, generate a coded character matrix;

[0113] Randomly generate a binary number with nine numeric characters;

[0114] Create a first blank matrix with three rows and three columns, and add the digital characters in the binary number to the first blank matrix one by one in sequence to generate a binary matrix;

[0115] Obtain a target number in the binary matrix, and use the position of the target number as the target position; wherein the target number is 1;

[0116] Align the lower left corner of the binary matrix with the coded character matrix, and obtain a character at a position overlapping with the target position of the binary matrix in the coded character matrix as the target character;

[0117] Combining the target characters in order to obtain a combined character;

[0118] The binary number is converted into a decimal number, and the combined character is combined with the decimal number to obtain the encrypted password string.

[0119] In this embodiment, it specifically includes:

[0120] Data feature integration: First, a unique encoding character matrix is ​​generated based on the information of three dimensions: data type (such as text, image, audio, etc.), access mode (such as frequent access, occasional access), and source (such as internal system, external partner). In one embodiment, the encoding character matrix can be mapped to specific characters by mapping certain attributes of each data feature, for example, text data is mapped to a letter set, frequent access is mapped to the front of a digital sequence, and so on, to ensure that each data set has its own exclusive character layout.

[0121] Introducing randomness: Next, a random binary string containing 9 numeric characters is generated, such as "101010101". This process increases the unpredictability of the encryption process, so that even the same data characteristics will generate different passwords at different points in time.

[0122] Construct a matrix: construct a 3x3 blank matrix, and then fill each digit of the above binary number into the matrix in sequence to form a new binary matrix. If the binary number is "101010101", the binary matrix is:

[0123] Locate the target: Find all the "1"s in the binary matrix as the target numbers and record their positions. In this example, the target position is the matrix position where all the "1"s are located.

[0124] Character extraction: Align the lower left corner of the binary matrix with the coded character matrix, that is, the three rows and three columns of the lower left corner of the coded character matrix will overlap with the above binary matrix. For each "1" at the target position of the binary matrix, find the corresponding character at the corresponding position in the coded character matrix as the target character.

[0125] Combined encrypted password string: All extracted target characters are combined in sequence to form a string, such as "A1BC6D". Then, the binary number is converted into a decimal number (such as the above example, "101010101" converted to decimal is 245). Finally, this decimal number is combined with the combined characters to form the final encrypted password string, such as "A1BC6D245".

[0126] In this embodiment, the above technical solution creates a highly customized encryption process by combining the characteristics of the data itself with a randomly generated binary string. It not only takes into account the intrinsic characteristics of the data, but also improves the complexity and security of the password through randomness and matrix operations, effectively preventing unauthorized access and data leakage.

[0127] In one embodiment, generating a coding character matrix based on the data type, data access mode and data source includes:

[0128] Encode the data type to obtain a first coded character; the first coded character includes a plurality of characters;

[0129] Encoding the data access mode to obtain a second coded character; the second coded character includes a plurality of characters;

[0130] Based on a preset mapping relationship between a data source and a matrix parameter, obtaining a matrix parameter corresponding to the data source; the matrix parameter includes the number of rows and columns of the matrix;

[0131] Based on the matrix parameters, a corresponding second blank matrix is ​​created; the first coded characters and the second coded characters are added to the second blank matrix according to a preset rule to generate a coded character matrix.

[0132] In this embodiment, it specifically includes:

[0133] First, for different data types (such as text, images, videos, etc.), a set of encoding rules is designed to convert them into specific character sequences. The above character sequences are the first encoding characters, which can represent the basic categories of data, so that the encryption process can reflect the essential characteristics of the data.

[0134] Next, the data is converted into a character sequence using encoding rules based on the data access mode (such as public, internal use, restricted access, etc.). The above character sequence constitutes the second encoding character, which is intended to reflect the sensitivity and permission level of the data, further increasing the level of encrypted information.

[0135] According to pre-set rules, different data sources (such as databases, API interfaces, file systems, etc.) are mapped to specific matrix parameters. These parameters include the size of the matrix, such as the number of rows and columns, which are used to build the subsequent encoding matrix framework. For example, the database source corresponds to a 3x3 matrix, the API interface corresponds to a 4x4 matrix, etc., in order to adapt to the characteristics or security requirements of data from different sources.

[0136] Based on the obtained matrix parameters (number of rows and columns), a second blank matrix is ​​created. Then, the first coded characters and the second coded characters are integrated into this matrix according to a predetermined rule. The integration rule can involve the order and position of the characters (such as the first row for data type and the second row for access mode) or more complex distribution logic to ensure that the information can be decoded while maintaining a certain degree of obfuscation.

[0137] Through the above steps, a coded character matrix is ​​obtained that not only reflects the essential characteristics of the data (type, access mode) but also takes into account the source characteristics. The above coded character matrix not only encrypts the data information, but also enhances the security of the data through the matrix structure and character distribution, so that only the recipient who understands the mapping rules and preset parameters can correctly interpret it. This method is particularly suitable for scenarios that require highly customized security strategies, and can flexibly adjust the encryption strategy according to different dimensions of the data.

[0138] In one embodiment, before encoding the data type, the method includes:

[0139] Based on the data type and data access mode, the preset encoding algorithm is modified to obtain a modified encoding algorithm; the modified encoding algorithm is used to encode the data type and data access mode.

[0140] In this embodiment, first, the data type (such as text, image, audio, etc.) and data access mode (such as public, private, confidential, etc.) of the given data are analyzed. This step is to accurately understand the security requirements and characteristics of the data.

[0141] Based on the preliminary analysis of the data, a basic encoding algorithm is selected as a starting point. The above encoding algorithms include but are not limited to hash functions, substitution ciphers, transposition ciphers, or more complex custom algorithms, each with different security features and applicable scenarios.

[0142] According to the specific characteristics of data types and data access patterns, customized modifications are made to the selected basic encoding algorithm. The modifications may involve the following aspects:

[0143] Algorithm parameter adjustment: For example, for highly sensitive data, the number of hash iterations can be increased to enhance security.

[0144] Algorithm structure changes: Depending on the data access pattern, the encryption loop, permutation table or other core components can be modified to meet different security level requirements.

[0145] Hybrid coding strategy: combining two or more coding methods, such as combining simple substitution with transposition, to increase the difficulty of cracking.

[0146] After the coding algorithm is modified, the customized modified coding algorithm is used to encode the data type and data access mode respectively. The generated first coding characters and second coding characters incorporate the encryption logic optimized according to the data characteristics, which improves the protection strength of the information.

[0147] The above strategy of dynamically modifying the encoding algorithm provides several significant advantages:

[0148] Flexibility: The encoding strategy can be adjusted instantly according to the characteristics of different data, which improves the adaptability and security of the system.

[0149] Enhanced security: Customized encoding algorithms are optimized for specific data types and access patterns, increasing the complexity of cracking.

[0150] Scalability: As data security requirements change or new data types emerge, this mechanism allows for easy integration of new encoding algorithms or adjustment of existing algorithms to keep the system advanced.

[0151] In short, this technical solution realizes intelligent and personalized encryption processing of data by dynamically correcting the coding algorithm, effectively responding to diverse data protection needs.

[0152] In one embodiment, generating a coding character matrix based on the data type, data access mode and data source includes:

[0153] Respectively mapping the data type, data access mode and data source to corresponding characters to obtain a data type character, an access mode character and a data source character;

[0154] Combine the data type character, the access mode character and the data source character to obtain a data character combination;

[0155] Extract all English characters from the data character combination to generate a third blank matrix with multiple rows and columns; add all English characters to the third blank matrix according to preset rules to obtain an English character matrix;

[0156] Extract all the numeric characters in the data character combination to generate a fourth blank matrix with multiple rows and columns; add all the numeric characters to the fourth blank matrix according to a preset rule to obtain a numeric character matrix;

[0157] The English character matrix is ​​multiplied by the digital character matrix, and the obtained matrix is ​​used as the coded character matrix.

[0158] In this embodiment, it specifically includes:

[0159] Data type, access mode and source conversion: First, according to the preset mapping rules, the three key attributes of the data (data type, data access mode, data source) are converted into specific characters. For example, the text data type is mapped to "TA17", the public access mode is mapped to "PSD36", and the data from the server is mapped to "90SH". In this way, the data type character, access mode character and data source character are obtained.

[0160] Combine the above three characters into a string, for example, "TA17PSD3690SH". This data character combination contains the basic identification information of the data.

[0161] Extract characters: Distinguish English and numeric characters from data character combinations.

[0162] English character matrix: Create a blank matrix, and then fill all English characters into the matrix according to a preset rule (such as order, specific pattern or random distribution) to form an English character matrix.

[0163] Digital character matrix: Similarly, create another blank matrix and fill it with all the digital characters according to another set of rules to form a digital character matrix.

[0164] Matrix operation: Finally, the English character matrix and the digital character matrix are multiplied. This operation can greatly confuse the original information and produce an encoding result that is difficult to reverse analyze.

[0165] The above technical solution has the following beneficial effects:

[0166] Improved security: By mapping and reorganizing data attributes and introducing matrix operations, this solution increases the complexity of information, making it difficult for unauthorized third parties to interpret the true meaning of the data.

[0167] Data Compression and Structuring: The matrix form not only encrypts the data but also provides a compact and structured way to store and process this information.

[0168] Flexibility and scalability: Preset rules can be adjusted as needed to adapt to different security levels or special application scenarios. At the same time, changes in character mapping rules and matrix construction rules can be easily expanded to cope with more diverse data types and patterns.

[0169] In summary, the above technical solution provides a novel and secure data protection method by encoding data attributes into character matrices and further encrypting them using matrix operations. It is particularly suitable for scenarios that require highly secure and customized encoding.

[0170] Reference Figure 2In one embodiment of the present invention, a risk data analysis system based on a database is also provided, comprising:

[0171] A first acquisition unit, configured to acquire a data type of data stored in the database, and match a corresponding initial risk analysis model based on the data type;

[0172] A second acquisition unit, used to acquire a data access mode of a database and acquire a data source of data stored in the database;

[0173] A prediction unit, configured to analyze and predict the data access pattern based on a first prediction model to obtain a first prediction value; and analyze and predict the data source based on a second prediction model to obtain a second prediction value; wherein the first prediction value and the second prediction value are prediction values ​​for different model parameters;

[0174] an updating unit, configured to verify whether the first prediction value and the second prediction value are both reasonable; if both are reasonable, updating corresponding model parameters in the initial risk analysis model according to the first prediction value and the second prediction value to obtain a risk data analysis model;

[0175] The analysis unit is used to perform risk analysis on the data stored in the database based on the risk data analysis model to obtain corresponding risk analysis results.

[0176] In this embodiment, for the specific implementation of each unit in the above system embodiment, please refer to the above method embodiment, which will not be repeated here.

[0177] Reference Figure 3 In an embodiment of the present invention, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a display screen, an input device, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.

[0178] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.

[0179] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0180] In summary, the risk data analysis method, system and device based on the database provided in the embodiment of the present invention include: obtaining the data type of the data stored in the database, matching the corresponding initial risk analysis model based on the data type; obtaining the data access mode of the database, and obtaining the data source of the data stored in the database; analyzing and predicting the data access mode based on the first prediction model to obtain the first prediction value; analyzing and predicting the data source based on the second prediction model to obtain the second prediction value; wherein the first prediction value and the second prediction value are prediction values ​​for different model parameters; verifying whether the first prediction value and the second prediction value are both reasonable; if both are reasonable, updating the corresponding model parameters in the initial risk analysis model according to the first prediction value and the second prediction value to obtain the risk data analysis model; performing risk analysis on the data stored in the database based on the risk data analysis model to obtain the corresponding risk analysis results. In the present invention, the data type in the database is deeply understood, and the potential risks of the data access mode and the data source are analyzed in combination with the advanced prediction model, and then the risk analysis model is accurately adjusted to achieve efficient and accurate identification and evaluation of data risks in the database. It aims to improve the accuracy and efficiency of risk prediction through technical means, help better manage data risks, protect data assets, and meet increasingly stringent privacy protection regulations.

[0181] 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 provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), 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.

[0182] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0183] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A risk data analysis method based on a database, characterized in that: The following steps are involved: Acquire the data type of the data stored in the database, and match the corresponding initial risk analysis model based on the data type; Obtaining a data access mode of a database, and obtaining a data source of data stored in the database; Analyzing and predicting the data access pattern based on the first prediction model to obtain a first prediction value; analyzing and predicting the data source based on the second prediction model to obtain a second prediction value; wherein the first prediction value and the second prediction value are prediction values ​​for different model parameters; Verify whether the first prediction value and the second prediction value are both reasonable; if both are reasonable, update the corresponding model parameters in the initial risk analysis model according to the first prediction value and the second prediction value to obtain a risk data analysis model; Performing risk analysis on the data stored in the database based on the risk data analysis model to obtain corresponding risk analysis results; After performing risk analysis on the data stored in the database based on the risk data analysis model and obtaining corresponding risk analysis results, the method includes: If the data stored in the database does not have risks, create a target folder in the database and store the data in the target folder; Generate an encrypted password string based on the data type, data access mode, and data source; Encrypting the target folder based on the encryption password string; The step of generating an encrypted password string based on the data type, data access mode and data source includes: Based on the data type, data access mode, and data source, generate a coded character matrix; Randomly generate a binary number with nine numeric characters; Create a first blank matrix with three rows and three columns, and add the digital characters in the binary number to the first blank matrix one by one in sequence to generate a binary matrix; Obtain a target number in the binary matrix, and use the position of the target number as the target position; wherein the target number is 1; Align the lower left corner of the binary matrix with the coded character matrix, and obtain a character at a position overlapping with the target position of the binary matrix in the coded character matrix as the target character; Combining the target characters in order to obtain a combined character; Convert the binary number into a decimal number, and combine the combined character with the decimal number to obtain the encrypted password string; The step of generating a coding character matrix based on the data type, data access mode and data source includes: Encode the data type to obtain a first coded character; the first coded character includes a plurality of characters; Encoding the data access mode to obtain a second coded character; the second coded character includes a plurality of characters; Based on a preset mapping relationship between a data source and a matrix parameter, obtaining a matrix parameter corresponding to the data source; the matrix parameter includes the number of rows and columns of the matrix; Based on the matrix parameters, a corresponding second blank matrix is ​​created; the first coded characters and the second coded characters are added to the second blank matrix according to a preset rule to generate a coded character matrix.

2. The risk data analysis method based on a database according to claim 1, characterized in that: The obtaining of the data type of the data stored in the database and matching the corresponding initial risk analysis model based on the data type includes: Acquire multiple data types of data stored in the database, and combine each of the data types to obtain a data type combination; According to the preset mapping relationship between the type combination and the identification character, query the target identification character mapped with the data type combination; Based on the preset mapping relationship between the identification character and the risk analysis model, the initial risk analysis model mapped with the target identification character is queried.

3. The risk data analysis method based on a database according to claim 1, characterized in that: The first prediction model and the second prediction model are both pre-trained deep learning models.

4. The risk data analysis method based on a database according to claim 1, characterized in that: The verifying whether the first prediction value and the second prediction value are both reasonable includes: Combining the first predicted value and the second predicted value into a predicted value data pair; Searching among preset standard data pairs whether the predicted value data pair is included; If included, the first predicted value and the second predicted value are both reasonable; if not included, the first predicted value and / or the second predicted value are unreasonable.

5. The risk data analysis method based on a database according to claim 1, characterized in that: Before encoding the data type, the method includes: Based on the data type and data access mode, the preset encoding algorithm is modified to obtain a modified encoding algorithm; the modified encoding algorithm is used to encode the data type and data access mode.

6. A risk data analysis system based on a database, characterized in that: include: A first acquisition unit, configured to acquire a data type of data stored in the database, and match a corresponding initial risk analysis model based on the data type; A second acquisition unit, used to acquire a data access mode of a database and acquire a data source of data stored in the database; A prediction unit, configured to analyze and predict the data access pattern based on a first prediction model to obtain a first prediction value; and analyze and predict the data source based on a second prediction model to obtain a second prediction value; wherein the first prediction value and the second prediction value are prediction values ​​for different model parameters; an updating unit, configured to verify whether the first prediction value and the second prediction value are both reasonable; if both are reasonable, updating corresponding model parameters in the initial risk analysis model according to the first prediction value and the second prediction value to obtain a risk data analysis model; An analysis unit, configured to perform risk analysis on the data stored in the database based on the risk data analysis model to obtain corresponding risk analysis results; After performing risk analysis on the data stored in the database based on the risk data analysis model and obtaining corresponding risk analysis results, the method includes: If the data stored in the database does not have risks, create a target folder in the database and store the data in the target folder; Generate an encrypted password string based on the data type, data access mode, and data source; Encrypting the target folder based on the encryption password string; The step of generating an encrypted password string based on the data type, data access mode and data source includes: Based on the data type, data access mode, and data source, generate a coded character matrix; Randomly generate a binary number with nine numeric characters; Create a first blank matrix with three rows and three columns, and add the digital characters in the binary number to the first blank matrix one by one in sequence to generate a binary matrix; Obtain a target number in the binary matrix, and use the position of the target number as the target position; wherein the target number is 1; Align the lower left corner of the binary matrix with the coded character matrix, and obtain a character at a position overlapping with the target position of the binary matrix in the coded character matrix as the target character; Combining the target characters in order to obtain a combined character; Convert the binary number into a decimal number, and combine the combined character with the decimal number to obtain the encrypted password string; The step of generating a coding character matrix based on the data type, data access mode and data source includes: Encode the data type to obtain a first coded character; the first coded character includes a plurality of characters; Encoding the data access mode to obtain a second coded character; the second coded character includes a plurality of characters; Based on a preset mapping relationship between a data source and a matrix parameter, obtaining a matrix parameter corresponding to the data source; the matrix parameter includes the number of rows and columns of the matrix; Based on the matrix parameters, a corresponding second blank matrix is ​​created; the first coded characters and the second coded characters are added to the second blank matrix according to a preset rule to generate a coded character matrix.

7. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.