Lawyer letter package sorting method and system based on decision tree

Through the decision tree-based algorithm for the special delivery of lawyer letters, the problems of slow packaging and sorting speed and low accuracy of action are solved, efficient automatic packaging and sorting are realized, and the packaging and sorting of special delivery of lawyer letters are improved. efficiency.

CN118941203APending Publication Date: 2024-11-12WUHAN ZHIPINTANG TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410958889.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing automatic packaging and sorting equipment for lawyer letter specialized envelopes is large in size, diverse content and irregular paging problems, resulting in slow packaging and sorting speed and low correctness of action. The flexibility based on traditional PLC technology is difficult to meet. The rapidly changing needs cannot achieve intelligent decision-making.

Method used

The decision tree-based algorithm is used to perform feature selection and leaf node segmentation, predict the position data of lawyer's letters, and encapsulation and sorting are realized through intelligent decision tree algorithms, and a tree-like structure is built to make optimal decisions, improving packaging efficiency and accuracy.

Benefits of technology

It realizes the entire process from printing internal parts, page slips, automatic packaging, information verification, and automatic sorting, improves the packaging efficiency of lawyer letters, reduces the risk of misplacement and missed delivery, and the processing speed reaches 3,000 pieces/h. The efficiency is more than 15 times that of manual labor, improving automation and information processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118941203A_ABST
    Figure CN118941203A_ABST
Patent Text Reader

Abstract

The invention discloses a lawyer letter special delivery packaging and sorting method and system based on a decision tree, and relates to the field of artificial intelligence, the system comprises a material filling device, a printing device, a packaging device, a special delivery sheet pasting device and a sorting device; the method comprises the steps that whether materials are sufficient or not is checked before equipment is started; when the materials are sufficient, the printing information and the internal piece information of the lawyer letter delivery are imported into information reading equipment, a delivery bar code and a delivery sorting code are generated, an express sheet is delivered through the printing equipment, and the lawyer letter delivery and an envelope are packaged based on the delivery bar code; after the special bar code and the special sheet are scanned and checked to be correct, the special sheet is pasted on the envelope; and identifying a special delivery sorting code by scanning a special delivery bar code, predicting a special delivery track through a decision tree algorithm, and sorting lawyer letter special deliveries to corresponding logistics grids to complete pre-sorting. Therefore, the confidentiality and the packaging efficiency of lawyer letter delivery are effectively improved, and the labor cost is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence, and in particular to a decision tree-based lawyer letter delivery packaging and sorting method and system. Background Art

[0002] In recent years, the express logistics industry has experienced explosive growth, various online loan platforms have sprung up, and the rate of personal non-performing assets has continued to increase, which has accelerated the growth of lawyer letter express delivery. The express delivery industry urgently needs an automatic packaging and sorting equipment. The research and development and manufacturing of automatic packaging and sorting equipment for traditional registered small envelopes by mainstream domestic and foreign companies are relatively mature and technologically advanced. For example, the relevant products of Shanghai Postal Science Research Institute and Pitney Bowes of the United States have reached a processing capacity of 5000 / h. However, unlike the automatic packaging and sorting equipment for traditional registered small envelopes, lawyer letter express envelopes are seriously affected by their large size, diverse content of inserted materials, and irregular paging, which seriously affects their packaging and sorting speed and the accuracy of equipment action. At present, there are no reports of mature related integrated equipment products at home and abroad. Industry giants such as Shanghai Postal Science Research Institute, Pitney Bowes, Germany's Bove and Otto are accelerating the development of integrated equipment for automatic packaging and sorting of special delivery envelopes (Yang Qianwei, 2024, 172-174). If these manufacturers do not have innovative concepts in the overall design, it will be difficult to make breakthroughs in a short period of time (Huang Qizhi, Fu Jilin, 2018, 123-125).

[0003] Based on the current explosive development of lawyer letter delivery, the existing equipment realizes the sorting function based on the traditional PLC (programmable logic controller) technology, which has poor flexibility and weak algorithm capability. The traditional PLC system is usually implemented based on hard-wired logic. Modifying the control logic requires rewiring and programming, which has poor flexibility and is not enough to adapt to rapidly changing needs. The traditional PLC system is mainly used for logic control, and has limited processing capabilities for complex algorithms, making it difficult to achieve intelligent decision-making. It cannot meet the problems of diversified letter contents and easy errors. The present invention provides a lawyer letter delivery packaging and sorting method and system based on a decision tree, which performs feature selection and leaf node segmentation on a large number of special delivery orders based on a sorting decision tree algorithm, and then predicts the current lawyer letter location data, obtains the maximum probability of the sorting destination location, and makes corresponding intelligent decisions, so that the letter flows to the corresponding logistics grid according to the trajectory to complete the sorting. The intelligent algorithm is adopted, which has strong flexibility. The intelligent decision tree algorithm can automatically make decisions and adjustments according to pre-set rules and conditions, has a certain level of intelligence, and can better cope with complex scenarios. It is based on software implementation and has high flexibility. It can meet different needs and adapt to rapidly changing environments through software configuration and adjustment. It realizes a full process from printing inner parts, face sheet, automatic packaging, information verification, and automatic sorting, which greatly improves packaging efficiency and reduces the risk of misplacement and misdelivery. The maximum processing speed reaches 3,000 pieces / h, and the work efficiency is more than 15 times that of manual operation. It improves the automation and information processing capabilities of the entire operation process. Thereby achieving the purpose of improving the efficiency of packaging, sending, and transportation of lawyers' letters. Summary of the invention

[0004] The main purpose of the present invention is to provide a method and system for encapsulating and sorting lawyer's letters based on a decision tree, which realizes a full process from printing inner parts, face sheet, automatic encapsulation, information verification, and automatic sorting. It solves the problems of poor confidentiality of lawyer's letters, low efficiency of printing, encapsulation and sorting, and high error rate of manual encapsulation.

[0005] To achieve the above-mentioned purpose, the present invention proposes a method for packaging and sorting lawyer's letters based on a decision tree. The method is applied to a system for packaging and sorting lawyer's letters based on a decision tree. The system includes a material filling device, a printing device, a packaging device, a delivery order pasting device and a sorting device. The method includes:

[0006] Before starting the system equipment, check whether the materials are sufficient;

[0007] When the materials are sufficient, the printed information and the contents information of the lawyer's letter are imported into the information reading device of the material filling device, the corresponding special delivery barcode and special delivery sorting code are generated, and the special delivery waybill of the lawyer's letter is generated by the printing device, and the lawyer's letter and the envelope are packaged by the packaging device based on the special delivery barcode;

[0008] After scanning and verifying that the express delivery barcode and the express delivery note are correct, the express delivery note is pasted on the envelope;

[0009] By scanning the express delivery barcode to identify the express delivery sorting code and predicting the express delivery trajectory through the decision tree algorithm, the lawyer's letter express delivery is sorted to the corresponding logistics grid to complete the pre-sorting.

[0010] In one embodiment, the step of predicting the delivery trajectory by using a decision tree algorithm and sorting the lawyer's letter delivery to the corresponding logistics grid to complete the pre-sorting includes:

[0011] According to the express delivery details, select the order number to the express delivery batch scrolling query system to conduct batch express delivery query and export the express delivery query results;

[0012] According to the features of the express delivery sample data in the express delivery query result, feature selection is performed through a decision tree algorithm to obtain the optimal features;

[0013] According to the selected optimal features, the data set corresponding to the features of the express delivery sample data is divided into multiple subsets;

[0014] Recursively executing the step of performing feature selection by using a decision tree algorithm to obtain the optimal features for each subset until a preset stop condition is met to obtain a trained model;

[0015] According to the trained model, the current delivery trajectory of lawyer's letters is predicted, and the lawyer's letters are sorted to the corresponding logistics grids to complete the pre-sorting.

[0016] In one embodiment, the step of performing feature selection by a decision tree algorithm to obtain the optimal feature includes:

[0017] The information gain ratio of each feature in the express delivery sample data is calculated through the decision tree algorithm. Each feature includes the size, weight, speed and residence time of the letter.

[0018] The optimal feature is selected according to the information gain ratio.

[0019] In one embodiment, the step of dividing the data set corresponding to the delivery sample data feature into a plurality of subsets according to the selected optimal feature comprises:

[0020] According to the selected optimal features, the data set corresponding to the features of the express sample data is divided into multiple subsets according to the standard that the data in the subsets have similar features.

[0021] In one embodiment, the step of recursively performing the step of selecting features by using a decision tree algorithm to obtain the optimal features for each subset until a preset stop condition is met to obtain a trained model includes:

[0022] Recursively performing the step of selecting features by using a decision tree algorithm to obtain optimal features for each subset until a preset stopping condition is met, wherein the preset stopping condition includes that the node reaches a maximum depth, the number of samples in the node is less than a preset threshold, and all data in the subset belong to the same category;

[0023] When the preset stop condition is reached, the node that reaches the preset stop condition is marked as a leaf node, and the category of the leaf node is set as the main category to obtain a trained model.

[0024] In one embodiment, the steps of predicting the delivery trajectory of the current lawyer's letter delivery based on the trained model, sorting the lawyer's letter delivery to the corresponding logistics grid, and completing the pre-sorting step include:

[0025] According to the trained model, the current location of the lawyer's letter delivery is predicted to obtain the maximum probability of the destination location;

[0026] Determine the delivery track of the lawyer's letter according to the maximum probability;

[0027] According to the express delivery track, the lawyer's letter will be sorted to the corresponding logistics grid to complete the pre-sorting.

[0028] In addition, to achieve the above-mentioned purpose, the present invention also proposes a lawyer's letter express delivery packaging and sorting system based on a decision tree, the system comprising: a material filling device, a printing device, a packaging device, an express delivery form pasting device and a sorting device;

[0029] The material filling device is composed of information reading, grabbing, and information matching equipment; the material filling device is connected to the printing equipment, the packaging equipment, and the special delivery order pasting equipment in sequence, and the special delivery order pasting equipment is connected to the sorting equipment, and each device is connected by a conveyor belt device.

[0030] In one embodiment, the information reading device of the material filling device is used to read the barcode information on the lawyer's letter delivery and the delivery bill by infrared scanning in a non-contact manner;

[0031] The information reading device is also used to compare whether the printing order of the lawyer's letter delivery and the delivery delivery bill is consistent after parsing the barcode information.

[0032] In one embodiment, the information comparison device generates a special delivery sorting code according to the imported special delivery address, matches the special delivery sorting code to the corresponding logistics grid, and sorts the printing order to obtain the printing order;

[0033] The printing device prints the special delivery waybill according to the printing order marked by the information comparison device;

[0034] The packaging device packages the lawyer's letter and the envelope in sequence.

[0035] In one embodiment, the sorting device is used to scan the express sorting code through a scanning device after packaging is completed, and transmit the lawyer's letter express to the corresponding logistics grid to complete pre-sorting.

[0036] The specific technical solution is:

[0037] Step 1: Fill materials; before starting the equipment, place the envelope, label, and paper into the corresponding material containers respectively. If there is insufficient material during the packaging process, the system will prompt the material filling status. Materials can be added at any time during printing and packaging without interrupting production.

[0038] Step 2: Import the letter data to the printing device, and the system will automatically generate the special delivery label, special delivery barcode, etc. The special delivery barcode is the unique identifier for reading and capturing the content information of the lawyer's letter special delivery.

[0039] Step 3: The system completes information comparison and generates a special delivery sorting code. The pre-sorting is completed through the special delivery sorting code, and the inner items are printed in the order of the special delivery label.

[0040] Step 4: The packaging equipment identifies the express barcode on the inner part and affixes the express delivery label to the specified position on the envelope after packaging is completed. The label information is displayed in encrypted form. The packaging equipment mainly identifies the inner part by the express barcode. The entire packaging equipment cannot obtain the mailing information, which effectively avoids information leakage and other problems.

[0041] Step 5: According to the express barcode, obtain the express sorting code. The express sorting is based on the intelligent decision tree algorithm to accurately predict the express trajectory and sort it to the corresponding logistics grid to complete the pre-sorting. The intelligent decision tree algorithm is a supervised learning algorithm based on a tree structure, which is used to accurately predict the path trajectory and destination prediction of letters. The principle is to segment the letter speed and residence time data set into leaf nodes and build a tree structure so that the best decision can be made at each node to predict the trajectory of new letters entering the material filling device to the sorting equipment. From the express details, select the express number to perform batch express query in the express batch rolling query system and then export the express query results. First, according to the characteristics of the express sample data, feature selection is performed. The decision tree algorithm selects the optimal feature by calculating the information gain or information gain ratio of each feature to divide the data set into subsets. Information gain is used to measure how much information a feature can bring to the data set. The larger the information gain, the stronger the classification ability of the feature. The calculation formula of information gain is as follows:

[0042]

[0043] Among them, D is the express sample data, A is the feature data, V is the number of values ​​of A, and D v is a subset of A whose value is v.

[0044] The information gain is calculated for the size, weight, speed and residence time of the letter respectively. Based on this, the top five variables with information gain are selected. Secondly, the nodes are split. According to the selected optimal features, the data set is split into multiple subsets so that the data in each subset has similar features. Thirdly, recursive construction is performed. The above process is recursively applied to each subset until the stopping condition is met (such as reaching the maximum depth, the number of samples in the node is less than a certain threshold, etc.), or all the data in the subset belongs to the same category. Then, leaf node classification, when the stopping condition is met, the node is marked as a leaf node, and the category of the node is set to the category that occupies the majority of the data in the node. Finally, intelligent decision-making is performed. According to the trained model, the location data of the current lawyer's letter delivery is predicted, the maximum probability of the destination location is obtained, and corresponding intelligent decisions are made so that the letters flow according to the trajectory. The predicted delivery trajectory is sorted to the corresponding logistics grid to complete the pre-sorting.

[0045] Step 6: The information proofreading system monitors and detects all links to detect abnormal problems in a timely manner, ensuring that the information on the lawyer's letter is consistent with the contents, and that the express delivery sorting code information is consistent with the sorting grid.

[0046] One or more technical solutions proposed by the present invention have at least the following technical effects: The present invention mentions a method and system for packaging and sorting lawyer's letters based on a decision tree, the system includes a material filling device, a printing device, a packaging device, a special delivery order pasting device and a sorting device; the method includes: before the system equipment is started, check whether the materials are sufficient; when the materials are sufficient, import the printing information and internal information of the lawyer's letter into the information reading device of the material filling device, generate the corresponding special delivery barcode and special delivery sorting code, and generate the lawyer's letter special delivery bill through the printing device, and package the lawyer's letter special delivery and the envelope through the packaging device based on the special delivery barcode; after scanning and verifying that the special delivery barcode and the special delivery order are correct, paste the special delivery bill on the envelope; identify the special delivery sorting code by scanning the special delivery barcode, and predict the special delivery trajectory through the decision tree algorithm, sort the lawyer's letter special delivery to the corresponding logistics grid, and complete pre-sorting. The problem of low efficiency, high fault tolerance and weak confidentiality of manual packaging of lawyer's letters is solved. This effectively improves the confidentiality and packaging efficiency of lawyer's letter delivery and greatly reduces labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0048] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0049] Figure 1 This is an example operation flow chart of the method for packaging and sorting lawyer's letters based on a decision tree of the present invention;

[0050] Figure 2 It is a device model diagram of the lawyer letter delivery packaging and sorting system based on the decision tree of the present invention;

[0051] Figure 3 It is an operation flow chart of the lawyer letter delivery packaging and sorting system based on the decision tree of the present invention;

[0052] Figure 4 The figure is a decision flow diagram of the lawyer's letter delivery packaging and sorting method based on a decision tree according to the present invention.

[0053] Description of Figure Numbers:

[0054] 1. Material filling device; 2. Printing equipment and packaging equipment; 3. Sorting equipment and scanning equipment; 4. Logistics grid; 5. Conveyor belt.

[0055] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0056] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0057] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0058] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, close, far...) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0059] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0060] In order to enable those skilled in the art to better understand the technical solutions of the present invention, the present invention is described in further detail below.

[0061] Reference Figure 1 , Figure 1 This is an example operation flow chart of the method for packaging and sorting lawyer's letters based on a decision tree of the present invention. The specific steps are as follows:

[0062] Step 1: Assume that there are 1,000 lawyer letters that need to be printed and packaged. Before starting the system, check whether the reserved paper size in the material filling device is consistent with the contents of the letter that needs to be printed and sent this time, and confirm that the number of envelopes, A4 paper, and delivery bills used is 1,000, and the filling is completed.

[0063] Step 2: Import 1,000 lawyer letters into the letter sending data system in the form of a table, where the recipient's name, phone number, and address are required items. The system automatically generates the express delivery bill, express barcode, and express content information based on the imported template.

[0064] Step 3: The system uses the verification device in the printing device to verify whether the printing order of 1,000 lawyer letter delivery notes is consistent with the printing order of 1,000 internal items based on the express delivery barcode. After verification, the lawyer letter internal items and delivery notes are compared and sorted one by one, and the sorting code is generated at the same time, and pre-sorting is completed according to the sorting code.

[0065] Step 4: Print the delivery note and inner parts in sequence; first, print all 1,000 copies of the inner parts and store them in the material warehouse under the printing device; then print all 1,000 copies of the lawyer's letter delivery delivery notes and store them in the logistics warehouse under the delivery note pasting device. Finally, automatically package them in sequence, transport the inner parts to the conveyor belt, and then transfer them to the packaging device to complete the automatic packaging. The conveyor belt transports the envelope to the delivery note pasting device, and the system pastes the printed lawyer's letter delivery note to the designated location in sequence. Infrared scanning is used for verification to compare whether the printing order of the inner parts and delivery notes is consistent.

[0066] Step 5: The packaged express parcels are sent to A slot (750 copies), B slot (150 copies), C slot (80 copies), and D slot (20 copies) via a conveyor belt to complete the sorting.

[0067] The above method is implemented through a lawyer letter delivery packaging and sorting system based on a decision tree. Please refer to Figure 2 , Figure 2 This is a device model diagram of the lawyer letter delivery packaging and sorting system based on the decision tree of the present invention.

[0068] The system described in this example includes: a material filling device, a printing device, a packaging device, a special delivery order pasting device and a sorting device; the material filling device is composed of information reading, grabbing and information matching devices; the material filling device is connected to the printing device, the packaging device and the special delivery order pasting device in sequence, and the special delivery order pasting device is connected to the sorting device, and each device is connected by a conveyor belt device.

[0069] Furthermore, the information reading device of the material filling device is used to read the barcode information on the lawyer's letter express and the express delivery bill in a non-contact manner using infrared scanning; the information reading device is also used to compare whether the printing order of the lawyer's letter express and the express delivery bill is consistent after parsing the barcode information.

[0070] Furthermore, the information comparison device generates an express delivery sorting code according to the imported express delivery address, matches the express delivery sorting code to the corresponding logistics grid, and sorts the printing order to obtain the printing order; the printing device prints the express delivery label according to the printing order marked by the information comparison device; the packaging device packages the lawyer's letter express delivery and the envelope in sequence.

[0071] Furthermore, the sorting device is used to scan the express sorting code through a scanning device after packaging is completed, and transmit the lawyer's letter express to the corresponding logistics grid to complete pre-sorting.

[0072] like Figure 2 As shown, device 1 represents a material filling device, device 2 represents a printing device and a packaging device, device 3 represents a sorting device and a scanning device (the scanning device can use infrared scanning to read the barcode information on the inner items and the waybill in a non-contact manner, and compare whether the printing order of the inner items and the waybill is consistent after correctly parsing the information), device 4 represents a logistics grid, and device 5 is a conveyor belt, which is used to connect the above-mentioned devices.

[0073] Moreover, the scanning equipment can be used to check and correct all aspects of the system. First, the physical defects of materials in each link are checked to ensure that the materials of each lawyer's letter delivery are qualified; second, it is to ensure that the contents of the packaged lawyer's letter match the information on the delivery note. Compared with manual printing and packaging, the efficiency of the automatic packaging and sorting system has been significantly improved. It is difficult for the entire system to obtain mailing information, which effectively avoids information leakage and other problems, and the confidentiality reaches 100%. It effectively improves the confidentiality and packaging efficiency of lawyer's letter delivery, and greatly reduces labor costs.

[0074] It should be noted that the material filling device is a device used to accurately and quantitatively fill materials into a specific container.

[0075] For example, envelopes, labels, paper and other materials can be placed in corresponding material containers respectively to achieve accurate filling and packaging of materials and improve the production efficiency of the system.

[0076] In addition, if there is insufficient material during the packaging process, the system can prompt the material filling status, and materials can be added at any time during printing and packaging without interrupting production.

[0077] It should be noted that the printing device is a component related to the printing function in the system. Through the printing device, the letter data can be converted into actual paper documents. It should be noted that the letter data is the data involved in the contents of the lawyer's letter. For example, the time and place of the letter, the specific information of the parties, etc.

[0078] It should be noted that the packaging equipment is a device that organizes and packages the contents of a lawyer's letter into a complete "package" during the express delivery business process.

[0079] It should be noted that the express barcode is a code used in express delivery services to identify specific packages.

[0080] The express delivery barcode consists of a string of specific numbers and barcodes. By scanning the express delivery barcode, you can quickly and accurately obtain relevant information about the lawyer's letter express delivery, such as the sender, recipient, package content, transportation route, etc., and you can identify, track, manage and sort the lawyer's letter express delivery to improve the efficiency and accuracy of the express delivery service.

[0081] It should be noted that a lawyer's letter special delivery is a lawyer's letter document that contains substantive content in the lawyer's letter special delivery type.

[0082] It should be noted that the express delivery sorting code is a code used to distinguish different goods during the express delivery sorting process.

[0083] It is understandable that, through the express sorting code, when a large number of express parcels are concentrated, the express parcels can be quickly and accurately classified according to certain rules and destinations to facilitate subsequent sorting and delivery, thereby improving the efficiency and accuracy of logistics operations.

[0084] It should be noted that logistics slots are specific areas or spaces divided in the logistics sorting site. Logistics slots are generally numbered or marked according to certain classification standards, such as destination, cargo category, etc. When the express parcel arrives at the logistics center for sorting, it can be assigned to the corresponding slot according to relevant information for further processing and distribution. The logistics slots can make the storage and sorting of express parcels more orderly and efficient.

[0085] It should be noted that the express delivery label is a document that is pasted or attached to the express package when providing express delivery service.

[0086] For example, the express delivery label generally contains the sender's information (such as name, address, contact information, etc.), the recipient's information (also including name, address, contact information, etc.), some detailed descriptions of the item, the order number, etc. The express delivery process can be identified and tracked through the express delivery label.

[0087] It should be noted that the system scans the express delivery barcode on the inner item and verifies it with the express delivery order. Then the express delivery order pasting device pastes it at the designated position of the packaged inner item in the specified pasting method of the delivery order.

[0088] For easier understanding, refer to Figure 3 , Figure 3 This is an operation flow chart of the lawyer letter delivery packaging and sorting system based on the decision tree of the present invention. The specific process is as follows:

[0089] Step 1: Material filling. Before starting the equipment, put the envelope, label, and paper into the corresponding material containers. If there is insufficient material during the packaging process, the system will prompt the material filling status. Materials can be added at any time during printing and packaging without interrupting production.

[0090] Step 2: Import the letter data to the printing device. Import the lawyer's letter special delivery printing information and the contents information into the information reading device of the printing device, parse the information to generate the lawyer's letter special delivery delivery form and contents information, and generate the corresponding special delivery barcode for printing, automatically generate the special delivery form, contents, special delivery barcode, etc. The special delivery barcode is the unique identifier for reading and capturing the special delivery contents information.

[0091] Step 3: The system completes information comparison and generates a sorting code. Pre-sorting and sorting are completed by matching the sorting code, and the inner parts are printed in the order of the special delivery label.

[0092] Step 4: Automatic packaging. After scanning the express barcode on the inner part and verifying it with the express delivery order, packaging is performed. After packaging is completed, the express delivery label is pasted to the designated position on the envelope. The label information is displayed in encrypted form. The packaging system mainly identifies the inner part by the express delivery barcode. The entire supporting system cannot obtain the mailing information, which effectively avoids information leakage and other problems.

[0093] Step 5: Sorting. According to the express barcode, obtain the express sorting code, match the express to the corresponding logistics grid (such as area A, area B, area C, etc.) according to the sorting code, and complete the sorting. Among them, express sorting is based on the decision tree algorithm to accurately predict the express trajectory and sort it to the corresponding logistics grid, which can improve the accuracy of sorting.

[0094] This embodiment realizes a complete process from printing internal parts, automatic packaging, and automatic sorting through material filling devices, printing equipment, packaging equipment, and sorting equipment. It not only improves the efficiency of packaging and sorting, but also sorts the express delivery to the corresponding logistics grid through the sorting equipment, avoiding the problems of high error rate and low efficiency of manual packaging.

[0095] Based on this, an embodiment of the present invention provides a decision tree-based lawyer's letter express packaging and sorting method, which is applied to the above-mentioned decision tree-based lawyer's letter express packaging and sorting system, and the method includes: before the system equipment is started, checking whether the materials are sufficient; when the materials are sufficient, importing the printing information and internal information of the lawyer's letter express into the information reading device of the material filling device, generating a corresponding express barcode and express sorting code, and generating a lawyer's letter express delivery bill through the printing device, and packaging the lawyer's letter express delivery and the envelope through the packaging device based on the express barcode; after scanning and verifying that the express barcode and the express bill are correct, the express delivery bill is pasted on the envelope; identifying the express sorting code by scanning the express barcode, and predicting the express trajectory through the decision tree algorithm, sorting the lawyer's letter express delivery to the corresponding logistics grid, and completing pre-sorting.

[0096] Furthermore, the step of predicting the courier trajectory through the decision tree algorithm and sorting the lawyer's letter courier to the corresponding logistics grid to complete the pre-sorting includes: selecting the order number according to the courier details to conduct a batch courier query in the courier batch rolling check system, and exporting the courier query results; performing feature selection through the decision tree algorithm according to the courier sample data features in the courier query results to obtain the optimal features; based on the selected optimal features, dividing the data set corresponding to the courier sample data features into multiple subsets; recursively executing the step of performing feature selection through the decision tree algorithm to obtain the optimal features for each subset until the preset stop condition is met to obtain a trained model; based on the trained model, predicting the current courier trajectory of the lawyer's letter courier, sorting the lawyer's letter courier to the corresponding logistics grid to complete the pre-sorting.

[0097] Furthermore, the step of performing feature selection through a decision tree algorithm to obtain the optimal feature includes: calculating the information gain ratio of each feature in the express delivery sample data features through a decision tree algorithm, each feature including the size, weight, speed and residence time of the letter; and selecting the optimal feature according to the information gain ratio.

[0098] Furthermore, the step of dividing the data set corresponding to the special delivery sample data feature into multiple subsets according to the selected optimal feature includes: dividing the data set corresponding to the special delivery sample data feature into multiple subsets according to the selected optimal feature and the standard that the data in the subset has similar features.

[0099] Furthermore, the step of recursively executing the step of performing feature selection through a decision tree algorithm to obtain optimal features for each subset until a preset stopping condition is met, and obtaining a trained model comprises: recursively executing the step of performing feature selection through a decision tree algorithm to obtain optimal features for each subset until a preset stopping condition is met, wherein the preset stopping condition comprises that the node reaches a maximum depth, the number of samples in the node is less than a preset threshold, and all data in the subset belongs to the same category; when the preset stopping condition is met, marking the node that meets the preset stopping condition as a leaf node, and setting the category of the leaf node as the main category, to obtain a trained model.

[0100] Furthermore, the step of predicting the current delivery trajectory of the lawyer's letter delivery according to the trained model, sorting the lawyer's letter delivery to the corresponding logistics grid, and completing the pre-sorting includes: predicting the current location of the lawyer's letter delivery according to the trained model, and obtaining the maximum probability of the destination location; determining the delivery trajectory of the lawyer's letter delivery according to the maximum probability; and sorting the lawyer's letter delivery to the corresponding logistics grid according to the delivery trajectory to complete the pre-sorting.

[0101] It should be noted that express delivery sorting is based on the decision tree algorithm to accurately predict the express delivery trajectory and sort it to the corresponding logistics grid to complete pre-sorting. Among them, the decision tree algorithm is a supervised learning algorithm based on a tree structure, which is used to accurately predict the path trajectory and destination prediction of letters. The principle is to construct a tree structure by segmenting the leaf nodes of the letter speed and residence time data set, so that the best decision can be made at each node to achieve the prediction of the trajectory of new letters entering the material filling device to the sorting equipment.

[0102] It should be noted that the express delivery sample data feature is to select express delivery data from the lawyer letter express delivery business. For example, it may include express delivery order number, package location, packaging location, transportation track and other data.

[0103] It should be noted that the optimal feature is the feature that can effectively distinguish the express delivery trajectory, which is selected from the many features of the express delivery sample data.

[0104] It should be noted that the preset stop condition is a pre-set condition for stopping the repeated selection of the optimal feature operation. Since the present embodiment implements sorting through a decision tree algorithm, the preset stop condition can be set to conditions such as reaching the maximum depth, the number of samples in the node being less than a certain threshold, etc., and the present embodiment does not impose any restrictions on this.

[0105] It should be noted that gain is used to measure how much information the feature data can bring to the features of the express sample data. The greater the information gain, the stronger the classification ability of the feature data.

[0106] Specifically, the gain calculation can be performed on the size, weight, speed and residence time characteristics of the express mail respectively, and the top five variables with the highest gain can be selected to select the optimal feature, so as to divide the express sample data features into subsets to improve the accuracy of feature selection.

[0107] In one embodiment, the features of the delivery sample data may be divided into multiple subsets based on the selected optimal features, so that the data in each subset has similar features, so as to cluster similar features and improve the accuracy of feature selection.

[0108] It should be noted that the leaf nodes are the corresponding tree nodes obtained by multiple iterations of the express sample data features through the decision tree algorithm.

[0109] It should be noted that the main category is the category that occupies the majority of the express delivery sample data features within the node.

[0110] It should be noted that the node depth refers to the level at which each node is located in the structure when constructing the data structure of the decision tree. The preset maximum depth is the maximum depth of the data structure of the decision tree that is preset, and this example does not impose any restrictions on this.

[0111] Taking the decision tree as an example, starting from the root node, each time a branch is passed to the next layer, the node depth increases by 1. When the depth of the node is equal to the preset maximum depth, it means that the deepest level allowed has been reached. By presetting the maximum depth, the structure can be avoided from being too complex and overfitting can be prevented.

[0112] For easier understanding, refer to Figure 4 , Figure 4 The following is a schematic diagram of the decision process of the lawyer's letter delivery packaging and sorting method based on the decision tree of the present invention.

[0113] Step S10: First, the features of the express mail sample data can be selected from the express mail customer database.

[0114] Step S20: Then, feature selection is performed based on the features of the express delivery sample data. The decision tree algorithm can be used to analyze and evaluate the features of the express delivery sample data (such as express delivery order number, package location, packaging location, transportation track, etc.). By calculating the index of the importance of these features in classification or prediction, the features that can effectively distinguish the express delivery track are selected from the numerous features and determined as the optimal features.

[0115] Step S30: Next, the nodes are segmented. According to the selected optimal features, the features of the delivery sample data can be segmented into multiple subsets, so that the data in each subset has similar features.

[0116] Step S40: Then construct a recursion. Keep returning to perform feature selection through the decision tree algorithm to obtain the optimal feature operation until the subset meets the preset stop condition, such as the node reaches the maximum depth, the number of samples in the node is less than a certain threshold, etc.

[0117] Step S50: Intelligent decision making. Make an intelligent decision on the current lawyer letter location data, obtain the destination location, and sort it to the corresponding logistics grid.

[0118] Step S60: finally completing the pre-sorting. The information of the pre-sorted express delivery can be recorded.

[0119] Decisions and adjustments can be made through the decision tree algorithm to reduce the risk of misplacement or misdelivery, thereby improving the fault tolerance of packaging and sorting of lawyer letters.

[0120] This embodiment uses the above-mentioned decision tree-based lawyer letter express packaging and sorting method to significantly improve its efficiency compared to manual printing and packaging, and its confidentiality reaches 100%. It effectively improves the confidentiality and packaging efficiency of lawyer letter express delivery, and greatly reduces labor costs. This can effectively solve the problems of explosive growth in the lawyer letter express logistics industry, low efficiency of manual packaging, high fault tolerance, and weak confidentiality.

[0121] It should be noted that the above examples are only used to understand the present invention and do not constitute a limitation on the decision tree-based lawyer letter express packaging and sorting method and system of the present invention. More simple transformations based on this technical concept are all within the scope of protection of the present invention.

[0122] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0123] The above descriptions are only some embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention's specification and drawings under the technical concept of the present invention, or directly / indirectly applied in other related technical fields, are included in the patent protection scope of the present invention.

Claims

1. A method for packaging and sorting lawyer's letters based on a decision tree, characterized in that: The method is applied to a lawyer's letter delivery packaging and sorting system based on a decision tree, the system comprising a material filling device, a printing device, a packaging device, a delivery order pasting device and a sorting device; the method comprises: Before starting the system equipment, check whether the materials are sufficient; When the materials are sufficient, the printed information and the contents information of the lawyer's letter are imported into the information reading device of the material filling device, the corresponding special delivery barcode and special delivery sorting code are generated, and the special delivery waybill of the lawyer's letter is generated by the printing device, and the lawyer's letter and the envelope are packaged by the packaging device based on the special delivery barcode; After scanning and verifying that the express delivery barcode and the express delivery note are correct, the express delivery note is pasted on the envelope; By scanning the express delivery barcode to identify the express delivery sorting code and predicting the express delivery trajectory through the decision tree algorithm, the lawyer's letter express delivery is sorted to the corresponding logistics grid to complete the pre-sorting.

2. The method according to claim 1, characterized in that The steps of predicting the delivery trajectory by using a decision tree algorithm and sorting the lawyer's letter delivery to the corresponding logistics grid to complete the pre-sorting process include: According to the express delivery details, select the order number to the express delivery batch scrolling query system to perform batch express delivery query and export the express delivery query results; According to the features of the express delivery sample data in the express delivery query result, feature selection is performed through a decision tree algorithm to obtain the optimal features; According to the selected optimal features, the data set corresponding to the features of the express delivery sample data is divided into multiple subsets; Recursively executing the step of performing feature selection by using a decision tree algorithm to obtain the optimal features for each subset until a preset stop condition is met to obtain a trained model; According to the trained model, the current delivery trajectory of lawyer's letters is predicted, and the lawyer's letters are sorted to the corresponding logistics grids to complete the pre-sorting.

3. The method according to claim 2, characterized in that The step of performing feature selection by using a decision tree algorithm to obtain the optimal feature includes: The information gain ratio of each feature in the express delivery sample data is calculated through the decision tree algorithm. Each feature includes the size, weight, speed and residence time of the letter. The optimal feature is selected according to the information gain ratio.

4. The method according to claim 2, characterized in that The step of dividing the data set corresponding to the delivery sample data feature into multiple subsets according to the selected optimal feature includes: According to the selected optimal features, the data set corresponding to the features of the express sample data is divided into multiple subsets according to the standard that the data in the subsets have similar features.

5. The method according to claim 2, characterized in that The step of recursively performing the step of selecting features by using a decision tree algorithm to obtain the optimal features for each subset until a preset stop condition is met to obtain a trained model comprises: Recursively performing the step of selecting features by using a decision tree algorithm to obtain optimal features for each subset until a preset stopping condition is met, wherein the preset stopping condition includes that the node reaches a maximum depth, the number of samples in the node is less than a preset threshold, and all data in the subset belong to the same category; When the preset stop condition is reached, the node that reaches the preset stop condition is marked as a leaf node, and the category of the leaf node is set as the main category to obtain a trained model.

6. The method according to claim 2, characterized in that The steps of predicting the current delivery track of lawyer's letter delivery based on the trained model and sorting the lawyer's letter delivery to the corresponding logistics grid to complete the pre-sorting include: According to the trained model, the current location of the lawyer's letter delivery is predicted to obtain the maximum probability of the destination location; Determine the delivery track of the lawyer's letter according to the maximum probability; According to the express delivery track, the lawyer's letter will be sorted to the corresponding logistics grid to complete the pre-sorting.

7. A lawyer letter delivery packaging and sorting system based on a decision tree, characterized in that: The system includes: a material filling device, a printing device, a packaging device, a delivery order pasting device and a sorting device; The material filling device is composed of information reading, grabbing, and information matching equipment; the material filling device is connected to the printing equipment, the packaging equipment, and the special delivery order pasting equipment in sequence, and the special delivery order pasting equipment is connected to the sorting equipment, and each device is connected by a conveyor belt device.

8. The system according to claim 7, characterized in that The information reading device of the material filling device is used to read the barcode information on the lawyer's letter delivery and the delivery bill by infrared scanning in a non-contact manner; The information reading device is also used to compare whether the printing order of the lawyer's letter delivery and the delivery delivery bill is consistent after parsing the barcode information.

9. The system according to claim 8, characterized in that The information comparison device generates a special delivery sorting code according to the imported special delivery address, matches the special delivery sorting code to the corresponding logistics grid, and sorts the printing order to obtain the printing order; The printing device prints the special delivery waybill according to the printing order marked by the information comparison device; The packaging device packages the lawyer's letter and the envelope in sequence.

10. The system according to claim 9, characterized in that The sorting device is used to scan the special delivery sorting code through the scanning device after the packaging is completed, and transmit the lawyer's letter special delivery to the corresponding logistics grid to complete the pre-sorting.

Citation Information

Patent Citations

  • Intelligent sorting method for express packages

    CN105983537A

  • Express delivery distribution and receiving system and method based on classification algorithm

    CN106529854A

  • Message sorting method and device based on decision tree

    CN115994331A