Environment-friendly bag damage monitoring method, device and equipment and storage medium

By building a reusable bag data monitoring system, reviewing and processing report information in real time, and training damage prediction models, the problem of untimely data for logistics companies in monitoring and managing reusable bag damage has been solved, and timely interception and data collection of damaged reusable bags have been achieved. Management, optimizing the service life and procurement process of environmentally friendly bags, improving the integrity of express packages and customer satisfaction.

CN118863702APending Publication Date: 2024-10-29SHANGHAI DONGPU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410907120.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing logistics companies have problems with inactive and untimely data monitoring and management of damage to reusable bags, which makes it difficult to intercept damaged reusable bags in time and make multi-dimensional analysis impossible, affecting the service life of reusable bags and supplier optimization.

Method used

By building a reusable bag data monitoring system based on multiple distribution centers, we can review and process reporting information in real time, generate interception and reward and punishment instructions, train damage prediction models, conduct overall data management and multi-dimensional analysis, and generate query reports to optimize the procurement process.

Benefits of technology

It realizes the timely interception and data management of damaged environmental protection bags, improves the efficiency of data flow, can generate query reports according to query instructions, and combines the damage prediction model to optimize the service life and procurement process of environmental protection bags, reduce the damage rate, and improve the integrity of express packages. performance and customer satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118863702A_ABST
    Figure CN118863702A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data monitoring, in particular to an environment-friendly bag damage monitoring method, device and equipment and a storage medium, and the method comprises the steps: constructing an environment-friendly bag data monitoring system based on data transmission ports of a plurality of distribution centers; checking the received real-time checking information, and generating an interception instruction and reward and punishment information based on the checked real-time checking information; carrying out extraction processing on the real-time checking information passing the audit according to a preset classification keyword to obtain extraction information and storing the extraction information; training a damage prediction model based on the obtained multiple pieces of historical extraction information; respectively inputting the plurality of pieces of recent extraction information into a damage prediction model to obtain a prediction result; performing extraction processing on the received query instruction to obtain query information used for generating a query report; according to the method disclosed by the invention, overall management can be carried out on a large batch of environment-friendly bag data from different distribution centers, the data circulation efficiency is improved, and the damaged environment-friendly bags can be intercepted in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data monitoring technology, and in particular to a method, device, equipment and storage medium for monitoring damage of environmentally friendly bags. Background Art

[0002] During the express delivery process, there may be problems with damaged eco-friendly bags circulating in the express delivery network. If the damaged eco-friendly bags cannot be repaired or eliminated in time, it is easy to cause abnormal packaging or express delivery loss, causing losses to express delivery companies or customers. Existing logistics companies have a single way to understand the damage of eco-friendly bags, which is generally reported manually through distribution centers or stations. However, there are problems with manual reporting of damaged eco-friendly bags in a passive and untimely manner, which makes it difficult to intercept damaged eco-friendly bags during circulation, further causing a large number of damaged eco-friendly bags to circulate in the express delivery network. In addition, existing logistics gas and liquid cannot conduct multi-dimensional analysis of eco-friendly bag damage data online, resulting in the inability to further optimize measures for the service life of eco-friendly bags, causes of damage, suppliers, etc.

[0003] It can be seen that the existing technology still needs to be improved and enhanced. Summary of the invention

[0004] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a method, device, equipment and storage medium for monitoring damaged environmentally-friendly bags, which can coordinate the management of large quantities of environmentally-friendly bag data from different distribution centers, improve data flow efficiency, and intercept damaged environmentally-friendly bags in a timely manner.

[0005] The first aspect of the present invention provides a method for monitoring damage of environmentally friendly bags, comprising: constructing an environmentally friendly bag data monitoring system based on data transmission ports of multiple distribution centers; when the environmentally friendly bag data monitoring system receives real-time reporting information, the real-time reporting information is reviewed, and if the real-time reporting information passes the review, interception instructions and reward and punishment information are generated based on the reviewed real-time reporting information; the reviewed real-time reporting information is extracted and processed according to preset classification keywords to obtain extracted information, and the extracted information is stored in the environmentally friendly bag data monitoring system; multiple historical extraction information stored in the environmentally friendly bag data monitoring system is obtained, and a damage prediction model is trained based on the historical extraction information; multiple recent extraction information stored in the environmentally friendly bag data monitoring system is obtained, and the multiple recent extraction information is respectively input into the damage prediction model to obtain prediction results; when the environmentally friendly bag data monitoring system receives a query instruction, the query instruction is extracted and processed to obtain query information, and a query report is generated based on the query information.

[0006] Optionally, in a first implementation of the first aspect of the present invention, the environmentally friendly bag data monitoring system is constructed based on the data transmission ports of multiple distribution centers, specifically including: establishing a connection relationship between the data transmission ports of multiple distribution centers and the Kafka cluster, and sending the data fed back by the data transmission ports in the multiple distributions to specific topics in the Kafka cluster respectively; introducing the Flink stream processing engine to consume data streams from specific topics in the Kafka cluster to perform real-time data processing and conversion; introducing Doris and MySQL databases to store data processed by the Flink stream processing engine; using BI tools to connect the Doris and MySQL databases to complete the construction of the environmentally friendly bag data monitoring system.

[0007] Optionally, in a second embodiment of the first aspect of the present invention, when the environmentally friendly bag data monitoring system receives real-time reporting information, the real-time reporting information is reviewed. If the real-time reporting information passes the review, interception instructions and reward and punishment information are generated based on the real-time reporting information that passes the review, specifically including: when the environmentally friendly bag data monitoring system receives real-time reporting information, the real-time reporting information is reviewed using a form library in conjunction with a regular expression to confirm whether the real-time reporting information includes all required information; when the real-time reporting information passes the review, the reporter information and reporting address included in the real-time reporting information are obtained; according to the reporting address, the preset distribution center address library is matched using an edit distance algorithm to confirm the distribution center address corresponding to the reporting address; the contact information of the confirmed distribution center address is obtained, an interception instruction is generated based on the obtained contact information, the preset reminder interval number and interval time, and reward and punishment information is generated based on the contact information, the reporter information and the preset reporting reward and punishment table.

[0008] Optionally, in a third embodiment of the first aspect of the present invention, the real-time reporting information that has passed the review is extracted and processed according to preset classification keywords to obtain extracted information, and the extracted information is stored in the environmentally-friendly bag data monitoring system, which specifically includes: using the KMP algorithm to extract and process the real-time reporting information that has passed the review according to preset classification keywords to extract information keywords corresponding to the classification keywords; assigning the information keywords to preset categories to obtain classification information; cleaning, filtering and summarizing the classification information in turn to obtain extracted information, and storing the extracted information in the environmentally-friendly bag data monitoring system.

[0009] Optionally, in a fourth embodiment of the first aspect of the present invention, the obtaining of multiple pieces of historical extraction information stored in the environmentally-friendly bag data monitoring system and training of a damage prediction model based on the historical extraction information specifically include: obtaining multiple pieces of historical extraction information stored in the environmentally-friendly bag data monitoring system, wherein the historical extraction information is extraction information three months ago and stored in the environmentally-friendly bag data monitoring system; cleaning and preprocessing the multiple pieces of historical extraction information respectively, and extracting features related to the service life from the historical extraction information to obtain processed information; performing feature scaling and partitioning processing on the processed information in turn to obtain a training set and a test set; inputting the training set into a linear regression model for training, and using the test set to evaluate the linear regression model to obtain a damage prediction model.

[0010] Optionally, in a fifth implementation of the first aspect of the present invention, the multiple pieces of recent extraction information stored in the environmentally-friendly bag data monitoring system are obtained, and the multiple pieces of recent extraction information are respectively input into the damage prediction model to obtain prediction results, specifically including: obtaining multiple pieces of recent extraction information stored in the environmentally-friendly bag data monitoring system, the recent extraction information is the extraction information stored in the environmentally-friendly bag data monitoring system in the past month; the multiple pieces of recent extraction information are respectively input into the damage prediction model to obtain prediction results, and the prediction results are the service life prediction results of the environmentally-friendly bags; the prediction results are analyzed using a random forest algorithm to obtain analysis results; and procurement adjustment information is generated based on the prediction results and the analysis results.

[0011] Optionally, in a sixth embodiment of the first aspect of the present invention, when the environmentally-friendly bag data monitoring system receives a query instruction, the query instruction is extracted and processed to obtain query information, and a query report is generated based on the query information, specifically including: when the environmentally-friendly bag data monitoring system receives a query instruction, the query instruction is extracted and processed using a named entity recognition method to obtain query information; an SQL query statement is constructed according to the query information, and query data is extracted from the environmentally-friendly bag data monitoring system through the SQL query statement; the query data is aggregated and filtered to obtain filtered data; and a query report is generated using a report generation tool based on the report requirements included in the filtered data and the query information.

[0012] The second aspect of the present invention provides an environmentally friendly bag damage monitoring device, including: a construction module, which is used to construct an environmentally friendly bag data monitoring system based on the data transmission ports of multiple distribution centers; an audit module, which is used to audit the real-time reporting information when the environmentally friendly bag data monitoring system receives it, and if the real-time reporting information passes the audit, then generate interception instructions and reward and punishment information based on the real-time reporting information that passes the audit; an extraction module, which is used to extract and process the real-time reporting information that passes the audit according to preset classification keywords, obtain extraction information, and store the extraction information in the environmentally friendly bag data monitoring system; a training module, which is used to obtain multiple historical extraction information stored in the environmentally friendly bag data monitoring system, and train a damage prediction model based on the historical extraction information; a prediction module, which is used to obtain multiple recent extraction information stored in the environmentally friendly bag data monitoring system, and input the multiple recent extraction information into the damage prediction model respectively to obtain prediction results; a query module, which is used to extract and process the query instruction when the environmentally friendly bag data monitoring system receives the query instruction, obtain query information, and generate a query report based on the query information.

[0013] Optionally, in a first implementation method of the second aspect of the present invention, the construction module includes: a construction unit, which is used to construct a connection relationship between the data transmission ports of multiple distribution centers and the Kafka cluster, and send the data fed back by the data transmission ports in the multiple distributions to specific topics in the Kafka cluster respectively; a first introduction unit, which is used to introduce the Flink stream processing engine, consume data streams from specific topics in the Kafka cluster, and perform real-time data processing and conversion; a second introduction unit, which is used to introduce Doris and MySQL databases to store data processed by the Flink stream processing engine; a connection unit, which is used to use BI tools to connect Doris and MySQL databases to complete the construction of the environmentally friendly bag data monitoring system.

[0014] Optionally, in a second implementation of the second aspect of the present invention, the audit module includes: an audit unit, which is used to audit the real-time reporting information by using a form library and a regular expression when the environmentally-friendly bag data monitoring system receives real-time reporting information, so as to confirm whether the real-time reporting information includes all required information; a first acquisition unit, which is used to obtain the reporter information and reporting address included in the real-time reporting information when the real-time reporting information passes the review; a matching unit, which is used to match the preset distribution center address library according to the reporting address by using an edit distance algorithm to confirm the distribution center address corresponding to the reporting address; a second acquisition unit, which is used to obtain the contact information of the confirmed distribution center address, generate an interception instruction based on the acquired contact information, the preset reminder interval number and interval time, and generate reward and punishment information based on the contact information, the reporter information and the preset reporting reward and punishment table.

[0015] Optionally, in a third implementation of the second aspect of the present invention, the extraction module includes: a first extraction unit, used to adopt a KMP algorithm to extract and process the real-time reporting information that has passed the review according to preset classification keywords, so as to extract information keywords corresponding to the classification keywords; an allocation unit, used to allocate the information keywords to preset categories to obtain classification information; a storage unit, used to clean, filter and summarize the classification information in turn to obtain extracted information, and store the extracted information in the environmental-friendly bag data monitoring system.

[0016] Optionally, in a fourth implementation method of the second aspect of the present invention, the training module includes: a third acquisition unit, used to acquire multiple historical extraction information stored in the environmentally-friendly bag data monitoring system, wherein the historical extraction information is the extraction information stored in the environmentally-friendly bag data monitoring system three months ago; a processing unit, used to clean and preprocess the multiple historical extraction information respectively, and extract features related to the service life from the historical extraction information to obtain processed information; a partitioning unit, used to perform feature scaling and partitioning processing on the processed information in sequence to obtain a training set and a test set; a training unit, used to input the training set into a linear regression model for training, and use the test set to evaluate the linear regression model to obtain a damage prediction model.

[0017] Optionally, in a fifth implementation of the second aspect of the present invention, the prediction module includes: a fourth acquisition unit, used to acquire multiple recent extraction information stored in the environmentally-friendly bag data monitoring system, wherein the recent extraction information is extraction information stored in the environmentally-friendly bag data monitoring system for nearly one month; a prediction unit, used to input multiple recent extraction information into the damage prediction model respectively to obtain prediction results, wherein the prediction results are prediction results of the service life of the environmentally-friendly bag; an analysis unit, used to analyze the prediction results using a random forest algorithm to obtain analysis results; and a first generation unit, used to generate procurement adjustment information based on the prediction results and the analysis results.

[0018] Optionally, in a sixth implementation of the second aspect of the present invention, the query module includes: a second extraction unit, which is used to extract and process the query instruction using a named entity recognition method when the environmental-friendly bag data monitoring system receives the query instruction, so as to obtain query information; a query unit, which is used to construct an SQL query statement based on the query information, and extract query data from the environmental-friendly bag data monitoring system through the SQL query statement; a filtering unit, which is used to aggregate and filter the query data to obtain filtered data; and a second generation unit, which is used to generate a query report using a report generation tool based on the report requirements included in the filtered data and the query information.

[0019] The third aspect of the present invention provides an environmentally friendly bag damage monitoring device, which includes: a memory and at least one processor, wherein instructions are stored in the memory; at least one of the processors calls the instructions in the memory to enable the environmentally friendly bag damage monitoring device to perform each step of the environmentally friendly bag damage monitoring method described in any one of the above items.

[0020] A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored thereon, and when the instructions are executed by a processor, the various steps of any of the above-mentioned environmentally-friendly bag damage monitoring methods are implemented.

[0021] In the technical solution of the present invention, an environmentally friendly bag data monitoring system is constructed by using data transmission ports based on multiple distribution centers; the received real-time reporting information is reviewed, and interception instructions and reward and punishment information are generated based on the reviewed real-time reporting information; the reviewed real-time reporting information is extracted and processed according to preset classification keywords to obtain extracted information and store it; a damage prediction model is trained based on the multiple historical extracted information obtained; the multiple recent extracted information obtained are respectively input into the damage prediction model to obtain prediction results; the received query instructions are extracted and processed to obtain query information for generating query reports; the method disclosed in the present application can coordinate the management of large quantities of environmentally friendly bag data from different distribution centers, improve data flow efficiency, and timely intercept damaged environmentally friendly bags, and can generate corresponding query reports according to query instructions, and predict the service life of environmentally friendly bags in combination with the damage prediction model, which can provide data support for logistics companies to optimize the environmentally friendly bag procurement process. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A first flow chart of the environmentally friendly bag damage monitoring method provided by an embodiment of the present invention;

[0023] Figure 2 A second flow chart of the environmentally friendly bag damage monitoring method provided by an embodiment of the present invention;

[0024] Figure 3 A third flow chart of the environmentally friendly bag damage monitoring method provided by an embodiment of the present invention;

[0025] Figure 4 A fourth flow chart of the environmentally friendly bag damage monitoring method provided by an embodiment of the present invention;

[0026] Figure 5 A fifth flow chart of the environmentally friendly bag damage monitoring method provided by an embodiment of the present invention;

[0027] Figure 6 A sixth flow chart of the environmentally friendly bag damage monitoring method provided by an embodiment of the present invention;

[0028] Figure 7 A seventh flow chart of the environmentally friendly bag damage monitoring method provided by an embodiment of the present invention;

[0029] Figure 8 A schematic diagram of the structure of a device for monitoring damage of an environmentally friendly bag provided by an embodiment of the present invention;

[0030] Fig. 9 A schematic diagram of the structure of an environmentally friendly bag damage monitoring device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The present invention provides a method, device, equipment and storage medium for monitoring damage of environmentally friendly bags. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "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 necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 An embodiment of the method for monitoring damage of an environmentally friendly bag in an embodiment of the present invention includes:

[0033] 101. Build an environmentally friendly bag data monitoring system based on the data transmission ports of multiple distribution centers;

[0034] In this embodiment, by constructing an environmentally friendly bag data monitoring system, the logistics company can improve the management standardization of environmentally friendly bag data, improve data flow efficiency, and solve problems such as slow upload of large amounts of data, delayed analysis results, and missing damaged data; further, the transmission process of environmentally friendly bag data is carried out within the environmentally friendly bag data monitoring system, which can ensure the security of the data.

[0035] 102. When the environmental protection bag data monitoring system receives the real-time reporting information, it will review the real-time reporting information. If the real-time reporting information passes the review, it will generate interception instructions and reward and punishment information based on the real-time reporting information that passes the review;

[0036] In this embodiment, the real-time reporting information is fed back in real time by the front-line operators in the express delivery process through their mobile phones; by generating reward and punishment information, the enthusiasm of the front-line operators to report the reporting information can be increased, reducing the possibility of damaged environmentally friendly bags circulating in the express delivery network.

[0037] 103. Extract and process the real-time reporting information that has passed the review according to the preset classification keywords to obtain extracted information, and store the extracted information in the environmental protection bag data monitoring system;

[0038] In this embodiment, by storing the extracted information in the storage system included in the environmental protection bag data monitoring system, it is convenient for users to trace the data and to provide multi-dimensional query reports according to user needs later.

[0039] 104. Acquire multiple pieces of historical extraction information stored in the environmentally friendly bag data monitoring system, and train a damage prediction model based on the historical extraction information;

[0040] In this embodiment, the service life of the eco-friendly bags can be predicted by training the breakage prediction model, which is convenient for the logistics company to replenish the eco-friendly bags in time. The logistics company can analyze the possible problems of the eco-friendly bags in the circulation process according to the prediction results of the service life of the eco-friendly bags, so as to make timely improvements or timely adjustments to the supplier procurement pool, provide data support for the corporate planning of the logistics company, reduce the breakage rate of eco-friendly bags, improve the integrity and safety of express parcels, and thus improve customer satisfaction.

[0041] 105. Acquire multiple pieces of recent extraction information stored in the environmental protection bag data monitoring system, and input the multiple pieces of recent extraction information into the damage prediction model to obtain prediction results;

[0042] 106. When the environmentally friendly bag data monitoring system receives a query instruction, it extracts and processes the query instruction to obtain query information, and generates a query report based on the query information;

[0043] In this embodiment, the eco-friendly bag data monitoring system can generate multi-dimensional query reports according to query instructions, that is, it can provide a variety of different types of query reports according to user needs, so that logistics company personnel can conduct multi-dimensional analysis of the damage of eco-friendly bags.

[0044] The present application discloses a method for monitoring damage of environmentally friendly bags, which constructs an environmentally friendly bag data monitoring system based on data transmission ports of multiple distribution centers; reviews the received real-time reporting information, and generates interception instructions and reward and punishment information based on the reviewed real-time reporting information; extracts and processes the reviewed real-time reporting information according to preset classification keywords to obtain extracted information and store it; trains a damage prediction model based on multiple historical extracted information obtained; inputs the multiple recent extracted information obtained into the damage prediction model respectively to obtain prediction results; extracts and processes the received query instructions to obtain query information for generating query reports; the method disclosed in the present application can coordinate the management of large quantities of environmentally friendly bag data from different distribution centers, improve data flow efficiency, and intercept damaged environmentally friendly bags in a timely manner, and can generate corresponding query reports according to query instructions, and predict the service life of environmentally friendly bags in combination with the damage prediction model, which can provide data support for logistics companies to optimize the environmentally friendly bag procurement process.

[0045] See also Figure 2 The second embodiment of the environmental protection bag damage monitoring method in the embodiment of the present invention includes:

[0046] 201. Establish the connection relationship between the data transmission ports of multiple distribution centers and the Kafka cluster, and send the data fed back by the data transmission ports in multiple distribution centers to specific topics in the Kafka cluster respectively;

[0047] In this embodiment, Kafka is used as the message queue middleware for data collection. When the data source generates data, that is, when the data transmission port of the distribution center feeds back data, the data is sent to the Kafka topic. In the process of transmitting data at the data transmission port, the SSL secure communication protocol is used to encrypt the data transmission process, and identity authentication and authorization are used to limit the distribution center's access to the data stored in the environmentally friendly bag data monitoring system.

[0048] 202. Introduce the Flink stream processing engine to consume data streams from specific topics in the Kafka cluster and perform real-time data processing and conversion;

[0049] In this embodiment, data cleaning and preprocessing are performed on data pairs in a specific topic of the Kafka cluster in Flink, including data formatting, removing abnormal data, filling missing values, etc., so as to convert the original data into a format that can be used for monitoring. Flink's window operations and operators can be used to process the data to ensure data quality and accuracy.

[0050] 203. Introduce Doris and MySQL databases to store data processed by the Flink stream processing engine;

[0051] In this embodiment, Doris provides high-performance OLAP capabilities, can provide high-speed data query and analysis capabilities, is suitable for processing large-scale data, and supports real-time query and analysis; MySQL is used to store some smaller-scale or transactional data, such as user information, configuration information, etc.

[0052] 204. Use BI tools to connect Doris and MySQL databases to complete the construction of the environmentally friendly bag data monitoring system;

[0053] In this embodiment, the BI tool may be Tableau, which uses data visualization tools to connect Doris and MySQL databases to achieve real-time monitoring of various indicators and trends of eco-friendly bag data, and can perform data visualization and report presentation to achieve real-time display and analysis of data.

[0054] See also Figure 3 The third embodiment of the environmental protection bag damage monitoring method in the embodiment of the present invention includes:

[0055] 301. When the environmental protection bag data monitoring system receives real-time reporting information, the form library is used with regular expressions to review the real-time reporting information to confirm whether the real-time reporting information includes all required information;

[0056] In this embodiment, form library verification is used to check whether all required fields have been filled in, so as to perform front-end verification on the received real-time reporting information, and then regular expressions are used to verify whether all required fields are filled in, so as to perform back-end verification on the received real-time reporting information, effectively preventing the situation where information is not filled in.

[0057] 302. When the real-time reporting information passes the review, the reporter information and reporting address included in the real-time reporting information are obtained;

[0058] In this embodiment, the real-time reporting information also includes reporting content, and the reporting content may include text content and image content.

[0059] 303. According to the reported address, an edit distance algorithm is used to match a preset distribution center address library to confirm the distribution center address corresponding to the reported address;

[0060] In this embodiment, an edit distance algorithm is used to match a preset distribution center address library. The edit distance algorithm is an algorithm for measuring the similarity between two character strings, and is usually implemented using dynamic programming. First, the lengths of the two character strings are used as rows and columns of a matrix, and then the first row and the first column are filled with 0 to n, where n is the corresponding position. Starting from the upper left corner, the edit distances of the corresponding positions are calculated step by step. By comparing whether the current characters are equal, it can be determined whether to insert, delete or replace operations, and the edit distance of the current position is determined based on the previously calculated edit distance value. The entire matrix is ​​continued to be filled until the cell in the lower right corner. The number in the cell is the edit distance between the two character strings. In the process of constructing the matrix, the operation of each transfer step can also be recorded to obtain a minimum edit operation sequence to achieve the conversion from one character string to another, that is, to achieve the conversion from the reporting address to the distribution center address.

[0061] 304. Acquire the contact information of the confirmed distribution center address, generate an interception instruction based on the acquired contact information, the preset reminder interval number and interval time, and generate reward and punishment information based on the contact information, the reporter information and the preset reporting reward and punishment table;

[0062] In this embodiment, the contact information can be the contact's mobile phone number or email address, the preset reminder interval is 3 times, and the preset interval time is 1 minute, that is, the generated interception instruction is sent to the contact every 1 minute, and a total of 3 times are required to achieve strong reminders to ensure that front-line operators will not ignore or forget important matters and achieve effective interception of damaged eco-friendly bags.

[0063] In this embodiment, the preset reporting reward and punishment table is provided with corresponding reward mechanism and punishment mechanism, reward information is generated according to the reporter information and the reward mechanism in the preset reporting reward and punishment table, punishment information is generated according to the contact information and the punishment mechanism in the preset reporting reward and punishment table, and reward and punishment information is integrated to obtain reward and punishment information; that is, the reporter is rewarded to increase the reporter's enthusiasm for reporting the problem of damaged eco-friendly bags, and at the same time, the contact person of the distribution center is punished to trace the responsibility of the relevant person in charge.

[0064] See also Figure 4 The fourth embodiment of the environmental protection bag damage monitoring method in the embodiment of the present invention includes:

[0065] 401. Using the KMP algorithm, extract and process the real-time reporting information that has passed the review according to the preset classification keywords to extract the information keywords corresponding to the classification keywords;

[0066] In this embodiment, the preset classification keywords include reporting time, reporter information, reporting reason, degree of damage and reporting image; the KMP algorithm is used to match and extract the reporting information. The KMP algorithm is an efficient algorithm for string matching. Its working principle is to avoid repeated comparison by utilizing the information of the matched part; specifically, the KMP algorithm generates a partial matching table, also called the next array, by preprocessing the pattern string. It records the length of the longest common prefix and suffix before each position in the pattern string, and then uses this table to accelerate the matching process; during the matching process, when it is found that a character does not match the target string, the KMP algorithm will use the information in the partial matching table to determine how many bits the pattern string should be shifted to the right to avoid repeated comparison of the matched part; the KMP algorithm can achieve rapid extraction of information keywords.

[0067] 402. Assign information keywords to preset categories to obtain classified information;

[0068] 403. Clean, filter and summarize the classified information in turn to obtain extracted information, and store the extracted information in the environmental protection bag data monitoring system;

[0069] In this embodiment, the data cleaning operation of the classified information is completed by removing duplicate data, processing missing values ​​and unifying the format; the filtering operation of the classified information is completed by removing noise; and the data clustering processing is performed on the cleaned and filtered classified information by using a clustering algorithm to obtain the extracted information.

[0070] See also Figure 5 The fifth embodiment of the method for monitoring damage of an environmentally friendly bag in the embodiment of the present invention includes:

[0071] 501. Acquire multiple pieces of historical extraction information stored in the environmentally-friendly bag data monitoring system, wherein the historical extraction information is the extraction information three months ago stored in the environmentally-friendly bag data monitoring system;

[0072] 502. Clean and pre-process the plurality of historical extraction information respectively, and extract features related to service life from the historical extraction information to obtain processed information;

[0073] In this embodiment, the historical extraction information is cleaned and preprocessed by performing missing value and outlier processing and data conversion on the historical extraction information.

[0074] In this embodiment, the features related to the service life are independent variables, which may include material quality, frequency of use, manufacturer, etc., while the service life of the environmentally friendly bag is the dependent variable.

[0075] 503. Perform feature scaling and division processing on the processed information in sequence to obtain a training set and a test set;

[0076] In this embodiment, by performing feature scaling processing on the processed information, it can be ensured that each feature is on the same scale, thereby improving the model training accuracy and training efficiency. Specifically, a standardized algorithm can be used to perform feature scaling processing on the processed information; further, the processed information can be divided into a training set and a test set at a preset ratio of 7:3. The training set is used to train the linear regression model, and the test set is used to evaluate the model. The mean square error can be used as an evaluation indicator.

[0077] 504. The training set is input into the linear regression model for training, and the linear regression model is evaluated using the test set to obtain a damage prediction model.

[0078] See also Figure 6 The sixth embodiment of the environmental protection bag damage monitoring method in the embodiment of the present invention includes:

[0079] 601. Acquire multiple pieces of recent extraction information stored in the environmental bag data monitoring system, wherein the recent extraction information is extraction information stored in the environmental bag data monitoring system in the past month;

[0080] 602. Inputting the plurality of recently extracted information into the damage prediction model respectively to obtain a prediction result, wherein the prediction result is a prediction result of the service life of the environmentally friendly bag;

[0081] 603. Analyze the prediction results using a random forest algorithm to obtain analysis results;

[0082] In this embodiment, the prediction results are analyzed using a random forest algorithm, which identifies factors that have a significant impact on the service life by analyzing the importance of each feature, which helps to discover potential causes of breakage, that is, the obtained analysis results include potential causes of breakage.

[0083] 604. Generate procurement adjustment information based on forecast results and analysis results;

[0084] In this embodiment, the generated purchase adjustment information includes the estimated purchase time of the environmentally friendly bags and the purchase quantity of the environmentally friendly bags of each supplier in the supplier pool.

[0085] See also Figure 7 The seventh embodiment of the method for monitoring damage of an environmentally friendly bag in the embodiment of the present invention includes:

[0086] 701. When the environmentally friendly bag data monitoring system receives a query instruction, the query instruction is extracted and processed using a named entity recognition method to obtain query information;

[0087] In this embodiment, a named entity recognition method is used to extract and process the query instruction. Named entity recognition extracts relevant important information from the query instruction by marking specific entities in the text, such as people, places, dates, etc.

[0088] 702. Construct an SQL query statement according to the query information, and extract query data from the environmental protection bag data monitoring system through the SQL query statement;

[0089] In this embodiment, for Doris, Presto or Apache Superset is used for query, and for MySQL, the constructed SQL statement is directly used to query the required data to ensure that the query accurately extracts the required relevant information.

[0090] 703. Aggregate and filter the query data to obtain filtered data;

[0091] In this embodiment, the query data is aggregated using aggregation functions, which may include aggregation functions such as SUM, COUNT, AVG and MAX; further, the query data is grouped and filtered using the WHERE clause, HAVING clause and GROUP BY clause to obtain filtered data.

[0092] 704. Generate a query report using a report generation tool based on the report requirements included in the filtered data and the query information;

[0093] In this embodiment, the report generation tool is Tableau. According to the report requirements, such as the horizontal axis definition, vertical axis definition, title, etc. of the report, the report generation tool is used to convert the processed data into an easy-to-understand graphical presentation form, such as a bar chart, line chart or pie chart, to improve the user experience.

[0094] The above describes the environmental protection bag damage monitoring method in the embodiment of the present invention. The following describes the environmental protection bag damage monitoring device in the embodiment of the present invention. Figure 8 , an embodiment of the environmental protection bag damage monitoring device in the embodiment of the present invention includes:

[0095] The construction module 801 is used to construct an environmentally friendly bag data monitoring system based on the data transmission ports of multiple distribution centers; the review module 802 is used to review the real-time reporting information when the environmentally friendly bag data monitoring system receives it, and if the real-time reporting information passes the review, then generate interception instructions and reward and punishment information based on the real-time reporting information that passes the review; the extraction module 803 is used to extract and process the real-time reporting information that passes the review according to preset classification keywords, obtain extraction information, and store the extraction information in the environmentally friendly bag data monitoring system; the training module 804 is used to obtain multiple historical extraction information stored in the environmentally friendly bag data monitoring system, and train a damage prediction model based on the historical extraction information; the prediction module 805 is used to obtain multiple recent extraction information stored in the environmentally friendly bag data monitoring system, and input the multiple recent extraction information into the damage prediction model respectively to obtain prediction results; the query module 806 is used to extract and process the query instruction when the environmentally friendly bag data monitoring system receives the query instruction, obtain the query information, and generate a query report based on the query information.

[0096] In this embodiment, the construction module 801 includes: a construction unit 8011, which is used to build a connection relationship between the data transmission ports of multiple distribution centers and the Kafka cluster, and send the data fed back by the data transmission ports in the multiple distributions to specific topics in the Kafka cluster respectively; a first introduction unit 8012, which is used to introduce the Flink stream processing engine, consume data streams from specific topics in the Kafka cluster, and perform real-time data processing and conversion; a second introduction unit 8013, which is used to introduce Doris and MySQL databases to store data processed by the Flink stream processing engine; a connection unit 8014, which is used to use BI tools to connect Doris and MySQL databases to complete the construction of the environmentally friendly bag data monitoring system.

[0097] In this embodiment, the audit module 802 includes: an audit unit 8021, which is used to audit the real-time reporting information by using a form library in combination with a regular expression when the environmentally-friendly bag data monitoring system receives the real-time reporting information, so as to confirm whether the real-time reporting information includes all required information; a first acquisition unit 8022, which is used to obtain the reporter information and the reporting address included in the real-time reporting information when the real-time reporting information passes the review; a matching unit 8023, which is used to match the preset distribution center address library according to the reporting address by using an edit distance algorithm to confirm the distribution center address corresponding to the reporting address; a second acquisition unit 8024, which is used to obtain the contact information of the confirmed distribution center address, generate an interception instruction based on the obtained contact information, the preset reminder interval number and interval time, and generate reward and punishment information based on the contact information, the reporter information and the preset reporting reward and punishment table.

[0098] In this embodiment, the extraction module 803 includes: a first extraction unit 8031, which is used to use the KMP algorithm to extract and process the real-time reporting information that has passed the review according to the preset classification keywords to extract the information keywords corresponding to the classification keywords; an allocation unit 8032, which is used to allocate the information keywords to the preset categories to obtain classification information; a storage unit 8033, which is used to clean, filter and summarize the classification information in turn to obtain extracted information, and store the extracted information in the environmental protection bag data monitoring system.

[0099] In this embodiment, the training module 804 includes: a third acquisition unit 8041, which is used to acquire multiple historical extraction information stored in the environmentally-friendly bag data monitoring system, and the historical extraction information is the extraction information stored in the environmentally-friendly bag data monitoring system three months ago; a processing unit 8042, which is used to clean and preprocess the multiple historical extraction information respectively, and extract features related to the service life from the historical extraction information to obtain processed information; a division unit 8043, which is used to perform feature scaling and division processing on the processed information in turn to obtain a training set and a test set; a training unit 8044, which is used to input the training set into the linear regression model for training, and use the test set to evaluate the linear regression model to obtain a damage prediction model.

[0100] In this embodiment, the prediction module 805 includes: a fourth acquisition unit 8051, which is used to acquire multiple recent extraction information stored in the environmentally-friendly bag data monitoring system, and the recent extraction information is the extraction information stored in the environmentally-friendly bag data monitoring system in the past month; a prediction unit 8052, which is used to input multiple recent extraction information into the damage prediction model respectively to obtain prediction results, and the prediction results are the service life prediction results of the environmentally-friendly bags; an analysis unit 8053, which is used to analyze the prediction results using a random forest algorithm to obtain analysis results; a first generation unit 8054, which is used to generate procurement adjustment information based on the prediction results and the analysis results.

[0101] In this embodiment, the query module 806 includes: a second extraction unit 8061, which is used to extract and process the query instruction using a named entity recognition method when the environmental-friendly bag data monitoring system receives a query instruction to obtain query information; a query unit 8062, which is used to construct an SQL query statement based on the query information, and extract query data from the environmental-friendly bag data monitoring system through the SQL query statement; a filtering unit 8063, which is used to aggregate and filter the query data to obtain filtered data; a second generation unit 8064, which is used to generate a query report using a report generation tool based on the report requirements included in the filtered data and the query information.

[0102] above Figure 8The environmentally friendly bag damage monitoring device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The environmentally friendly bag damage monitoring device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0103] Fig. 9 9 is a schematic diagram of the structure of an environmental protection bag damage monitoring device provided by an embodiment of the present invention. The environmental protection bag damage monitoring device 900 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 910 (for example, one or more processors) and a memory 920, and one or more storage media 930 (for example, one or more mass storage devices) storing application programs 933 or data 932. Among them, the memory 920 and the storage medium 930 can be short-term storage or permanent storage. The program stored in the storage medium 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the environmental protection bag damage monitoring device 900. Furthermore, the processor 910 can be configured to communicate with the storage medium 930, and execute a series of instruction operations in the storage medium 930 on the environmental protection bag damage monitoring device 900 to implement the steps of the environmental protection bag damage monitoring method provided by the above-mentioned method embodiments.

[0104] The environmental bag damage monitoring device 900 may also include one or more power supplies 940, one or more wired or wireless network interfaces 950, one or more input and output interfaces 960, and / or one or more operating systems 931, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that the environmental bag damage monitoring device structure shown in the present application does not constitute a limitation on the environmental bag damage monitoring device, and may include more or less components than shown in the figure, or combine certain components, or arrange components differently.

[0105] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the method for monitoring damage of environmentally friendly bags.

[0106] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0107] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0108] Finally, it should be noted that the above description is only a preferred example of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for monitoring damage of environmentally friendly bags, characterized in that: include: Build an environmentally friendly bag data monitoring system based on the data transmission ports of multiple distribution centers; When the environmentally friendly bag data monitoring system receives real-time reporting information, it will review the real-time reporting information. If the real-time reporting information passes the review, it will generate interception instructions and reward and punishment information based on the real-time reporting information that passes the review; Extract and process the real-time reporting information that has passed the review according to the preset classification keywords to obtain the extracted information, and store the extracted information in the environmental protection bag data monitoring system; Acquire multiple pieces of historical extraction information stored in the environmentally friendly bag data monitoring system, and train a damage prediction model based on the historical extraction information; Acquire multiple pieces of recent extraction information stored in the environmentally friendly bag data monitoring system, and input the multiple pieces of recent extraction information into the damage prediction model to obtain prediction results; When the environmentally friendly bag data monitoring system receives a query instruction, it extracts and processes the query instruction to obtain query information, and generates a query report based on the query information.

2. A method for monitoring damage of environmentally friendly bags according to claim 1, characterized in that: The data transmission ports based on multiple distribution centers are used to construct an environmentally friendly bag data monitoring system, which specifically includes: Establish the connection relationship between the data transmission ports of multiple distribution centers and the Kafka cluster, and send the data fed back by the data transmission ports in multiple distribution centers to specific topics in the Kafka cluster respectively; Introducing the Flink stream processing engine to consume data streams from specific topics in the Kafka cluster and perform real-time data processing and conversion; Introduce Doris and MySQL databases to store data processed by the Flink stream processing engine; BI tools are used to connect Doris and MySQL databases to complete the construction of the environmentally friendly bag data monitoring system.

3. The method for monitoring damage of an environmentally friendly bag according to claim 1, characterized in that: When the environmentally friendly bag data monitoring system receives the real-time reporting information, it reviews the real-time reporting information. If the real-time reporting information passes the review, it generates interception instructions and reward and punishment information based on the real-time reporting information that passes the review, specifically including: When the environmentally friendly bag data monitoring system receives real-time reporting information, the form library is used with regular expressions to review the real-time reporting information to confirm whether the real-time reporting information includes all required information; When the real-time reporting information passes the review, the reporter information and reporting address included in the real-time reporting information are obtained; According to the reported address, the edit distance algorithm is used to match the preset distribution center address library to confirm the distribution center address corresponding to the reported address; The contact information of the confirmed distribution center address is obtained, an interception instruction is generated based on the obtained contact information, the preset reminder interval number and interval time, and reward and punishment information is generated based on the contact information, the reporter information and the preset reporting reward and punishment table.

4. The method for monitoring damage of an environmentally friendly bag according to claim 1, characterized in that: The method of extracting and processing the real-time reporting information that has passed the review according to the preset classification keywords to obtain the extracted information, and storing the extracted information in the environmental protection bag data monitoring system specifically includes: Adopt KMP algorithm to extract and process the real-time report information that has passed the review according to the preset classification keywords, so as to extract the information keywords corresponding to the classification keywords; Assign information keywords to preset categories to obtain classified information; The classified information is cleaned, filtered and summarized in turn to obtain extracted information, which is then stored in the environmentally friendly bag data monitoring system.

5. The method for monitoring damage of an environmentally friendly bag according to claim 1, characterized in that: The obtaining of multiple pieces of historical extraction information stored in the environmentally friendly bag data monitoring system and training of a damage prediction model based on the historical extraction information specifically includes: Acquire multiple pieces of historical extraction information stored in the environmentally friendly bag data monitoring system, wherein the historical extraction information is the extraction information stored in the environmentally friendly bag data monitoring system three months ago; Cleaning and preprocessing the multiple pieces of historical extraction information respectively, and extracting features related to the service life from the historical extraction information to obtain processed information; The processed information is subjected to feature scaling and division processing in turn to obtain a training set and a test set; The training set is input into the linear regression model for training, and the test set is used to evaluate the linear regression model to obtain the damage prediction model.

6. A method for monitoring damage of environmentally friendly bags according to claim 5, characterized in that: The method of obtaining a plurality of recent extraction information stored in the environmentally friendly bag data monitoring system and inputting the plurality of recent extraction information into the damage prediction model to obtain the prediction results specifically includes: Acquire multiple pieces of recent extraction information stored in the environmental bag data monitoring system, wherein the recent extraction information is the extraction information stored in the environmental bag data monitoring system in the past month; Inputting a plurality of recently extracted information into the damage prediction model respectively to obtain a prediction result, wherein the prediction result is a prediction result of the service life of the environmentally friendly bag; The prediction results are analyzed using the random forest algorithm to obtain the analysis results; Generate procurement adjustment information based on forecast and analysis results.

7. The method for monitoring damage of an environmentally friendly bag according to claim 1, characterized in that: When the environmentally friendly bag data monitoring system receives a query instruction, it extracts and processes the query instruction to obtain query information, and generates a query report based on the query information, specifically including: When the environmentally friendly bag data monitoring system receives a query instruction, the query instruction is extracted and processed using a named entity recognition method to obtain query information; Constructing SQL query statements according to the query information, and extracting query data from the environmentally friendly bag data monitoring system through the SQL query statements; Aggregate and filter the query data to obtain filtered data; Generate query reports using report generation tools based on the report requirements included in the filtered data and query information.

8. An environmentally friendly bag damage monitoring device, characterized in that: include: A building module for building a data monitoring system for environmentally friendly bags based on the data transmission ports of multiple distribution centers; The audit module is used to audit the real-time reporting information when the environmental protection bag data monitoring system receives it. If the real-time reporting information passes the audit, an interception instruction and reward and punishment information are generated based on the real-time reporting information that passes the audit; An extraction module is used to extract and process the real-time reporting information that has passed the review according to preset classification keywords, obtain extracted information, and store the extracted information in the environmental protection bag data monitoring system; A training module, used to obtain multiple pieces of historical extraction information stored in the environmentally friendly bag data monitoring system, and train a damage prediction model based on the historical extraction information; A prediction module is used to obtain multiple pieces of recent extraction information stored in the environmental protection bag data monitoring system, and input the multiple pieces of recent extraction information into the damage prediction model to obtain prediction results; The query module is used to extract and process the query instruction when the environmental protection bag data monitoring system receives the query instruction, obtain the query information, and generate a query report based on the query information.

9. An environmentally friendly bag damage monitoring device, characterized in that: The environmentally friendly bag damage monitoring device comprises: a memory and at least one processor, wherein instructions are stored in the memory; At least one of the processors calls the instructions in the memory to enable the environmentally friendly bag damage monitoring device to execute each step of the environmentally friendly bag damage monitoring method as described in any one of claims 1 to 7.

10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the various steps of the environmentally friendly bag damage monitoring method as described in any one of claims 1 to 7 are implemented.