Method and system for automatically generating shipping order
Through the automatic generation method and system of shipping bills, the template is automatically matched to obtain, target field information is identified and extracted, and the calculation is carried out, which solves the problems of low manual entry efficiency and difficult to guarantee the accuracy in the prior art, and achieves efficient and accurate shipping bill generation.
Patent Information
- Application Number
- CN202411653560.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-03-07
AI Technical Summary
In the prior art, the generation of shipping bills depends on a semi-automated system, requiring manual input of a large amount of order information, resulting in inefficiency and difficulty in ensuring accuracy.
By designing a method and system for automatic generation of shipping bills, the system obtains templates based on order customer information matching information, automatically identifies and extracts the target field information in the shipping order, and calculates it based on this information to generate an electronic shipping bill.
It realizes automated processing from data acquisition to shipping bill generation, improves the efficiency and accuracy of data processing, reduces manual input errors, and improves work efficiency.
Smart Images

Figure CN119578390A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of shipping bill generation, and in particular to a method and system for automatically generating a shipping bill. Background Art
[0002] With the rapid development of international trade, the demand for cross-border transportation of goods has increased dramatically. Shipping, as one of the main logistics methods, occupies an important position in global trade. In order to ensure that the goods arrive at the destination on time and safely, the generation and management of shipping bills have become particularly important. Shipping bills not only record the detailed information of the goods, but also involve the calculation of transportation costs and time, which plays a key role in logistics management and cost control.
[0003] In the related technologies, the generation of shipping bills mostly relies on semi-automated systems, which require manual input of a large amount of order information. In these systems, staff need to manually select or fill in the shipping bill template according to the order information, and then enter specific cargo information, such as target field information (such as cargo type, volume, weight, etc.) according to the instructions of the template. Although this method has achieved the digitization of information to a certain extent, it still requires manual intervention to ensure the accuracy and completeness of the information.
[0004] However, the relevant technology mainly relies on manual selection and filling of templates. When the number of shipping bills is large, a large number of data entry operators are required, which is not only inefficient but also difficult to guarantee accuracy. Summary of the invention
[0005] The present application provides a method and system for automatically generating a shipping bill, which is used to solve the problem of low efficiency and accuracy in manually entering shipping order data.
[0006] In a first aspect, the present application provides a method for automatically generating a shipping bill, which is applied to a shipping bill generation system device, and the method comprises: Matching a corresponding information acquisition template according to the order customer information, the information acquisition template including information extraction rules for the shipping order; Using the information acquisition template to identify and extract target field information in the shipping order; Extracting part of the data from the target field information and calculating according to preset rules to obtain a plurality of new field information, the new field information including volume weight, freight, operating fee, shipping unit price and shipping fee; An electronic shipping bill is generated according to the target field information and the new field information.
[0007] Through the above embodiments, the shipping bill generation system automatically extracts and calculates key data by matching order customer information with the information acquisition template to generate an electronic shipping bill. The method automates the entire process from data acquisition to shipping bill generation, improving the efficiency and accuracy of data processing. By automatically identifying and extracting target field information, manual input errors are reduced and work efficiency is improved.
[0008] In some embodiments, before the step of matching the corresponding information acquisition template according to the order customer information, the step further includes: Get samples of various types of shipping orders; A corresponding target field recognition framework is constructed based on the shipping order sample to obtain information acquisition templates corresponding to different types of shipping orders. The target field recognition framework determines the corresponding recognition positions of different target field information in the shipping order.
[0009] Through the above embodiments, the shipping order generation system obtains various types of shipping order samples and builds a target field recognition framework, so that the information acquisition template can more accurately adapt to different types of orders. This enables the system to more accurately respond to diverse market demands, so that it can process a variety of complex order information in practical applications, thereby improving the versatility and practicality of the system.
[0010] In some embodiments, the step of using the information acquisition template to identify and extract target field information in the shipping order specifically includes: Get the shipping order image with the destination field information recorded; Determine the recording location of the target field information according to the information acquisition template; Identify and extract the text or image information corresponding to the record position to obtain the target field information.
[0011] Through the above embodiment, the shipping bill generation system determines the record position of the target field through the template, and then recognizes the text or picture information at the position to obtain the specific field value. This positioning combined with recognition method can accurately obtain key data and reduce the recognition error rate. In addition, this method can process information in the form of text and pictures, expanding the scope of applicable orders.
[0012] In some embodiments, the step of extracting part of the data from the target field information and calculating according to a preset rule to obtain a plurality of new field information specifically includes: Calculate volumetric weight, handling charges and freight based on the volume data in the target field information; The shipping unit price is retrieved according to the departure port and destination port information in the target field information; The shipping fee is calculated based on the shipping unit price and the volumetric weight.
[0013] Through the above embodiments, the shipping bill generation system automatically completes the calculation of key financial information such as volumetric weight, operating costs, freight, etc. through detailed data calculation steps, which not only reduces the burden of manual calculation, but also improves the accuracy and speed of calculation.
[0014] In some embodiments, the step of using the information acquisition template to identify and extract target field information in the shipping order specifically includes: Get the target field and corresponding voice information selected by the user; The voice information is recognized to obtain target field information.
[0015] Through the above embodiments, the shipping bill generation system allows the user to update or modify the target field information by voice input through the acquisition and recognition of voice information, making data input more convenient and flexible. In particular, when the operating environment is busy or data needs to be changed quickly, voice input improves work efficiency and operational convenience.
[0016] In some embodiments, after the step of using the information acquisition template to identify and extract the target field information in the shipping order, the step further includes: Receive the user's modification of the target field information and record the modification amount; If it is detected that the modification amount exceeds a preset threshold, the machine learning model used to identify and extract target field information in the shipping order is retrained.
[0017] Through the above embodiment, after the user modifies the target field information, the shipping bill generation system monitors the modification amount and retrains the machine learning model when necessary. This dynamic learning and adaptation mechanism enables the system to continuously optimize its recognition algorithm and improve the accuracy and efficiency of processing similar data in the future.
[0018] In some embodiments, after the step of generating an electronic shipping bill according to the target field information and the new field information, the method further includes: Get the ship's location information in real time; Obtaining shipping regulations of nearby ports of call based on the location information; The electronic waybill is adjusted according to the shipping regulations to obtain a temporary electronic waybill, which is used to submit to the adjacent port of call.
[0019] Through the above embodiment, the shipping bill generation system automatically associates the regulations of nearby ports by obtaining the location of the ship, and dynamically adjusts the electronic waybill to meet local requirements. This response mechanism linked with real-time data can improve the timeliness and compliance of the waybill information and reduce the workload of manual review.
[0020] In a second aspect, the present application provides a shipping bill generation system, the shipping bill generation system comprising: one or more processors and a memory; The memory is coupled to the one or more processors, and the memory is used to store computer program code, which includes computer instructions. The one or more processors call the computer instructions so that the shipping bill generation system can implement a shipping bill automatic generation method provided in the above embodiment, which will not be repeated here.
[0021] In a third aspect, the present application provides a computer-readable storage medium, including instructions. When the instructions are executed on a shipping bill generation system, the shipping bill generation system can implement a method for automatically generating a shipping bill provided in the above embodiment, which will not be repeated here.
[0022] In a fourth aspect, the present application provides a computer program product. When the computer program product is run on a shipping bill generation system, the shipping bill generation system can implement a method for automatically generating a shipping bill provided in the above embodiment, which will not be described in detail here.
[0023] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. By building a target field recognition framework, automatically matching information acquisition templates, and intelligently extracting key field information in orders. The system can not only recognize text but also process image information, covering all types of orders. The extracted field values are automatically calculated according to preset rules to obtain derivative data such as volume weight and freight, which replaces manual entry and calculation to the greatest extent and improves the efficiency and accuracy of shipping bill generation.
[0024] 2. The introduction of voice recognition technology allows users to modify field information directly with voice descriptions, which greatly enriches the human-computer interaction mode and can significantly improve the efficiency of data input in specific scenarios. At the same time, the system will continue to monitor the user's modification operations, and automatically trigger the retraining of the recognition model when the modification volume accumulates to a certain level. This dynamic learning mechanism allows the system to continuously learn and optimize from user feedback, so that the algorithm model is always closely aligned with actual needs.
[0025] 3. Connect the generation of shipping bills with real-time shipping data, obtain the ship's location, automatically associate with the regulatory requirements of nearby ports, and instantly adjust the content of the electronic waybill to meet local compliance. This not only reduces the burden of manual review, but also greatly improves the timeliness and accuracy of the waybill. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a flow chart of a method for automatically generating a shipping bill in an embodiment of the present application; Figure 2This is another flow chart of a method for automatically generating a shipping bill in an embodiment of the present application; Figure 3 It is a schematic diagram of the structure of a physical device of the shipping bill generation system in the embodiment of the present application. DETAILED DESCRIPTION
[0027] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more listed items.
[0028] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0029] For ease of understanding, the following is a flow chart of the method provided in this implementation. Figure 1 The figure is a flow chart of a method for automatically generating a shipping bill in an embodiment of the present application.
[0030] S101, matching corresponding information acquisition template according to order customer information.
[0031] The technician inputs the customer information of the shipping order into the shipping bill generation system. The customer information includes but is not limited to the basic information such as the customer's name, contact information, commonly used ports, and cargo type. The system uses this information as keywords to perform a matching search in the pre-built information acquisition template library to determine the matching information acquisition template.
[0032] Specifically, the shipping bill generation system uses algorithms such as similarity calculation or keyword matching to select the information acquisition template that best matches the customer information from the pre-built information acquisition template library, and quickly and accurately locates and extracts key information fields in the shipping order according to the rules set in the template.
[0033] The information acquisition template library stores information extraction rules corresponding to various types of customers. These templates analyze a large amount of historical order data to summarize the information entry habits and characteristics of different customers when placing orders. For example, the type of goods in customer A's order is usually marked at the top of the order, while customer B generally lists the goods details at the end of the order. The system uses machine learning algorithms to establish a mapping relationship between customer attributes and order information entry rules to form targeted information acquisition templates.
[0034] S102: Use the information acquisition template to identify and extract target field information in the shipping order.
[0035] After successfully matching the appropriate information acquisition template, the shipping order generation system uses the template to identify and extract the target field information in the shipping order. The target field usually refers to the information that is critical to generating the shipping order, such as the master order number, number of pieces, weight, volume, product name, flight number, flight date, price, departure port, destination port, etc. The key fields may be slightly different for different customers and types of goods, but they are generally included in the information acquisition template and are not limited here.
[0036] Specifically, for numerical fields such as cargo volume and weight, the template will specify the corresponding keywords in the order, such as "volume", "weight", etc., as well as the positional relationship of the numerical values before and after the keywords. The system quickly finds the approximate location of the target value by searching for these keywords, and then uses text parsing tools such as regular expressions to accurately extract the numerical value. When extracting information such as address and time in the order, the system can also use natural language processing technology, such as named entity recognition and time expression recognition. Through the pre-trained language model, the system can accurately determine the place names and times in the text and convert them into a standardized format.
[0037] It should be noted that the information acquisition template is essentially a set of field extraction rules. It defines in detail the location, representation, and extraction method of each target field in the order. Based on these rules, the system can quickly locate the area where the target field information is located in the shipping order, and then perform information identification and extraction operations.
[0038] In other embodiments, the user can directly select the target field in the operation interface of the shipping bill generation system, and the user enters voice information for the selected field. After the system obtains the voice information recorded by the user, it automatically calls the voice recognition algorithm to convert the voice information into text and fills it into the corresponding field position. When the operating environment is busy or data needs to be changed quickly, voice input can improve work efficiency and convenience of operation.
[0039] S103: extract part of the data from the target field information and perform calculation according to preset rules to obtain a plurality of new field information.
[0040] After successfully extracting the target field information in the shipping order, the shipping bill generation system further processes and calculates these raw data to obtain some important derived information (new field information), including but not limited to volumetric weight, freight, handling fees, shipping unit price (TACT freight rate) and shipping charges (TACT fees).
[0041] Specifically, the relevant technical personnel can enter the new fields that need to be calculated and the calculation rules corresponding to the new fields in the shipping bill generation system. The shipping bill generation system calculates the specific values corresponding to each new field according to the calculation rules. For example, the relevant technical personnel can set the conversion relationship of 1CBM (Cubic Meter) equal to 166.66KGS (Kilograms), and the shipping bill generation system obtains the corresponding value of the volume weight according to the conversion rule based on the volume data in the target field information obtained in step S102. For another example, the relevant technical personnel upload the TACT freight rate information table between different departure ports and different destination ports. The shipping bill generation system matches the corresponding TACT freight rate from the TACT freight rate information table based on the departure port and destination port information in the target field information obtained in step S102.
[0042] S104. Generate an electronic shipping bill based on the target field information and the new field information.
[0043] After obtaining the target field information of the shipping order and calculating various new fields through preset rules, the shipping bill generation system combines these scattered information fields and generates a complete and standard electronic shipping bill in accordance with the preset standardized format.
[0044] Specifically, the shipping bill generation system pre-designs multiple sets of standardized shipping bill templates. These templates are classified according to different business scenarios, cargo types, transportation methods, etc., covering various common shipping documents. Each template has clear field filling rules to ensure the standardization of the generated shipping bill in format and content.
[0045] In the process of generating a shipping bill, the shipping bill generation system first automatically selects the corresponding shipping bill template according to the business attributes of the order. Then, the system will extract and calculate the target field and new field information, and fill it into the corresponding position of the electronic shipping bill according to the mapping relationship set in the template.
[0046] For example, in a specific embodiment, an order is a sea freight order for a batch of clothing, and the goods depart from Shanghai Port and are shipped to Los Angeles Port. The system recognizes that the order belongs to the sea freight export business and automatically calls the sea freight export shipping bill template. Then, the system fills the extracted shipper and consignee information into the corresponding positions of the template; fills the cargo name "T-shirt", the number of pieces "1000 pieces", the volume weight "2 tons" and other information into the cargo information part; fills the departure port "Shanghai Port" and the destination port "Los Angeles Port" into the transportation information part; fills the calculated freight, fuel surcharge, total cost, etc. into the cost information part. Finally, a complete electronic shipping bill is generated.
[0047] In addition, the generated electronic shipping bill is not only standardized in format, but also automatically audited in content. The system will perform logical verification on the key information filled in, such as checking whether the weight of the goods matches the number of pieces, whether the freight calculation is correct, etc. These automatic audit measures effectively reduce the risk of errors caused by manual entry.
[0048] For special orders, some specific information can be added to the standard shipping bill, such as temperature control requirements, dangerous goods declaration, etc. The system supports the flexible addition of customized additional information modules based on the generated standard shipping bill. Customers and operators can also modify and supplement the generated shipping bill content through an open interface.
[0049] In the above embodiment, the shipping bill generation system automatically extracts and calculates key data by matching order customer information with the information acquisition template to generate an electronic shipping bill. This method automates the entire process from data acquisition to shipping bill generation, improving the efficiency and accuracy of data processing. By automatically identifying and extracting target field information, manual input errors are reduced and work efficiency is improved.
[0050] The following is a more detailed description of the process of the method provided by this embodiment. Figure 2 , which is another flow chart of a method for automatically generating a shipping bill in an embodiment of the present application.
[0051] S201. Obtain samples of various types of shipping orders.
[0052] Before matching the corresponding information acquisition template according to the order customer information in step S101, the relevant technicians upload a large number of different types of historical shipping orders to the shipping order generation system to obtain as shipping order samples. These sample orders can also come from the system's historical order database, covering a variety of different scenarios such as different customers, cargo types, and transportation routes.
[0053] Specifically, the shipping order generation system will select representative order subsets from historical data based on business needs, including but not limited to various common order types, such as full container load, less than container load, special cargo transportation, etc. In addition, the format of sample orders includes but is not limited to highly standardized electronic orders, as well as unstructured orders such as scanned copies and pictures.
[0054] S202: construct a corresponding target field recognition framework based on the shipping order sample to obtain information acquisition templates corresponding to different types of shipping orders.
[0055] After obtaining samples of various types of shipping orders, the shipping order generation system learns and summarizes the characteristics of each type of order from these raw order data and constructs a corresponding target field recognition framework.
[0056] Specifically, the shipping order generation system analyzes sample orders to find out the distribution patterns of key fields in different types of orders. For example, in a full container shipping order, the "box quantity" field usually appears in the first few lines of the order, while in a LCL order it may be scattered in various cargo details. By summarizing and summarizing, the system can derive a set of rules for the location of fields in the order.
[0057] After determining the position rules of fields in different orders, the shipping bill generation system builds a target field recognition framework based on this, defines the approximate position, expression form, extraction method, etc. of each key field in different order types, and obtains an information acquisition template.
[0058] For example, after analyzing 1,000 historical orders, the system detected that the cargo information of full-case orders is usually concentrated in the middle of the order, and the "box type" field often appears in the form of "xx-foot container". Therefore, in the recognition framework of full-case orders, the system defines the position of the "box type" field as "30%-70% of the order area", and defines the recognition rule as "extracting the number before 'foot container'". Similarly, the system can define special recognition rules for other key fields and other order types.
[0059] In the above embodiment, the shipping order generation system obtains various types of shipping order samples and builds a target field recognition framework, so that the information acquisition template can more accurately adapt to different types of orders. This enables the system to more accurately respond to diverse market demands, so that it can process a variety of complex order information in practical applications, thereby improving the versatility and practicality of the system.
[0060] S203: Acquire a shipping order image having target field information recorded therein.
[0061] When the shipping order generation system needs to extract information of a new order, it first obtains the image data of the order. The image data can be an electronic order in PDF format, or a scanned copy or photo of a paper order, which is not limited here.
[0062] Specifically, for electronic orders, the system can directly read its PDF or image file to obtain the order image. However, if the original order is in Word, Excel or other formats, it needs to be converted first. For paper orders, the system can obtain its image data by scanning or taking pictures.
[0063] S204: Determine the recording location of the target field information according to the information acquisition template.
[0064] Specifically, the shipping order generation system identifies the layout structure of the order image, such as titles, tables, paragraphs, etc., by analyzing the distribution of lines and blank areas in the image. Then, based on the characteristics of the order, the most similar template is matched from the information acquisition template library. Each template defines a set of field locations and sequences. Based on these rules, the system searches for target fields in the corresponding area of the order image.
[0065] For example, for the full container transport order image obtained in the previous step, the system recognizes that it belongs to the standard consignment note format, so it matches the information acquisition template for the full container transport order. The template indicates that the "shipper information" is located in the 10% area of the order header. So the system uses OCR and other text recognition technologies to search for the "shipper" keyword in the upper 10% of the order image. If it is not found in this area, the system can also search again in the area above the "consignee information" according to the context, until the precise "shipper information" location is located.
[0066] S205: Identify and extract text or picture information corresponding to the record position to obtain target field information.
[0067] After clarifying the location of each target field in the order image, the shipping bill generation system identifies and extracts the specific information in the location area. Specifically, the shipping bill generation system will cut out each target field area that has been located and make it into a small image. Then, the small image is pre-processed by binarization, denoising, etc. to improve the image quality and highlight the text outline. Then, the trained OCR model is used to identify each character in the image and convert it into corresponding text information.
[0068] In the above embodiment, the shipping bill generation system determines the record position of the target field through the template, and then identifies the text or picture information at the position to obtain the specific field value. This positioning combined with identification method can accurately obtain key data and reduce the recognition error rate. In addition, this method can process information in the form of text and pictures, expanding the scope of applicable orders.
[0069] S206. Calculate volumetric weight, handling costs and freight based on the volume data in the target field information.
[0070] The relevant technicians can set the conversion relationship of 1CBM (Cubic Meter) equal to 166.66KGS (Kilograms), and the shipping bill generation system obtains the corresponding value of the volume weight according to the conversion rule based on the volume data in the target field information obtained in step S102. Furthermore, the volume weight is multiplied by the selling price corresponding to the unit volume weight to obtain the freight, wherein the selling price corresponding to the unit volume weight can be uploaded to the database of the shipping bill generation system in advance by the relevant technicians. In addition, the shipping bill generation system multiplies the volume data by the operating fee corresponding to the unit volume to obtain the overall operating fee, and the operating fee corresponding to the unit volume is also uploaded to the database of the shipping bill generation system in advance by the relevant technicians.
[0071] S207, the shipping unit price is retrieved according to the departure port and destination port information in the target field information.
[0072] Relevant technicians upload the TACT freight rate information table between routes from different departure ports to different destination ports, and the shipping bill generation system matches the corresponding TACT freight rate from the TACT freight rate information table based on the departure port and destination port information in the target field information obtained in step S102.
[0073] S208. Calculate the shipping cost based on the shipping unit price and volume weight.
[0074] The shipping bill generating system obtains the overall shipping cost based on the shipping unit price obtained in step S207 and the volume data obtained in step S206 by multiplying the two.
[0075] In the above embodiment, the shipping bill generation system automatically completes the calculation of key financial information such as volumetric weight, operating costs, freight, etc. through detailed data calculation steps, which not only reduces the burden of manual calculation, but also improves the accuracy and speed of calculation.
[0076] S209. Obtain the location information of the ship and the shipping regulations of nearby ports of call in real time.
[0077] The shipping bill generation system connects with the ship positioning system to obtain the accurate position coordinates of the ship in real time. At the same time, the system has a preset geographical location information database of major ports around the world. By comparing the current position of the ship with the port coordinates, the system determines the several ports of call that the ship is close to during the voyage.
[0078] After determining the neighboring port (i.e. the next port of call), the shipping bill generation system automatically links to the built-in legal and regulatory database to extract the special requirements and regulations on freight documents in the country or region where the port is located, including special requirements for the disclosure of cargo information, as well as relevant regulations on tax calculation and declaration.
[0079] For example, when the system detects that a cargo ship is about to dock at the Port of Singapore, it will automatically extract the special requirements of the Singapore Customs for shipping documents, such as the need to provide commodity codes for goods and the requirement for prior declaration of controlled goods. By automatically identifying the location of the ship, the system greatly reduces the workload of manually searching and sorting out regulatory information at each port, and improves the efficiency and accuracy of information acquisition.
[0080] S210. Adjust the electronic shipping bill according to shipping regulations to obtain a temporary electronic shipping bill.
[0081] After obtaining the relevant shipping regulations of the port of call, the shipping bill generation system automatically compares the contents of the existing electronic shipping bill, detects any discrepancies with the regulatory requirements, and provides modification suggestions.
[0082] Specifically, the system will check the key information on the freight documents one by one, including cargo description, quantity, weight, volume, value, etc., to check whether its format and content meet the requirements of local customs and ports. If any discrepancies are found, the system will automatically mark the fields that need to be adjusted and give modification suggestions based on the regulations, such as supplementing missing information and correcting the tax calculation formula.
[0083] After detecting that the user has completed the modification and adjustment of the electronic shipping bill, the shipping bill generation system generates a temporary version of the electronic shipping bill. This temporary shipping bill is based on the original shipping bill and is adjusted accordingly according to the special requirements of the destination port. It is specially used to submit to the local customs and port management department for review when docking at the port.
[0084] In the above embodiment, the shipping bill generation system automatically associates the regulations of nearby ports by obtaining the location of the ship, and dynamically adjusts the electronic shipping bill to meet local requirements. This response mechanism linked to real-time data can improve the timeliness and compliance of shipping bill information and reduce the workload of manual review.
[0085] S211. Receive the user's modification of the target field information and record the modification amount.
[0086] In step S205, the text or image information corresponding to the record position is identified and extracted. After the target field information is obtained, manual review is generally performed. When it is detected that the extracted target field information has errors, the user can modify the part of the field information in the waybill where the errors occur. At the same time, the shipping bill generation system records the content and extent of each modification in real time to form a data difference log.
[0087] Specifically, the system sets up a special data collection module to capture and save various modification operations of users. Each modification will be quantified into a value and recorded in the difference log of the corresponding field. The system regularly performs statistical analysis on these modification data to detect frequently modified fields, as well as the degree and regularity of the modifications.
[0088] S212. If it is detected that the modification amount exceeds a preset threshold, retrain the machine learning model used to identify and extract target field information in the shipping order.
[0089] When the system detects that the cumulative modification amount for a certain field exceeds the preset threshold, the corresponding machine learning model retraining process is initiated. The system uses the user's historical modification data as new training material to retrain and optimize the original key information extraction model.
[0090] In the above embodiment, after the user modifies the target field information, the shipping bill generation system monitors the amount of modification and retrains the machine learning model when necessary. This dynamic learning and adaptation mechanism enables the system to continuously optimize its recognition algorithm and improve the accuracy and efficiency of processing similar data in the future.
[0091] The shipping bill generation system of the embodiment of the present invention is applied to electronic equipment. Figure 3 A schematic diagram of the architecture of an electronic device suitable for implementing an embodiment of the present invention is shown.
[0092] It should be noted that Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0093] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructions (computer programs), or by controlling related hardware through instructions (computer programs), and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. The electronic device of this embodiment includes a storage medium and a processor, wherein a plurality of instructions are stored in the storage medium, and the instructions can be loaded by the processor to execute any step of the method provided in the embodiment of the present invention.
[0094] Specifically, the storage medium and the processor are electrically connected directly or indirectly to realize data transmission or interaction. For example, these elements can be electrically connected to each other through one or more signal lines. The storage medium stores computer execution instructions for implementing the data access control method, including at least one software function module that can be stored in the storage medium in the form of software or firmware. The processor executes various functional applications and data processing by running the software program and module stored in the storage medium. The storage medium can be, but is not limited to, random access storage medium (Random Access Memory, referred to as: RAM), read-only storage medium (Read Only Memory, referred to as: ROM), programmable read-only storage medium (Programmable Read-Only Memory, referred to as: PROM), erasable read-only storage medium (Erasable Programmable Read-Only Memory, referred to as: EPROM), electrically erasable read-only storage medium (Electric Erasable Programmable Read-Only Memory, referred to as: EEPROM), etc. Among them, the storage medium is used to store programs, and the processor executes the program after receiving the execution instruction.
[0095] Furthermore, the software programs and modules in the above-mentioned storage medium may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components. The processor may be an integrated circuit chip having signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., which may implement or execute the various methods, steps, and logic flow diagrams disclosed in this embodiment. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0096] Since the instructions stored in the storage medium can execute the steps in any method provided in the embodiments of the present invention, the beneficial effects of any method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0097] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for automatically generating a shipping bill, applied to a shipping bill generating system device, characterized in that: The method comprises: Matching a corresponding information acquisition template according to the order customer information, wherein the information acquisition template includes information extraction rules for the shipping order; using the information acquisition template to identify and extract target field information in the shipping order; Extracting part of the data from the target field information and calculating according to preset rules to obtain a plurality of new field information, wherein the new field information includes volume weight, freight, operating fee, shipping unit price and shipping fee; An electronic shipping bill is generated according to the target field information and the new field information.
2. The method according to claim 1, characterized in that Before the step of matching the corresponding information acquisition template according to the order customer information, it also includes: Get samples of various types of shipping orders; A corresponding target field recognition framework is constructed according to the shipping order sample to obtain information acquisition templates corresponding to different types of shipping orders. The target field recognition framework determines the corresponding recognition positions of different target field information in the shipping order.
3. The method according to claim 1, characterized in that The step of using the information acquisition template to identify and extract target field information in the shipping order specifically includes: Get the shipping order image with the destination field information recorded; Determining the recording location of the target field information according to the information acquisition template; Identify and extract text or picture information corresponding to the record position to obtain target field information.
4. The method according to claim 1, characterized in that: The step of extracting part of the data from the target field information and calculating according to preset rules to obtain a plurality of new field information specifically includes: Calculate volumetric weight, handling charges and freight based on the volume data in the target field information; Retrieving the shipping unit price according to the departure port and destination port information in the target field information; The shipping fee is calculated based on the shipping unit price and the volumetric weight.
5. The method according to claim 1, characterized in that The step of using the information acquisition template to identify and extract target field information in the shipping order specifically includes: Get the target field and corresponding voice information selected by the user; The voice information is recognized to obtain target field information.
6. The method according to claim 1, characterized in that After the step of using the information acquisition template to identify and extract the target field information in the shipping order, the method further includes: Receive the modification of the target field information by the user and record the modification amount; If it is detected that the modification amount exceeds a preset threshold, the machine learning model for identifying and extracting target field information in the shipping order is retrained.
7. The method according to claim 1, characterized in that After the step of generating an electronic shipping bill according to the target field information and the new field information, the method further includes: Get the ship's location information in real time; Obtaining shipping regulations of nearby ports of call based on the location information; The electronic shipping bill is adjusted according to the shipping regulations to obtain a temporary electronic shipping bill, and the temporary electronic shipping bill is used to submit to the adjacent port of call.
8. A system for generating a shipping bill, characterized in that: The shipping bill generation system includes: one or more processors and memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the airway bill generation system to perform the method according to any one of claims 1 to 7.
9. A computer-readable storage medium comprising instructions, characterized in that: When the instruction is executed on a shipping bill generating system, the shipping bill generating system is caused to execute the method according to any one of claims 1 to 7.
10. A computer program product, characterized in that When the computer program product is run on a shipping bill generating system, the shipping bill generating system is enabled to perform the method according to any one of claims 1 to 7.