Statistical data processing method, device and storage medium
Through automated statistical data processing and the use of pre-built indicator calculation models, the problems of heavy workload and high error rate caused by manual participation in the existing technology are solved, and unified indicator standards and real-time ranking viewing functions are realized.
Patent Information
- Application Number
- CN201910748579.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-14
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2039-08-14
AI Technical Summary
Existing statistical data processing methods require manual participation, resulting in heavy workload and error-prone, and lack of unified indicator standards, making it impossible for participants to view ranking results in real time.
Identify classified data through keywords, use pre-built indicator calculation models for data processing, realize automated statistics, unify indicator standards, and generate ranking data through sorting and filtering.
It reduces manual workload, reduces error rates, unifies data indicator standards, allows participants to view ranking results in real time, and facilitates comparison with similar situations.
Smart Images

Figure CN110598988B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data statistics technology, and in particular to a statistical data processing method, device and computer-readable storage medium. Background Art
[0002] At present, most statistical data processing methods, such as work performance data statistics, large-area competition results data statistics, electricity consumption data statistics, medical data statistics of a certain disease, etc., require human participation in the statistical data processing process. The person in charge of statistics needs to organize the statistical data into a list, and then calculate it uniformly through manual or computer to finally get the statistical results.
[0003] For example, in most companies, the method of counting employees' work performance is completed in the form of list reports. The specific method is: the person responsible for performance statistics prepares a list report, and employees in various positions fill in their own work performance in the list report and report it to the person responsible for performance statistics. The person responsible for performance statistics then manually extracts the employees' work performance from the list report and compiles statistics on the work performance of all employees.
[0004] The above statistical data processing method has the following disadvantages: 1. It is labor-intensive, labor-intensive, and prone to errors; 2. There is no unified standard for the indicators of the data to be counted; 3. Participants cannot see their ranking results in real time and have no understanding of their own results; nor can they understand the results of other participants in the same situation. Summary of the invention
[0005] The present invention provides a statistical data processing method, device and computer-readable storage medium, the main purpose of which is to classify basic statistical data according to categories, and then calculate the index through a preset index calculation model by combining the classified data with the pre-acquired reference data, obtain the index data, and then sort and filter the index data to finally obtain the required ranking data. The whole process does not require manual participation, which reduces the manual workload and is not prone to errors; it unifies the index standards for the statistical data; it is convenient for participants to view their ranking scores, and it is also convenient to compare the scores of other participants in the same situation.
[0006] To achieve the above object, the present invention provides a statistical data processing method, the method comprising:
[0007] Get basic statistics to be processed;
[0008] Obtaining category keywords in the basic statistical data by a keyword recognition method as a classification basis, classifying the basic statistical data according to the classification basis, and obtaining first classification data;
[0009] The first classification data and the pre-acquired first classification reference data are processed by a pre-constructed index calculation model to obtain second classification index data;
[0010] Sort the second category indicator data by time dimension and indicator type;
[0011] From the sorted second classification indicator data, the third ranking data is filtered out according to the preset filtering rules.
[0012] Preferably, the step of calculating and processing the first classification data together with the pre-acquired first classification reference data through a pre-built index calculation model to obtain the second classification index data includes:
[0013] Merging the first classification data with pre-acquired first classification reference data to obtain first merged data;
[0014] Preprocessing the first merged data to obtain first preprocessed data, wherein the preprocessing includes: dirty data processing, data merging and splitting;
[0015] Organize the first preprocessed data into an executable hive script;
[0016] The indicator calculation model built in advance is used to calculate the indicators of the data in the hive script, and the calculation results are used to generate an indicator data table to obtain the second classification indicator data.
[0017] Preferably, the step of arranging the first preprocessed data into an executable hive script includes:
[0018] Screening the first preprocessed data to remove unusable data, wherein the unusable data includes single data with incomplete basic information and single data with missing fields for obtaining the association relationship of the indicator calculation formula;
[0019] Obtaining a related table from a pre-stored related table template according to an indicator calculation formula, loading the screened first pre-processed data into the related table accordingly, and obtaining a related table with data;
[0020] Sort out the relationships between related tables with data and organize them into executable hive scripts.
[0021] Preferably, the step of calculating and processing the first classification data together with the pre-acquired first classification reference data through a pre-built index calculation model to obtain the second classification index data includes:
[0022] The first classification data is exchanged to the big data platform through a real-time data interface, and the first classification data and the first classification reference data pre-acquired from the Internet database in the big data platform are calculated and processed by an indicator calculation model preset in the big data platform to obtain second classification indicator data;
[0023] Wherein, the big data platform includes a data source, an indicator calculation model and a data output port;
[0024] The data source includes a real-time data interface for acquiring first classification data in real time, an Internet data interface for acquiring first classification reference data, and an Internet database for storing first classification reference data;
[0025] The data output port is used to output the acquired second classification index data.
[0026] Preferably, the step of sorting the second classification indicator data includes:
[0027] Obtain three sorted tables, namely annual table, monthly table and daily table. Each table includes the name of each indicator and the name of each data source.
[0028] Load the second classification indicator data into the sorting table respectively;
[0029] Sort the second classification indicator data in each sorting table in descending or ascending order.
[0030] Preferably, the statistical data processing method further comprises:
[0031] After the third ranking data is screened out according to the preset screening rule, the third ranking data is sent to the display screen for display.
[0032] Preferably, the step of filtering out the third ranking data according to the preset filtering rules includes:
[0033] Get the name of each basic data source from the basic statistical data;
[0034] Identify the name of each basic data source from the second category indicator data;
[0035] According to the name of each basic data source, the third ranking data corresponding to each basic data source name is filtered out from the second classification indicator data.
[0036] Preferably, the statistical data processing method further comprises:
[0037] After obtaining the second classification indicator data, organize the second classification indicator data into a SQL script;
[0038] Calculate the ranking of the specified basic data source name obtained from the client through the SQL script;
[0039] The ranking of the specified basic data source name is fed back to the client.
[0040] In addition, to achieve the above-mentioned purpose, the present invention further provides an electronic device, which includes: a memory and a processor, wherein the memory includes a statistical data processing program, and when the statistical data processing program is executed by the processor, the following steps are implemented:
[0041] Get basic statistics to be processed;
[0042] Obtaining category keywords in the basic statistical data by a keyword recognition method as a classification basis, classifying the basic statistical data according to the classification basis, and obtaining first classification data;
[0043] The first classification data and the pre-acquired first classification reference data are processed by a pre-constructed index calculation model to obtain second classification index data;
[0044] Sort the second category indicator data by time dimension and indicator type;
[0045] From the sorted second classification indicator data, the third ranking data is filtered out according to the preset filtering rules.
[0046] In addition, to achieve the above-mentioned purpose, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a statistical data processing program, and when the statistical data processing program is executed by a processor, any step in the statistical data processing method described above is implemented.
[0047] The statistical data processing method, device and computer-readable storage medium proposed in the present invention classify basic statistical data according to categories to obtain first classified data, and use a pre-built indicator calculation model to calculate indicators for the first classified data and pre-acquired first classified reference data, thereby unifying the indicator standards of the statistical data of the same category; by sorting the second indicator data, statistical data of a larger area can be obtained, and the ranking of the indicator data of each object to be counted in the larger area can be understood; by screening the ranking data, the ranking of each statistical object in the area can be understood; the entire process does not require manual participation, reduces manual workload, and is not prone to errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A schematic diagram of an application environment of a preferred embodiment of the statistical data processing method of the present invention;
[0049] Figure 2 for Figure 1 Module diagram of a preferred embodiment of the statistical data processing program;
[0050] Figure 3 Flow chart of a preferred embodiment of the statistical data processing method of the present invention.
[0051] 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
[0052] 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.
[0053] The present invention provides a statistical data processing method, which is applied to an electronic device 1. Figure 1 FIG. 1 is a schematic diagram of an application environment of a preferred embodiment of the statistical data processing method of the present invention.
[0054] In this embodiment, the electronic device 1 may be a terminal device with computing functions, such as a server, a smart phone, a tablet computer, a portable computer, or a desktop computer.
[0055] The electronic device 1 includes a processor 12 , a memory 11 , a network interface 13 and a communication bus 14 .
[0056] The memory 11 includes at least one type of readable storage medium. The at least one type of readable storage medium may be a non-volatile storage medium such as a flash memory, a hard disk, a multimedia card, a card-type memory 11, etc. In some embodiments, the readable storage medium may be an internal storage unit of the electronic device 1, such as a hard disk of the electronic device 1. In other embodiments, the readable storage medium may also be an external memory 11 of the electronic device 1, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device 1.
[0057] In this embodiment, the readable storage medium of the memory 11 is generally used to store the statistical data processing program 10, the related table template library, etc. installed in the electronic device 1. The memory 11 can also be used to temporarily store data that has been output or is to be output.
[0058] In some embodiments, the processor 12 may be a central processing unit (CPU), a microprocessor or other data processing chip, and is used to run program codes stored in the memory 11 or process data, such as executing the statistical data processing program 10.
[0059] The network interface 13 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0060] The communication bus 14 is used to realize the connection and communication between the above components.
[0061] Figure 1 The electronic device 1 is shown only with components 11 - 14 , but it should be understood that implementation of all of the components shown is not required, and more or fewer components may alternatively be implemented.
[0062] Optionally, the electronic device 1 may also include a camera device, which may be a part of the electronic device 1 or may be independent of the electronic device 1. In some embodiments, the electronic device 1 is a terminal device with a camera, such as a smart phone, a tablet computer, a portable computer, etc., and the camera device is the camera of the electronic device 1. In other embodiments, the electronic device 1 may be a server, and the camera device is independent of the electronic device 1 and is connected to the electronic device 1 through a wired or wireless network. For example, the camera device is installed in a specific place, such as an office place or a monitoring area, and takes real-time photos of the target entering the specific place to obtain real-time images, and transmits the captured real-time images to the processor 12 through the network.
[0063] Optionally, the electronic device 1 may further include a user interface, which may include an input unit such as a keyboard, a voice input device such as a microphone and other devices with voice recognition function, a voice output device such as a speaker, headphones, etc. Optionally, the user interface may also include a standard wired interface or a wireless interface.
[0064] Optionally, the electronic device 1 may further include a display, which may also be referred to as a display screen or a display unit. In some embodiments, it may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an organic light-emitting diode (OLED) touch device. The display is used to display information processed in the electronic device 1 and to display a visual user interface.
[0065] Optionally, the electronic device 1 further includes a touch sensor. The area provided by the touch sensor for the user to perform a touch operation is called a touch control area. In addition, the touch sensor here can be a resistive touch sensor, a capacitive touch sensor, etc. Moreover, the touch sensor includes not only a contact touch sensor, but also a proximity touch sensor, etc. In addition, the touch sensor can be a single sensor or a plurality of sensors arranged in an array, for example.
[0066] In addition, the area of the display of the electronic device 1 can be the same as or different from the area of the touch sensor. Optionally, the display and the touch sensor are stacked to form a touch display screen. The device detects touch operations triggered by the user based on the touch display screen.
[0067] Optionally, the electronic device 1 may further include a radio frequency (RF) circuit, a sensor, an audio circuit, etc., which will not be described in detail here.
[0068] exist Figure 1 In the device embodiment shown, the memory 11 as a computer storage medium may include an operating system and a statistical data processing program 10; when the processor 12 executes the statistical data processing program 10 stored in the memory 11, the following steps are implemented:
[0069] Get basic statistics to be processed;
[0070] Obtaining category keywords in basic statistical data by keyword recognition as classification basis, classifying the basic statistical data according to the classification basis, and obtaining first classification data;
[0071] The first classification data and the pre-acquired first classification reference data are calculated and processed by a pre-constructed index calculation model to obtain second classification index data;
[0072] Sort the second category indicator data by time dimension and indicator type;
[0073] From the sorted second classification indicator data, the third ranking data is filtered out according to the preset filtering rules.
[0074] In order to facilitate the index calculation processing of the first classification data and the pre-acquired first classification reference data, the first classification data and the pre-acquired first classification reference data are calculated together through a pre-built index calculation model, and the step of obtaining the second classification index data includes:
[0075] Merging the first classification data with the pre-acquired first classification reference data to obtain first merged data;
[0076] Preprocessing the first merged data to obtain first preprocessed data, wherein the preprocessing includes: dirty data processing, data merging and splitting;
[0077] Organize the first preprocessed data into an executable hive script;
[0078] The indicator calculation model built in advance is used to calculate the indicators of the data in the hive script, and the calculation results are used to generate an indicator data table to obtain the second classification indicator data.
[0079] By organizing the first classification data and the first classification reference data into an executable hive script, the indicator calculation model can quickly obtain the required data when performing indicator calculation.
[0080] In order to eliminate the interference of invalid data on the indicator calculation, the steps of arranging the first preprocessed data into an executable hive script include:
[0081] Screening the first preprocessed data to remove unusable data, wherein the unusable data includes single data with incomplete basic information and single data with missing fields for obtaining the association relationship of the indicator calculation formula;
[0082] Obtaining a related table from a pre-stored related table template according to an indicator calculation formula, loading the screened first pre-processed data into the related table accordingly, and obtaining a related table with data;
[0083] Sort out the relationships between related tables with data and organize them into executable hive scripts.
[0084] In order to facilitate the real-time acquisition of the first classification data and the first classification reference data and to make the index calculation faster, the first classification data and the pre-acquired first classification reference data are calculated and processed together through a pre-built index calculation model. The step of acquiring the second classification index data includes:
[0085] The first classification data is exchanged to the big data platform through the real-time data interface, and the first classification data and the first classification reference data pre-acquired from the Internet database in the big data platform are calculated and processed through the index calculation model preset in the big data platform to obtain the second classification index data;
[0086] Among them, the big data platform includes data sources, indicator calculation models and data output ports;
[0087] The data source includes a real-time data interface for acquiring first classification data in real time, an Internet data interface for acquiring first classification reference data, and an Internet database for storing first classification reference data;
[0088] The data output port is used to output the acquired second classification index data.
[0089] The big data platform can provide sufficient computing resources for indicator calculation.
[0090] In order to understand the ranking of the statistical objects in three different time dimensions of year, month and day, the steps of sorting the second classification indicator data include:
[0091] Obtain three sorted tables, namely annual table, monthly table and daily table. Each table includes the name of each indicator and the name of each data source.
[0092] Load the second classification indicator data into the sorting table respectively;
[0093] Sort the second classification indicator data in each sorting table in descending or ascending order.
[0094] In order to facilitate the ranking display of each object participating in the statistics in this area, the processor 12 further implements the following steps when executing the statistical data processing program 10 stored in the memory 11:
[0095] After the third ranking data is filtered out according to the preset filtering rules, the third ranking data is sent to the display screen for display.
[0096] In order to facilitate the selection of the ranking of the object to be counted from the second classification indicator data, the step of selecting the third ranking data according to the preset selection rules includes:
[0097] Get the name of each basic data source from the basic statistical data;
[0098] Identify the name of each basic data source from the second category indicator data;
[0099] According to the name of each basic data source, the third ranking data corresponding to each basic data source name is filtered out from the second classification indicator data.
[0100] In order to facilitate searching for the ranking data of a person to be counted through the client, the processor 12 further implements the following steps when executing the statistical data processing program 10 stored in the memory 11:
[0101] After obtaining the second classification indicator data, organize the second classification indicator data into a SQL script;
[0102] Calculate the ranking of the specified basic data source name obtained from the client through the SQL script;
[0103] The ranking of the specified basic data source name is fed back to the client.
[0104] The module referred to in the present invention refers to a series of computer program instruction segments that can perform specific functions. Figure 2 As shown, Figure 1The program module diagram of the preferred embodiment of the statistical data processing program 10 is shown in FIG. The statistical data processing program 10 can be divided into: an acquisition module 110 , a data classification module 120 , an index calculation module 130 , an index data sorting module 140 , and an index data screening module 150 .
[0105] The functions or operation steps implemented by the modules 110-150 are similar to those described above and will not be described in detail here. For example, for example:
[0106] The acquisition module 110 is used to acquire basic statistical data to be processed.
[0107] The data classification module 120 is used to classify the basic statistical data and obtain first classified data.
[0108] The index calculation module 130 is used to perform index calculation on the first classification data and the pre-acquired first classification reference data to obtain second classification index data.
[0109] The indicator data sorting module 140 is used to sort the second classification indicator data according to the time dimension and the indicator type.
[0110] The indicator data screening module 150 is used to screen out the third ranking data from the sorted second classification indicator data according to a preset screening rule.
[0111] In the specific application process, the basic statistical data can be work performance statistical data, competition results statistical data of a large area, electricity consumption statistical data, medical statistical data of a certain disease, etc. The following only takes work performance statistical data as an example to illustrate the above modules accordingly.
[0112] Specifically, the acquisition module 110 is used to obtain the work performance data of the company's internal employees; the data classification module 120 can also be called a work performance classification module, which is used to classify the work performance data according to the employees' positions, and obtain the work performance data of employees in the same position; the indicator calculation module 130 is used to calculate and process the work performance data of employees in the same position together with the pre-acquired work performance data of employees in the same position across the country, and obtain various indicator data of employees in the same position; the indicator data sorting module 140 is used to sort the various indicator data of employees in the same position according to the time dimension and indicator type; the indicator data screening module 150 is used to screen out the various indicator data of the company's internal employees from the sorted various indicator data of employees in the same position.
[0113] In addition, the present invention also provides a statistical data processing method. Figure 3 FIG. 1 is a flow chart of a preferred embodiment of the statistical data processing method of the present invention. The method can be executed by a device, and the device can be implemented by software and / or hardware.
[0114] In this embodiment, the statistical data processing method includes: step S10 to step S50.
[0115] Step S10, obtaining basic statistical data to be processed.
[0116] Among them, basic statistical data can be work performance statistics, competition results statistics for a large region, electricity consumption statistics, medical statistics for a certain disease, etc.
[0117] Specifically, basic statistical data can be input into the basic statistical data storage system by manual entry or scanning, wherein the basic statistical data at least includes: the name of each data source, the category to which it belongs, and each data used for calculation, which is specifically determined by the type of basic statistical data.
[0118] For example, work performance statistics must at least include each employee's name, position, and data used to calculate work indicators. In addition, it can also include the employee's contact information, age, years of work experience, etc., which can be determined based on actual statistical needs.
[0119] For example, competition results statistics must at least include: the name of each participant, the type of competition, and the data used to calculate competition indicators. In addition, it can also include: the participant's contact information, weight, age, best results, etc., which can be determined based on actual statistical needs.
[0120] For example, electricity consumption statistics must at least include the name of the household head, the type of residence or the neighborhood to which the household belongs, and other information used as a basis for classification when the data is counted, as well as various data used to calculate electricity consumption indicators.
[0121] For example, the medical statistics of a certain disease must at least include: the name of each disease, the disease type to which each disease belongs, and the data used to calculate the disease detection indicators.
[0122] In order to better understand the present invention, the above are examples of the types of statistical data that the present invention can be used to process. Of course, the statistical data processing method provided by the present invention can also be applied to the processing of other statistical data.
[0123] Step S20, obtaining category keywords in basic statistical data by keyword recognition method as classification basis, classifying the basic statistical data according to the classification basis, and obtaining first classification data.
[0124] Specifically, by using the keyword recognition method, the category keywords are first identified from the basic statistical data. For example, in the work performance statistical data in the above example, the position of each employee is used as the category keyword. The processor collects the names of various positions of the company in advance and stores them, and then identifies the position name from the performance data of each employee as the classification basis, and classifies the basic work performance statistical data to obtain the first classification data, that is, the performance data of employees in the same position.
[0125] For example, for the position of insurance operator, all performance data belonging to insurance operators are selected from the work performance data of employees obtained, classified into one category of data, and saved. Similarly, data for other positions are selected from the work performance data of internal employees of the company and classified.
[0126] Step S30 , the first classification data and the pre-acquired first classification reference data are processed by a pre-built index calculation model to obtain second classification index data.
[0127] The processor pre-acquires first classification reference data, wherein the first classification reference data is data belonging to the same category as the first classification data in a large range. For example, in the work performance statistical data exemplified above, the first classification data is the performance data of insurance operators, then the first classification reference data may be the performance data of insurance operators nationwide.
[0128] The processor calculates and processes the first classification data and the first classification reference data together through a pre-built indicator calculation model to obtain second classification indicator data.
[0129] Among them, the indicator calculation model can be constructed according to the indicators that need to be counted for each type of data. Taking the above-mentioned work performance statistical data as an example, the type of indicator calculation model corresponds to the type of data that needs to be counted for each position. For example, for the position of insurance operator mentioned above, the types of indicator calculation models may include: overall loss estimation absolute deviation rate calculation model, claim settlement rate calculation model, case filing and settlement rate calculation model, case report volume calculation model, case filing volume calculation model, pending volume calculation model, value contribution calculation model, and recovery value contribution calculation model.
[0130] The obtained indicator data, that is, the data obtained after calculation through various indicator models, are as follows:
[0131] The indicator data obtained through the compensation ratio calculation model is the compensation ratio of employees of all institutions in the country over a period of time;
[0132] The indicator data obtained through the case filing and closure rate calculation model is the case filing and closure rate of employees in all institutions across the country over a period of time;
[0133] The indicator data obtained through the case reporting volume calculation model is the number of cases reported by employees of all institutions across the country over a period of time;
[0134] The indicator data obtained through the caseload calculation model is the number of cases filed by employees of all institutions across the country over a period of time;
[0135] The indicator data obtained through the pending quantity calculation model is the pending quantity of employees in all institutions across the country over a period of time;
[0136] The indicator data obtained through the value contribution calculation model is the value contribution of employees of all institutions across the country over a period of time;
[0137] The indicator data obtained through the recovery value contribution calculation model is the recovery value contribution of employees of all institutions across the country over a period of time.
[0138] The various indicator data listed above are obtained through calculation of the corresponding indicator model. The specific process is as follows:
[0139] The basic data, i.e., the work performance data of employees in the same position and the pre-acquired work performance data of employees in the same position across the country are imported into the indicator calculation model, and the indicators are calculated using the corresponding indicator calculation formulas in the indicator calculation model to obtain various indicator data for each employee in the same position. The indicator models listed above are examples of this technical solution, and which indicator model to use can be determined based on the actual requirements of the job position and the company.
[0140] Take the "payout ratio calculation model" as an example to illustrate:
[0141] Claims ratio = (claims expenditure ÷ premium income) × 100%. The basic data, that is, the work performance data of employees in the same position and the pre-acquired work performance data of employees in the same position across the country are imported into the claims ratio calculation model. The basic data includes the data required for the above formula calculation, that is, the claims expenditure data and premium income data. After calculation using the above calculation formula, the claims ratio of each employee in the same position, that is, the indicator data, is obtained.
[0142] Specifically, the first classification data and the pre-acquired first classification reference data are calculated and processed by a pre-built index calculation model to obtain the second classification index data, including:
[0143] Merging the first classification data with the pre-acquired first classification reference data to obtain first merged data;
[0144] Preprocessing the first merged data to obtain first preprocessed data, wherein the preprocessing includes: dirty data processing, data merging and splitting;
[0145] Organize the first preprocessed data into an executable hive script;
[0146] The indicator calculation model built in advance is used to calculate the indicators of the data in the hive script, and the calculation results are used to generate an indicator data table to obtain the second classification indicator data.
[0147] The step of arranging the first pre-processed data into an executable hive script includes:
[0148] Screening the first preprocessed data to remove unusable data, wherein the unusable data includes single data with incomplete basic information and single data with missing fields for obtaining the association relationship of the indicator calculation formula;
[0149] Obtaining a related table from a pre-stored related table template according to an indicator calculation formula, loading the screened first pre-processed data into the related table accordingly, and obtaining a related table with data;
[0150] Sort out the relationships between related tables with data and organize them into executable hive scripts.
[0151] Among them, the relevant table is obtained from the pre-stored relevant table template according to the indicator calculation formula. The specific method is: clarify the indicator calculation formula, clarify the relevant table involved in each component of the indicator calculation formula. For example, if the indicator calculation formula contains a numerator and a denominator, then it is necessary to clarify the relevant table involved in the numerator and the denominator.
[0152] As a preferred embodiment of the present invention, the first classification data and the pre-acquired first classification reference data are calculated and processed by a pre-built index calculation model, and the step of obtaining the second classification index data includes:
[0153] The first classification data is exchanged to the big data platform through the real-time data interface, and the first classification data and the first classification reference data pre-acquired from the Internet database in the big data platform are calculated and processed through the index calculation model preset in the big data platform to obtain the second classification index data;
[0154] Among them, the big data platform includes data sources, indicator calculation models and data output ports;
[0155] The data source includes a real-time data interface for acquiring first classification data in real time, an Internet data interface for acquiring first classification reference data, and an Internet database for storing first classification reference data;
[0156] The data output port is used to output the acquired second classification index data.
[0157] The big data platform can provide sufficient computing resources for indicator calculation.
[0158] Step S40, sorting the second classification indicator data according to the time dimension and indicator type.
[0159] Specifically, the time dimensions are year, month and day.
[0160] The steps of sorting the second classification indicator data include:
[0161] Obtain three sorted tables, namely annual table, monthly table and daily table. Each table includes the name of each indicator and the name of each data source.
[0162] Load the second classification indicator data into the sorting table respectively;
[0163] Sort the second classification indicator data in each sorting table in descending or ascending order.
[0164] For example, in work performance statistics, the name of each data source is the name of the employee corresponding to each work performance data.
[0165] In the competition results statistics, the name of each data source is the name of the participant corresponding to each competition data.
[0166] In the electricity consumption statistics, the name of each data source is the name of the head of each household.
[0167] In the medical statistical data of diseases, the name of each data source is the name of each disease.
[0168] Step S50, filtering out third ranking data from the sorted second classification index data according to a preset filtering rule.
[0169] Specifically, the processor obtains the sorted second classification indicator data from the year, month and day respectively, and filters out the third ranking data according to the preset filtering rules.
[0170] The steps of filtering out the third ranking data according to the preset filtering rules include:
[0171] Get the name of each basic data source from the basic statistical data;
[0172] Identify the name of each basic data source from the second category indicator data;
[0173] According to the name of each basic data source, the third ranking data corresponding to each basic data source name is filtered out from the second classification indicator data.
[0174] As a preferred embodiment of the present invention, after the third ranking data is screened out according to a preset screening rule, the third ranking data is sent to a display screen for display.
[0175] As a preferred embodiment of the present invention, the statistical data processing method further includes:
[0176] After obtaining the second classification indicator data, organize the second classification indicator data into a SQL script;
[0177] Calculate the ranking of the specified basic data source name obtained from the client through the SQL script;
[0178] The ranking of the specified basic data source name is fed back to the client.
[0179] In addition, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a statistical data processing program, and when the statistical data processing program is executed by a processor, the following operations are implemented:
[0180] Get basic statistics to be processed;
[0181] Obtaining category keywords in the basic statistical data by a keyword recognition method as a classification basis, classifying the basic statistical data according to the classification basis, and obtaining first classification data;
[0182] The first classification data and the pre-acquired first classification reference data are processed by a pre-constructed index calculation model to obtain second classification index data;
[0183] Sort the second category indicator data by time dimension and indicator type;
[0184] From the sorted second classification indicator data, the third ranking data is filtered out according to the preset filtering rules.
[0185] Preferably, the first classification data and the pre-acquired first classification reference data are calculated and processed by a pre-built index calculation model to obtain the second classification index data, including:
[0186] Merging the first classification data with the pre-acquired first classification reference data to obtain first merged data;
[0187] Preprocessing the first merged data to obtain first preprocessed data, wherein the preprocessing includes: dirty data processing, data merging and splitting;
[0188] Organize the first preprocessed data into an executable hive script;
[0189] The indicator calculation model built in advance is used to calculate the indicators of the data in the hive script, and the calculation results are used to generate an indicator data table to obtain the second classification indicator data.
[0190] Preferably, the step of arranging the first preprocessed data into an executable hive script includes:
[0191] Screening the first preprocessed data to remove unusable data, wherein the unusable data includes single data with incomplete basic information and single data with missing fields for obtaining the association relationship of the indicator calculation formula;
[0192] Obtaining a related table from a pre-stored related table template according to an indicator calculation formula, loading the screened first pre-processed data into the related table accordingly, and obtaining a related table with data;
[0193] Sort out the relationships between related tables with data and organize them into executable hive scripts.
[0194] Preferably, the first classification data and the pre-acquired first classification reference data are calculated and processed by a pre-built index calculation model to obtain the second classification index data, including:
[0195] The first classification data is exchanged to the big data platform through the real-time data interface, and the first classification data and the first classification reference data pre-acquired from the Internet database in the big data platform are calculated and processed through the index calculation model preset in the big data platform to obtain the second classification index data;
[0196] Among them, the big data platform includes data sources, indicator calculation models and data output ports;
[0197] The data source includes a real-time data interface for acquiring first classification data in real time, an Internet data interface for acquiring first classification reference data, and an Internet database for storing first classification reference data;
[0198] The data output port is used to output the acquired second classification index data.
[0199] Preferably, the step of sorting the second classification indicator data comprises:
[0200] Obtain three sorted tables, namely annual table, monthly table and daily table. Each table includes the name of each indicator and the name of each data source.
[0201] Load the second classification indicator data into the sorting table respectively;
[0202] Sort the second classification indicator data in each sorting table in descending or ascending order.
[0203] Preferably, when the statistical data processing program is executed by the processor, the following operations are also implemented:
[0204] After the third ranking data is filtered out according to the preset filtering rules, the third ranking data is sent to the display screen for display.
[0205] Preferably, the step of filtering out the third ranking data according to the preset filtering rules includes:
[0206] Get the name of each basic data source from the basic statistical data;
[0207] Identify the name of each basic data source from the second category indicator data;
[0208] According to the name of each basic data source, the third ranking data corresponding to each basic data source name is filtered out from the second classification indicator data.
[0209] Preferably, when the statistical data processing program is executed by the processor, the following operations are also implemented:
[0210] After obtaining the second classification indicator data, organize the second classification indicator data into a SQL script;
[0211] Calculate the ranking of the specified basic data source name obtained from the client through the SQL script;
[0212] The ranking of the specified basic data source name is fed back to the client.
[0213] The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the specific implementation of the statistical data processing method and the electronic device described above, and will not be described in detail herein.
[0214] 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 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 "comprises a ..." does not exclude the existence of other identical elements in the process, device, article or method including the element.
[0215] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. Through the description of the above implementation modes, those skilled in the art can clearly understand that the above 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 mode. Based on such an understanding, the technical solution of the present invention, in essence, 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, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0216] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made 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 statistical data processing method, applied to an electronic device, characterized in that: The method comprises: Get basic statistics to be processed; Obtaining category keywords in the basic statistical data by a keyword recognition method as a classification basis, classifying the basic statistical data according to the classification basis, and obtaining first classification data; The first classification data and the pre-acquired first classification reference data are calculated and processed together through a pre-constructed index calculation model to obtain second classification index data; wherein the step of obtaining the second classification index data includes: merging the first classification data with the pre-acquired first classification reference data to obtain first merged data; wherein the first classification reference data is data within a large range that belongs to the same category as the first classification data; Preprocessing the first merged data to obtain first preprocessed data, wherein the preprocessing includes: dirty data processing, data merging and splitting; Organize the first preprocessed data into an executable hive script; The indicator calculation model built in advance is used to calculate the indicators of the data in the hive script, and the calculation results are used to generate an indicator data table to obtain the second classification indicator data; Sort the second category indicator data by time dimension and indicator type; From the sorted second classification index data, third ranking data is screened out according to a preset screening rule; wherein the step of screening out the third ranking data according to the preset screening rule comprises: Get the name of each basic data source from the basic statistical data; Identify the name of each basic data source from the second category indicator data; According to the name of each basic data source, the third ranking data corresponding to each basic data source name is filtered out from the second classification indicator data.
2. The statistical data processing method according to claim 1, characterized in that: The steps of arranging the first preprocessed data into an executable hive script include: Screening the first preprocessed data to remove unusable data, wherein the unusable data includes single data with incomplete basic information and single data with missing fields for obtaining the association relationship of the indicator calculation formula; Obtaining a related table from a pre-stored related table template according to an indicator calculation formula, loading the screened first pre-processed data into the related table accordingly, and obtaining a related table with data; Sort out the relationships between related tables with data and organize them into executable hive scripts.
3. The statistical data processing method according to claim 1, characterized in that: The step of calculating and processing the first classification data together with the pre-acquired first classification reference data through a pre-built index calculation model to obtain the second classification index data includes: The first classification data is exchanged to the big data platform through a real-time data interface, and the first classification data and the first classification reference data pre-acquired from the Internet database in the big data platform are calculated and processed by an indicator calculation model preset in the big data platform to obtain second classification indicator data; Wherein, the big data platform includes a data source, an indicator calculation model and a data output port; The data source includes a real-time data interface for acquiring first classification data in real time, an Internet data interface for acquiring first classification reference data, and an Internet database for storing first classification reference data; The data output port is used to output the acquired second classification index data.
4. The statistical data processing method according to claim 1, characterized in that: The steps of sorting the second classification indicator data include: Obtain three sorted tables, namely annual table, monthly table and daily table. Each table includes the name of each indicator and the name of each data source. Load the second classification indicator data into the sorting table respectively; Sort the second classification indicator data in each sorting table in descending or ascending order.
5. The statistical data processing method according to claim 1, characterized in that: The statistical data processing method further comprises: After the third ranking data is screened out according to the preset screening rule, the third ranking data is sent to the display screen for display.
6. The statistical data processing method according to claim 1, characterized in that: The statistical data processing method further comprises: After obtaining the second classification indicator data, organize the second classification indicator data into a SQL script; Calculate the ranking of the specified basic data source name obtained from the client through the SQL script; The ranking of the specified basic data source name is fed back to the client.
7. An electronic device, characterized in that: The electronic device comprises: a memory and a processor, wherein the memory comprises a statistical data processing program, and when the statistical data processing program is executed by the processor, the following steps are implemented: Get basic statistics to be processed; Obtaining category keywords in the basic statistical data by a keyword recognition method as a classification basis, classifying the basic statistical data according to the classification basis, and obtaining first classification data; The first classification data and the pre-acquired first classification reference data are calculated and processed together through a pre-constructed index calculation model to obtain second classification index data; wherein the step of obtaining the second classification index data includes: merging the first classification data with the pre-acquired first classification reference data to obtain first merged data; wherein the first classification reference data is data within a large range that belongs to the same category as the first classification data; Preprocessing the first merged data to obtain first preprocessed data, wherein the preprocessing includes: dirty data processing, data merging and splitting; Organize the first preprocessed data into an executable hive script; The indicator calculation model built in advance is used to calculate the indicators of the data in the hive script, and the calculation results are used to generate an indicator data table to obtain the second classification indicator data; Sort the second category indicator data by time dimension and indicator type; From the sorted second classification index data, third ranking data is screened out according to a preset screening rule; wherein the step of screening out the third ranking data according to the preset screening rule comprises: Get the name of each basic data source from the basic statistical data; Identify the name of each basic data source from the second category indicator data; According to the name of each basic data source, the third ranking data corresponding to each basic data source name is filtered out from the second classification indicator data.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a statistical data processing program, and when the statistical data processing program is executed by a processor, the steps of the statistical data processing method according to any one of claims 1 to 6 are implemented.
