Method and logistics inquiry system for improving the accuracy of identifying similar logistics numbers

The method enhances logistics number identification by calculating matching accuracy through rules and algorithms, addressing inefficiencies in current systems and enabling automated tracking and timely notifications.

JP7833560B2Active Publication Date: 2026-03-19DEMON NETWORK TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2024-01-12
Publication Date
2026-03-19

AI Technical Summary

Technical Problem

Current logistics inquiry systems face challenges in accurately identifying similar logistics numbers across different channels due to the lack of unified standards, leading to inefficient and cumbersome user experiences, especially in international logistics inquiries.

Method used

A method and system that utilize a combination of rules and algorithms to calculate matching accuracy by dividing logistics numbers into constant and variable parts based on number segment information, enhancing the identification of logistics channels, and enabling automatic inquiry via email.

Benefits of technology

Improves the accuracy and efficiency of identifying similar logistics numbers, allowing for automated tracking and timely notifications, reducing manual intervention, and simplifying software maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007833560000001
    Figure 0007833560000001
  • Figure 0007833560000002
    Figure 0007833560000002
  • Figure 0007833560000003
    Figure 0007833560000003
Patent Text Reader

Abstract

This application discloses an algorithm and a logistics inquiry system for improving the identification accuracy of similar logistics numbers, which includes: obtaining a logistics number, screening the logistics channels with the same length of the logistics number from the rule library according to the length of the logistics number, calculating the number N of logistics channels; when N=1, the only logistics channel is the identification result of the logistics number; when N≧2, performing a matching accuracy calculation of the logistics number, and the logistics channel with the highest matching accuracy value is the identification result of the logistics number, and the matching accuracy calculation includes: according to the number segment information of each logistics channel, dividing the logistics number into a constant part and a variable part in a regular expression; calculating the length ratio of the constant part in the regular expression corresponding to each logistics channel that matches in all rules, and taking it as the matching accuracy value. The algorithm and the corresponding logistics inquiry system have the advantages of improving the automatic identification ability and inquiry efficiency of logistics numbers, and making the inquiry accurate, fast, efficient and convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of computers, and particularly to enhancing the identification accuracy of similar logistics numbers method and a logistics inquiry system, as well as a method and system for inquiring logistics numbers by email.

Background Art

[0002] In the current global integrated logistics inquiry platform (also referred to as the "logistics inquiry system"), since there are no industry-restricted standards in the logistics industry, each logistics channel (also referred to as a "logistics operator") has its own unique logistics number automatic generation method and rules. For logistics numbers without unified constraints and norms, in the comprehensive logistics inquiry system, the more logistics channels it supports, the higher the probability that similar logistics numbers (logistics numbers with the same or very similar rules, which are difficult to distinguish with the naked eye) will collide during inquiry, thereby causing the logistics channel to not be automatically identified, reducing the efficiency of users in inquiring logistics numbers, and affecting the user experience of the logistics inquiry system.

[0003] The current common method is to set up regular matching rules for logistics numbers based on different logistics channels and distinguish some logistics numbers by the rules. However, it is difficult to further improve the identification accuracy of logistics channels based on regular matching for logistics numbers with very close or similar rules. Even if the identification of logistics channels is realized based on regular matching, due to the very complex arrangement of its rules, it is inconvenient for maintenance and use. In the related technology of the logistics inquiry system, it is common for users to manually specify the corresponding logistics channel for indistinguishable and similar logistics numbers. Such an operation method takes a lot of time for users and brings great trouble and inconvenience to the logistics number inquiry work of users for logistics channels between countries adopting other languages. [[ID=二十]]

[0004] In the field of e-commerce, where the frequency of inquiries regarding tracking numbers is very high, buyers typically receive a shipping confirmation email from the merchant after their purchased goods have been shipped from the e-commerce platform. This email is primarily used to notify the buyer that their order has been shipped and to provide the shipping tracking number or a link to inquire about the tracking number.

[0005] If a buyer wants to continuously inquire about and track their shipping number, the current common method is for the buyer to copy the shipping number from the shipping email and paste it into a shipping inquiry platform to inquire about and track the shipment. This method of tracking shipping numbers is inefficient, time-consuming, and cumbersome for frequent buyers (e.g., dedicated purchasing managers). Furthermore, if an anomaly occurs in the shipping process, the buyer may not be able to grasp the situation in a timely manner and take action, potentially leading to unnecessary losses.

[0006] Other technical issues relating to this application will be discussed further later. The above is provided solely to aid in understanding the aspects of this application and does not imply that all of the above is prior art. [Overview of the Initiative] [Problems that the invention aims to solve]

[0007] The main objective of this application is to improve the accuracy of identifying similar logistics numbers when querying similar logistics numbers using a logistics inquiry system, thereby increasing the efficiency of querying international logistics numbers. methodThe invention also provides a method for inquiring about a logistics number via email and a corresponding logistics inquiry system. This invention enables the automatic inquiry of the logistics trajectory of the logistics number in the user's (i.e., buyer's) email by forwarding the email and analyzing and identifying the email's content. Specifically, the logistics inquiry system automatically analyzes and identifies the logistics number in the user's (buyer's) email, further inquires and tracks the logistics trajectory based on the obtained logistics number, and feeds back the logistics inquiry results to the buyer via email, thereby achieving the objective of enabling the buyer to automatically obtain the results of the logistics number inquiry. [Means for solving the problem]

[0008] This application aims to improve the accuracy of identifying similar logistics numbers used to identify logistics channels in the logistics inquiry system. method And,

[0009] Step S1 involves obtaining a logistics number, calculating the length of the logistics number, screening logistics channels with the same logistics number length from the rule library based on the length of the logistics number, recording all logistics channels with the same length, and calculating the number of logistics channels N.

[0010] Step S2 is a preliminary identification of the logistics number based on the N value, wherein the preliminary identification of the logistics number includes, when N=1, the single logistics channel being the identification result of the logistics number, and when N≧2, performing step S3.

[0011] Step S3 is to perform the matching accuracy calculation for the aforementioned logistics number, wherein the matching accuracy calculation is performed

[0012] Step S31 involves dividing the logistics number into a constant part and a variable part in a regular expression based on the number segment information of each logistics channel, setting the part of the logistics number that has the same content and position as the number segment information as the constant part of the regular expression, and setting the other part as the variable part of the regular expression,

[0013] Step S32 involves calculating the length ratio in which the length of the constant portion in the regular expression corresponding to each logistics channel matches across all rules, and setting the length ratio as the matching accuracy value for the logistics channel rule corresponding to the logistics number.

[0014] Step S33 sorts the matching accuracy values ​​of each logistics channel rule in descending order of height,

[0015] Step S3 includes step S34, which extracts the logistics channel corresponding to the rule with the highest matching accuracy value,

[0016] The method for improving the identification accuracy of similar logistics numbers is characterized by including step S4, which sets the logistics channel with the highest matching accuracy value as the identification result of the logistics number. method .

[0017] Other features and technical effects of this application will be described in the following sections of the specification. The concept for solving the technical problem of this application and the design proposal for related products are as follows.

[0018] For example, consider two logistics channels with similar logistics numbers. Logistics channel A has the logistics number 226590455432, and logistics channel B has the logistics number 123456784312. Both are 12-digit complete digital logistics numbers and are similar. The usual method is to place them in d{12} and d{12} respectively according to the regular expression when setting the rules. In this way, it is not possible to distinguish the ownership of the two logistics numbers, nor is it possible to select and identify the logistics channel with the higher probability based on priority. In this case, a typical logistics inquiry system achieves matching of logistics numbers and logistics channels by reminding the user to manually specify the corresponding logistics channel.

[0019] By analyzing a large number of similar logistics numbers and logistics channels, the applicant discovered that many logistics channels have the concept of a number segment. For example, in the logistics number of logistics channel A, the 3rd to 6th digits contain a fixed string, 6590. That is, logistics channel A has a number segment, the content of the number segment is 6590 characters, the position of the number segment is the 3rd to 6th digits, and the length of the number segment is 4 digits. Accordingly, the regular expression for logistics channel A can be placed in \d{2}(6590)\d{6}. Logistics channel B does not have a fixed string in its logistics number, and the regular expression for logistics channel B is still \d{12}. Thus, when performing matching, the two logistics channels are still matched and cannot be further distinguished. Therefore, the applicant proposes a concept for calculating the matching accuracy of regular expressions and adopts a "rule + algorithm" method to further identify logistics channels in logistics numbers.

[0020] When calculating the matching accuracy of a regular expression, the logistics number is divided into a constant part and a variable part in the regular expression based on the logistics channel number segment. The number segment is treated as the constant part, and the length ratio of the constant part in the regular expression corresponding to the logistics channel is calculated for all rules. This length ratio is then used as the matching accuracy value for the logistics number in the corresponding logistics channel rule. In a query system where there are only two 12-digit logistics channels, logistics channel A and logistics channel B, when querying logistics number 226590455432, for logistics channel A, the number segment information is 6590 in the 3rd to 6th digits, the length is 4 digits, and the length of the logistics number is 12 digits, so the matching accuracy value is 4 digits / 12 digits = 33.3%. However, for logistics channel B, there is no fixed string, so the length of the constant part is 0 digits, and the matching accuracy value is 0 digits / 12 digits = 0.0%. Based on the new rule, the logistics channel with the highest matching accuracy value is automatically selected as the identified logistics channel, and therefore logistics channel A is used as the identification result for the logistics number.

[0021] This method of calculating the accuracy of matching logistics numbers uses a combination of rules and algorithms, avoiding the need to adopt complex rules to identify the ownership of similar logistics numbers, thus simplifying software programming and maintenance. When querying similar logistics numbers, users no longer need to manually specify the logistics channel, improving the automatic identification capability of logistics numbers and the efficiency of queries against international logistics numbers. This results in higher identification accuracy, making queries accurate, fast, efficient, and convenient. Furthermore, compared to ordinary AI (artificial intelligence) learning systems, its calculations are more accurate, faster, the algorithm language is simpler, and the cost of programming and maintaining the corresponding software is lower.

[0022] In response to this, the present application further provides a logistics inquiry system, which includes a logistics number acquisition module, a rule library, a logistics number library, a logistics channel library, a comprehensive calculation module, and an inquiry result display module. The comprehensive calculation module executes the operation instructions included in the method to improve the identification accuracy of similar logistics numbers. Other embodiments and technical effects will be described later.

[0023] Furthermore, the present application further provides a method for inquiring logistics numbers by email and a corresponding logistics inquiry system, which are used to automatically inquire the logistics numbers in the user's email by the logistics inquiry system. The method for inquiring logistics numbers by email includes

[0024] step Q1 of obtaining the inquiry permission in the logistics inquiry system for the user's email box;

[0025] step Q2 of setting the email automatic transfer rule of the user's email box to automatically transfer the shipping email that needs to inquire the logistics number to the system email box designated by the logistics inquiry system, where the user's email box is the email box where the user receives the shipping email;

[0026] step Q3 of the logistics inquiry system checking the system email box and receiving the shipping email automatically transferred from the user's email box;

[0027] step Q4 of scanning the content in the shipping email and identifying the logistics number in the shipping email;

[0028] step Q5 of the logistics inquiry system adding the identified logistics number to the tracking list corresponding to the user's email box;

[0029] Step Q6 includes the logistics inquiry system automatically querying the logistics number in the tracking list, determining whether the logistics progress information queried twice (before and after) has been updated using the logistics number, and if the logistics progress information queried later does not match the result of the previous query, sending the logistics progress information queried later to the user mailbox via the system mailbox.

[0030] This method, which analyzes logistics numbers based on email information and performs automated logistics tracking, enables automatic inquiry of logistics numbers. Furthermore, users receive timely logistics notification emails each time the logistics progress is updated, allowing them to obtain timely logistics process information. If an anomaly occurs in the logistics process, users can understand the process and intervene to avoid unnecessary losses. Additionally, with a single setup, all subsequent purchase and shipment logistics numbers can be automatically tracked without manual processing, significantly increasing the efficiency of logistics number inquiries.

[0031] Other embodiments and their technical effects will be described later.

[0032] Furthermore, even general users who do not belong to the e-commerce sector can automatically retrieve their tracking numbers in their mailboxes by checking the tracking numbers via email.

[0033] Furthermore, this application further provides a server including a memory on which the logistics inquiry system in this application is stored, and a processor capable of executing operation commands for the logistics inquiry system and corresponding algorithms.

[0034] Furthermore, this application provides a computer device that includes a memory on which the logistics inquiry system described herein is stored, and a processor capable of executing operation commands for the logistics inquiry system and corresponding algorithms.

[0035] In this application, "regular expression" is a "rule expression," which may be abbreviated as "regular" or "rule," and is a logical expression for manipulating strings. A logistics number generally refers to various types of freight transport numbers, such as logistics numbers for large items or delivery numbers for small items. In the relevant embodiments, a logistics number may consist not only of numbers but also of characters such as numbers and letters. To simplify and unify the relevant expressions, the absence of number segment information in a logistics channel is expressed as the number segment information of the logistics channel being empty, thereby ensuring that all logistics channels each have corresponding number segment information. The length of each number segment information or string is an integer, representing the number of digits in the characters. Number segment information may be abbreviated as "number segment."

[0036] The drawings are provided for further understanding of this application and do not constitute limitations thereto. The contents shown in the drawings may be actual data of the embodiments and fall within the scope of protection of this application. [Brief explanation of the drawing]

[0037] [Figure 1] This is a schematic flowchart of a method for improving the identification accuracy of similar logistics numbers in one embodiment of this application. [Figure 2] This is a schematic diagram of the algorithm flow for number segment information of a logistics number in one embodiment of the present application. [Figure 3] This is a schematic diagram of the architecture of a logistics inquiry system in one embodiment of this application. [Figure 4] This is a schematic flowchart of a method for querying a logistics number via email in one embodiment of this application. [Modes for carrying out the invention]

[0038] To further clarify the purpose, aspects, and advantages of this application, embodiments of this application will be described in more detail below with reference to specific embodiments and drawings. It should be understood that the specific embodiments described herein are for interpretation purposes only and are not intended to limit this application.

[0039] Referring to Figure 1, this application improves the accuracy of identifying similar logistics numbers used to identify logistics channels in a logistics inquiry system. method Submit, and the method is

[0040] Step S1 involves obtaining a logistics number, calculating the length of the logistics number, screening logistics channels having the same logistics number length from the rule library of the logistics inquiry system based on the length of the logistics number, recording all logistics channels having the same length, and calculating the number of logistics channels N.

[0041] Step S2 is a preliminary identification of the logistics number based on the N value, wherein the preliminary identification of the logistics number includes, when N=1, the single logistics channel is used as the identification result of the logistics number, and once the logistics channel is identified, the identification calculation of the logistics number is completed, and when N≧2, step S3 is performed.

[0042] Step S3 is to perform the matching accuracy calculation for the aforementioned logistics number, wherein the matching accuracy calculation is performed

[0043] Step S31 involves dividing the logistics number into a constant part and a variable part in a regular expression based on the number segment information of each logistics channel, setting the part of the logistics number that has the same content and position as the number segment information as the constant part of the regular expression, and setting the other part as the variable part of the regular expression,

[0044] Step S32 involves calculating the length ratio in which the length of the constant portion in the regular expression corresponding to each logistics channel matches across all rules, and setting the length ratio as the matching accuracy value for the logistics channel rule corresponding to the logistics number.

[0045] Step S33 sorts the matching accuracy values ​​of each logistics channel rule in descending order of height,

[0046] Step S3 includes step S34, which extracts the logistics channel corresponding to the rule with the highest matching accuracy value,

[0047] The process includes step S4, which sets the logistics channel with the highest matching accuracy value as the identification result for the logistics number.

[0048] This method of calculating the matching accuracy of logistics numbers employs a combination of rules and algorithms, avoiding the need to use complex rules to identify the ownership of similar logistics numbers.

[0049] In order for the logistics inquiry system to support inquiries for multiple logistics channels, a real application scenario would require supporting more than 1000 international logistics channels worldwide, resulting in a massive volume of computation. Before executing step S1, information data for each logistics channel is first stored in the rule library. The information data for a logistics channel includes one or more of the following: the name of the logistics channel, the country mark, the length of the logistics number, and number segment information. The number segment information includes the content of the number segment, the position of the number segment, and the length of the number segment. Each logistics channel has corresponding number segment information. If each logistics number in a certain logistics channel does not contain a string with the same content and position, the number segment information for that logistics channel is empty. Accordingly, the content of the number segment for that logistics channel is empty, the position of the number segment is empty, and the length of the number segment is 0. If each logistics number in a certain logistics channel contains a string with the same content and position, that string is considered the number segment information for the logistics channel, and the content of the string, its position in the logistics number, and the length of the character are considered the number segment content, number segment position, and number segment length of the number segment information, respectively.

[0050] For example, for logistics channel B with logistics number 123456784312, there is no fixed string, so the number segment information for logistics channel B is empty. Accordingly, the content of the number segment for logistics channel B is empty, the position of the number segment is empty, the length of the number segment is 0 digits, and the length of its constant part is also 0 digits.

[0051] In one embodiment, regarding step S3, before executing step S31, N logistics channels of the same length are further screened, and the number segment information of the N logistics channels is analyzed. If the number segment information of a logistics channel is not empty, the operation of step S31 is performed on that logistics channel. However, if the number segment information of a logistics channel is empty, the matching accuracy calculation for that logistics channel is abandoned, and that logistics channel is not included as an identification target for the logistics number. Alternatively, if the number segment information of a logistics channel is empty, the matching accuracy corresponding to that logistics channel is directly set to 0, and the calculation starts directly from step S33 in step S3. For logistics channels with empty number segment information, the length of the corresponding constant part is 0, and the corresponding matching accuracy value is also 0, so it is impossible to obtain the highest matching accuracy value. Abandoning the matching accuracy calculation for logistics channels with empty number segment information early does not affect the result of the matching accuracy calculation and can also simplify the volume of calculation and increase the calculation speed.

[0052] In one embodiment, if multiple matching accuracy values ​​that are all the maximum appear in step S33, the system terminates further matching accuracy calculations, indicates that the logistics channel cannot be identified, and prompts the user to manually specify the logistics channel. For example, when calculating matching accuracy, if five logistics channels A, B, C, D, and E all have the same logistics number length, and their matching accuracy values ​​are 40.0%, 40.0%, 30.0%, 20.0%, and 20.0%, respectively, then the matching accuracy values ​​for logistics channels A and B are both the maximum matching accuracy values, making it difficult to determine the true logistics channel. Although the probability of such a scenario occurring is very low, in this case the system terminates the calculation, indicates that the logistics channel cannot be automatically identified, and prompts the user to manually specify the logistics channel. This allows the system to further identify the logistics number based on the logistics channel information specified by the user and collect more identifying feature information related to the logistics channel.

[0053] Referring to Figure 2, the present application further provides a method for calculating number segment information. The logistics inquiry system further includes a logistics number library in which queryed past logistics numbers are stored, and calculates number segment information for the relevant logistics channel based on the past logistics numbers, and includes steps P1 to P5 as described below.

[0054] Step P1 selects a logistics channel for which number segment information needs to be calculated, sets a rule for retrieving past logistics numbers, and retrieves a corresponding number of M past logistics numbers for that logistics channel from the logistics number library based on the retrieval rule. For example, it can retrieve all past logistics numbers in the most recent T period, all past logistics numbers in the period T1 to T2, or M past logistics numbers that have been recently queried. The larger the value of M, the more accurate the analysis becomes, and generally, the analysis only becomes highly valuable when M reaches 100. In step P1, if the number of past logistics numbers that can be retrieved from the logistics number library based on the retrieval rule is less than M, the value of M is automatically adjusted to the number of past logistics numbers that can be retrieved from the logistics number library based on the retrieval rule, and the user is notified that the value of M has already been corrected, ensuring that the value is accurate.

[0055] Step P2 sets the magnitude of the preset similarity value Y, where Y ≤ 100%. The preset similarity value Y is used as the reference value for the similarity degree K. The larger the Y value, the higher the similarity degree of the character strings in the plurality of logistics numbers. When Y = 100%, it indicates that the same character string is included in all of the logistics numbers to be collated. It is set to Y = 100%, and its application scenario mainly targets newly introduced logistics channels, and the number of its past logistics orders is small. In related embodiments, 80% ≤ Y ≤ 100%, which is suitable for most application scenarios. The magnitude of the Y value is related to the M value. In one embodiment, Y may automatically take values based on different interval ranges where the M value is located. The smaller the M value, the larger the Y value. For example, when the M value is in the interval [1 - 100], Y = 100%; when the M value is in the interval [100 - 1000], Y = 99%; when the M value is in the interval [1000 - 10000], Y = 95%; when M > 10000, Y = 90%. By flexibly adjusting the magnitude of Y based on the range of the M value, the calculation accuracy can be improved, and based on each interval range, it is also possible to further verify the identification accuracy at each stage from when the logistics channel is introduced into the rule library to the batch query.

[0056] Step P3 sequentially truncates the corresponding character strings with the shortest length L for the M logistics numbers. The position of each truncation increases by one digit compared to the previous truncation position. Truncation starts from the first character of each logistics number, and the length and position of the character strings truncated in the same lot are the same. Each time a character string is truncated, the number of the same character strings in it is counted. The ratio of the number of the same character strings to M is the similarity degree K of the truncated character string. A similarity degree judgment is made. When K ≥ Y, it is determined that the truncated character string is a temporary number segment, and the truncation stops. When K < Y, it is determined that the truncated character string is a non-temporary number segment, and the truncation of the next digit of the character string is performed. The operations of truncating the character string and judging the similarity degree are repeated, and the truncation stops only when K ≥ Y or all digits of the logistics number are truncated.

[0057] The shortest truncation length L can be one digit or two digits, where 1 ≤ L < the length of the logistics number. For example, in scenario A, four logistics numbers of logistics channel A (only a small quantity is called for simplicity of expression) are called from the logistics number library. At this time, M = 4. The four logistics numbers are: A1 is 226590455432, A2 is 356590545271, A3 is 356590635384, and A4 is 476590725596. It is set so that the preset similarity value Y = 100% and the shortest truncation length L = two digits. Therefore, in step P3, when truncating A1 - A4 numbers for the first time, the 1st to 2nd digit strings of each logistics number are truncated respectively, obtaining the strings 22, 35, 35, 47. At this time, there are two identical strings 35, and K = 2 / 4 = 50% is calculated. As can be seen, the result of this truncation is K < Y, so it is determined that the truncated string is a non - temporary number segment, and the truncation of the next digit, the 2nd to 3rd digit, is to be performed. The truncation of the 2nd to 3rd digit obtains the strings 26, 56, 56, 76. Similarly, K = 50% is calculated, and K < Y, so it is necessary to perform the truncation of the next digit, the 3rd to 4th digit. The truncation of the 3rd to 4th digit obtains the strings 65, 65, 65, 65, and K = 100%, K = Y. At this time, the string 65 is a temporary number segment, and the truncation can be stopped. If the result of each truncation is K < Y, when truncating up to the 11th to 12th digit (the last digit), the truncation is stopped.

[0058] Step P4 performs a preliminary identification of the number segment information. If no temporary number segment is obtained in step P3, it is determined that the number segment information of the logistics channel is empty, and the calculation of the number segment information of the logistics channel is terminated. However, if a temporary number segment is obtained in step P3, step P5 is executed. For example, in the aforementioned scenario A, a temporary number segment 65 is obtained, but the actual number segment is 6590, and it is necessary to further truncate and identify the logistics number. After obtaining the temporary number segment, the position of the temporary number segment can be known accordingly. At this time, as described in step P5, only the logistics number needs to be truncated by length, thereby reducing the calculation volume and improving the calculation efficiency.

[0059] Step P5 truncates the character strings of the M logistics numbers at the position of the temporary number segment. The length of each truncation increases by 1 digit compared to the previous truncation. The length of the first truncation is L + 1 digits. The lengths of the character strings truncated in the same lot are the same. Each time a character string is truncated, the number of the same character strings in it is counted. The ratio of the number of the same character strings to M is the similarity K of the truncated character string. A similarity judgment is made. If K ≥ Y, it is determined that the truncated character string is a temporary number segment, and the next truncation is performed. However, if K < Y, it is determined that the truncated character string is a non-temporary number segment, the truncation is stopped, and the longest temporary number segment is determined as the number segment information.

[0060] For example, in the aforementioned Scene A, a temporary number segment 65 is obtained. The temporary number segment is located at the 3rd to 4th digits. Here, for the first time, the character string at the 3rd to 5th digits is cut off, and the length of the cut-off is L + 1 = 3 digits. At this time, according to the calculation, it can be seen that the character string 659 at the 3rd to 5th digits is still the temporary number segment. The next cut is made at the 3rd to 6th digits, and the character string 6590 obtained by cutting off the 3rd to 6th digits is still the temporary number segment. The next cut is made at the 3rd to 7th digits. At this time, different numbers 65904, 65905, 65906, 65907 are obtained. K = 0%, K < Y. It is determined that the cut character string is a non-temporary number segment, the cutting is stopped, and the longest temporary number segment 6590 obtained by cutting before is determined as the number segment information.

[0061] If there is an error in the past logistics numbers in the logistics number library, for example, if a small number of past logistics numbers do not match the actual logistics channels, it will affect the calculation accuracy of the number segment information of the corresponding logistics channel. Therefore, in this application, the concept of preset similarity value is introduced to avoid the influence on the calculation accuracy of the number segment of the logistics channel caused by some small-probability errors. For example, when calculating the number segment information of logistics channel A, 1000 past logistics numbers of logistics channel A are called from the logistics number library. Among them, 999 logistics numbers have the same character string "6590" at the 3rd to 6th digits, and only 1 logistics number does not have this character string at the same position. Therefore, there is a high possibility that an abnormality has occurred in this logistics number. At this time, for the cut character string "6590", its similarity K = 99.9%, and the preset similarity value Y is 95.0%. If the similarity 99.9% of the cut character string is greater than the preset similarity value 95.0%, it is determined at this time that the logistics channel has number segment information.

[0062] A temporary number segment is a part or all of the characters in the number segment information. When calculating the number segment information, the temporary number segment is first calculated based on the shortest truncation length L, and then the complete number segment information is calculated based on the position of the temporary number segment. Such an algorithm is simple and can improve computational efficiency by reducing the number of string truncation and similarity judgments.

[0063] In one embodiment, the logistics inquiry system further includes a logistics number acquisition module, which collects logistics number information that needs to be inquired about, and when a user inquires about a logistics number, the logistics channel recorded in the rule library can be manually specified by the logistics number acquisition module.

[0064] Furthermore, when a user specifies a logistics channel and requests a logistics number, the validity of the number segment information is verified. When a user specifies a logistics channel and requests a logistics number, it is determined whether the logistics number matches the number segment information of the logistics channel. If they match, the number segment information of the logistics channel is determined to be valid and used for the next logistics number inquiry. If they do not match, it is further determined whether normal inquiry information is fed back to the inquiry platform of the specified logistics channel for the logistics number. If the fed-back inquiry information is normal, the number segment information is marked as normal and the relevant maintenance personnel of the software system are notified to process it further. If the fed-back inquiry information is not normal or there is no inquiry feedback, the logistics number is considered abnormal and the user is alerted that the logistics number cannot be identified. Continuous identification and calibration of the validity of the number segment information prevents misidentification when a logistics channel updates its logistics number rules or when there are errors in the original number segment information, keeping the number segment information up-to-date and valid.

[0065] In one embodiment, the logistics inquiry system further includes a logistics channel library in which the name and number segment information of each logistics channel are stored, and the contents of the number segment information in the logistics channel library can be manually entered or modified. For some logistics channels that are familiar with the logistics numbering rules, system maintenance personnel can directly manually enter or modify the number segment information and its related contents based on the logistics numbering rules, thereby avoiding the system from performing unnecessary calculations of number segment information and improving the convenience of system maintenance.

[0066] Referring to Figure 3, in the relevant embodiment, the logistics inquiry system includes the logistics number acquisition module, rule library, logistics number library, logistics channel library, and integrated calculation module and inquiry result display module described in the preamble, the integrated calculation module enhances the accuracy of identifying similar logistics numbers in this application. method Executes the operation instructions contained within.

[0067] The logistics number library classifies and marks stored, previously queried logistics numbers according to user-specified and unspecified logistics numbers, and marks the corresponding specified logistics channel information for user-specified logistics numbers. In step P1, if M is less than a certain quantity (e.g., M ≤ 100), all M logistics channels are retrieved from the user-specified logistics numbers. The logistics number, field information, and corresponding logistics channel information of the user-specified logistics numbers have higher accuracy, and the similarity K can be increased when the obtainable M value is very small, thereby increasing the success rate of field information calculation. This makes it very suitable for calculating number segment information in scenarios where new logistics channels are introduced to the logistics inquiry system.

[0068] When the logistics number acquisition module retrieves logistics number information that needs to be queried, it selectively filters the input pending inquiry information, removing all characters except letters, numbers, and horizontal bars from the pending inquiry information, leaving a string with more than 5 digits and less than 50 digits to be used as the pending inquiry logistics number.

[0069] The logistics inquiry system identifies the corresponding logistics channel based on the acquired logistics number, and then further determines whether the logistics channel is an air logistics channel or a non-air logistics channel. If the logistics channel is an air logistics channel, the inquiry result display module outputs the relevant air freight information and logistics process information according to the air channel display interface. If the logistics channel is a non-air logistics channel, the inquiry result display module outputs the relevant logistics process information according to the non-air channel display interface. For example, the air channel display interface includes eight cargo status display fields: "All," "Booked," "Cargo Received," "In Transit," "Arrived at Destination," "Receipt Confirmed," "Received," and "Not Inquiry." The non-air channel display interface includes ten cargo status display fields: "All," "Not Inquiry," "Message Received," "In Transit," "Arrival Pending," "Out for Delivery," "Delivery Failed," "Delivered," "Potential Anomaly," and "Transportation Time Too Long." In the two display interfaces, each cargo status display field displays the corresponding logistics process information, and the "All" cargo status display field displays summary information from the other cargo status display fields. The query result display module outputs corresponding logistics process information according to the display interface of different logistics channel types, resulting in a stronger match between the scene and logistics information, and improving the user experience.

[0070] Referring to Figure 4, the present application further provides a method for querying a logistics number by email and a corresponding logistics inquiry system, which are used to automatically query a logistics number in a user's email by a logistics inquiry system. The method for querying a logistics number by email includes the following steps:

[0071] Step Q1 is to obtain query permissions for the user's mailbox in the logistics inquiry system. For example, a user registers an account in the logistics inquiry system through their mailbox, thereby obtaining query permissions for that user's mailbox in the logistics inquiry system.

[0072] Step Q2 sets up an automatic email forwarding rule for the user mailbox, so that shipping emails requiring a tracking number lookup are automatically forwarded to a system mailbox designated by the logistics inquiry system. In other words, the system mailbox is also a mailbox linked to the logistics inquiry system, and by setting up the system mailbox at one end of the logistics inquiry system, it becomes easy to receive and manage emails from different users and different mailbox types in bulk. The user mailbox is the email box where the user receives shipping emails.

[0073] In other embodiments, the user may manually forward the email containing the tracking number to the system mailbox and obtain the tracking number inquiry results by steps Q3-Q6. This is applicable to tracking temporary tracking numbers, avoids setting up automatic forwarding rules for infrequently used shipping emails, and improves the convenience of tracking tracking numbers. The tracking inquiry system is compatible with both shipping emails that are manually forwarded from the user's mailbox and shipping emails that are automatically forwarded.

[0074] Step Q3 involves the logistics inquiry system checking the system mailbox and receiving shipping emails that have been automatically forwarded from the user mailbox. The frequency of checking the system mailbox can be in real time or periodically; for example, the system emails may be automatically checked every two hours to obtain the latest logistics track.

[0075] Step Q4 scans the contents of the shipping email and identifies the tracking number in the shipping email.

[0076] Step Q5 is when the logistics inquiry system adds the identified logistics number to the tracking list corresponding to the user's mailbox.

[0077] Step Q6 is when the logistics inquiry system automatically queries the logistics number in the tracking list to obtain logistics information in a timely manner, for example, every hour or every half hour, and determines whether the logistics progress information queried twice using the logistics number has been updated. If the logistics progress information queried later does not match the result of the previous query, it indicates that the logistics progress has been updated and sends the logistics progress information queried later to the user mailbox via the system mailbox.

[0078] If the logistics progress information obtained later matches the results of a previous inquiry, it indicates that the logistics progress has not been updated, and in this case, there is no need to notify the user by email. Furthermore, when a logistics number is inquired about for the first time, the system sends the queried logistics information directly to the user's mailbox via the system mailbox without comparing the results of the previous two inquiries. This automated tracking inquiry method ensures that users receive timely logistics notification emails whenever the logistics progress for a logistics number is updated. If an anomaly occurs in the logistics process, the user can understand the process in a timely manner and take action to avoid unnecessary losses.

[0079] For step Q1, the method for obtaining the right to inquire about the user mailbox is for the user to register an account in the logistics inquiry system using the mailbox, and the mailbox registered by the user can be used as the user mailbox. If the user mailbox and the mailbox registered by the user do not match, the user mailbox is bound to the logistics inquiry system using the registered logistics inquiry system account. With the same registration account, the logistics inquiry system can be bound to one or more user mailboxes, thereby making it easy for users to switch or add receiving mailboxes and making it suitable for various application scenarios.

[0080] For step Q2, when setting up an automatic email forwarding rule in the background of a user's mailbox, the user's mailbox inbox is filtered, and only emails from specific emailboxes within the inbox (e.g., the Amazon shipping notification mailbox or other emailboxes where the user receives shipping emails) are forwarded to the system mailbox, thereby preventing the forwarding of the user's private emails to the system mailbox.

[0081] The operational process in step Q4 includes scanning the contents of the shipping email, analyzing the contents of the shipping email, and determining whether the shipping email contains a similar tracking number, wherein the similar tracking number is a string of characters with more than 5 digits and less than 50 digits, and the string contains no characters other than letters, numbers, and horizontal bars.

[0082] If the shipping email does not contain a similar tracking number, the system determines that the shipping email does not contain a tracking number, identifies that the tracking number in the shipping email is empty, terminates the execution of steps Q5 and Q6, and informs the user that the tracking number in the shipping email is abnormal. If the shipping email contains one or more similar tracking numbers, the similar tracking number may be a tracking number or a phone number, and the system identifies the similar tracking number based on the character content preceding the similar tracking number.

[0083] Shipping emails frequently contain both phone numbers and tracking numbers, and because their length and content are very similar, they are easily confused. Therefore, by setting up separate character libraries for tracking numbers and phone numbers, similar tracking numbers can be further identified, allowing for quicker tracking number retrieval and improving the accuracy of tracking number identification.

[0084] In one embodiment, the logistics inquiry system includes a logistics character library and a telephone character library. To accurately screen and identify email content, the logistics character library is pre-configured with logistics terms such as "logistics number," "delivery number," "delivery number," and "delivery service" in different languages, and the telephone character library is pre-configured with telephone terms such as "telephone," "mobile phone," and "home phone" in different languages. In another embodiment, the logistics inquiry system identifies the language type of the character in a shipping email (e.g., Chinese or English), and when identifying a similar logistics number, it selects the same term (including logistics terms or telephone terms) as the character language type of the shipping email from the character library (including the logistics character library or the telephone character library) to perform identification, thereby avoiding the identification of terms different from the language type and improving the efficiency of character identification.

[0085] When identifying a similar logistics number based on the content of the character preceding it, the identification method is as follows: If the preceding paragraph of text for a similar logistics number contains any logistics term from the logistics character library, the similar logistics number is identified as a logistics number; if the preceding paragraph of text for a similar logistics number contains any telephone term from the telephone character library, the similar logistics number is identified as a telephone number and is identified as a non-logistics number.

[0086] Furthermore, if the preceding paragraph of text for an approximate logistics number does not contain logistics terms from the logistics character library or telephone terms from the telephone character library, the approximate logistics number will be temporarily identified as a temporary logistics number. Since the logistics inquiry system can automatically identify the logistics channel corresponding to the logistics number, the temporary logistics number will be queried in the logistics inquiry system, and it will be possible to determine whether the temporary logistics number is a logistics number through the query results of the logistics inquiry system. If the logistics inquiry system queries a record of normal logistics based on the temporary logistics number, it will be determined that the temporary logistics number is a logistics number. However, if the logistics information queried by the logistics inquiry system based on the temporary logistics number is abnormal, it will be determined that the temporary logistics number is a telephone number. If all approximate logistics numbers or temporary logistics numbers are identified as telephone numbers, the user will be notified that the logistics number information in the shipping email is abnormal and that query results cannot be obtained.

[0087] If the preceding paragraph of text for an approximate logistics number includes both a logistics term from the logistics character library and a telephone term from the telephone character library, the approximate logistics number is temporarily identified as a temporary logistics number, and the query results from the logistics inquiry system determine whether or not the temporary logistics number is a logistics number.

[0088] In this application, when identifying the leading character of an approximate logistics number, the preceding paragraph of text of the approximate logistics number may be understood as a broad term, a half-sentence, a full sentence, or multiple sentences preceding the approximate logistics number awaiting identification.

[0089] In one embodiment, if a certain approximate logistics number is identified as a logistics number, then any other approximate logistics numbers adjacent to that logistics number are also identified as logistics numbers, and adjacent approximate logistics numbers mean that only a delimiter is included between the strings corresponding to adjacent approximate logistics numbers. The delimiter may be a common string delimiter such as a space, a ton sign, a comma, a semicolon, an echo sign, a comma + echo sign, or a semicolon + echo sign.

[0090] In related application scenarios, when a user sets up an automatic email forwarding rule for their mailbox, there is a possibility that emails other than shipping emails may be forwarded to the system mailbox due to operational errors or other anomalies. Therefore, after the system mailbox receives the shipping email forwarded from the user mailbox, it further identifies the shipping email to improve the accuracy of email forwarding. If the shipping email does not contain an approximate tracking number, the execution of steps Q5 and Q6 is terminated, and the system mailbox sends a notification email to the user mailbox informing the user that the tracking number in the shipping email is abnormal and advising the user to reconfirm the automatic email forwarding rule in their mailbox.

[0091] In one embodiment, if the logistics progress information for a logistics number indicates that it represents the final stage of logistics, the logistics number is removed from the tracking list. For example, if the final stage of logistics information indicates that the user has already received the item and there is no longer a need to continue tracking the logistics number, the logistics number can be removed from the tracking list.

[0092] In one embodiment, if the system checks that the logistics progress information for a logistics number has not been updated for a certain period of time, it removes the logistics number from the tracking list and notifies the user via the system mailbox that the logistics number is abnormal. For example, if a regular parcel with a logistics time limit of half a month has not had its logistics information updated and changed for more than three months, it indicates a high probability that the logistics of this parcel will be stopped or terminated for some reason. In such a case, the system can remove the logistics number from the tracking list and notify the user that the logistics number is abnormal.

[0093] In one example, system emails may be styled to enhance the user experience by inserting elements such as logos, content templates, and product recommendations.

[0094] In one embodiment, when the system mail sends an email to a user's mailbox, the content of the email includes a tracking number and a note in the email content indicating "Inquiry via email." The content of the email includes the email subject and the content of the email body.

[0095] The logistics inquiry system of this application performs the method of querying a logistics number by email as described in the preamble, and the operation process includes: (1) the logistics inquiry system receiving the shipping email forwarded from the user mailbox in the system mailbox; (2) the logistics inquiry system checking the system mailbox, receiving the shipping email automatically forwarded from the user mailbox, scanning the contents of the shipping email, and identifying the logistics number in the shipping email; (3) the logistics inquiry system adding the identified logistics number to the tracking list corresponding to the user mailbox; and (4) the logistics inquiry system automatically querying the logistics number in the tracking list, determining whether the logistics progress information queried twice before and after has been updated using the logistics number, and if the logistics progress information queried later does not match the result of the previous query, sending the logistics progress information queried later to the user mailbox via the system mailbox.

[0096] In other embodiments, the logistics inquiry system of this application can perform the method of querying logistics numbers by email as described in the preamble, and can also improve the accuracy of identifying similar logistics numbers as described in the preamble. method This allows for further execution and can improve the overall performance of the system.

[0097] The foregoing are merely preferred embodiments of the present application and do not limit the scope of the patent. Any equivalent transformations performed using the contents of the specification and drawings of the present application under the concept of the invention of the present application, or any direct or indirect applications in other related technical fields, are all included within the scope of the patent protection of the present application.

Claims

1. A method for improving the accuracy of identifying similar logistics numbers used to identify logistics channels in a logistics inquiry system, Step S1 involves storing the information data of the logistics channel in a rule library, obtaining the logistics number, calculating the length of the logistics number, screening the rule library for logistics channels with the same logistics number length based on the length of the logistics number, recording all the logistics channels with the same length, and calculating the number of logistics channels N. Step S2 is a preliminary identification of the logistics number based on the N value, wherein the preliminary identification of the logistics number includes, when N = 1, the single logistics channel being used as the identification result of the logistics number, and when N ≥ 2, step S3 is performed. Step S3, which involves calculating the matching accuracy of the aforementioned logistics numbers, The aforementioned matching accuracy calculation is performed as follows: Step S31 involves dividing the logistics number into a constant part and a variable part in a regular expression based on the number segment information of each logistics channel, setting the part of the logistics number that has the same content and position as the number segment information as the constant part of the regular expression, and setting the other part as the variable part of the regular expression, Step S32: For each logistics channel, the length of the constant portion in the regular expression is calculated to determine the length ratio matched in the logistics channel rule for N logistics channels, and this length ratio is set as the matching accuracy value for the logistics number in the logistics channel rule corresponding to the logistics number. Step S33 sorts the matching accuracy values ​​of each logistics channel rule in descending order of height, Step S34 includes extracting the logistics channel corresponding to the rule with the highest matching accuracy value. Step S3, Step S4 includes selecting the logistics channel with the highest matching accuracy as the identification result for the logistics number, The logistics channel information data includes the name of the logistics channel, the length of the logistics number, and number segment information. The aforementioned number segment information includes the number segment content, the number segment position, and the number segment length. A method for improving the accuracy of identifying similar logistics numbers, characterized by the following:

2. Each logistics channel has number segment information corresponding to each logistics channel, If each logistics number in a logistics channel does not contain a string with the same content and position, the number segment information for that logistics channel is empty, and accordingly, the content of the number segment for that logistics channel is empty, the position of the number segment is empty, and the length of the number segment is 0. A method for improving the identification accuracy of similar logistics numbers according to claim 1, characterized in that, if each logistics number in a certain logistics channel contains a string that has the same content and the same position, the string is used as the number segment information of the logistics channel, and the content of the string, its position in the logistics number, and the length of the string are used as the number segment content, number segment position, and number segment length of the number segment information, respectively.

3. In step S3, before executing step S31, N logistics channels having the same length are screened, and the number segment information of the N logistics channels is analyzed. If the number segment information for a certain logistics channel is not empty, perform the operation in step S31 for that logistics channel. A method for improving the identification accuracy of similar logistics numbers according to claim 2, characterized in that, if the number segment information of a logistics channel is empty, the matching accuracy calculation for that logistics channel is abandoned and that logistics channel is not included as a target for identification of the logistics number.

4. The method for improving the identification accuracy of similar logistics numbers according to claim 2, characterized in that, in step S33, if multiple matching accuracy values ​​that are all the maximum appear, further matching accuracy calculations are terminated, and the user is informed that the logistics channel cannot be identified and is instructed to manually specify the logistics channel.

5. The logistics inquiry system further includes a logistics number library in which queryed past logistics numbers are stored, and calculates number segment information of the relevant logistics channel based on the past logistics numbers. Step P1 involves selecting a logistics channel for which number segment information needs to be calculated, setting a rule for calling past logistics numbers, and calling a predetermined number of M past logistics numbers for that logistics channel from a logistics number library based on the calling rule. Set the magnitude of the preset similarity value Y, and in step P2, Y ≤ 100%, Step P3 involves sequentially cutting out strings of the M past logistics numbers, starting from the beginning of each M past logistics number with the shortest length L, with each cutting position increasing by one digit from the previous cutting position, and cutting from the first character of each logistics number, ensuring that the length and position of the strings cut out in the same lot are the same, and statistically counting the number of identical strings within each cut, the ratio of the number of identical strings to M is the similarity K of the cut strings, and a similarity judgment is made. If K ≥ Y, it is determined that the cut string is a temporary number segment and cutting is stopped, but if K < Y, it is determined that the cut string is a non-temporary number segment and cutting of the next digit of the string is performed, and the operation of cutting strings and determining similarity is repeated until K ≥ Y or all digits of the logistics number are cut out and cutting is stopped. Step P4 is a preliminary identification of number segment information, wherein if a temporary number segment was not obtained in step P3, it is determined that the number segment information for the logistics channel is empty and the calculation of the number segment information for the logistics channel is terminated; however, if a temporary number segment was obtained in step P3, step P5 is executed. The strings of M past logistics numbers are cut out at the position of the temporary number segment, with the length of each cut increasing by one digit compared to the length of the previous cut. The length of the first cut is L + 1 digits, and the length of the strings cut out in the same lot is the same. Each time a string is cut out, the number of identical characters within it is statistically counted, and the ratio of the number of identical characters to M is the similarity K of the cut strings. A similarity check is performed, and if K ≥ Y, the cut string is determined to be a temporary number segment, and the next cut is performed. If K < Y, the cut string is determined to be a non-temporary number segment, and the cut is stopped, and the longest temporary number The method for improving the accuracy of identifying similar logistics numbers according to claim 2, further comprising step P5 of determining that a segment is number segment information.

6. In step P1, if the number of past logistics numbers that can be retrieved from the logistics number library based on the retrieval rule is less than M, the value of M is automatically adjusted to the number of past logistics numbers that can be retrieved from the logistics number library based on the retrieval rule, and the user is informed that the value of M has already been corrected. The method for improving the identification accuracy of similar logistics numbers according to claim 5, characterized in that Y is automatically valued based on different interval ranges in which the M value is located, and / or, the Y value increases as the M value decreases.

7. The logistics inquiry system further includes a logistics number acquisition module, which acquires the logistics number required for inquiry, and when a user inquires about a logistics number, the logistics channel recorded in the rule library can be manually specified by the logistics number acquisition module. When a user requests a logistics number by specifying a logistics channel, the system determines whether the logistics number and the number segment information of the logistics channel match. If they match, it determines that the number segment information of the logistics channel is valid and uses that number segment information for the next logistics number inquiry. If they do not match, it further determines whether normal inquiry information is fed back to the inquiry platform of the specified logistics channel for the logistics number. If the fed-back inquiry information is normal, it marks the number segment information as normal, thus providing the accuracy of identifying similar logistics numbers as described in item 1. How to improve it.

8. The method for improving the identification accuracy of similar logistics numbers according to claim 1, wherein the logistics inquiry system further includes a logistics channel library in which the names and number segment information of each logistics channel are stored, and the number segment information in the logistics channel library can be manually entered or modified.

9. It is a logistics inquiry system, A logistics inquiry system comprising a logistics number acquisition module, a rule library, a logistics number library, a logistics channel library, an integrated calculation module, and a query result display module, wherein the integrated calculation module performs a method for improving the accuracy of identifying similar logistics numbers as described in any one of claims 1 to 8.

10. The aforementioned logistics number acquisition module, when acquiring a logistics number that requires inquiry, selectively filters the input inquiry waiting information, removes characters other than letters, numbers, and horizontal bars from the inquiry waiting information, and leaves a string with more than 5 digits and less than 50 digits as the logistics number that requires inquiry. Furthermore, the logistics inquiry system, after identifying the logistics channel corresponding to the acquired logistics number based on the logistics number, further determines whether the logistics channel is an air logistics channel or a non-air channel. If the logistics channel is an air logistics channel, the inquiry result display module outputs relevant air flight information and logistics process information in accordance with the air channel display interface. The logistics inquiry system according to claim 9, characterized in that, if the logistics channel is a non-air logistics channel, the inquiry result display module outputs relevant logistics process information in accordance with the normal channel display interface.

Citation Information

Patent Citations

  • Method and system for mediating inquiry

    JP2004046692A

  • Method and system for acquiring logistics information for international transport

    JP2019516203A

  • Method and system for monitoring shipments in a supply and / or logistics chain

    US20160217399A1