Data processing method, device, equipment and medium
By receiving and preprocessing the initial data from the financial data side, obtaining feature vectors and automatically clustering them, the problem of low efficiency in report data processing is solved, automatic analysis and display is realized, and the consumption of human and material resources is reduced.
Patent Information
- Application Number
- CN202010046210.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-15
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-01-15
AI Technical Summary
In the existing technology, cluster analysis and processing of report data in the financial field is inefficient and requires manual extraction of trends or patterns from massive data multiple times, resulting in a waste of resources.
By receiving the initial data from each data terminal for preprocessing, the feature vectors under the preset indicators are obtained, and the target clustering data of data similarity is automatically obtained according to the clustering type to achieve automated data display.
It reduces the resource consumption of manual data processing, improves the efficiency of report data cluster analysis and processing, and realizes automated data sorting and analysis.
Smart Images

Figure CN111222585B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of financial technology (Fintech), and in particular to a data processing method, device, equipment and medium. Background Art
[0002] With the continuous development of Fintech, especially Internet technology finance, more and more technologies are being applied in the financial field. Among them, data processing in the financial field, such as cluster analysis of report data, involves many technical applications. Cluster analysis of report data includes analyzing the clustering of various regulatory indicators in various banks, or the clustering of the same regulatory indicators under various banks. However, at present, it is often necessary to manually extract data trends or rules from massive report data multiple times (multiple times because of different types of cluster analysis), and after multiple manual annotations, it is possible to accurately realize the analysis of report data, such as cluster analysis, and display the analysis results. This will obviously consume too much manpower and material resources, resulting in low efficiency in processing report data. Summary of the invention
[0003] The main purpose of the present invention is to provide a data processing method, device, equipment and medium, aiming to solve the technical problem of low efficiency in data processing, especially report data cluster analysis processing in the prior art.
[0004] To achieve the above object, an embodiment of the present invention provides a data processing method, the data processing method comprising:
[0005] Receiving each initial data from each data terminal, and preprocessing each initial data to obtain each preprocessed data;
[0006] Obtain each preset indicator, and obtain the feature vector of the preprocessed data under each preset indicator;
[0007] When a data processing instruction is detected, a clustering type carried in the data processing instruction is obtained, and target clustering data representing data similarity corresponding to the clustering type is obtained according to the feature vector;
[0008] The data display strategy carried in the data processing instruction is obtained, and the target cluster data is displayed according to the data display strategy.
[0009] Optionally, the clustering type includes a clustering type of a preset category;
[0010] When a data processing instruction is detected, the step of obtaining a clustering type carried in the data processing instruction and obtaining target clustering data representing data similarity corresponding to the clustering type according to the feature vector comprises:
[0011] Obtaining the type of the preset category to which each preset indicator belongs, so as to classify the feature vector and obtain a vector classification result;
[0012] When a data processing instruction is detected, obtaining a cluster type of a target preset category corresponding to the data processing instruction, and setting the cluster type of the target preset category as an initial cluster type;
[0013] Extracting a target feature vector corresponding to the initial clustering type from the vector classification result;
[0014] Target clustering data representing the similarity of data at each data end corresponding to the initial clustering type is obtained according to the target feature vector.
[0015] Optionally, the step of acquiring target clustering data representing the similarity of data at each data end corresponding to the initial clustering type according to the target feature vector includes:
[0016] If the initial clustering type is a similarity clustering subtype of different data ends under the same preset indicator of the same target preset category, based on the target feature vector, the first vector length of each data end under the same preset indicator is obtained;
[0017] Calculating a first similarity between each two data terminals under the same preset indicator according to the first vector length and a preset vector distance calculation method;
[0018] The target clustering data representing the similarity of the data at each data end is determined according to the plurality of the first similarities.
[0019] Optionally, the step of determining the target clustering data representing the similarity of data at each data end according to the plurality of the first similarities comprises:
[0020] Obtaining the second vector length of each two data ends under other preset indicators of the same target preset category, wherein the same target preset category includes the same preset indicator and the other preset indicators;
[0021] Calculate the second similarity between each two data terminals under the other preset indicators according to the second vector length and the preset vector distance calculation method;
[0022] Determine, according to the plurality of the first similarities and the plurality of the second similarities, a similarity association matrix of every two data terminals under different preset indicators of the same target preset category;
[0023] Determine, based on the plurality of similarity association matrices, similarity matrices of all data terminals under different preset indicators of the same target preset category;
[0024] The similarity matrix is subjected to a preset isometric dimension reduction process to obtain the target clustering data representing the data similarity of each data terminal under the same target preset category.
[0025] Optionally, the step of obtaining a data display strategy carried in the data processing instruction and displaying the target cluster data according to the data display strategy comprises:
[0026] Obtain the data display strategy carried in the data processing instruction, and if the data display strategy is a visual display strategy, obtain the profit amount associated with each initial data of each data terminal;
[0027] According to the size of the profit amount, determining the size of the display mark of each data terminal corresponding to the target cluster data;
[0028] The target clustering data representing the data similarity of the respective data ends under the same target preset category are visually displayed according to the display identifiers of the respective data ends of different sizes.
[0029] Optionally, when a data processing instruction is detected, the step of obtaining a clustering type of a target preset category corresponding to the data processing instruction includes:
[0030] When a data processing instruction is detected, obtaining year information and target preset category information carried in the data processing instruction;
[0031] According to the year information and the target preset category information, a clustering type corresponding to the target preset category is determined.
[0032] Optionally, the step of receiving each initial data from each data terminal, preprocessing each initial data, and obtaining each preprocessed data comprises:
[0033] Receive each initial data from each data terminal, and start a preset OCR device to scan each preset recognition area corresponding to each initial data to obtain a valid image corresponding to each initial data;
[0034] Character features are extracted from the effective image using a preset neural network recognition model, and the various preprocessing data are obtained based on the character features.
[0035] The present invention further provides a data processing device, wherein the data processing method is applied to a first unit, and the data processing device comprises:
[0036] A receiving module, used for receiving each initial data from each data end, and preprocessing each initial data to obtain each preprocessed data;
[0037] A first acquisition module is used to acquire each preset indicator and acquire a feature vector of the preprocessed data under each preset indicator;
[0038] A detection module, configured to, when a data processing instruction is detected, obtain a clustering type carried in the data processing instruction, and obtain target clustering data representing data similarity corresponding to the clustering type according to the feature vector;
[0039] The second acquisition module is used to acquire the data display strategy carried in the data processing instruction, and display the target cluster data according to the data display strategy.
[0040] Optionally, the clustering type includes a clustering type of a preset category;
[0041] The detection module comprises:
[0042] A first acquisition unit, used to acquire the type of the preset category to which each preset indicator belongs, so as to classify the feature vector and obtain a vector classification result;
[0043] A second acquisition unit is used to acquire the cluster type of the target preset category corresponding to the data processing instruction when the data processing instruction is detected, and set the cluster type of the target preset category as the initial cluster type;
[0044] An extraction unit, used to extract a target feature vector corresponding to the initial clustering type from the vector classification result;
[0045] The third acquisition unit is used to acquire target clustering data representing the similarity of data at each data end corresponding to the initial clustering type according to the target feature vector.
[0046] Optionally, the third acquiring unit includes:
[0047] A first acquisition subunit is used for acquiring, based on the target feature vector, a first vector length of each data end under the same preset indicator if the initial clustering type is a similarity clustering subtype of different data ends under the same preset indicator of the same target preset category;
[0048] a calculation subunit, configured to calculate a first similarity between every two data terminals under the same preset indicator according to the first vector length and a preset vector distance calculation method;
[0049] A determination subunit is used to determine the target clustering data representing the similarity of the data at each data end according to the plurality of the first similarities.
[0050] Optionally, the determining subunit is used to implement:
[0051] Obtaining the second vector length of each two data ends under other preset indicators of the same target preset category, wherein the same target preset category includes the same preset indicator and the other preset indicators;
[0052] Calculate the second similarity between each two data terminals under the other preset indicators according to the second vector length and the preset vector distance calculation method;
[0053] Determine, according to the plurality of the first similarities and the plurality of the second similarities, a similarity association matrix of every two data terminals under different preset indicators of the same target preset category;
[0054] Determine, based on the plurality of similarity association matrices, similarity matrices of all data terminals under different preset indicators of the same target preset category;
[0055] The similarity matrix is subjected to a preset isometric dimension reduction process to obtain the target clustering data representing the data similarity of each data terminal under the same target preset category.
[0056] Optionally, the second acquisition module includes:
[0057] A fourth acquisition unit is used to acquire the data display strategy carried in the data processing instruction, and if the data display strategy is a visual display strategy, acquire the profit amount associated with each initial data of each data terminal;
[0058] A determination unit, configured to determine the size of display identifiers of each data terminal corresponding to the target cluster data according to the size of the profit amount;
[0059] A visualization unit is used to visualize the target clustering data representing the data similarity of each data end under the same target preset category according to the display identifiers of each data end of different sizes.
[0060] Optionally, the detection module includes:
[0061] a fifth acquisition unit, configured to acquire year information and target preset category information carried in the data processing instruction when the data processing instruction is detected;
[0062] According to the year information and the target preset category information, a clustering type corresponding to the target preset category is determined.
[0063] Optionally, the step of receiving each initial data from each data terminal, preprocessing each initial data, and obtaining each preprocessed data comprises:
[0064] Receive each initial data from each data terminal, and start a preset OCR device to scan each preset recognition area corresponding to each initial data to obtain a valid image corresponding to each initial data;
[0065] Character features are extracted from the effective image using a preset neural network recognition model, and the various preprocessing data are obtained based on the character features.
[0066] The present invention also provides a medium, on which a data processing program is stored, and when the data processing program is executed by a processor, the steps of the data processing method as described above are implemented.
[0067] The present invention receives each initial data from each data terminal, pre-processes the initial data, and obtains each pre-processed data; obtains each preset indicator, and obtains the characteristic vector of the pre-processed data under each preset indicator; when a data processing instruction is detected, obtains the clustering type carried in the data processing instruction, and obtains the target clustering data representing the data similarity corresponding to the clustering type according to the characteristic vector; obtains the data display strategy carried in the data processing instruction, and displays the target clustering data according to the data display strategy. In the present application, after receiving the initial data from each data terminal and performing preprocessing, the data to be processed can be automatically obtained, and the data to be processed can be automatically sorted in order according to preset indicators to obtain the characteristic vector of the preprocessed data under each preset indicator. Therefore, when obtaining the data processing instruction, the target clustering data representing the data similarity corresponding to the clustering type in the processing instruction can be automatically obtained, and displayed according to the data display strategy carried in the instruction, instead of manually obtaining the data from each data terminal and manually performing data clustering analysis to obtain and display the analysis results. That is, it is obvious that the present application automatically obtains and displays the target clustering data representing the data similarity of each data terminal by collecting the clustering type in the data processing instruction, which will reduce the consumption of manpower, material and resource resources caused by manual data processing and improve the data processing, especially the efficiency of report data clustering analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 It is a flowchart of a first embodiment of a data processing method of the present invention;
[0069] Figure 2 A detailed flow chart of the step of obtaining a node to be processed based on the contents of all files in the second embodiment of the data processing method of the present invention;
[0070] Figure 3 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0071] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0072] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0073] The present invention provides a data processing method. In an embodiment of the data processing method, referring to Figure 1 , the data processing method is applied to a first unit, and the data processing method comprises:
[0074] Step S10: receiving each initial data from each data terminal, and preprocessing each initial data to obtain each preprocessed data;
[0075] Step S20, obtaining each preset indicator, and obtaining a feature vector of the preprocessed data under each preset indicator;
[0076] Step S30, when a data processing instruction is detected, obtaining a clustering type carried in the data processing instruction, and obtaining target clustering data representing data similarity corresponding to the clustering type according to the feature vector;
[0077] Step S40, obtaining the data display strategy carried in the data processing instruction, and displaying the target cluster data according to the data display strategy.
[0078] The specific steps are as follows:
[0079] Step S10, receiving each initial data from each data terminal, and preprocessing each initial data to obtain each preprocessed data;
[0080] In this embodiment, the data processing method is applied to a data processing system, which belongs to a data processing device. The data processing system can be installed on mobile terminals such as mobile phones and tablets. In addition, the data processing system can also be installed on a computer. The data processing system is connected to each data terminal for communication. The data terminals can be data terminals of financial institutions such as WeBank, China Merchants Bank, and the People's Bank of China (one data terminal can correspond to all report data of a financial institution). In addition, the data terminals can also be data terminals of third-party financial institutions (one data terminal can correspond to the report data of a third-party financial institution). It should be noted that when the data terminals are data terminals of financial institutions such as WeBank, China Merchants Bank, and the People's Bank of China, the data terminals often refer to the data terminals of all financial institutions in a certain area, such as the data terminals of all financial institutions in Shenzhen (financial institutions can be added or deleted), or the data terminals of various financial institutions across the country. In this embodiment, the data terminal is a bank's data terminal, and the data processing system is installed on a mobile terminal as an example for specific description.
[0081] Receive each initial data from each data terminal, pre-process the initial data, and obtain each pre-processed data. Specifically, receive each initial data from each data terminal at intervals of a preset time period or in real time, pre-process the initial data, and obtain each pre-processed data. For example, receive each initial data from the data terminals of each financial institution in Shenzhen, pre-process the initial data, and obtain each pre-processed data. In this embodiment, the initial data may be data in the form of an Excel table. In addition, the initial data may also be data in the form of a picture or voice. That is, the format or form of the initial data in this embodiment is uncertain. Therefore, after obtaining the initial data, it is necessary to pre-process the initial data to obtain each pre-processed data. That is, the pre-processing process may be a process of unifying the data format or data form. In the process of unifying the data format or data form, it also includes a process of recognizing and processing the image data in the initial data by means of OCR or a process of recognizing the voice data in the initial data by means of NLP (Natural Language Processing).
[0082] The process of recognizing the voice data in the initial data by means of NLP (Natural Language Processing) can be as follows: recognizing the voice sub-data in the initial data by means of a preset data recognition model, after obtaining the voice sub-data, recognizing and processing the voice sub-data by means of a preset voice recognition model in NLP to obtain a recognition result, converting the recognition result into a preset format, and adding it to the corresponding preprocessed data, wherein the preset voice recognition model is a model that can accurately recognize voice after training.
[0083] The steps of receiving each initial data from each data terminal and preprocessing each initial data to obtain each preprocessed data include:
[0084] Step S11, receiving each initial data from each data terminal, and starting a preset OCR device to scan each preset recognition area corresponding to each initial data to obtain a valid image corresponding to each initial data;
[0085] In this embodiment, a preset OCR device is also provided in the data processing system, or the data processing system is also communicatively connected with the preset OCR device. After receiving each initial data from each data terminal, each picture sub-data in the initial data is identified by a preset data recognition model. First, each picture sub-data is sent to the preset OCR device to scan each preset recognition area corresponding to the picture sub-data to obtain a valid image corresponding to each initial data. Specifically, when the data processing system detects each picture sub-data through an infrared sensor (of course, it can also be a pressure sensor or other detection means), the data processing system will start the scanning function of the OCR device, scan each preset recognition area corresponding to the picture sub-data, and divide out a valid area including valid information. The image of the valid area can be called a valid image. For example, for a financial statement picture, the table data is located in the lower middle part of the picture. Based on this rule, the financial statement picture can be divided to obtain a valid image. After obtaining the valid image, the valid image of this part is processed in a targeted manner, thereby reducing the amount of data calculation and processing and improving recognition efficiency. Of course, after obtaining the valid images corresponding to the initial data, other steps may be performed, such as image binarization, character segmentation, etc. Among them, binarization refers to converting the image into a binary image containing only two black and white colors; character segmentation refers to dividing a series of characters into individual characters (or words, numbers) with certain meanings, and then recognizing them.
[0086] Step S12, extracting character features from the effective image through a preset neural network recognition model, and obtaining the various pre-processed data according to the character features.
[0087] After obtaining the effective image, the subsequent character feature extraction and recognition are performed on the effective image. And the various pre-processing data are obtained according to the character features. Specifically, the character features can be divided into two categories: one is the statistical feature, such as the black / white dot ratio in the text area. When the text area is divided into several areas, the black / white dot ratios of these areas are combined to become a numerical vector in space. After obtaining the numerical vector, it is compared with the numerical vector corresponding to the alternative statistical feature in the character library to find the closest statistical feature to determine the meaning of the statistical feature in the effective image; another type of character feature is the structural feature, such as the number and position of the stroke endpoints and intersections of the character after the text image is thinned, or the features of the stroke segment. After obtaining the effective image, the character features of the effective image can be matched with the alternative features in the character library in accordance with the corresponding comparison method, so as to find the closest structural feature, and determine the meaning of the character in the effective image according to the meaning of the character closest to the structural feature and the meaning of the closest statistical feature.
[0088] Furthermore, the character feature extraction process can be completed through a neural network recognition model; that is, the effective image is input into a trained neural network recognition model, and the model extracts character features based on the logical experience summarized in the training process, thereby obtaining various preprocessed data.
[0089] Step S20, obtaining each preset indicator, and obtaining a feature vector of the preprocessed data under each preset indicator;
[0090] In this embodiment, after obtaining the pre-processed data, various preset indicators are obtained, wherein the various preset indicators include net profit, per capita profit, non-performing loan ratio, loan balance, income tax, operating income, operating expenses, etc. It should be noted that the various preset indicators can belong to different preset categories, and the specific preset indicators belong to which preset category is pre-stored, wherein the preset categories include comprehensive indicators, profitability indicators, business scale indicators, credit risk indicators, etc.
[0091] After obtaining each preset indicator, the characteristic vector of the preprocessed data under each preset indicator is also obtained. Since the preset indicators can be divided into preset categories, after obtaining each preset indicator, the characteristic vector of the preprocessed data under each preset category is also obtained. Specifically, the characteristic vector refers to the consideration factor of the corresponding data size under the preset indicator constructed under each indicator dimension, that is, the data length of each preprocessed data under the corresponding preset indicator constitutes the corresponding characteristic vector.
[0092] Step S30, when a data processing instruction is detected, obtaining a clustering type carried in the data processing instruction, and obtaining target clustering data representing data similarity corresponding to the clustering type according to the feature vector;
[0093] When a data processing instruction is obtained, the cluster type carried in the data processing instruction is obtained, wherein the cluster type includes at least: the first type, the cluster type is the cluster type of each data end under the same preset indicator, the second type, the cluster type of a certain data end under each preset indicator, etc. It should be noted that the cluster type can be selected by clicking or touching on the mobile terminal to generate a corresponding data processing instruction, for example, the number of data ends can be increased or deleted by clicking or touching to generate a corresponding data processing instruction, or the preset indicator can be increased or deleted by clicking or touching to generate a corresponding data processing instruction, etc.
[0094] After obtaining the clustering type, the target clustering data representing the data similarity corresponding to the clustering type is obtained according to the feature vector. If the clustering type is the clustering type of each data end under the same preset indicator, then the target clustering data is the clustering data representing the similarity of each data end under the same preset indicator. If the clustering type is the clustering type of a certain data end under each preset indicator, then the target clustering data is the clustering data of the similarity of a certain data end under each preset indicator.
[0095] It should be noted that, in this embodiment, the target clustering data may refer to the clustering result of the similarity of each data.
[0096] When a data processing instruction is detected, the step of obtaining a clustering type carried in the data processing instruction and obtaining target clustering data representing data similarity corresponding to the clustering type according to the feature vector comprises:
[0097] Step S31, obtaining the type of the preset category to which each preset indicator belongs, so as to classify the feature vector and obtain a vector classification result;
[0098] In this embodiment, the type of the preset category to which each preset indicator belongs is obtained to classify the feature vector and obtain a vector classification result. For example, if the type of the preset category to which each preset indicator belongs includes 1. comprehensive indicator; 2. profitability indicator; 3. business scale category; 4. credit risk category, etc., after obtaining the type of the preset category to which each preset indicator belongs, the feature vector is classified according to the mapping relationship between each feature vector and each preset indicator, and a vector classification result is obtained.
[0099] It should be noted that, in this embodiment, for the same preset category, the category feature vector may also be constructed by the feature vectors corresponding to the preset indicators under the same preset category and the influence of the feature vectors corresponding to the preset indicators.
[0100] Step S32, when a data processing instruction is detected, obtaining a cluster type of a target preset category corresponding to the data processing instruction, and setting the cluster type of the target preset category as an initial cluster type;
[0101] When a data processing instruction is detected, the cluster type of the target preset category corresponding to the data processing instruction is obtained, that is, in this embodiment, the data processing instruction is clustered with the preset category as the clustering unit, and the cluster type of the target preset category is set as the initial clustering type. It should be noted that in this embodiment, clustering is also performed with the preset year or the preset data end as the clustering unit, which is not specifically described here.
[0102] When the data processing instruction is detected, the step of obtaining the cluster type of the target preset category corresponding to the data processing instruction includes:
[0103] Step A1, when a data processing instruction is detected, obtaining year information and target preset category information carried in the data processing instruction;
[0104] Step A2: determining a clustering type corresponding to the target preset category according to the year information and the target preset category information.
[0105] In this embodiment, when clustering is performed with preset categories as clustering units, clustering types with years as sub-clustering units are also included, that is, when clustering is performed with preset categories as clustering units, clustering types of different years and different data terminals under different preset indicators of the same preset category are included. Specifically, the clustering type can be: in 2019 and 2018, the clustering types of WeBank, China Merchants Bank and Agricultural Bank of China under different preset indicators of the preset profit category. That is, in this embodiment, when a data processing instruction is detected, the year information and the target preset category information carried in the data processing instruction are obtained, and the clustering type corresponding to the target preset category is determined according to the year information and the target preset category information.
[0106] Step S33, extracting the target feature vector corresponding to the initial clustering type from the vector classification result;
[0107] After obtaining the vector classification result, the target feature vector corresponding to the initial clustering type is extracted from the vector classification result. Specifically, if the initial clustering type is a profitable category clustering type, the profitable category feature vector corresponding to the profitable category clustering type is extracted from the vector classification result. That is, in this embodiment, a category feature vector is obtained.
[0108] Step S34, obtaining target clustering data representing the similarity of data at each data end corresponding to the initial clustering type according to the target feature vector.
[0109] According to the target feature vector, the target clustering data representing the data similarity of each data end corresponding to the initial clustering type is obtained. Specifically, if the target feature vector is a profit category feature vector, the profit category feature vector of each data end is extracted to obtain the target clustering data that can represent the data similarity of each data end under the profit category.
[0110] Step S40, obtaining the data display strategy carried in the data processing instruction, and displaying the target cluster data according to the data display strategy.
[0111] The data display strategy carried in the data processing instruction is obtained, and the target cluster data is displayed according to the data display strategy, wherein the data display strategy includes a visual chart display strategy or a text display strategy.
[0112] The step of obtaining the data display strategy carried in the data processing instruction and displaying the target cluster data according to the data display strategy comprises:
[0113] Step S41, obtaining the data display strategy carried in the data processing instruction, and if the data display strategy is a visual display strategy, obtaining the profit amount associated with each initial data of each data terminal;
[0114] In this embodiment, the data display strategy carried in the data processing instruction is obtained. If the data display strategy is a visual display strategy, especially a visual icon display strategy, the profit amount associated with each initial data of each data terminal is obtained, that is, all profit amounts or business scales corresponding to each initial data are obtained.
[0115] Step S42, determining the size of the display mark of each data terminal corresponding to the target cluster data according to the size of the profit amount;
[0116] According to the size of the profit amount or the size of the business scale, the size of the display logo of each data terminal corresponding to the target cluster data is determined. If the display logo of each data terminal is a circle, the size of the circle area is determined according to the size of the profit amount. If the profit amount is large, the area of the circle corresponding to the target cluster data is large; if the profit amount is small, the area of the circle corresponding to the target cluster data is small.
[0117] Step S43, visually displaying the target clustering data representing the data similarity of the respective data ends under the same target preset category according to the display identifiers of the respective data ends of different sizes.
[0118] According to the display identifiers of the various data ends of different sizes, the target clustering data representing the data similarity of the various data ends under the same target preset category is visually displayed as a visualization icon.
[0119] The present invention receives each initial data from each data terminal, pre-processes the initial data, and obtains each pre-processed data; obtains each preset indicator, and obtains the characteristic vector of the pre-processed data under each preset indicator; when a data processing instruction is detected, obtains the clustering type carried in the data processing instruction, and obtains the target clustering data representing the data similarity corresponding to the clustering type according to the characteristic vector; obtains the data display strategy carried in the data processing instruction, and displays the target clustering data according to the data display strategy. In the present application, after receiving the initial data from each data end and performing preprocessing, the data to be processed can be automatically obtained, and the data to be processed can be automatically sorted in order according to preset indicators to obtain the characteristic vector of the preprocessed data under each preset indicator. Therefore, when obtaining the data processing instruction, the target clustering data representing the similarity of the data of each data end corresponding to the clustering type in the processing instruction can be automatically obtained, and displayed according to the data display strategy carried in the instruction, instead of manually obtaining the data of each data end and manually performing data clustering analysis to obtain and display the analysis results. That is, it is obvious that the present application automatically obtains and displays the target clustering data representing the similarity of the data of each data end by collecting the clustering type in the data processing instruction, which will reduce the consumption of human and material resources caused by manual data processing and improve the data processing, especially the efficiency of report data clustering analysis.
[0120] Further, based on the first embodiment, the present invention provides another embodiment of the data processing method. In this embodiment, the step of obtaining target clustering data representing the similarity of data at each data end corresponding to the initial clustering type according to the target feature vector includes:
[0121] Step B1, if the initial clustering type is a similarity clustering subtype of different data ends under the same preset indicator of the same target preset category, based on the target feature vector, obtain the first vector length of each data end under the same preset indicator;
[0122] In this embodiment, if the initial clustering type is a similarity clustering subtype of different data ends under the same preset indicator of the same target preset category, based on the target feature vector, the first vector length of each data end under the same preset indicator such as net profit is obtained, that is, the size of the net profit of each data end is obtained.
[0123] Step B2, calculating the first similarity between every two data ends under the same preset indicator according to the first vector length and a preset vector distance calculation method;
[0124] According to the first vector length and the preset vector distance calculation method, the first similarity of each two data ends under the same preset indicator is calculated. Specifically, the following preset calculation formula can be used
[0125]
[0126] Calculation is performed, where P and Q represent different data terminals, n represents the length of the category feature vector corresponding to the same preset indicator, and i represents the current feature indicator.
[0127] It should be noted that in this embodiment, multiple first similarities can be obtained. Specifically, for example, the first similarity can be the similarity between the two data ends P1 and Q1 under a certain preset indicator, and the first similarity can also be the similarity between the two data ends P2 and Q2 under the certain preset indicator.
[0128] Step B3: determining the target clustering data representing the similarity of the data at each data end according to the plurality of the first similarities.
[0129] The target clustering data representing the similarity of the data at each data end is determined based on the plurality of the first similarities, that is, the target clustering data at each data end under different preset indicators of the same preset category is determined.
[0130] In this embodiment, when the initial clustering type is a similarity clustering subtype of different data terminals under the same preset indicator of the same target preset category, the first vector length of each data terminal under the same preset indicator is obtained based on the target feature vector; the first similarity of each two data terminals under the same preset indicator is calculated according to the first vector length and the preset vector distance calculation method; the target clustering data representing the data similarity of each data terminal is determined according to multiple first similarities. In this embodiment, the target clustering data representing the data similarity of each data terminal is automatically obtained.
[0131] Further, based on the first embodiment, the present invention provides another embodiment of the data processing method. In this embodiment, the step of determining the target clustering data representing the similarity of the data at each data end according to the plurality of the first similarities includes:
[0132] Step C1, obtaining the second vector length of every two data ends under other preset indicators of the same target preset category, wherein the same target preset category includes the same preset indicator and the other preset indicators;
[0133] Step C2, calculating the second similarity between every two data ends under the other preset indicators according to the second vector length and a preset vector distance calculation method;
[0134] In this embodiment, the second vector length of each two data ends under other preset indicators of the same target preset category can also be obtained, wherein the same target preset category includes the same preset indicator and the other preset indicators, that is, in this embodiment, the similarity of different data ends under different preset indicators of the same target preset category can also be obtained.
[0135] Step C3, determining a similarity association matrix between every two data terminals under different preset indicators of the same target preset category according to the plurality of the first similarities and the plurality of the second similarities;
[0136] Based on multiple first similarities and multiple second similarities, a similarity association matrix is determined for every two data ends under different preset indicators of the same target preset category. Specifically, the horizontal matrix coordinates and the vertical matrix coordinates of the similarity association matrix are different data ends, and the two corresponding ends of the diagonal of the similarity association matrix are the same data ends, and the other three-dimensional coordinates of the similarity association matrix are preset indicators.
[0137] Step C4, determining the similarity matrices of all data terminals under different preset indicators of the same target preset category according to the plurality of similarity association matrices;
[0138] Step C5, performing a preset isometric dimension reduction process on the similarity matrix to obtain the target clustering data representing the data similarity of each data terminal under the same target preset category.
[0139] In this embodiment, similarity matrices of all data ends under different preset indicators of the same target preset category are integrated from multiple similarity association matrices, and preset isometric dimensionality reduction processing is performed on the similarity matrix, such as performing dimensionality reduction processing of a preset popular learning algorithm (such as tSNE) on the similarity matrix, to obtain the target clustering data representing the data similarity of each data end under the same target preset category.
[0140] In this embodiment, by obtaining the second vector length of each two data terminals under other preset indicators of the same target preset category, wherein the same target preset category includes the same preset indicator and the other preset indicators; according to the second vector length and the preset vector distance calculation method, the second similarity of each two data terminals under the other preset indicators is calculated; according to multiple first similarities and multiple second similarities, the similarity association matrix of each two data terminals under different preset indicators of the same target preset category is determined; according to multiple similarity association matrices, the similarity matrix of all data terminals under different preset indicators of the same target preset category is determined; the similarity matrix is subjected to preset isometric dimensionality reduction processing to obtain the target clustering data representing the data similarity of each data terminal under the same target preset category. In this embodiment, the target clustering data representing the data similarity of each data terminal under the same target preset category is automatically obtained.
[0141] Reference Figure 3 , Figure 3 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0142] The data processing device in the embodiment of the present invention may be a PC, or may be a terminal device such as a smart phone, a tablet computer, or a portable computer.
[0143] like Figure 3 As shown, the data processing device may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0144] Optionally, the data processing device may also include a target user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. The target user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional target user interface may also include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
[0145] Those skilled in the art will understand that Figure 3 The data processing device structure shown in the figure does not constitute a limitation of the data processing device, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.
[0146] like Figure 3 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module and a data processing program. The operating system is a program that manages and controls the hardware and software resources of the data processing device, and supports the operation of the data processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the memory 1005, and the communication with other hardware and software in the data processing device.
[0147] exist Figure 3 In the data processing device shown, the processor 1001 is used to execute the data processing program stored in the memory 1005 to implement the steps of any of the above-mentioned data processing methods.
[0148] The specific implementation of the data processing device of the present invention is basically the same as the various embodiments of the above-mentioned data processing method, and will not be repeated here.
[0149] In addition, an embodiment of the present invention further provides a data processing device, the data processing device comprising:
[0150] a judgment module, configured to judge, upon receiving a first traffic access instruction from a second unit, whether a second gateway of the second unit that sends the first traffic access instruction and a first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to a first VPN channel, wherein the first unit includes a plurality of different gateways, and the plurality of different gateways of the first unit are in a state of mutual communication;
[0151] A networking module is used to re-process the second data through different gateways of the first unit that are in a state of mutual communication, so as to switch access processing of the first traffic access instruction if the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in a first VPN channel interruption state.
[0152] Optionally, the networking module includes:
[0153] A switching unit is used to run a preset dynamic routing protocol, a preset static routing protocol or a preset direct routing protocol through different gateways of the first unit that are in a state of mutual communication, and re-perform the second data processing to switch the access processing of the first traffic access instruction.
[0154] Optionally, the switching unit includes:
[0155] a determination subunit, configured to run a preset dynamic routing protocol, a preset static routing protocol or a preset direct routing protocol through different gateways of the first units in a state of mutual communication, and determine a third gateway of the first unit that communicates with the second gateway of the second unit in a routing convergence manner;
[0156] a first re-networking subunit, configured to re-process the second data according to the third gateway;
[0157] The sending subunit is used to send the first traffic access instruction to the third gateway of the first unit based on the second data processing, so that the third gateway processes the first traffic access instruction.
[0158] Optionally, the determining subunit is used to implement:
[0159] Obtaining respective numbers of second traffic access instructions to be processed by other gateways other than the first gateway of the first unit;
[0160] The third gateway of the first unit that communicates with the second gateway of the second unit is determined by the respective numbers of the second traffic access instructions and the routing convergence mode.
[0161] Optionally, the judging module includes:
[0162] A calling unit, configured to call a preset detection tool to detect network delay and network packet loss on the first VPN channel at intervals of a first preset time period;
[0163] The determination unit is configured to determine that the corresponding first VPN channel is in an interrupted state if it is detected that a network delay phenomenon exists in the first VPN channel or a packet loss phenomenon exists for a period exceeding a preset number of times.
[0164] Optionally, the second unit includes a plurality of different gateways, and the plurality of different gateways of the second unit are in a state of mutual communication;
[0165] The networking module includes:
[0166] The second re-networking sub-unit is used to re-perform the second data processing through the different gateways of the first unit in a state of mutual communication and the different gateways of the second unit in a state of mutual communication, so as to switch the access processing of the first traffic access instruction.
[0167] Optionally, the networking module includes:
[0168] A networking unit, used for the first unit, includes multiple different gateways, the multiple different gateways of the first unit are in a preset routing domain, and the multiple different gateways of the first unit are configured with all IP network segments in the preset routing domain, and the multiple different gateways of the first unit are in a state of mutual communication.
[0169] The specific implementation of the data processing device is basically the same as the various embodiments of the above-mentioned data processing method, and will not be repeated here.
[0170] In addition, an embodiment of the present invention further proposes a data processing device, which includes: a memory 109, a processor 110, and a data processing program stored in the memory 109 and executable on the processor 110. When the data processing program is executed by the processor 110, the steps of each embodiment of the above-mentioned data processing method are implemented.
[0171] In addition, the present invention also provides a computer medium, which stores one or more programs. The one or more programs can also be executed by one or more processors to implement the steps of each embodiment of the above-mentioned data processing method.
[0172] The expanded contents of the specific implementation methods of the device and medium (ie, computer medium) of the present invention are basically the same as those of the above-mentioned data processing method embodiments, and will not be elaborated here.
[0173] 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, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0174] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0175] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0176] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A data processing method, characterized in that: The data processing method comprises: Receiving each initial data from each data terminal, and preprocessing each initial data to obtain each preprocessed data; Obtain each preset indicator, and obtain the feature vector of the preprocessed data under each preset indicator; When a data processing instruction is detected, a clustering type carried in the data processing instruction is obtained, and target clustering data representing data similarity corresponding to the clustering type is obtained according to the feature vector; Obtaining a data display strategy carried in the data processing instruction, and displaying the target cluster data according to the data display strategy; The clustering type includes a clustering type of a preset category; When a data processing instruction is detected, the step of obtaining a clustering type carried in the data processing instruction and obtaining target clustering data representing data similarity corresponding to the clustering type according to the feature vector comprises: Obtaining the type of the preset category to which each preset indicator belongs, so as to classify the feature vector and obtain a vector classification result; When a data processing instruction is detected, obtaining a cluster type of a target preset category corresponding to the data processing instruction, and setting the cluster type of the target preset category as an initial cluster type; Extracting a target feature vector corresponding to the initial clustering type from the vector classification result; Target clustering data representing the similarity of data at each data end corresponding to the initial clustering type is obtained according to the target feature vector.
2. The data processing method according to claim 1, characterized in that: The step of obtaining target clustering data representing the similarity of data at each data end corresponding to the initial clustering type according to the target feature vector comprises: If the initial clustering type is a similarity clustering subtype of different data ends under the same preset indicator of the same target preset category, based on the target feature vector, the first vector length of each data end under the same preset indicator is obtained; Calculating a first similarity between each two data terminals under the same preset indicator according to the first vector length and a preset vector distance calculation method; The target clustering data representing the similarity of the data at each data end is determined according to the plurality of the first similarities.
3. The data processing method according to claim 2, characterized in that: The step of determining the target cluster data representing the similarity of the data at each data end according to the plurality of the first similarities comprises: Obtaining the second vector length of each two data ends under other preset indicators of the same target preset category, wherein the same target preset category includes the same preset indicator and the other preset indicators; Calculate the second similarity between each two data terminals under the other preset indicators according to the second vector length and the preset vector distance calculation method; Determine, according to the plurality of the first similarities and the plurality of the second similarities, a similarity association matrix of every two data terminals under different preset indicators of the same target preset category; Determine, based on the plurality of similarity association matrices, similarity matrices of all data terminals under different preset indicators of the same target preset category; The similarity matrix is subjected to a preset isometric dimension reduction process to obtain the target clustering data representing the data similarity of each data terminal under the same target preset category.
4. The data processing method according to claim 3, characterized in that: The step of obtaining the data display strategy carried in the data processing instruction and displaying the target cluster data according to the data display strategy comprises: Obtain the data display strategy carried in the data processing instruction, and if the data display strategy is a visual display strategy, obtain the profit amount associated with each initial data of each data terminal; According to the size of the profit amount, determining the size of the display mark of each data terminal corresponding to the target cluster data; The target clustering data representing the data similarity of the respective data ends under the same target preset category are visually displayed according to the display identifiers of the respective data ends of different sizes.
5. The data processing method according to claim 1, characterized in that: When the data processing instruction is detected, the step of obtaining the cluster type of the target preset category corresponding to the data processing instruction includes: When a data processing instruction is detected, obtaining year information and target preset category information carried in the data processing instruction; According to the year information and the target preset category information, a clustering type corresponding to the target preset category is determined.
6. The data processing method according to any one of claims 1 to 5, characterized in that: The step of receiving each initial data from each data terminal and preprocessing each initial data to obtain each preprocessed data comprises: Receive each initial data from each data terminal, and start a preset OCR device to scan each preset recognition area corresponding to each initial data to obtain a valid image corresponding to each initial data; Character features are extracted from the effective image using a preset neural network recognition model, and the various preprocessing data are obtained based on the character features.
7. A data processing device, characterized in that: The data processing device comprises: A receiving module, used for receiving each initial data from each data end, and preprocessing each initial data to obtain each preprocessed data; A first acquisition module is used to acquire each preset indicator and acquire a feature vector of the preprocessed data under each preset indicator; A detection module, configured to, when a data processing instruction is detected, obtain a clustering type carried in the data processing instruction, and obtain target clustering data representing data similarity corresponding to the clustering type according to the feature vector; A second acquisition module is used to acquire the data display strategy carried in the data processing instruction, and display the target cluster data according to the data display strategy; The clustering type includes a clustering type of a preset category; The detection module is used to implement: Obtaining the type of the preset category to which each preset indicator belongs, so as to classify the feature vector and obtain a vector classification result; When a data processing instruction is detected, obtaining a cluster type of a target preset category corresponding to the data processing instruction, and setting the cluster type of the target preset category as an initial cluster type; Extracting a target feature vector corresponding to the initial clustering type from the vector classification result; Target clustering data representing the similarity of data at each data end corresponding to the initial clustering type is obtained according to the target feature vector.
8. A data processing device, characterized in that: The device comprises: a memory, a processor, and a data processing program stored in the memory and executable on the processor, wherein the data processing program implements the steps of the data processing method according to any one of claims 1 to 6 when executed by the processor.
9. A medium, characterized in that The medium stores a data processing program, and when the data processing program is executed by a processor, the steps of the data processing method according to any one of claims 1 to 6 are implemented.
