Method, device, electronic device and storage medium for determining order life cycle

By obtaining order log information and matching it with the graph model, the problem of low accuracy and low efficiency caused by log loss and disorder in order life cycle determination is solved, and automated, accurate and efficient order life cycle determination is achieved.

CN110443675BActive Publication Date: 2024-09-27北京屏芯科技有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910569417.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-27
Publication Date
2024-09-27
Estimated Expiration
2039-06-27

AI Technical Summary

Technical Problem

The existing technology has low accuracy and low efficiency due to log loss and disorder problems when determining the order life cycle, and requires manual analysis of the log stream for status changes.

Method used

By obtaining the order's log information, determine the order's transition path, and match it with the state transition path in the pre-generated graph model to automatically determine the order's life cycle.

Benefits of technology

It improves the accuracy and determination efficiency of the order life cycle, reduces manual intervention, and can accurately determine the order life cycle when the log information is lost or out of order.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110443675B
    Figure CN110443675B
Patent Text Reader

Abstract

The embodiment of the present application discloses a method, device, electronic device and storage medium for determining the life cycle of an order, the method comprising: obtaining log information associated with the current order according to the order identifier of the current order; determining the existing transition path of the current order according to the associated log information; matching the existing transition path with multiple state transition paths in a pre-generated graph model; and determining the life cycle of the current order according to the matching result. The embodiment of the present application can also accurately determine the life cycle of the current order according to the graph model in the event that the log information is lost or out of order, thereby improving the accuracy of the order life cycle and no longer relying on manual determination, thereby improving the efficiency of determining the order life cycle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for determining an order life cycle. Background Art

[0002] Online orders often have inconsistent status. Currently, to analyze the reasons for inconsistent status of orders, it is necessary to query the life cycle of the order from the initial state to the final state through the log center.

[0003] At present, many online and offline payment platforms are based on state machines to define the status of each stage of an order and its status changes. To query the life cycle of an order, it is necessary to manually determine it based on the original log stream. However, the log itself has problems such as loss and disorder, which leads to low accuracy in the determined order life cycle. When the order status flow is more complicated, it is not conducive to analysis through the log stream. Therefore, the existing method of manually determining the order life cycle through the log stream has the problems of low accuracy and low efficiency. Summary of the invention

[0004] The embodiments of the present application provide a method, device, electronic device and storage medium for determining an order life cycle, which helps to improve the accuracy of the life cycle and improve the determination efficiency.

[0005] In order to solve the above problems, in a first aspect, an embodiment of the present application provides a method for determining an order life cycle, including:

[0006] Acquire log information associated with the current order according to the order identifier of the current order;

[0007] Determining an existing transition path of the current order according to the associated log information;

[0008] Matching the existing transition path with multiple state transition paths in a pre-generated graph model;

[0009] The life cycle of the current order is determined according to the matching result.

[0010] In a second aspect, an embodiment of the present application provides a device for determining an order life cycle, including:

[0011] A log information acquisition module, used to acquire log information associated with the current order according to the order identifier of the current order;

[0012] An existing path determination module, used to determine the existing transition path of the current order according to the associated log information;

[0013] A path matching module, used to match the existing transition path with a plurality of state transition paths in a pre-generated graph model;

[0014] The life cycle determination module is used to determine the life cycle of the current order according to the matching result.

[0015] In a third aspect, an embodiment of the present application further discloses an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for determining the order life cycle described in the embodiment of the present application is implemented.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the method for determining an order life cycle disclosed in an embodiment of the present application.

[0017] The method, device, electronic device and storage medium for determining the order life cycle disclosed in the embodiments of the present application obtain log information associated with the current order according to the order identifier of the current order, determine the existing transition path of the current order according to the associated log information, match the existing transition path with multiple state transition paths in a pre-generated graph model, and determine the life cycle of the current order according to the matching result. In this way, even if the log information is lost or out of order, the life cycle of the current order can be accurately determined according to the graph model, thereby improving the accuracy of the order life cycle and no longer relying on manual determination, thereby improving the efficiency of determining the order life cycle. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 This is a flow chart of a method for determining an order life cycle provided in Example 1 of the present application;

[0020] Figure 2 This is a flow chart of a method for determining an order life cycle provided in Embodiment 2 of the present application;

[0021] Figure 3 It is a schematic diagram of a graph model in a method for determining an order life cycle provided in an embodiment of the present application;

[0022] Figure 4It is a structural diagram of the device for determining the order life cycle provided in Example 3 of the present application. DETAILED DESCRIPTION

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

[0024] Embodiment 1

[0025] This embodiment discloses a method for determining an order life cycle, which is applicable to scenarios where the order life cycle is determined when there are problems such as log loss or disorder. Figure 1 As shown, the method includes: step 110 to step 140.

[0026] Step 110: Obtain log information associated with the current order according to the order identifier of the current order.

[0027] Among them, the current order is the order whose life cycle is to be determined, which can be determined based on the user's query request. For example, when the order status of an order is inconsistent, the life cycle of the order needs to be determined. The user can input a query request for the life cycle of the order. The query request includes an order identifier. After the electronic device receives the query request, when querying the order corresponding to the order identifier in the query request, the order is used as the current order.

[0028] According to the order identifier of the current order, all log information including the order identifier is obtained from the log center. The log information is log information associated with the current order, including log information related to the order status of the current order.

[0029] Step 120: Determine the existing transition path of the current order based on the associated log information.

[0030] The existing transition path refers to the transition process of the order status of the current order determined according to the associated log information.

[0031] According to the order status in the associated log information and the time of the log information, the existing transition path of the current order is determined.

[0032] In some embodiments of the present application, the step of determining the existing transition path of the current order according to the associated log information includes:

[0033] Filtering the associated log information to retain log information containing order status as status log information;

[0034] Sorting the status log information according to the chronological order of the status log information;

[0035] According to the sorted status log information, extract the order status corresponding to each status log information;

[0036] According to the ordering of the status log information and the order status corresponding to each status log information, the existing transition path of the current order is determined.

[0037] The order status includes the stage and status of the order. The stage includes pre-creation, payment, inquiry, order supplement or reversal, etc. The status includes success, failure or unknown. The order status is, for example, pre-creation success, payment failure, etc. Each order status can be represented by a variable, and each variable is defined as a value, such as X 1 :1,X 2 :2,X 3 :3. The variable can be assigned values ​​in ascending order according to natural numbers. For example, 1 represents successful pre-creation, 2 represents failed pre-creation, 3 represents successful payment, and so on. Of course, this assignment method is not limited to this one, as long as each value can distinguish different order statuses.

[0038] The associated log information includes log information containing order status and other log information. First, the associated log information is filtered, and the log information that does not contain the order status is filtered out, and the log information containing the order status is retained, and the log information is used as the status log information. According to the time corresponding to the status log information, the status log information is sorted in chronological order, and the order status corresponding to each status log information is extracted. The order statuses are connected in series according to the sorting to obtain the existing transition path of the current order. After such processing, the existing transition path of the current order is obtained to be more accurate.

[0039] Step 130, matching the existing transition path with a plurality of state transition paths in a pre-generated graph model.

[0040] Among them, the pre-generated graph model is generated according to the life cycle of historical orders, including multiple state transition paths, which are the state transition paths experienced by historical orders.

[0041] The existing transition path is matched with multiple state transition paths in the pre-generated graph model. The matching can be performed through similarity comparison, that is, the similarity between the existing transition path and the multiple state transition paths in the pre-generated graph model is calculated respectively, and the state transition path with the highest similarity in the graph model is determined. If the highest similarity is greater than a threshold, the state transition path is used as the life cycle of the current order.

[0042] In some embodiments of the present application, the step of matching the existing transition path with multiple state transition paths in the pre-generated graph model includes: matching each state transition path with the existing transition path respectively; if one of the multiple state transition paths successfully matches the existing transition path, then the matching is terminated. If one of the multiple state transition paths successfully matches the existing transition path, then the state transition path can be determined to be the life cycle of the current order, and the matching is terminated to avoid excessive useless processing.

[0043] Step 140: Determine the life cycle of the current order according to the matching result.

[0044] Among them, the life cycle is the path of order status transitions that an order goes through.

[0045] The state transition path in the graph model that successfully matches the existing transition path is determined as the life cycle of the current order.

[0046] In some embodiments of the present application, the step of matching the existing transition path with a plurality of state transition paths in a pre-generated graph model includes:

[0047] respectively calculating the Euclidean distances between the existing transition path and the plurality of state transition paths;

[0048] The step of determining the life cycle of the current order according to the matching result includes:

[0049] The state transition path with the smallest Euclidean distance is used as the life cycle of the current order.

[0050] According to the existing transition path, the order of each order status in the existing transition path is determined. Since each order status can be represented by a value, the characteristic value (x 1 ,x 2 ,…,x n ), the characteristic value of the state transition path y in the graph model is (y 1 ,y 2 ,…,y n ), and then calculate the Euclidean distance between the existing transition path and multiple state transition paths through the following formula:

[0051]

[0052] Among them, d(x,y) represents the Euclidean distance between the existing transition path x and the state transition path y in the graph model.

[0053] The Euclidean distance between the existing transition path and the state transition path in the graph model is used as the similarity between the existing transition path and the state transition path in the graph model. The smaller the Euclidean distance, the more similar the two paths are. The state transition path with the smallest Euclidean distance is used as the life cycle of the current order. By calculating the Euclidean distance when matching paths, the amount of calculation can be reduced, thereby increasing the processing speed and determining the life cycle of the current order more accurately.

[0054] The method for determining the order life cycle disclosed in the present embodiment obtains log information associated with the current order according to the order identifier of the current order, determines the existing transition path of the current order according to the associated log information, matches the existing transition path with multiple state transition paths in a pre-generated graph model, and determines the life cycle of the current order according to the matching result. In this way, even if the log information is lost or out of order, the life cycle of the current order can be accurately determined according to the graph model, thereby improving the accuracy of the order life cycle and no longer relying on manual determination, thereby improving the efficiency of determining the order life cycle.

[0055] On the basis of the above technical solution, the method further includes: in response to the existing transition path and the multiple state transition paths all failing to match, the graph model is expanded according to the existing transition path. If the existing transition path and the multiple state transition paths all fail to match, for example, the Euclidean distance corresponding to the state transition path with the smallest Euclidean distance is also greater than the preset threshold, then the match failure is determined. At this time, all order states in the existing transition path are determined. If one of the order states is not in the graph model, the order state is expanded in the graph model, and the existing transition path is added to the graph model, thereby expanding the graph model, improving the scalability of the graph model, and making the graph model more and more perfect.

[0056] Embodiment 2

[0057] This embodiment discloses a method for determining an order life cycle, which is applicable to scenarios where the order life cycle is determined when there are problems such as log loss or disorder. Figure 2 As shown, the method includes: step 210 to step 270.

[0058] Step 210: Generate a state transition matrix corresponding to the historical order life cycle according to the historical order life cycle, where the order of the state transition matrix is ​​the total number of order states of the historical order.

[0059] The historical order life cycle is the path of order state transitions experienced by the historical order, including multiple order states. The state transition matrix is ​​a square matrix, and its order is the total number of order states of the historical order. Assuming that the state transition matrix is ​​A, for the element A in the state transition matrix ij , which means the number of orders corresponding to the transition from order state j to order state i. That is, it can be understood that in the state transition matrix, the horizontal axis is the state after the change, the vertical axis is the state before the change, and the value of the element in the matrix is ​​the number of state transitions, specifically the number of historical orders with this state transition.

[0060] In some embodiments of the present application, the step of generating a state transition matrix corresponding to the historical order life cycle based on the historical order life cycle includes: determining the path segments of order state transitions and the number of historical orders corresponding to the path segments based on the historical order life cycle; generating a state transition matrix corresponding to the historical order life cycle based on the path segments and the number of historical orders.

[0061] The path segment of the order status transition represents the transition from one order status to another order status.

[0062] First, according to the log information of each historical order, the life cycle of each historical order is determined. According to the life cycle of the historical order, all the order states of the historical order and the path segments of the order state transition can be obtained, and the number of historical orders corresponding to each path segment is counted. Different natural numbers can be used to represent each order state, and the order states are arranged horizontally and vertically respectively. The number of historical orders corresponding to each path segment is used as the value of the element in the state transition matrix to obtain the state transition matrix.

[0063] For example, the total number of all order states of historical orders is n, and the order states are represented as 1, 2, …, n, respectively, and are arranged horizontally and vertically as shown in Table 1. Any horizontally arranged order state and any vertically arranged order state constitute a state transition path segment. The number of historical orders corresponding to a path segment is used as the value of the matrix element corresponding to the path segment to obtain the state transition matrix, as shown in Table 1. The matrix element A ij (i=1,2,…,n;j=1,2,…,n) represents the number of orders corresponding to the transition from order status j to order status i.

[0064] Table 1 Generation of state transition matrix

[0065]

[0066] Step 220: Determine the weight corresponding to the path segment of the state transition according to the state transition matrix and the total number of historical orders.

[0067] According to the value of the element in the state transition in the state transition matrix, the number of historical orders corresponding to the path segment of the state transition is determined, and the number of historical orders corresponding to the path segment of the state transition is divided by the total number of historical orders to obtain the weight corresponding to the path segment of the state transition.

[0068] Step 230: Generate a graph model including a plurality of state transition paths according to the path segments and the weights corresponding to the path segments, wherein the state transition path includes at least one path segment.

[0069] First, indicate the status of each order, such as Figure 3 The order states 1, 2, 3, 4, 5, 6, 7, 8, and 9 shown are connected according to the corresponding order states, and the weights corresponding to the path segments are marked on the path segments. For example, the weight on path segment 12 is 0.9, the weight on path segment 13 is 0.04, and the weight on path segment 14 is 0.06. The corresponding path segments are connected according to the directions of each path segment to obtain multiple state transition paths, thereby obtaining a graph model including multiple state transition paths.

[0070] Step 240: Obtain log information associated with the current order according to the order identifier of the current order.

[0071] Step 250: Determine the existing transition path of the current order based on the associated log information.

[0072] Step 260, matching the existing transition path with a plurality of state transition paths in a pre-generated graph model.

[0073] Step 270, determining the life cycle of the current order according to the matching result.

[0074] The method for determining an order life cycle disclosed in the present embodiment generates a state transition matrix corresponding to the historical order life cycle according to the historical order life cycle, determines the weights corresponding to the path segments of the state transition according to the state transition matrix and the total number of historical orders, and generates a graph model including multiple state transition paths according to the path segments and the weights corresponding to the path segments, so as to facilitate the subsequent determination of the life cycle of the current order according to the graph model. The graph model generated according to the historical order life cycle includes all existing state transition paths, so that when determining the life cycle of the current order, the life cycle of the current order can be determined more accurately.

[0075] On the basis of the above technical solution, after the step of generating a graph model including multiple state transition paths according to the path segments and the weights corresponding to the path segments, it also includes: determining the initial weight of each state transition path according to the path segments included in each state transition path and the weight of the path segments; determining the weight of each state transition path according to the number of hits and the initial weight of each state transition path; sorting the multiple state transition paths in order from large to small according to the weights; and using the sorting as the path matching order of the multiple state transition paths.

[0076] The hit count of the state transition path is the sum of the number of times the state transition path is the life cycle and the initial hit count. The initial hit count may be 1. Each time each state transition path is hit, the hit count increases by one.

[0077] The initial weight of a state transition path is equal to the product of the weights of each path segment included in the state transition path. Assume that the initial weight of the i-th state transition path is W i , the inverse of the initial weight is L i =1 / W i (i=1,2,3…,n), the initial hit count of each path is 1, and the hit count increases by 1 each time each path is hit, and the hit count is K i , then the weight of the state transition path is N i =L i *K i , sort multiple state transition paths according to weight from large to small, and use the sorting as the path matching order of multiple state transition paths. That is, when determining the life cycle of the current order, first match the existing transition path with the state transition path ranked first in the graph model. If the match fails, match the subsequent state transition paths. In this way, the life cycle of the current order can be obtained relatively quickly, further improving the efficiency of determining the life cycle.

[0078] Embodiment 3

[0079] This embodiment discloses a device for determining an order life cycle, such as Figure 4 As shown, the device 400 for determining an order life cycle includes:

[0080] The log information acquisition module 410 is used to acquire the log information associated with the current order according to the order identifier of the current order;

[0081] An existing path determination module 420, configured to determine an existing transition path of the current order according to the associated log information;

[0082] A path matching module 430, used to match the existing transition path with a plurality of state transition paths in a pre-generated graph model;

[0083] The life cycle determination module 440 is used to determine the life cycle of the current order according to the matching result.

[0084] Optionally, the graph model generation module includes:

[0085] A transition matrix generating unit, used to generate a state transition matrix corresponding to the historical order life cycle according to the historical order life cycle, wherein the order of the state transition matrix is ​​the total number of order states of the historical order;

[0086] A path segment weight determination unit, used to determine the weight corresponding to the path segment of the state transition according to the state transition matrix and the total number of historical orders;

[0087] A graph model generation module is used to generate a graph model including multiple state transition paths according to the path segments and the weights corresponding to the path segments, wherein the state transition path includes at least one path segment.

[0088] Optionally, the transition matrix generating unit is specifically used for:

[0089] According to the historical order life cycle, determine the path segment of order status transition and the number of historical orders corresponding to the path segment;

[0090] A state transition matrix corresponding to the life cycle of the historical orders is generated according to the path segments and the number of historical orders.

[0091] Optionally, the device further comprises:

[0092] An initial weight determination module, used to determine the initial weight of each state transition path according to the path segments included in each state transition path and the weights of the path segments;

[0093] A path weight determination module is used to determine the weight of each state transition path according to the number of hits and the initial weight of each state transition path;

[0094] A sorting module, used to sort the multiple state transition paths in descending order of the weights;

[0095] A matching order determination module is used to use the order as the path matching order of the multiple state transition paths.

[0096] Optionally, the hit count of the state transition path is the sum of the number of times the state transition path is the life cycle and the initial hit count.

[0097] Optionally, the path matching module includes:

[0098] A path matching unit, used to match each state transition path with the existing transition path respectively;

[0099] The life cycle determination unit is configured to terminate the matching if one of the multiple state transition paths successfully matches the existing transition path.

[0100] Optionally, the existing path determination module includes:

[0101] A log filtering unit, configured to filter the associated log information to retain the log information containing the order status as the status log information;

[0102] A log sorting unit, used to sort the status log information according to the time sequence of the status log information;

[0103] An order status extraction unit, used to extract the order status corresponding to each status log information according to the sorted status log information;

[0104] The existing path determination unit is used to determine the existing transition path of the current order according to the order of the status log information and the order status corresponding to each status log information.

[0105] Optionally, a Euclidean distance calculation unit is used to respectively calculate the Euclidean distances between the existing transition path and the multiple state transition paths;

[0106] The life cycle determination module includes:

[0107] The life cycle determination unit is used to use the state transition path with the smallest Euclidean distance as the life cycle of the current order.

[0108] Optionally, the device further comprises:

[0109] The graph model expansion module is used to expand the graph model according to the existing transition path in response to the existing transition path failing to match the multiple state transition paths.

[0110] The device for determining the order life cycle provided in the embodiment of the present application is used to implement the various steps of the method for determining the order life cycle described in the embodiment of the present application. The specific implementation methods of each module of the device refer to the corresponding steps and will not be repeated here.

[0111] The device for determining the order life cycle disclosed in the embodiment of the present application obtains log information associated with the current order according to the order identifier of the current order through a log information acquisition module, determines the existing transition path of the current order according to the associated log information by an existing path determination module, matches the existing transition path with multiple state transition paths in a pre-generated graph model by a path matching module, and determines the life cycle of the current order according to the matching result by a life cycle determination module. Thus, even when the log information is lost or out of order, the life cycle of the current order can be accurately determined according to the graph model, thereby improving the accuracy of the order life cycle and no longer relying on manual determination, thereby improving the efficiency of determining the order life cycle.

[0112] Accordingly, the embodiment of the present application further discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for determining the order life cycle as described in the embodiment of the present application when executing the computer program. The electronic device may be a PC, a mobile terminal, a personal digital assistant, a tablet computer, etc.

[0113] The embodiment of the present application also discloses a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for determining an order life cycle as described in the embodiment of the present application.

[0114] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0115] The above is a detailed introduction to a method, device, electronic device and storage medium for determining an order life cycle provided in an embodiment of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

Claims

1. A method for determining an order life cycle, characterized in that: include: Acquire log information associated with the current order according to the order identifier of the current order; Determining an existing transition path of the current order according to the associated log information; Matching the existing transition path with multiple state transition paths in a pre-generated graph model; Determine the life cycle of the current order according to the matching result; The steps of generating the pre-generated graph model include: According to the historical order life cycle, a state transition matrix corresponding to the historical order life cycle is generated, where the order of the state transition matrix is ​​the total number of order states of the historical order; Determine the weight corresponding to the path segment of the state transition according to the state transition matrix and the total number of historical orders; According to the path segments and the weights corresponding to the path segments, a graph model including a plurality of state transition paths is generated, wherein the state transition path includes at least one path segment.

2. The method according to claim 1, characterized in that The step of generating a state transition matrix corresponding to the historical order life cycle according to the historical order life cycle includes: According to the historical order life cycle, determine the path segment of order status transition and the number of historical orders corresponding to the path segment; A state transition matrix corresponding to the life cycle of the historical orders is generated according to the path segments and the number of historical orders.

3. The method according to claim 1, characterized in that After the step of generating a graph model including a plurality of state transition paths according to the path segments and the weights corresponding to the path segments, the method further includes: Determining an initial weight of each state transition path according to the path segments included in each state transition path and the weights of the path segments; Determine the weight of each state transition path based on the hit count and initial weight of each state transition path; Sorting the multiple state transition paths in descending order of the weights; The order is used as the path matching order of the multiple state transition paths.

4. The method according to claim 3, characterized in that The hit count of the state transition path is the sum of the number of times the state transition path is used as the life cycle and the initial hit count.

5. The method according to claim 1, characterized in that The step of matching the existing transition path with a plurality of state transition paths in a pre-generated graph model includes: Matching each state transition path with the existing transition path respectively; If one state transition path among the multiple state transition paths successfully matches the existing transition path, the matching is terminated.

6. The method according to claim 1, characterized in that The step of determining the existing transition path of the current order according to the associated log information includes: Filtering the associated log information to retain log information containing order status as status log information; Sorting the status log information according to the chronological order of the status log information; According to the sorted status log information, extract the order status corresponding to each status log information; According to the ordering of the status log information and the order status corresponding to each status log information, the existing transition path of the current order is determined.

7. The method according to claim 1, characterized in that The step of matching the existing transition path with a plurality of state transition paths in a pre-generated graph model includes: respectively calculating the Euclidean distances between the existing transition path and the plurality of state transition paths; The step of determining the life cycle of the current order according to the matching result includes: The state transition path with the smallest Euclidean distance is used as the life cycle of the current order.

8. The method according to claim 1, characterized in that The method further comprises: In response to the existing transition path failing to match the multiple state transition paths, the graph model is expanded according to the existing transition path.

9. A device for determining an order life cycle, characterized in that: include: A log information acquisition module, used to acquire log information associated with the current order according to the order identifier of the current order; An existing path determination module, used to determine the existing transition path of the current order according to the associated log information; A path matching module, used to match the existing transition path with a plurality of state transition paths in a pre-generated graph model; A life cycle determination module, used to determine the life cycle of the current order according to the matching result; A graph model generation module is used to pre-generate a graph model. The graph model generation module includes: A transition matrix generating unit, used to generate a state transition matrix corresponding to the historical order life cycle according to the historical order life cycle, wherein the order of the state transition matrix is ​​the total number of order states of the historical order; A path segment weight determination unit, used to determine the weight corresponding to the path segment of the state transition according to the state transition matrix and the total number of historical orders; A graph model generating unit is used to generate a graph model including a plurality of state transition paths according to the path segments and the weights corresponding to the path segments, wherein the state transition path includes at least one path segment.

10. The device according to claim 9, characterized in that The transition matrix generation unit is specifically used for: According to the historical order life cycle, determine the path segment of order status transition and the number of historical orders corresponding to the path segment; A state transition matrix corresponding to the life cycle of the historical orders is generated according to the path segments and the number of historical orders.

11. The device according to claim 9, characterized in that The device also includes: An initial weight determination module, used to determine the initial weight of each state transition path according to the path segments included in each state transition path and the weights of the path segments; A path weight determination module is used to determine the weight of each state transition path according to the number of hits and the initial weight of each state transition path; A sorting module, used to sort the multiple state transition paths in descending order of the weights; A matching order determination module is used to use the order as the path matching order of the multiple state transition paths.

12. The device according to claim 11, characterized in that The hit count of the state transition path is the sum of the number of times the state transition path is used as the life cycle and the initial hit count.

13. The device according to claim 9, characterized in that The path matching module includes: A path matching unit, used to match each state transition path with the existing transition path respectively; The life cycle determination unit is configured to terminate the matching if one of the multiple state transition paths successfully matches the existing transition path.

14. The device according to claim 9, characterized in that The existing path determination module comprises: A log filtering unit, configured to filter the associated log information to retain the log information containing the order status as the status log information; A log sorting unit, used to sort the status log information according to the time sequence of the status log information; An order status extraction unit, used to extract the order status corresponding to each status log information according to the sorted status log information; The existing path determination unit is used to determine the existing transition path of the current order according to the order of the status log information and the order status corresponding to each status log information.

15. The device according to claim 9, characterized in that The path matching module includes: A Euclidean distance calculation unit, used to calculate the Euclidean distances between the existing transition path and the multiple state transition paths respectively; The life cycle determination module includes: The life cycle determination unit is used to use the state transition path with the smallest Euclidean distance as the life cycle of the current order.

16. The device according to claim 9, characterized in that The device also includes: The graph model expansion module is used to expand the graph model according to the existing transition path in response to the existing transition path failing to match the multiple state transition paths.

17. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for determining the order life cycle described in any one of claims 1 to 8 is implemented.

18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for determining the order life cycle described in any one of claims 1 to 8 are implemented.