A method and system for collecting and analyzing enterprise numerical data
By performing sparse operations and offset merging on enterprise numerical data, the problems of large enterprise numerical data storage space and slow data trend extraction speed are solved, achieving the effect of saving storage space and quickly obtaining data trends.
Patent Information
- Application Number
- CN202410179312.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-18
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-02-18
AI Technical Summary
The existing storage method of enterprise numerical data results in large storage space and is not conducive to analysis, and it is difficult to quickly extract data trends with existing technology, affecting user experience.
By performing sparse operations on massive enterprise numerical data, using the first three quantities as baseline values for data compression, storing the sparse data, and obtaining data trend curves through offset merging, rapid storage and extraction of data trends are achieved.
It effectively reduces the storage space occupied, improves the efficiency of data storage, and improves the user experience by quickly obtaining data trends.
Smart Images

Figure CN118012348B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and specifically relates to a method and system for collecting and analyzing enterprise numerical data. Background Art
[0002] Archiving of enterprise data is a routine process of the enterprise. For example, the enterprise's sales data, financial data, and other data all have numerical requirements. With the popularization of computer technology, the storage of enterprise data has gradually shifted from the original paper storage to electronic storage. However, the existing storage of enterprise data is only the direct storage of enterprise numerical data, which takes up a lot of space and is not conducive to analysis. Summary of the invention
[0003] The present application provides a method and system for collecting and analyzing enterprise numerical data, which can provide traversal analysis of enterprise numerical data and reduce storage space.
[0004] In a first aspect, the present application provides a method for collecting and analyzing enterprise numerical data, the method comprising the following steps:
[0005] The electronic device obtains a large amount of enterprise numerical data, and counts the same numerical data in the large amount of enterprise numerical data to obtain the number of each same numerical data to obtain n numbers; the n numbers are arranged in descending order to obtain a first sequence, and the first three numbers in the first sequence are extracted. If the three numbers are all greater than a number threshold, a sparse operation is performed on the large amount of enterprise numerical data based on the first three numbers to obtain sparse data, and the sparse single data includes: one reference value among the three reference values and an offset corresponding to the one reference value, and the sparse data is stored;
[0006] The electronic device receives a data extraction command sent by an external device, the data extraction command comprising: extracting single enterprise numerical data, extracting corresponding storage data according to the memory of the data extraction command, obtaining one reference data and an offset in the storage data among three reference data, calculating the single enterprise numerical data according to the one reference data and the offset, and sending the single enterprise numerical data to the external device;
[0007] The electronic device receives a trend extraction command sent by an external device, which includes: extracting a trend curve of sparse data, obtaining each offset of each data in the sparse data, entering the offsets of three reference values into three coordinate systems respectively to obtain three sub-curves, and merging the three sub-curves according to the values of three reference data to obtain a trend curve.
[0008] In a second aspect, a system for collecting and analyzing enterprise numerical data is provided, the system comprising:
[0009] An acquisition unit, used to acquire massive enterprise numerical data;
[0010] A processing unit is used to count the same numerical data in the massive enterprise numerical data to obtain the number of each identical numerical data to obtain n numbers; arrange the n numbers in descending order to obtain a first sequence, extract the first three numbers in the first sequence, and if the three numbers are all greater than the number threshold, perform a sparse operation on the massive enterprise numerical data based on the first three numbers to obtain sparse data, wherein the sparse single data includes: one reference value among the three reference values and an offset corresponding to the one reference value, and store the sparse data;
[0011] The communication unit is used to receive a data extraction command sent by an external device, the data extraction command comprising: extracting single enterprise numerical data;
[0012] The processing unit is further used to extract the corresponding storage data according to the memory of the data extraction command, obtain one reference data among the three reference data and an offset in the storage data, calculate the single enterprise numerical data according to the one reference data and the offset, and send the single enterprise numerical data to the external device;
[0013] The communication unit is further used to receive a trend extraction command sent by an external device, the trend extraction command comprising: extracting a trend curve of the sparse data;
[0014] The processing unit is also used to obtain each offset of each data in the sparse data, enter the offsets of the three reference values into the three coordinate systems respectively to obtain three sub-curves, and merge the three sub-curves according to the values of the three reference data to obtain a trend curve.
[0015] In a third aspect, the present application provides a computer storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute some or all of the steps described in the first aspect of the present application.
[0016] The embodiments of the present application have the following beneficial effects:
[0017] The technical solution provided by the present application is that an electronic device obtains a large amount of enterprise numerical data, counts the same numerical data in the massive enterprise numerical data to obtain the number of each identical numerical data to obtain n numbers; arranges the n numbers in descending order to obtain a first sequence, extracts the first 3 numbers in the first sequence, and if the 3 numbers are all greater than the number threshold, performs a sparse operation on the massive enterprise numerical data based on the first 3 numbers to obtain sparse data, and the sparse single data includes: 1 reference value among 3 reference values and the offset corresponding to the 1 reference value, and stores the sparse data; the electronic device receives a data extraction command sent by an external device, and the data extraction command The command includes: extracting single enterprise numerical data, extracting corresponding storage data according to the memory of the data extraction command, obtaining one reference data and an offset in the three reference data in the storage data, calculating single enterprise numerical data according to one reference data and the offset, and sending the single enterprise numerical data to an external device; the electronic device receives a trend extraction command sent by an external device, and the trend extraction command includes: extracting a trend curve of the sparse data, obtaining each offset of each data in the sparse data, entering the offsets of the three reference values into three coordinate systems to obtain three sub-curves, and merging the three sub-curves according to the values of the three reference data to obtain a trend curve. In this way, the data can be effectively sparsely stored to save storage space, and the data trend can be quickly obtained by merging the sub-curves of the offset, which is convenient for users to count trends and improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0020] Figure 2 It is a flow chart of a method for collecting and analyzing enterprise numerical data provided by an embodiment of the present application;
[0021] Figure 3 It is a structural diagram of a system for collecting and analyzing enterprise numerical data provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, systems, products or devices.
[0024] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0025] The following is an introduction to the relevant terms involved in this application.
[0026] Enterprise data: all information and materials related to enterprise operations, including company profile, product information, operating data, research results, technical drawings, etc.
[0027] Numerical data only contains numerical values, such as 30020, 55748, etc., and is generally mainly composed of corporate financial data, sales data, and financial data.
[0028] The following describes the system architecture of the server involved in the embodiments of the present application.
[0029] The present application also provides an electronic device 10, such as Figure 1As shown, it includes at least one processor 11 and a memory 12, and may also include a communications interface 14 and a bus 13. The processor 11, the memory 12 and the communications interface 14 may communicate with each other through the bus 13. The communications interface 14 may transmit information. The processor 11 may call the logic instructions in the memory 12 to execute the method in the above embodiment.
[0030] In addition, the logic instructions in the memory 12 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0031] The memory 12 is a computer-readable storage medium that can be configured to store software programs, computer executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 11 executes functional applications and data processing by running the software programs, instructions or modules stored in the memory 12, that is, implementing the methods in the above embodiments.
[0032] The memory 12 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the electronic device 10, etc. In addition, the memory 12 may include a high-speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, may also be a transient storage medium.
[0033] It is understandable that the electronic device in this embodiment can be understood as a server, for example, the server includes a cloud server or an edge server, and no unique limitation is made here. Of course, in an optional technical scenario, the above electronic device can also be a computer device, a tablet computer, and other smart devices. This application does not limit the specific form of the above electronic device, as long as the above electronic device can process financial big data.
[0034] The intelligent archiving in the specific implementation manner of the present application is mainly aimed at electronic data, that is, electronic type of enterprise numerical data, and does not involve paper or other forms of enterprise numerical data.
[0035] The numerical data of an enterprise has certain similarities and volatility. For example, financial data, accounting data, and sales data all have the above two properties. The existing storage method of enterprise numerical data is direct storage, which results in a large storage space required for storage and increases the storage cost. In addition, the numerical data of an enterprise all have requirements for volatility statistics. Taking the stock price of a listed company as an example, it has certain volatility, and this volatility may be more valuable to the enterprise or other people than the numerical data itself. However, the volatility of the existing numerical data needs to be calculated through the stored numerical values, and the response speed of extracting the volatility value is slow.
[0036] See also Figure 2 , the application also provides a method for collecting and analyzing enterprise numerical data, Figure 2 A flow chart of a method for collecting and analyzing enterprise numerical data provided in this application. The method can be used in Figure 1 The electronic device shown in the figure is executed, and the electronic device can be a computer, a server or other intelligent device. The method is as follows Figure 2 As shown, the following steps are included:
[0037] Step S201, the electronic device obtains a large amount of enterprise numerical data, counts the same numerical data in the large amount of enterprise numerical data to obtain the number of each same numerical data to obtain n numbers; arranges the n numbers in descending order to obtain a first sequence, extracts the first three numbers in the first sequence, and if the three numbers are all greater than the number threshold, performs a sparse operation on the large amount of enterprise numerical data based on the first three numbers to obtain sparse data, the sparse single data includes: one reference value among the three reference values and an offset corresponding to the one reference value, and stores the sparse data;
[0038] For example, the above-mentioned counting of the same numerical data in the massive enterprise numerical data to obtain the number of each same numerical data to obtain n numbers may specifically include:
[0039] The massive enterprise data is divided into three statistical intervals. For the maximum enterprise value in each statistical interval, the three maximum enterprise values corresponding to the three statistical intervals are obtained. If the three maximum enterprise values are different, the three maximum enterprise values are determined as three benchmark values.
[0040] Although the above scheme is not very accurate in determining the three benchmark values, statistics show that this method can reflect more than 98% of the situations. Even if it is inconsistent, it can reduce some data storage in subsequent implementations, and this method can reduce the number of comparisons.
[0041] Of course, you can also directly use an interval to count the three maximum number values.
[0042] For example, the sparse data obtained by performing the sparse operation on the massive enterprise numerical data based on the first three quantities may specifically include:
[0043] Performing a sparse operation on each enterprise numerical data in the massive enterprise numerical data to obtain data after obtaining the coefficients, the sparse operation may specifically include: extracting the first enterprise numerical data from the massive enterprise numerical data, performing a subtraction operation on the first enterprise numerical data and three reference values to obtain three difference values, obtaining a first reference value corresponding to the minimum difference value among the three difference values, and calculating the first enterprise numerical data by formula (1) to obtain a first offset of the first reference value;
[0044] Offset = (first enterprise numerical data - first reference value) / first reference value * 100%; Formula (1)
[0045] The first sparse data of the first enterprise numerical data is: a first identifier and a first offset corresponding to the first reference value.
[0046] If the minimum difference among the three differences is 0, a first identifier of the minimum difference is stored; and the data storage amount of the first identifier is less than the data storage amount of the reference value.
[0047] The above method can be implemented by means of identifiers and offsets. There are many data that only store identifiers with relatively small data volumes, and some of them add offsets, but the value of the offset is generally small, so fewer bits can be used to represent it, thereby making the first identifier + the first offset less than the data storage capacity of the reference value. For example, the first sparse data is 16 bits, of which the identifier uses 2 bits (because there are only 3 reference values, so 2 bits are completely sufficient), the sign uses 1 bit (positive or negative), and 13 bits are offsets, so a value only needs 16 bits. For ordinary values, it uses 32 bits to represent it, so it can save storage space.
[0048] Step S202, the electronic device receives a data extraction command sent by an external device, the data extraction command comprising: extracting single enterprise numerical data, extracting corresponding storage data from the memory according to the data extraction command, obtaining one reference data among three reference data and an offset in the storage data, calculating the single enterprise numerical data according to the one reference data and the offset, and sending the single enterprise numerical data to the external device;
[0049] For example, the above calculation of the single enterprise numerical data based on one benchmark data and an offset may specifically include:
[0050] The numerical data of a single enterprise = benchmark data * (1 + offset).
[0051] Step S203, the electronic device receives a trend extraction command sent by an external device, and the trend extraction command includes: extracting a trend curve of the sparse data, obtaining each offset of each data in the sparse data, entering the offsets of three benchmark values into three coordinate systems respectively to obtain three sub-curves, and merging the three sub-curves according to the values of three benchmark data to obtain a trend curve.
[0052] For example, the above-mentioned merging of the three sub-curves according to the values of the three benchmark data to obtain the trend curve may specifically include:
[0053] The feature points corresponding to the three sub-curves are extracted respectively to obtain 3m feature points, the 3m feature points are mapped to the trend curve coordinate system according to the time sequence and size of the feature points, and the adjacent feature points among the 3m feature points are connected with straight lines to obtain the trend curve.
[0054] The technical solution provided by the present application is that an electronic device obtains a large amount of enterprise numerical data, counts the same numerical data in the massive enterprise numerical data to obtain the number of each identical numerical data to obtain n numbers; arranges the n numbers in descending order to obtain a first sequence, extracts the first 3 numbers in the first sequence, and if the 3 numbers are all greater than the number threshold, performs a sparse operation on the massive enterprise numerical data based on the first 3 numbers to obtain sparse data, and the sparse single data includes: 1 reference value among 3 reference values and the offset corresponding to the 1 reference value, and stores the sparse data; the electronic device receives a data extraction command sent by an external device, and the data extraction command The command includes: extracting single enterprise numerical data, extracting corresponding storage data according to the memory of the data extraction command, obtaining one reference data and an offset in the three reference data in the storage data, calculating single enterprise numerical data according to one reference data and the offset, and sending the single enterprise numerical data to an external device; the electronic device receives a trend extraction command sent by an external device, and the trend extraction command includes: extracting a trend curve of the sparse data, obtaining each offset of each data in the sparse data, entering the offsets of the three reference values into three coordinate systems to obtain three sub-curves, and merging the three sub-curves according to the values of the three reference data to obtain a trend curve. In this way, the data can be effectively sparsely stored to save storage space, and the data trend can be quickly obtained by merging the sub-curves of the offset, which is convenient for users to count trends and improve user experience.
[0055] By way of example, the above method may also include: the electronic device obtains uploaded enterprise numerical data corresponding to each uploaded object in the massive enterprise numerical data, obtains each identity corresponding to each uploaded object, extracts each feature vector corresponding to each identity, extracts the key corresponding to each feature vector, and encrypts the uploaded enterprise numerical data corresponding to each feature vector to obtain encrypted data.
[0056] The above method determines the corresponding key by the feature vector corresponding to each identity, thereby encrypting different uploaded enterprise numerical data with different levels of keys, thereby improving data security.
[0057] The above-mentioned acquisition of each identity corresponding to each uploaded object may adopt a common identity recognition method, such as fingerprint recognition, face recognition, etc.
[0058] For example, the above-mentioned extraction of each feature vector corresponding to each identity specifically includes:
[0059] Get the department, group, position and years of service corresponding to each identity, extract the department characteristic value, group characteristic value, position characteristic value and years of service characteristic value, and combine the department characteristic value, group characteristic value, position characteristic value and years of service characteristic value to obtain the characteristic vector corresponding to each identity.
[0060] Let's take a practical example to illustrate. Here we assume that there are 16 departments, represented by 4 bits. The eigenvalue of the R&D department is 0001. The R&D department has 8 groups, assuming it is the second group, and the corresponding eigenvalue is 010. The position is represented by 2 bits, including the department head, department deputy, group leader, and ordinary employee. If it is an ordinary employee, the corresponding eigenvalue is 00. The years of service are represented by intervals, which are 10 years, 5-10 years, 1-5 years, and less than 1 year. If it is 3 years, the corresponding eigenvalue is 10. Then the eigenvector corresponding to this identity is: 0001 010 0010.
[0061] The above keys can be implemented in the form of a key list. For example, all feature vectors correspond to one key, and all combinations are combined to obtain a key list.
[0062] See also Figure 3 , Figure 3 A schematic diagram of the structure of a system for collecting and analyzing enterprise numerical data is provided, the system comprising:
[0063] An acquisition unit 301 is used to acquire massive enterprise numerical data;
[0064] The processing unit 302 is used to count the same numerical data in the massive enterprise numerical data to obtain the number of each same numerical data to obtain n numbers; arrange the n numbers in descending order to obtain a first sequence, extract the first three numbers in the first sequence, and if the three numbers are all greater than the number threshold, perform a sparse operation on the massive enterprise numerical data based on the first three numbers to obtain sparse data, wherein the sparse single data includes: one reference value among the three reference values and an offset corresponding to the one reference value, and store the sparse data;
[0065] The communication unit 303 is used to receive a data extraction command sent by an external device, and the data extraction command includes: extracting single enterprise numerical data;
[0066] The processing unit 302 is further used to extract the corresponding storage data according to the memory of the data extraction command, obtain one reference data among the three reference data and an offset in the storage data, calculate the single enterprise value data according to the one reference data and the offset, and send the single enterprise value data to the external device;
[0067] The communication unit 303 is further used to receive a trend extraction command sent by an external device, the trend extraction command including: extracting a trend curve of the sparse data;
[0068] The processing unit 302 is further used to obtain each offset of each data in the sparse data, enter the offsets of the three reference values into the three coordinate systems respectively to obtain three sub-curves, and merge the three sub-curves according to the values of the three reference data to obtain a trend curve.
[0069] For example,
[0070] The processing unit is specifically used to divide the massive enterprise data into three statistical intervals, and obtain the three maximum enterprise values corresponding to the three statistical intervals for the maximum enterprise value in each statistical interval. If the three maximum enterprise values are different, the three maximum enterprise values are determined as three benchmark values.
[0071] For example,
[0072] The processing unit is specifically used to perform a sparse operation on each enterprise numerical data in the massive enterprise numerical data to obtain coefficient data. The sparse operation may specifically include: extracting the first enterprise numerical data from the massive enterprise numerical data, performing a subtraction operation on the first enterprise numerical data and three reference values to obtain three difference values, obtaining a first reference value corresponding to the minimum difference value among the three difference values, and calculating the first enterprise numerical data by formula (1) to obtain a first offset of the first reference value;
[0073] Offset = (first enterprise numerical data - first reference value) / first reference value * 100%; Formula (1)
[0074] The first sparse data of the first enterprise numerical data is: a first identifier and a first offset corresponding to the first reference value.
[0075] For example,
[0076] The processing unit is specifically used to calculate the single enterprise numerical data based on 1 benchmark data and the offset, specifically including: single enterprise numerical data = benchmark data * (1 + offset).
[0077] For example,
[0078] The processing unit is specifically used to extract the feature points corresponding to the three sub-curves to obtain 3m feature points, map the 3m feature points to the trend curve coordinate system according to the time sequence and size of the feature points, and connect adjacent feature points in the 3m feature points with straight lines to obtain a trend curve.
[0079] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that in order to realize the above functions, the mobile electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment provided in this article, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0080] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0081] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented using software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium may be a solid-state hard disk.
[0082] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.
[0083] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an electronic device.
[0084] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0085] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and systems can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0086] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0087] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0088] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a volatile memory or a non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM) and direct RAM bus RAM (DR RAM). Various media that can store program code are available.
[0089] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions without departing from the spirit and scope of the present invention, and can make various changes and modifications, including the combination of the above-mentioned different functions and implementation steps, including software and hardware implementation methods, all of which are within the scope of protection of the present invention.
Claims
1. A method for collecting and analyzing enterprise numerical data, characterized in that: The method comprises the following steps: The electronic device obtains a large amount of enterprise numerical data, and counts the same numerical data in the large amount of enterprise numerical data to obtain the number of each same numerical data to obtain n numbers; the n numbers are arranged in descending order to obtain a first sequence, and the first three numbers in the first sequence are extracted. If the three numbers are all greater than a number threshold, a sparse operation is performed on the large amount of enterprise numerical data based on the first three numbers to obtain sparse data, and the sparse single data includes: one reference value among the three reference values and an offset corresponding to the one reference value, and the sparse data is stored; The electronic device receives a data extraction command sent by an external device, the data extraction command comprising: extracting single enterprise numerical data, extracting corresponding storage data according to the memory of the data extraction command, obtaining one reference data and an offset in the storage data among three reference data, calculating the single enterprise numerical data according to the one reference data and the offset, and sending the single enterprise numerical data to the external device; The electronic device receives a trend extraction command sent by an external device, the trend extraction command comprising: extracting a trend curve of the sparse data, obtaining each offset of each data in the sparse data, entering the offsets of three reference values into three coordinate systems respectively to obtain three sub-curves, and merging the three sub-curves according to the values of three reference data to obtain a trend curve; The sparse data obtained by performing sparse operation on massive enterprise numerical data based on the first three quantities specifically includes: Performing a sparse operation on each enterprise numerical data in the massive enterprise numerical data to obtain data after obtaining the coefficients, the sparse operation specifically comprising: extracting the first enterprise numerical data from the massive enterprise numerical data, performing a subtraction operation on the first enterprise numerical data and three reference values to obtain three difference values, obtaining a first reference value corresponding to the minimum difference value among the three difference values, and calculating the first enterprise numerical data by formula (1) to obtain a first offset of the first reference value; Offset = (first enterprise numerical data - first reference value) / first reference value * 100%; Formula (1) The first sparse data of the first enterprise numerical data is: a first identifier and a first offset corresponding to the first reference value; The step of merging the three sub-curves according to the values of the three reference data to obtain the trend curve specifically includes: The feature points corresponding to the three sub-curves are extracted respectively to obtain 3m feature points, the 3m feature points are mapped to the trend curve coordinate system according to the time sequence and size of the feature points, and the adjacent feature points among the 3m feature points are connected with straight lines to obtain the trend curve.
2. The method for collecting and analyzing enterprise numerical data according to claim 1, characterized in that: The calculation of the single enterprise numerical data based on 1 benchmark data and offset specifically includes: The numerical data of a single enterprise = benchmark data * (1 + offset).
3. A system for collecting and analyzing enterprise numerical data, characterized in that: The system comprises: An acquisition unit, used to acquire massive enterprise numerical data; A processing unit is used to count the same numerical data in the massive enterprise numerical data to obtain the number of each identical numerical data to obtain n numbers; arrange the n numbers in descending order to obtain a first sequence, extract the first three numbers in the first sequence, and if the three numbers are all greater than the number threshold, perform a sparse operation on the massive enterprise numerical data based on the first three numbers to obtain sparse data, wherein the sparse single data includes: one reference value among the three reference values and an offset corresponding to the one reference value, and store the sparse data; The communication unit is used to receive a data extraction command sent by an external device, the data extraction command comprising: extracting single enterprise numerical data; The processing unit is further used to extract the corresponding storage data according to the memory of the data extraction command, obtain one reference data among the three reference data and an offset in the storage data, calculate the single enterprise numerical data according to the one reference data and the offset, and send the single enterprise numerical data to the external device; The communication unit is further used to receive a trend extraction command sent by an external device, the trend extraction command comprising: extracting a trend curve of the sparse data; The processing unit is further used to obtain each offset of each data in the sparse data, enter the offsets of the three reference values into the three coordinate systems respectively to obtain three sub-curves, and merge the three sub-curves according to the values of the three reference data to obtain a trend curve; The processing unit is specifically used to perform a sparse operation on each enterprise numerical data in the massive enterprise numerical data to obtain coefficient data, wherein the sparse operation specifically includes: extracting the first enterprise numerical data from the massive enterprise numerical data, performing subtraction operations on the first enterprise numerical data and three reference values to obtain three difference values, obtaining a first reference value corresponding to the minimum difference value among the three difference values, and calculating the first enterprise numerical data by formula (1) to obtain a first offset of the first reference value; Offset = (first enterprise numerical data - first reference value) / first reference value * 100%; Formula (1) The first sparse data of the first enterprise numerical data is: a first identifier and a first offset corresponding to the first reference value; The processing unit is specifically used to extract the feature points corresponding to the three sub-curves to obtain 3m feature points, map the 3m feature points to the trend curve coordinate system according to the time sequence and size of the feature points, and connect adjacent feature points in the 3m feature points with straight lines to obtain a trend curve.
4. The enterprise numerical data collection and analysis system according to claim 3, characterized in that: The processing unit is specifically used to calculate the single enterprise numerical data based on 1 benchmark data and the offset, specifically including: single enterprise numerical data = benchmark data * (1 + offset).
