Lightweight data analysis method, system, equipment and medium
Through lightweight data analysis methods, preset collection rules and user-configured data sources are used to directly construct and analyze data sets, solving the problems of low processing efficiency and waste of hardware resources in the data analysis process of small and medium-sized enterprises, and achieving high efficiency and low cost. Cost data analysis drives business innovation of enterprises.
Patent Information
- Application Number
- CN202410691963.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-17
AI Technical Summary
During the data analysis process, small and medium-sized enterprises face problems such as complex processing procedures, low processing efficiency, difficulty in maintenance, and waste of hardware resources, resulting in high and unaffordable data analysis costs.
Propose a lightweight data analysis method to obtain initial business data through preset collection rules, build lightweight data sets, and create charts based on user-configured data sources and indicator items to achieve data analysis and display, avoiding complicated Data preparation and preprocessing steps use simple algorithms and models to directly analyze and mine data.
It achieves effective data analysis results within limited resources and time, reduces the consumption of hardware resources, provides high-quality data analysis services, optimizes the company's business processes, and promotes business innovation.
Smart Images

Figure CN118656407A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a lightweight data analysis method, system, device and medium. Background Art
[0002] Traditional business intelligence systems usually require a large amount of data storage and powerful data processing capabilities, and therefore rely heavily on high-performance servers and storage devices, and the purchase and maintenance costs of these devices are often very high, which is unaffordable for many small and medium-sized enterprises. In addition, small and medium-sized enterprises may face problems such as small data, various data types, and complex business. When processing data for such problems, business intelligence systems or data analysis methods in related technologies usually have defects such as complicated processing procedures, greatly reduced processing efficiency, difficulty in maintenance, and waste of hardware resources.
[0003] Therefore, it is urgent to propose a lightweight data analysis method to solve the above defects. Summary of the invention
[0004] In view of this, the present invention proposes a lightweight data analysis method, system, computer device and computer-readable medium, which solves the problems of complicated processing flow, low processing efficiency, difficult maintenance and waste of hardware resources in the data analysis process of small enterprises, improves the efficiency and accuracy of data analysis of small and medium-sized enterprises, optimizes business processes, and thus improves decision-making efficiency and promotes business innovation. .
[0005] Based on the above purpose, one aspect of an embodiment of the present invention provides a lightweight data analysis method, which is applied to an ERP system and specifically includes the following steps:
[0006] Acquire initial business data based on preset collection rules to build a lightweight data set;
[0007] Acquire a data source configured by a user, and query the target business data matching the data source from the lightweight data set;
[0008] The indicator items and data display types configured by the user are obtained, business indicator values corresponding to the indicator items are extracted according to all the target business data, and a chart corresponding to the data display type is created and displayed based on all the business indicator values.
[0009] In some implementations, the step of obtaining a data source configured by a user includes:
[0010] In response to detecting that a drop-down box corresponding to the data source in the user interface is triggered, the data source configured by the user is determined according to the options clicked by the user in the drop-down box, and the options include database language, cloud function and preset interface.
[0011] In some implementations, the step of acquiring initial business data based on preset collection rules includes:
[0012] Query and obtain the initial business data in a local database through a database language, a cloud function and / or a preset interface; and / or
[0013] The initial business data is queried in external data through a preset interface.
[0014] In some embodiments, the lightweight data analysis method further comprises:
[0015] The data update frequency corresponding to the chart configured by the user is obtained, target business data matching the data source is periodically queried from the lightweight data set based on the data update frequency, and business indicator values corresponding to the indicator items are periodically extracted to update the chart.
[0016] In some embodiments, the lightweight data analysis method further comprises:
[0017] In response to detecting that abnormal business data exists in the lightweight data set, warning information of the abnormal business data is displayed on a user interface.
[0018] In some implementations, the initial business data includes at least one of a production document, a supply chain document, and a financial document.
[0019] In some implementations, the step of constructing a lightweight dataset includes:
[0020] If the initial business data is a production document, the initial business data is processed according to the product plan, material picking or finished product logic to construct the lightweight data set;
[0021] If the initial business data is a supply chain document, the initial business data is processed according to the product receiving, issuing and storage logic to construct the lightweight data set;
[0022] If the initial business data is a financial document, the initial business data is processed according to the balance or aging logic corresponding to the product to construct the lightweight data set.
[0023] Another aspect of the embodiment of the present invention further provides a lightweight data analysis system, wherein the lightweight data analysis system specifically includes:
[0024] A construction unit, used to obtain initial business data based on preset collection rules to construct a lightweight data set;
[0025] A query unit, configured to obtain a data source configured by a user, and query target business data matching the data source from the lightweight data set;
[0026] A chart display unit is used to obtain the indicator items and data display types configured by the user, extract the business indicator values corresponding to the indicator items according to all the target business data, and create and display a chart corresponding to the data display type based on all the business indicator values.
[0027] According to another aspect of an embodiment of the present invention, a computer device is provided, comprising: at least one processor; and a memory, wherein the memory stores a computer program executable on the processor, and the computer program implements the steps of the above method when executed by the processor.
[0028] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program that implements the above method steps when executed by a processor.
[0029] The present invention has at least the following beneficial technical effects: a lightweight data analysis method of the present invention completes data preparation to construct a data set through simple collection rules, does not require excessive data preparation and preprocessing operations, directly analyzes and mines the data itself, and uses simple algorithms and models to present data analysis results in an intuitive and easy-to-understand manner, thereby helping enterprises to quickly understand and grasp the hidden information and trends in the data, avoiding the consumption of hardware resources, and being able to obtain effective data analysis results within limited resources and time, providing high-quality data analysis services at a lower cost, optimizing the business processes of the enterprise, and thereby promoting the business innovation of the enterprise. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention 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 in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0031] Figure 1 A block diagram of an embodiment of a lightweight data analysis method provided by the present invention;
[0032] Figure 2 A schematic diagram of the structure of an embodiment of the ERP system provided by the present invention;
[0033] Figure 3 A schematic diagram of an embodiment of a process for acquiring business data based on preset collection rules provided by the present invention;
[0034] Figure 4 A schematic diagram of an embodiment of a setting interface for data update frequency provided by the present invention;
[0035] Figure 5 A schematic diagram of an embodiment of a chart display interface provided by the present invention;
[0036] Figure 6 A schematic diagram of an embodiment of a lightweight data analysis system provided by the present invention;
[0037] Figure 7 A schematic diagram of the structure of an embodiment of a computer device provided by the present invention;
[0038] Figure 8 A schematic diagram of the structure of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0039] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0040] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.
[0041] The development of ERP (Enterprise Resource Planning) system is a process of continuous expansion and deepening, starting from the early material requirement planning, gradually covering manufacturing resource planning, and finally developing into a comprehensive management system covering multiple enterprise functions such as finance, supply chain, sales, marketing, human resources, etc. The lightweight data analysis method of the present invention is mainly aimed at those enterprises that hope to obtain effective data analysis within limited resources and time. These enterprises may face the problem of small amount of data, but a wide variety of data and complex processing process. Therefore, the present invention proposes a simple, fast and efficient lightweight data analysis method based on ERP to realize a business intelligence system that better meets the needs of the above-mentioned enterprises. The method can collect and analyze ERP data in real time, provide a summary of key business indicators, and display the analysis results through a visual interface to help enterprise decision makers better understand the business situation and make decisions.
[0042] Based on the above purpose, the first aspect of the embodiment of the present invention provides an embodiment of a lightweight data analysis method. Figure 1As shown, the lightweight data analysis method of the present invention is applied to the ERP system, which specifically includes the following steps:
[0043] Step S100, acquiring initial business data based on preset collection rules to construct a lightweight data set;
[0044] Step S200, obtaining a data source configured by a user, and searching for target business data matching the data source from a lightweight data set;
[0045] Step S300, obtaining the indicator items and data display types configured by the user, extracting the business indicator values of the corresponding indicator items according to all target business data, and creating and displaying a chart corresponding to the data display type based on all business indicator values.
[0046] In some embodiments, Figure 2 A schematic diagram of the structure of an embodiment of the ERP system provided by the present invention. According to the lightweight data analysis method of the present invention, the ERP system can be divided into a data collection module, a data analysis module and a data display module. The data collection module collects business data in real time according to preset collection rules, the data analysis module processes and analyzes the collected business data, extracts key business indicators, and the data display module displays the analysis results, i.e. the extracted key business data indicators, to the user in a visual manner. Through the above-mentioned method, it is possible to collect and analyze the data of the ERP system in real time, provide a summary of key business indicators, and display the analysis results in a visual interface, so as to help enterprise decision makers better understand the business situation and make decisions, so that the ERP system is simple to operate, does not require professional maintenance, and has low cost, and is suitable for use by small and medium-sized enterprises.
[0047] In some embodiments, Figure 3 A schematic diagram of an embodiment of the process of obtaining business data based on preset collection rules provided by the present invention. Business data can be obtained through three preset collection rules. The first is to query the required business data in the original data (i.e., local database) of the ERP system through SQL (Structured Query Language, database language), the second is to obtain the required business data in the local database of the ERP system or an external database through a preset API (Application Programming Interface, application programming interface) interface, and the third is to complete the acquisition of the corresponding business data in the local database of the ERP system through cloud functions. Business data includes but is not limited to production documents, supply chain documents and financial documents, for example, it can also include sales order information, purchase order information, inventory information, financial information, etc.
[0048] In some embodiments, after constructing a lightweight data set, the user first needs to configure the data source, that is, the data source can be business data obtained using SQL, business data obtained using a preset API interface, and business data obtained using a more technical cloud function. When obtaining the target business data in the lightweight data set, set strict read permissions and perform security processing such as anti-injection on the database. Subsequently, different algorithms are preset according to Matplotlib (a drawing library), and data display type options such as bar charts, trend charts, line charts, and Gantt charts are provided. Users can make different choices according to their needs. In the next step, the user needs to configure indicator items as key business indicators for chart display. In addition, the user needs to set the data update frequency, such as Figure 4 The figure shows a schematic diagram of an embodiment of the data update frequency setting interface provided by the present invention. The specific application of extracting the business indicator value of the corresponding indicator item is, for example, calculating the average processing time of orders in the target business data or the turnover rate of inventory and other key business indicator values. Furthermore, the present invention can also perform abnormal detection and early warning on the business data.
[0049] In some embodiments, Figure 5 Shown is a schematic diagram of an embodiment of the chart display interface provided by the present invention. The business data after the above analysis and processing is displayed to the user in the form of a chart or dashboard. For example, a line chart or a bar chart is drawn to show the trend of sales data, which helps the company's management and sales team to better understand sales performance and identify sales peaks and troughs. Another example is to create an intuitive inventory level chart to show changes in product inventory, which helps the company's warehouse managers to replenish stocks in time to avoid inventory shortages. Another example is to draw a timeline of purchase orders and deliveries to help the company's procurement team optimize the supply chain, reduce procurement cycles, and improve supply chain efficiency. Another example is to create a pie chart or a bar chart to present the company's financial status, that is, revenue composition and cost analysis, which helps management to formulate financial strategies and decisions. Or, for example, to create a production line efficiency chart to help the production team monitor production progress and efficiency, and to promptly discover and solve potential problems.
[0050] A lightweight data analysis method of the present invention completes data preparation to build a data set through simple collection rules, does not require excessive data preparation and preprocessing operations, directly analyzes and mines the data itself, and uses simple algorithms and models to present data analysis results in an intuitive and easy-to-understand manner, thereby helping enterprises to quickly understand and grasp the hidden information and trends in the data, avoiding the consumption of hardware resources, and being able to obtain effective data analysis results within limited resources and time, providing high-quality data analysis services at a lower cost, optimizing the business processes of the enterprise, and further promoting the business innovation of the enterprise.
[0051] In some embodiments, the step of obtaining a user-configured data source includes: in response to detecting that a drop-down box corresponding to configuring a data source in a user interface is triggered, determining the user-configured data source based on an option clicked by the user in the drop-down box, the options including a database language, a cloud function, and a preset interface.
[0052] In some embodiments, the step of obtaining initial business data based on preset collection rules includes: querying and obtaining initial business data in a local database through a database language, cloud function and / or a preset interface; and / or querying and obtaining initial business data in an external database through a preset interface.
[0053] In some embodiments, the above-mentioned lightweight data analysis method also includes: obtaining the data update frequency corresponding to the chart configured by the user, periodically querying the target business data matching the data source from the lightweight data set based on the data update frequency, and periodically extracting the business indicator values of the corresponding indicator items to update the chart.
[0054] In some implementations, the above-mentioned lightweight data analysis method further includes: in response to detecting the presence of abnormal business data in the lightweight data set, displaying warning information of the abnormal business data on a user interface.
[0055] In some implementations, the initial business data includes at least one of a production document, a supply chain document, and a financial document.
[0056] In some embodiments, the step of constructing a lightweight data set includes: if the initial business data is a production document, processing the initial business data according to the product's planning, material collection or finished product logic to construct a lightweight data set; if the initial business data is a supply chain document, processing the initial business data according to the product's receipt, issuance and storage logic to construct a lightweight data set; if the initial business data is a financial document, processing the initial business data according to the balance or aging logic corresponding to the product to construct a lightweight data set.
[0057] In some embodiments, the planning logic, material picking logic or finished product logic, i.e., receiving, issuing and storing logic, generally refers to the management and control of the receiving, issuing and storing process of items or products in inventory management or logistics management. This logic ensures the accuracy, liquidity and traceability of the inventory, which is crucial for the operation and decision-making of the enterprise. Planning logic, material picking logic and finished product logic processing are key steps in the production process, and they together constitute the core link of production activities. Balance or aging logic processing is an important link in the field of finance and accounting, mainly involving the management and monitoring of accounts such as accounts receivable and accounts payable. Account age refers to the time period from the date of the transaction to the current date, reflecting the length of time that the payment is in arrears or unpaid. The processing of the balance mainly focuses on the changes in funds in the account, and the changes in the balance reflect the capital flow status of the enterprise and the transaction activities with suppliers. Aging logic processing usually includes classifying accounts according to different aging segments so that enterprises can better manage and monitor the recovery or payment of accounts.
[0058] A lightweight data analysis method of the present invention completes data preparation to construct a data set through simple collection rules, does not require excessive data preparation and preprocessing operations, directly analyzes and mines the data itself, and uses simple algorithms and models to present data analysis results in an intuitive and easy-to-understand manner, thereby helping enterprises to quickly understand and grasp the hidden information and trends in the data, avoiding the consumption of hardware resources, and achieving effective data analysis results within limited resources and time, thereby optimizing the business processes of the enterprise and promoting business innovation of the enterprise.
[0059] Based on the same inventive concept, according to another aspect of the present invention, Figure 6 As shown, an embodiment of the present invention further provides a lightweight data analysis system, and the lightweight data analysis system of the present invention specifically includes:
[0060] A construction unit 110, configured to obtain initial business data based on a preset collection rule to construct a lightweight data set;
[0061] A query unit 120 is used to obtain a data source configured by a user and query target business data matching the data source from a lightweight data set;
[0062] The chart display unit 130 is used to obtain the indicator items and data display types configured by the user, extract the business indicator values of the corresponding indicator items according to all target business data, and create and display a chart corresponding to the data display type based on all business indicator values.
[0063] A lightweight data analysis system of the present invention completes data preparation to build a data set through simple collection rules, without excessive data preparation and preprocessing operations, and directly analyzes and mines the data itself. It uses simple algorithms and models to present data analysis results in an intuitive and easy-to-understand manner, thereby helping enterprises to quickly understand and grasp the hidden information and trends in the data, avoiding the consumption of hardware resources, and achieving effective data analysis results within limited resources and time, thereby optimizing the business processes of the enterprise and promoting business innovation of the enterprise.
[0064] Based on the same inventive concept, according to another aspect of the present invention, Figure 7 As shown, an embodiment of the present invention further provides a computer device 30, which includes a processor 310 and a memory 320. The memory 320 stores a computer program 321 that can be run on the processor. When the processor 310 executes the program, the steps of the above method are performed.
[0065] Based on the same inventive concept, according to another aspect of the present invention, Figure 8 As shown, an embodiment of the present invention further provides a computer-readable storage medium 40, which stores a computer program 410 for executing the above method when executed by a processor.
[0066] Finally, it should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiments can achieve the same or similar effects as the corresponding above-mentioned arbitrary method embodiments.
[0067] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.
[0068] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope of the embodiments disclosed in the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. The serial numbers of the embodiments disclosed in the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0069] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.
[0070] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A lightweight data analysis method, characterized in that: Applied to ERP systems, including: Acquire initial business data based on preset collection rules to build a lightweight data set; Acquire a data source configured by a user, and query the target business data matching the data source from the lightweight data set; The indicator items and data display types configured by the user are obtained, business indicator values corresponding to the indicator items are extracted according to all the target business data, and a chart corresponding to the data display type is created and displayed based on all the business indicator values.
2. The lightweight data analysis method according to claim 1, characterized in that: The step of obtaining the data source configured by the user includes: In response to detecting that a drop-down box corresponding to configuring the data source in the user interface is triggered, the data source configured by the user is determined according to the optional items clicked by the user in the drop-down box, and the optional items include database language, cloud function and preset interface.
3. The lightweight data analysis method according to claim 1, characterized in that: The step of acquiring initial business data based on preset collection rules includes: Query and obtain the initial business data in a local database through a database language, a cloud function and / or a preset interface; and / or The initial business data is queried in external data through a preset interface.
4. The lightweight data analysis method according to claim 1, characterized in that: Also includes: The data update frequency corresponding to the chart configured by the user is obtained, target business data matching the data source is periodically queried from the lightweight data set based on the data update frequency, and business indicator values corresponding to the indicator items are periodically extracted to update the chart.
5. The lightweight data analysis method according to claim 1, characterized in that: Also includes: In response to detecting that abnormal business data exists in the lightweight data set, warning information of the abnormal business data is displayed on a user interface.
6. The lightweight data analysis method according to claim 1, characterized in that: The initial business data includes at least one of a production document, a supply chain document and a financial document.
7. The lightweight data analysis method according to claim 6, characterized in that: The steps of constructing a lightweight dataset include: If the initial business data is a production document, the initial business data is processed according to the product plan, material picking or finished product logic to construct the lightweight data set; If the initial business data is a supply chain document, the initial business data is processed according to the product receiving, issuing and storage logic to construct the lightweight data set; If the initial business data is a financial document, the initial business data is processed according to the balance or aging logic corresponding to the product to construct the lightweight data set.
8. A lightweight data analysis system, characterized in that: include: A construction unit, used to obtain initial business data based on preset collection rules to construct a lightweight data set; A query unit, configured to obtain a data source configured by a user, and query target business data matching the data source from the lightweight data set; A chart display unit is used to obtain the indicator items and data display types configured by the user, extract the business indicator values corresponding to the indicator items according to all the target business data, and create and display a chart corresponding to the data display type based on all the business indicator values.
9. A computer device comprising: at least one processor; as well as A memory storing a computer program executable on the processor, wherein the processor executes the steps of the method according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are performed.
Citation Information
Patent Citations
Full chain budget data processing system and method for production infrastructure standard cost system
CN103679373A
Business data analysis result query display method and device, equipment and medium
CN112765497A
Refined cost management system based on business and financial integration for hospital in DRG payment mode
CN112862581A
Chart generation method and device based on data requirements, equipment and storage medium
CN114490666A
Automated materialized view table generation and maintenance
US20220147514A1
