Logistics enterprise financial abnormal behavior path generation method based on business financial linkage time sequence diagram
By using cross-system entity identification and business-finance linkage time sequence diagrams, the problem of inaccurate correlation between business events and financial events in logistics enterprises is solved, generating a complete path of abnormal financial behavior and improving the accuracy and traceability of anomaly identification.
Patent Information
- Application Number
- CN202611459055.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-19
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies make it difficult to accurately establish the correlation between business events and financial events in logistics companies. This makes it difficult to reconstruct the transmission process of anomalies in transportation, settlement, invoicing and payment, and it is also difficult to generate complete and traceable financial anomaly behavior paths.
By using cross-system entity identification, relationship templates, and allocation anchor nodes, logistics business event and financial event data are converted into event nodes. The association confidence and relationship edge inconsistency are calculated, abnormal evidence signatures are extracted, candidate paths are expanded, a business-financial linkage time sequence diagram is formed, and abnormal financial behavior paths are generated.
It improves the accuracy of the correlation between heterogeneous business events and financial events, enhances the integrity of the anomaly formation process and the traceability of the results, and can accurately identify and track abnormal financial behaviors in complex business scenarios.
Smart Images

Figure CN123160293A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of computer data processing and logistics financial risk identification, and in particular to a method for generating abnormal financial behavior paths of logistics enterprises based on a business-financial linkage time sequence diagram. Background Technology
[0002] Logistics companies typically have their order, transportation, receipt, settlement, invoicing, and payment data scattered across different systems. Existing methods often rely on business numbers, amounts, or time relationships for data association. However, in cases of inconsistent business identifiers, consolidated settlements, split invoicing, or installment payments, data association errors or omissions are prone to occur. Furthermore, due to inaccurate correlations between business events and financial events, current anomaly identification results often remain at the level of a single invoice, voucher, or transaction record, making it difficult to reconstruct the transmission process of anomalies throughout the transportation, settlement, invoicing, and payment stages.
[0003] Therefore, existing technologies struggle to accurately establish the correlation between business events and financial events, and also struggle to generate complete and traceable paths of abnormal financial behavior. Summary of the Invention
[0004] This invention provides a method for generating abnormal financial behavior paths in logistics enterprises based on a business-finance linkage time sequence diagram, which solves the problems of difficulty in unifying cross-system entities, difficulty in expressing complex business-finance relationships, lack of process relationships for abnormal points, and difficulty in stably backtracking abnormal paths.
[0005] The method includes: acquiring logistics business event data and financial event data; performing cross-system entity identification on the logistics business event data and the financial event data; and converting the data identified through cross-system entity identification into event nodes; calculating the association confidence between candidate event nodes based on the event nodes and a preset relationship template; establishing business sequence edges, financial sequence edges, and business-financial linkage edges when the association confidence reaches a corresponding association threshold; and establishing allocation anchor nodes for one-to-many or many-to-one monetary relationships to form a business-financial linkage time sequence diagram; and calculating the relationship edge inconsistency of each relationship edge and the node of each event node based on the business-financial linkage time sequence diagram. Anomaly score; extracting recurring anomaly evidence signatures in the business and financial domains from event nodes whose anomaly scores reach a high anomaly threshold; identifying event nodes whose anomaly scores reach a seed threshold as anomaly seeds; and, based on the business-financial linkage time sequence diagram and the anomaly evidence signatures, expanding candidate paths through direct or bridging relationship edges under time reachability constraints; calculating candidate path scores based on node anomaly scores, association confidence, relationship edge inconsistency, anomaly evidence signature support, and processing stage coverage in the candidate paths, and identifying candidate paths whose scores reach a path threshold as financial anomaly behavior paths.
[0006] Logistics business event data includes at least one of the following: customer orders, transportation consignments, waybills, vehicle and driver dispatching, loading and unloading scanning, vehicle location tracking, mileage, fuel consumption, road and bridge tolls, temperature and humidity, abnormal stops, electronic signatures, and claims records; financial event data includes at least one of the following: quotation contracts, billing rules, accounts receivable and payable settlements, settlement adjustments, invoices, accounting vouchers, payment and receipt applications, bank statements, refunds, write-offs, and bad debt processing records.
[0007] Cross-system entity recognition performs direct matching on entities with unique identifiers, calculates composite attribute consistency scores for entities lacking unique identifiers, and controls entity merging through entity thresholds and ambiguity thresholds; entities that do not meet the merging conditions retain independent identifiers and record entity uncertainty.
[0008] The relationship template limits the allowed starting event type, target event type, allowed time difference range, required entity matching items, optional business keys, allowed state transitions, and corresponding amount types for connections. The consistency of business keys, entities, time reachability, and data source consistency are weighted to form the association confidence score. A directed relationship edge is established when the association confidence score reaches the association threshold corresponding to the relationship type.
[0009] For one-to-many or many-to-one monetary relationships, an allocation anchor node is established after unifying the currency, tax amount, and direction of income and expenditure. The allocation matrix is determined by optimizing the monetary residuals with allocation coefficient range, financial event allocation, and prohibition of association constraints. When multiple optimal allocation matrices coexist, the allocation result is determined by weighted sum based on association confidence.
[0010] The inconsistency of relational edges is obtained by weighting at least two of the following: monetary residuals, temporal residuals, state transition violations, entity direction conflicts, and funding direction conflicts. The anomaly of node-related edges is obtained by weighting the inconsistency of relational edges of high-confidence relational edges according to the association confidence and data source reliability. The node anomaly score is obtained by weighting the local numerical deviation, node-related edge anomaly, state and time sequence violations, and local relational structure deviation.
[0011] Anomaly evidence signatures are formed by combining the entities, amount proportions, time intervals, states, routes, account changes, and operating terminal characteristics commonly found in high-anomaly event nodes. The signature score is determined by the purity of the anomaly node, global rarity, cross-domain coverage, and temporal clustering. The seed threshold is not lower than the high-anomaly threshold, allowing anomaly evidence signatures to be statistically analyzed across a wide set of high-anomaly nodes, while nodes with higher anomaly levels are used to initiate path searching.
[0012] Bridging edges are used to handle missing business keys or intermediate data. Two event nodes are formed when they are connected to the same shared anchor node, or when they share anomaly evidence signatures and unified entity identifiers. Bridging edges are established when the bridging association value reaches the bridging threshold. Bridging edges that cross business and financial domains are marked as business-financial bridging edges.
[0013] Candidate paths are generated through a beam search with a limited width, and all path score components are normalized to zero to one. After the number of completed paths reaches a preset number, score pruning is performed, and only candidate paths that reach the path threshold are included in the output set. Nearly duplicate paths are merged using weighted Jaccard similarity of nodes, relation edges, and anomalous evidence signatures.
[0014] Feedback updates adjust weights and signature reliability based on the positive or negative sign of the feedback, the contribution of the scoring components, and the learning rate, and update the thresholds based on the quantiles of confirmed and negative samples. When a new event enters, the local subgraph and global signature counter are updated; when weights, thresholds, or signature scores cross propagation conditions, the affected subgraphs associated with the corresponding relationship type, event type, or anomalous evidence signatures are recalculated.
[0015] Beneficial effects
[0016] I. This invention organizes order, transportation, receipt, settlement, invoicing, accounting, and payment events into the same business-financial linkage time sequence diagram by cross-system entity recognition, relationship templates, and allocation anchor nodes. It uses association confidence and relationship edge inconsistency to determine the degree of association and deviation between events, which can preserve the business-financial linkage relationship in scenarios of one invoice with multiple orders, multiple invoices with one order, consolidated settlement, and installment payment, thereby improving the accuracy of association between heterogeneous business events and financial events.
[0017] Second, this invention extracts recurring abnormal evidence signatures across business and financial domains from high-abnormal event nodes, and expands candidate paths by combining direct relationship edges and business-financial bridging edges. This enables the restoration of scattered events such as route deviation, abnormal receipt, settlement adjustment, invoicing deviation, account change, and abnormal payment into continuous financial abnormal behavior paths, thereby improving the integrity of the abnormal formation process and the traceability of the results. Attached Figure Description
[0018] Figure 1 This is a schematic diagram of the overall process of a method for generating abnormal financial behavior paths of logistics enterprises based on a business-finance linkage sequence diagram in one embodiment.
[0019] Figure 2 This is a flowchart illustrating the construction of a sequence diagram for event normalization and business-financial linkage in one embodiment.
[0020] Figure 3This is a schematic diagram of the business-finance linkage sequence diagram in one embodiment;
[0021] Figure 4 This is a schematic diagram of the node anomaly quantification and anomaly evidence signature generation process in one embodiment.
[0022] Figure 5 This is a flowchart illustrating the generation of a financial anomaly behavior path in one embodiment.
[0023] Figure 6 This is a schematic diagram of the feedback update and incremental calculation process in one embodiment. Detailed Implementation
[0024] To make the technical solution of the present invention clearer, the present invention will be described below with reference to the accompanying drawings and embodiments. The parameters, thresholds, and weights can be set according to the data scale, business cycle, and risk control requirements of the logistics enterprise. The embodiments described are used to illustrate the implementation of the present invention.
[0025] This embodiment processes event data generated by logistics companies during transportation operations and financial accounting. The business domain represents the data domain to which business events such as orders, scheduling, transportation, receipt confirmation, and settlement confirmation belong; the financial domain represents the data domain to which financial events such as invoicing, accounting, payment collection, refunds, and write-offs belong. The business-finance linkage sequence diagram includes event nodes, allocation anchor nodes, and directed relationship edges. Abnormal evidence signatures and signature associations constitute an evidence association layer parallel to the sequence diagram.
[0026] like Figure 1 As shown, the method in this embodiment sequentially includes data acquisition, time correction and cross-system entity identification, event normalization, construction of a business-financial linkage time sequence diagram, anomaly quantification of relationship edges and event nodes, extraction of anomaly evidence signatures, candidate path expansion and scoring, financial anomaly behavior path screening output, and feedback incremental update. Each processing stage transmits calculation results through event node identifiers, relationship edge identifiers, allocation anchor node identifiers, and anomaly evidence signature identifiers.
[0027] like Figure 2 As shown, this method retrieves logistics business event data and financial event data within a preset time range. The time range can be a fixed calendar period or a sliding window. Short-period windows are used to identify anomalies occurring consecutively on the same day or within several days, while long-period windows are used to identify accounts, equipment, amount ratios, and settlement adjustment patterns that recur across months.
[0028] The timestamps of each data source are corrected. The system saves statistics on data source clock skew, time zone, and data latency. For transportation events with start and end times, a time interval is used; for later-entered records, both the business occurrence time and the system write time are saved. The relation template prioritizes the business occurrence time, and uses the system write time corrected for data latency when the business occurrence time is missing.
[0029] Cross-system entity identification first reads the controlled master data mapping table. When the unified social credit code, bank account identifier, vehicle identification number, ID card identifier, or master data mapping number are consistent, the corresponding original entity is directly mapped to the same unified entity identifier. For entities lacking a unique identifier, normalized attributes such as name, contact information, address, account, vehicle, and historical business relationships are generated, and an entity consistency score is calculated in the candidate entity set.
[0030]
[0031] In the formula, M a ᵦ represents the entity consistency score between the original entity a and the candidate entity b; Iᵤ represents the unique attribute consistency indicator value; S n 、S𝚌、S a Sᵥ and Sᵣ represent the similarity scores for name, contact information, account or address, vehicle, and historical business relationships, respectively; η1 to η6 are non-negative weights, and their sum is one. When the highest entity consistency score reaches the entity threshold and the difference between the highest and second-highest scores reaches the ambiguity threshold, the original entity is merged with the highest-scoring candidate entity; otherwise, independent and unified entity identifiers are retained, and the highest score is converted into entity uncertainty. Entity uncertainty is used to increase the threshold for establishing subsequent relationship edges, preventing uncertain entities from causing widespread erroneous connections.
[0032] Each data record is converted into an event node eᵢ=(idᵢ, dᵢ, cᵢ, tᵢ, Uᵢ, Kᵢ, Aᵢ, Sᵢ, Lᵢ, qᵢ, uᵢ). Here, idᵢ is the event identifier; dᵢ is the business domain or financial domain; cᵢ is the event type; tᵢ is the correction time point or time interval; Uᵢ is the set of unified entity identifiers; Kᵢ is the set of business keys from order number, waybill number, settlement batch number, invoice number, voucher number, and transaction number; Aᵢ is a vector composed of amount, mileage, weight, quantity, fuel consumption, or tax amount; Sᵢ is the event status; Lᵢ is the location, route, or fund flow; qᵢ is the data source reliability; and uᵢ is the entity uncertainty.
[0033] Data source reliability is determined based on field completeness rate, time delay, historical verification consistency rate, and manual correction rate. Events with low source reliability or high entity uncertainty are retained in the graph, and the threshold for establishing their relationship edges is increased accordingly. The output path simultaneously marks low-reliability sources and uncertain entity identification information.
[0034] Figure 3 In the business-finance linkage sequence diagram shown, business sequence edges are used to connect order creation, waybill generation, scheduling, loading, dispatch, arrival, receipt, and settlement confirmation events within the same transportation business chain; financial sequence edges are used to connect accounts receivable / payable confirmation, invoice issuance, voucher posting, payment application, bank payment, refund, and reversal events; business-finance linkage edges are used to connect settlement confirmation with invoices, billing details with vouchers, payment applications with settlement, and bank statements with payment applications; and business-finance bridging edges are used to connect cross-domain events that lack direct business keys but have composite bridging evidence.
[0035] Each type of relation edge corresponds to a relation template r. The relation template includes the initial event type c. s Target event type c t Allowable time difference interval [Δ] m ᵢ n ʳ, Δ max The system uses event type, time range, and entity index to generate candidate event pairs, and then calculates the association confidence score. The criteria include: required entity set, optional business key, allowed state transitions, corresponding amount type, and lower limit of data source reliability.
[0036] Business key consistency Kᵢⱼ is determined based on the business key sets of the two events. Order numbers or waybill numbers that are completely identical receive a higher value; when there is a mapping between the settlement batch number and invoice line items, the value is determined according to the mapping completeness rate; numbers obtained through parsing the memo text receive a lower value based on the parsing confidence level. Entity consistency Eᵢⱼ is determined based on the matching ratio of customers, carriers, vehicles, drivers, accounts, and operators required by the relationship template, and is attenuated according to entity uncertainty.
[0037] Time reachability Tᵢⱼʳ is determined based on the deviation of the event time difference from the expected time difference of the relation template. It takes a non-zero value when the time difference falls within the allowable range and decreases as its deviation from the historical median time difference of the relation template increases. Data source consistency Qᵢⱼ is determined based on the historical reconciliation consistency rate, field completeness rate, and data latency between the two data sources.
[0038]
[0039] In the formula, Kᵢⱼ, Eᵢⱼ, Tᵢⱼʳ, and Qᵢⱼ are all normalized to zero to one; λ1, λ2, λ3, and λ4 are non-negative weights, and their sum is one. Weights and association thresholds are stored separately for different relation types. When Cᵢⱼʳ reaches the association threshold of relation type r, a directed relation edge is established pointing from event node i to event node j. The association confidence score is used to determine whether two events belong to the same processing chain; deviations in amount, time, status, and funding direction are included in the relation edge inconsistency calculation.
[0040] When one invoice corresponds to multiple waybills, multiple invoices correspond to one settlement batch, or one payment corresponds to multiple accounts payable details, the system generates an allocation anchor node a_g. Before establishing the allocation anchor node, different currencies are converted to a unified currency according to the exchange rate of the corresponding business day, and the amounts including and excluding tax are converted to the amount scope specified in the relationship template. The positive and negative directions of the amounts are unified according to the accounts receivable, accounts payable, refunds, and reversals. Let the unified business event amount be B̃ᵢ, the financial event amount be F̃ⱼ, and the allocation coefficient ρᵢⱼ be determined by the following formula:
[0041]
[0042] The constraints are 0 ≤ ρᵢⱼ ≤ 1; for each financial event j, Σᵢρᵢⱼ = 1; event pairs whose association confidence does not reach the allocation candidate threshold or whose relationship template prohibits association satisfy ρᵢⱼ = 0. ε is a constant to prevent the denominator from being zero, and ξ is the low-confidence association penalty coefficient. The first objective function is used to reduce the normalized amount residual, and the second objective function is used to suppress the completion of amount balancing through low-confidence event pairs. When there are multiple allocation matrices with the same objective function value, the allocation matrix with the largest ΣᵢΣⱼρᵢⱼCᵢⱼʳ is selected; when there are still tied results, the allocation matrix with fewer non-zero allocation coefficients is selected. This order selection rule makes the allocation result deterministic.
[0043] The allocation anchor node establishes allocation edges with both the business event node and the financial event node, and records the allocation coefficient, allocation amount, remaining amount, currency conversion information, tax scope, and amount direction. Refunds, reversals, and red-ink invoices use corresponding reverse relationship templates, retaining their negative amount direction to avoid mixed allocation with normal payments or positive invoicing.
[0044] The inconsistency degree of the relation edges, Dᵢⱼʳ, is used to quantify the deviation between events that have established a relationship, and is derived from the normalized monetary residual d. a Time residual d t State transition violates d s Entity direction conflict d e The conflict with the direction of funding is obtained by weighting d_f.
[0045]
[0046] In the formula, each component is normalized to zero to one, and δ1 to δ5 are non-negative weights, the sum of which is one. The monetary residual is determined based on the ratio of the difference between the actual financial amount and the expected amount according to business rules to the reference amount; the time residual is determined based on the degree to which the event time difference deviates from the historical median time difference of the relationship template; a state transition violation indicates that the target event state does not meet the constraints of the initial event state; an entity direction conflict indicates that the carrier, customer, vehicle, or account relationship is inconsistent with the relationship template; and a funding direction conflict indicates that the payer and payee do not conform to the settlement relationship.
[0047] The local numerical deviation of a node, D_loc(vᵢ), is calculated based on the reference group to which the event node belongs. The reference group is determined by at least three of the following: customer category, route category, mode of transport, settlement method, and time period. For the numerical feature x among amount, unit freight rate, mileage, fuel consumption, load factor, settlement period, invoice tax rate, account change frequency, and write-off frequency, the robust deviation value for each feature is calculated using the following formula:
[0048]
[0049] In the formula, med_g(x) and MAD_g(x) are the median and median absolute deviation of the numerical feature x in the reference group g, respectively, and κ is the deviation cutoff coefficient. The single-feature robust deviation values of multiple numerical features are weighted and averaged according to the feature reliability to obtain D_loc(vᵢ).
[0050] The node association edge anomaly degree D_edge(vᵢ) is the weighted average of the inconsistencies of the relationship edges connected to the event node vᵢ and whose association confidence reaches the high confidence threshold.
[0051]
[0052] In the formula, qᵢⱼ is the combined reliability value of the data sources at both ends of the relation edge. The state and time sequence violation degree D_seq(vᵢ) records the absence of a necessary predecessor event, the absence of a necessary successor event, the order reversal, and exceeding the allowed processing time as violation indicator values, and then calculates a weighted average according to the importance of the relation template:
[0053]
[0054] The local relation structure deviation D_str(vᵢ) represents the node neighborhood as a structure vector zᵢ composed of the frequency of event type sequences, in-degree, out-degree, number of shared relations, number of cross-domain edges in business and finance, and fund direction pattern, and compares it with the median structure vector z̄_g of similar historical local graph templates:
[0055]
[0056] In the formula, τ_str is the structural deviation normalization parameter. The node anomaly score Aᵢ is calculated according to the following formula:
[0057]
[0058] In the formula, α1 to α4 are non-negative weights, and their sum is one. When a node's anomaly score reaches the high anomaly threshold θ_H, the event node enters the high anomaly node set; when a node's anomaly score reaches the seed threshold θ_S, the event node enters the anomaly seed set, where θ_S ≥ θ_H. θ_H and θ_S can be set separately for different event types. Figure 4 The calculation relationships of relation edge inconsistency, node anomaly score, and anomalous evidence signature are shown.
[0059] Anomaly evidence signatures are used to express a combination of evidence shared by multiple highly anomalous event nodes. The system converts the entity, amount, time, status, location, and operation information in the event nodes into feature atoms. Examples of feature atoms include the same receiving account, the same operating terminal, the same operator, integer amount ranges, amount splitting ratio ranges, short-term payment after receipt, short-term payment after account change, route mileage lower than billing mileage, continuous write-offs by the same carrier, and the same settlement adjustment type.
[0060] The system enumerates combinations of two to four characteristic atoms in the set of high-anomaly nodes, sorts the atoms within each combination according to a preset category order and atom value, and obtains candidate signatures. Each candidate signature is counted only once within the same event node. Let n... s A represents the number of times candidate signature s appears in high-anomaly nodes, n. s N is the number of times it appears in the reference normal node, n s =n s ,A+n s ,N.
[0061] Let b s and f s These represent the number of business event types and financial event types covered by the candidate signatures, respectively. B0 and F0 are the preset saturation number of types in the business domain and financial domain, respectively. Cross-domain coverage is calculated using the following formula:
[0062]
[0063] Let σ t (s) represents the normalized standard deviation of the candidate signature-related event time relative to the observation window length, τ t For a discrete time scale, the temporal clustering degree is calculated according to the following formula:
[0064]
[0065] Candidate signature score Rs Calculate according to the following formula:
[0066]
[0067] In the formula, N is the total number of event nodes. Each product term is truncated to its upper limit so that R... s Normalize to zero to one. When the number of supports for a candidate signature in high-anomaly nodes reaches the minimum support threshold, covers at least one business event type and one financial event type, and R... s When the signature threshold is reached, the candidate signature is identified as anomalous evidence. The system establishes a signature association between the anomalous evidence signature and the event node containing that signature, and saves the signature score, atomic composition, and evidence location within the event.
[0068] like Figure 5 As shown, the generation of financial anomaly behavior paths begins with a set of anomaly seeds. The system expands each anomaly seed by both its predecessor and successor events. Direct relationship edge expansion requires that there is a directed relationship edge between the current path endpoint and the node to be added, the association confidence reaches the path expansion threshold, the event time difference is within the allowed range of the relationship template, and the node to be added does not appear in the current path. Reverse events such as refunds, write-offs, and re-invoicing are expanded in the corresponding direction using preset reverse relationship templates.
[0069] Bridging extensions are used to handle missing business keys or missing intermediate system data. Two event nodes are considered bridging candidates when they are both connected to the same shared anchor node, or when they simultaneously share anomaly evidence signatures and unified entity identifiers. Let Rᵢⱼˢ 1 ᵍ represents the highest signature score among the shared anomalous evidence signatures of the two event nodes. The bridging correlation value Bᵢⱼ is calculated according to the following formula:
[0070]
[0071] In the formula, Eᵢⱼ represents entity consistency, Tᵢⱼᵇ represents bridging time reachability, Qᵢⱼ represents data source consistency, and β1 to β4 are non-negative weights that sum to one. A bridging relationship edge is established when Bᵢⱼ reaches the bridging threshold; bridging relationship edges that cross business and financial domains are marked as business-financial bridging edges. This condition avoids the formation of a large number of weak bridging relationships simply because they share a single customer, carrier, or account identifier.
[0072] Each candidate path must contain at least one business event node, one financial event node, and one business-finance linkage edge or business-finance bridging edge. The system maps event types to seven processing stages: order, execution, receipt, settlement, invoicing, accounting, and payment collection. Candidate paths must cover at least two processing stages. The maximum path length, maximum backtracking period, and bundle search width are set based on computing resources and business cycles.
[0073] At each expansion layer, the expansion priority H of the event node vⱼ to be added relative to the current path P is calculated according to the following formula:
[0074]
[0075] In the formula, Aⱼ represents the anomaly score of the node to be added; CᵢⱼʳDᵢⱼʳ represents the anomaly contribution of the traversed relation edges; Rᵢⱼˢ 1 ᵍ represents the signature score of shared abnormal evidence; ΔCov represents the coverage gain of the new processing stage; Φ(Δt) represents the normalization time interval penalty; γ1 to γ5 represent non-negative weights. Each score component is normalized to zero to one, and each expansion layer retains only a preset number of candidate paths with the highest expansion priority.
[0076] Let S(P) be the set of anomalous evidence signatures supporting at least two event nodes in path P, m s (P) represents the number of path nodes supported by signature s. The support of anomalous evidence signatures is calculated using the following formula:
[0077]
[0078] Processing stage coverage Cov(P) is the ratio of the number of processing stages covered by the path to seven. Path redundancy is obtained by weighting the event type repetition rate r_type, the business key repetition rate r_key, and the anomaly evidence signature repetition rate r_sig.
[0079]
[0080] In the formula, μ1 to μ3 are non-negative weights, and their sum is one. Each repetition rate is a normalized value of the number of repetitions relative to the corresponding total number of occurrences. The path score Q of candidate path P is... p Calculate according to the following formula:
[0081]
[0082] In the formula, mean(A) is the average score of abnormal paths; mean(C·D) is the average product of the confidence score and the inconsistency score of the path relationship edges; ω1 to ω5 are non-negative weights. After the number of completed paths reaches a preset number K, the system calculates the upper bound of the score based on the current score of the candidate paths, the remaining expandable length, and the upper limit of each scoring component; expansion stops when the upper bound of the score is lower than the lowest score among the currently completed K paths. If there are fewer than K completed paths, the upper bound of the score is not used for pruning.
[0083] After the expansion is complete, only Q will be retained. pCandidate paths that reach the path threshold θ_P. For any two candidate paths P1 and P2, calculate the Jaccard similarity J_V for the event node set, the Jaccard similarity J_E for the relation edge type set, and the Jaccard similarity J_S for the key anomaly evidence signature set, and calculate the weighted Jaccard similarity:
[0084]
[0085] In the formula, ν1 to ν3 are non-negative weights, and their sum is one. When J_w reaches the merging threshold, the path with the higher score is retained, and the original record index of the other candidate path that is not repeated is used as supplementary evidence. Finally, the paths of financial abnormal behavior within a preset number are output according to the path score.
[0086] The output data for each path of financial anomaly behavior includes path identifier, event nodes arranged in chronological order, node anomaly contribution, relationship edge type, association confidence level, relationship edge inconsistency, monetary residual, temporal residual, state violation, anomaly evidence signature, allocation anchor node and allocation coefficient, original record source index, path score, impact amount, and missing evidence prompt. The impact amount is obtained by deduplicating and summarizing the unexplained monetary residuals, anomaly allocation amounts, and anomaly fund outflow amounts within the path; the missing evidence prompt is generated based on the necessary preceding and succeeding events in the relationship template.
[0087] like Figure 6 As shown, the feedback includes path confirmation, path rejection, false alarms, edge relationship errors, and path breakpoints. Let the feedback symbol y be one or negative one; path confirmation takes one, and path rejection and false alarm feedback take negative one. g_l(P) is the normalized contribution of the scoring component l to the feedback path, and its weight is updated according to the following formula:
[0088]
[0089] In the formula, η is the learning rate, and clip is used to limit the weights within preset upper and lower bounds. The relation template weights, node anomaly component weights, and path score weights are updated within their respective groups and then renormalized. Edge relation errors only update the corresponding relation template, entity, business key, and time component; node false alarms only update the reference group and node anomaly component of the corresponding event type; path breakpoints are used to add missing relation types or adjust bridging conditions.
[0090] For the anomalous evidence signature s, let n s ⁺ and n s ⁻ represents the number of responses to the signature in the confirmed and rejected paths, respectively; a0 and b0 are prior counts; and the signature reliability Rel is... s Update according to the following formula:
[0091]
[0092] Path scoring uses R s With Rel s The product of these values is used as the signature score after feedback correction. When the number of confirmed and negative samples reaches the minimum sample size, the lower quantile q_c^L of the confirmed sample score and the higher quantile q_n^H of the negative sample score are read, and the target threshold is determined according to the following formula:
[0093]
[0094] When q_c^L is greater than q_n^H, exponential smoothing is used to update the original threshold to θ*; when the two distributions overlap, the original threshold is maintained and the minimum sample size is increased, or the threshold with the lowest classification error rate is selected from the preset candidate threshold set. This threshold update method is applicable to relation thresholds, high anomaly thresholds, seed thresholds, bridging thresholds, and path thresholds.
[0095] After a new event enters the system, the local subgraph is located based on the event's time range, unified entity identifier, and business key. Only candidate relationship edges between the new event and events within the local subgraph are generated, and the inconsistency of relationship edges, the anomaly of node association edges, the deviation of local structure, and candidate paths of affected nodes are updated. Simultaneously, the total number of event nodes N and the n of each candidate signature are maintained. s A、n s N and event type coverage count.
[0096] When a candidate signature score crosses the signature threshold, the change in signature score reaches the propagation threshold, feedback causes a change in relation template weight or relation threshold, or the high anomaly threshold and seed threshold change, the system determines the associated nodes of the corresponding abnormal evidence signatures, the relation edges of the corresponding relation type, and the activity time partitions of the corresponding event type, and recalculates these affected subgraphs and their financial anomaly behavior paths. In other cases, only local subgraph updates are performed. This coordinates global signature statistics with local incremental calculations, preventing the use of invalid path results after a new event changes the global statistics.
[0097] In one embodiment, transport order O1001 corresponds to waybill W1001. The business system records a planned mileage of 420 kilometers and an actual track mileage of 268 kilometers. Electronic signature is generated 6 hours after the start of transport, and the settlement confirmation amount is 3200 yuan. The financial system then generates an invoice and payment application for 5800 yuan. The receiving account is changed from account A to account B 2 hours before the payment application.
[0098] The system establishes business sequence edges between orders, waybills, tracking numbers, and unified entity identifiers for customers and carriers based on order numbers, waybill numbers, and customer and carrier unified entity identifiers; it establishes business-financial linkage edges between settlement confirmations and invoices based on settlement batch numbers, customer and carrier unified entity identifiers; and it establishes financial sequence edges between payment applications and payments based on payment application numbers and bank statements. Settlement confirmations and invoices have a high degree of correlation confidence, while also generating a residual amount of 2600 yuan. Track mileage lower than billing mileage, abnormally early delivery time, short-term account changes, and excessively high payment amounts are respectively included in node anomaly and relational edge inconsistency calculations.
[0099] If account B also appears in two other high-abnormal payment events, and appears together with the same operating terminal and a similar proportion of payment amounts, the system generates an abnormal evidence signature containing account B, the same operating terminal, and a payment amount that is relatively high compared to the settlement amount. The path generation module uses invoices and payment events as seeds, tracing back to settlement, receipt, and trajectory events, and outputs a financial abnormal behavior path consisting of trajectory mileage deviation, early receipt, settlement confirmation, high invoice amount, account change, and payment.
[0100] In another embodiment, a settlement batch contains five waybills, and the company issues two invoices for this batch and makes payments in three installments. The system first standardizes the currency, tax amount, and revenue / payment direction for each record, and then regenerates the allocation anchor node. The allocation matrix satisfies the condition that the sum of the allocation coefficients corresponding to each invoice and each payment is one, and fixes the combination of waybills and invoices whose association confidence level does not reach the allocation candidate threshold to zero. When multiple allocation results with the same amount residual exist, the allocation matrix with the largest weighted sum of association confidence is selected. When the billing amount of a certain waybill is repeatedly allocated to two invoices, the abnormal allocation amount, the duplicate invoicing structure, and subsequent payment nodes jointly enter the financial abnormal behavior path.
[0101] The method of this invention can be executed by a server, server cluster, edge computing device, or cloud computing platform. Graph computation, feature computation, and pathfinding can be executed on the same processor or in parallel by multiple processors. Event nodes, relation edges, amortization anchor nodes, and anomaly evidence signatures can be stored in a graph database, relational database, or key-value database.
[0102] In one embodiment, the computer device includes a processor, memory, input / output interfaces, and communication interfaces. The memory stores a computer program, a controlled entity mapping table, relationship templates, reference group statistics, graph data, a global signature counter, and path results. When the processor executes the computer program, it performs cross-system entity identification, event normalization, construction of business-financial linkage time sequence diagrams, anomaly quantification, anomaly evidence signature extraction, path generation, and feedback incremental updates.
[0103] Furthermore, this invention controls the path search scale by limiting the width of the bundle search, path threshold, score upper bound pruning, and merging of near-repeating paths. It also utilizes a global signature counter and propagation conditions to coordinate local incremental updates and recalculation of affected subgraphs, thereby reducing invalid paths and redundant calculations, improving the efficiency of abnormal path generation, and enhancing the adaptability to changes in logistics enterprise business.
[0104] Those skilled in the art will understand that the event type, relationship template, weight, threshold, window length, bundle search width, and number of paths can be adjusted without departing from the inventive concept. The various technical features can be combined and implemented where there is no conflict, and the scope of protection of this invention is defined by the claims.
Claims
1. A method for generating abnormal financial behavior paths in logistics enterprises based on a business-finance linkage time sequence diagram, characterized in that, include: Acquire logistics business event data and financial event data, perform cross-system entity identification on the logistics business event data and the financial event data, and convert the data identified by cross-system entity identification into event nodes; Based on the event nodes and the preset relationship template, the association confidence between candidate event nodes is calculated. When the association confidence reaches the corresponding association threshold, business sequence edges, financial sequence edges, and business-financial linkage edges are established. For one-to-many or many-to-one monetary relationships, allocation anchor nodes are established to form a business-financial linkage time sequence diagram. Based on the business-financial linkage time sequence diagram, the relationship edge inconsistency degree of each relationship edge and the node anomaly score of each event node are calculated. Extract the signatures of anomalous evidence that repeatedly appear in the business domain and the financial domain from the event nodes whose anomalous scores reach the high anomalous threshold. Event nodes whose abnormal scores reach the seed threshold are identified as abnormal seeds. Based on the business-financial linkage time sequence diagram and the abnormal evidence signature, candidate paths are formed by expanding through direct relationship edges or bridging relationship edges under the time reachability constraint. The candidate path score is calculated based on the node abnormal score, association confidence, relationship edge inconsistency, abnormal evidence signature support, and processing stage coverage in the candidate path. The candidate path whose score reaches the path threshold is identified as the financial abnormal behavior path.
2. The method according to claim 1, characterized in that, The cross-system entity identification includes: performing unique identifier matching on entities with unified social credit codes, bank account identifiers, vehicle identification numbers, ID card identifiers, or master data mapping numbers; for entities lacking unique identifiers, calculating entity consistency scores based on name, contact information, address, account, vehicle, and historical business relationships; merging entities when the highest entity consistency score reaches the entity threshold and the difference between the highest and second-highest entity consistency scores reaches the ambiguity threshold; otherwise, retaining independent entity identifiers and recording entity uncertainty; generating unified entity identifiers for the merged entities, and converting each data record into an event node including event identifier, data domain, event type, correction time or time interval, unified entity identifier set, business key set, amount or quantity vector, event status, location or funding direction, and data source reliability.
3. The method according to claim 1, characterized in that, The association confidence level is obtained by weighting business key consistency, entity consistency, time reachability and data source consistency. For one-to-many or many-to-one monetary relationships, after unifying the currency, tax amount and income and expenditure direction, an allocation anchor node is established. The allocation coefficient is between zero and one, the sum of the allocation coefficients corresponding to each financial event is one, and the allocation coefficient of event pairs that are not allowed to be associated is zero as constraints. The allocation matrix is determined by minimizing the normalized amount residual and the low confidence association penalty. When multiple optimal allocation matrices exist, select the allocation matrix with the largest weighted sum of correlation confidence.
4. The method according to claim 1, characterized in that, The inconsistency of the relation edge is obtained by weighting at least two of the following: monetary residual, time residual, state transition violation, entity direction conflict, and fund direction conflict. The node association edge anomaly degree is obtained by weighting the association confidence degree and the data source reliability of the relationship edge connected to the event node and whose association confidence degree reaches the high confidence threshold; the node anomaly score is obtained by weighting the local numerical deviation degree, the node association edge anomaly degree, the state and time sequence violation degree, and the local relation structure deviation degree.
5. The method according to claim 1, characterized in that, The extraction of the abnormal evidence signature includes: converting event nodes whose abnormal scores reach a high abnormality threshold into feature atoms in a unified entity identifier, amount range, amount ratio range, time interval range, state transition type, route deviation type, account change mode, and operation terminal identifier; sorting multiple feature atoms that appear in a standardized manner to form candidate signatures; calculating the signature score based on the abnormal node purity, global rarity, cross-domain coverage, and time clustering; and establishing an abnormal evidence signature when the number of supports and the signature score reach the corresponding thresholds; the seed threshold is not lower than the high abnormality threshold.
6. The method according to claim 1, characterized in that, The establishment of the bridging relationship edge includes: when two event nodes lack a direct business key, forming a bridging candidate when they are both connected to the same cost-sharing anchor node, or when they simultaneously share anomaly evidence signatures and unified entity identifiers; calculating the bridging association value based on the shared anomaly evidence signature score, entity consistency, time reachability, and data source consistency; and establishing the bridging relationship edge when the bridging association value reaches the bridging threshold; bridging relationship edges across business domains and financial domains are marked as business-financial bridging edges, and the candidate path must contain at least one business event node, one financial event node, and one business-financial linkage edge or business-financial bridging edge.
7. The method according to claim 6, characterized in that, Candidate paths are generated using a beam search with a limited width. The expansion priority is obtained by weighting the node anomaly score of the event node to be added, the product of the association confidence and the inconsistency of the relation edges, the signature score of shared anomaly evidence, the coverage gain of the processing stage, and the time interval penalty. The candidate path score is obtained by weighting the path node anomaly score, the path edge anomaly contribution, the support of the anomaly evidence signature, the coverage of the processing stage, and the path redundancy. After the number of completed paths reaches a preset number, the upper bound of the score is pruned. Paths whose candidate path scores reach the path threshold are sorted according to their scores, and nearly duplicate paths whose weighted Jaccard similarity reaches the merging threshold are merged.
8. The method according to claim 1, characterized in that, Also includes: Receive path confirmation, path negation, node false alarm, edge relationship error or path breakpoint feedback, update the relation template weight, node abnormal component weight and signature reliability according to the positive or negative sign of the feedback, the contribution of the corresponding score component and the preset learning rate, and normalize the updated weights of the same group. When the number of confirmed and negative samples reaches the minimum sample size, and the lower quantile of the confirmed sample score is higher than the higher quantile of the negative sample score, the target threshold is determined by the midpoint between the lower and higher quantiles, and the corresponding threshold is updated exponentially. When the score distributions of the confirmed and negative samples overlap, the original threshold is maintained or the threshold with the lowest classification error rate is selected from the preset candidate thresholds. When a new event node enters, the local subgraph and global signature counter are updated. When the weight, threshold, or signature score crosses the preset propagation conditions, the affected subgraph and financial abnormal behavior path associated with the corresponding relationship type, event type, or abnormal evidence signature are recalculated.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it causes the computer device to implement the steps of the method according to any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it causes the computer device to perform the steps of the method according to any one of claims 1 to 8.
