An abnormal index diagnosis method and system for e-commerce commodities
By employing an algorithm-AI hierarchical collaborative architecture and personalized health threshold fitting, the accuracy and efficiency issues of product diagnosis, profit analysis, announcement incremental identification, and tax data difference analysis in e-commerce ERP systems have been resolved, achieving efficient and accurate data processing.
Patent Information
- Application Number
- CN202611534447.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2026-04-01
- Filing Date
- 2026-09-30
- Publication Date
- 2026-11-27
AI Technical Summary
Existing e-commerce ERP systems suffer from low data processing accuracy and efficiency in business scenarios such as product diagnosis, profit analysis, announcement collection, and tax verification. In particular, they struggle to achieve accurate identification and automatic location in areas such as product anomaly diagnosis, profit data anomaly analysis, announcement increment identification, and tax data discrepancy analysis.
A hierarchical collaborative architecture of algorithm and AI is adopted. By fitting quantiles to historical operating data, personalized health thresholds are generated. Combined with multi-source benchmark fusion and weight adjustment, high-precision commodity anomaly diagnosis is achieved. For profit data, the interquartile range method and standard score method are used to dynamically identify anomalies. Historical context is constructed for announcement data and structured parsing is performed to achieve incremental identification. After field standardization and symbol unification, tax data is analyzed for discrepancies.
It has achieved efficient and accurate diagnosis of e-commerce product anomalies, rapid and accurate analysis of profit data, timely and accurate identification of incremental announcements, and rapid and accurate location of tax data discrepancies, significantly improving the data processing efficiency and accuracy of e-commerce ERP systems.
Smart Images

Figure CN123179238A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method and system for diagnosing abnormal indicators of e-commerce products, a method and system for analyzing abnormal profit data, a method and system for incremental identification of announcement data, and a method and system for analyzing abnormal tax data. It also relates to e-commerce image content recognition technology, which can be specifically applied to the trademark infringement risk identification sub-business of product images within an e-commerce ERP system. Background Technology
[0002] E-commerce ERP systems are core tools for e-commerce sellers to achieve multi-dimensional and refined store operations. Existing e-commerce ERP systems have obvious technical defects in four business scenarios: product diagnosis, profit analysis, announcement collection, and tax verification, which affect the accuracy and efficiency of their data processing.
[0003] Product anomaly diagnosis mainly relies on manually configured rules or manually compared exported data. Some solutions output diagnoses through general AI models, but these solutions all suffer from insufficient accuracy and stability, making it difficult to obtain accurate and stable diagnostic conclusions.
[0004] Profit data is scattered across multiple business systems. Traditional solutions rely on manual aggregation and calculation, often using fixed thresholds to identify anomalies, which cannot adapt to changes in data distribution and result in high false positive and false negative rates. Multi-indicator scoring simply involves counting and accumulating without distinguishing weights, making the results incomparable under different configurations. After identifying anomalies, the root cause cannot be automatically located, still relying on manual verification, making it difficult to accurately determine profit data anomalies.
[0005] E-commerce platform announcements come from heterogeneous sources. Existing page hash comparisons cannot distinguish between announcement updates and irrelevant changes. Configuring parsing rules for each source is costly to maintain and prone to failure after page redesigns. Traditional incremental identification relies on single dimensions such as publication time and title, which can easily lead to missed or duplicate alerts in scenarios where time is scarce or titles are slightly adjusted. Therefore, existing technologies struggle to accurately identify new announcements from multiple sources.
[0006] The general tax reconciliation system lacks the ability to customize for cross-border e-commerce businesses, and has defects such as the inability to automatically map expense descriptions across languages, inconsistent accounting time standards, and decoupling of currency conversion from accounting dates. It only outputs the amount difference and cannot automatically locate the root cause of the anomaly. A large amount of reconciliation work needs to be done manually, which is inefficient and makes it difficult to achieve cross-platform multi-source tax difference analysis and output accurate difference factors.
[0007] Other technical issues related to this application will be further elaborated below. The above content is only for assisting in understanding the technical solutions of this application and does not imply that all of the above content is prior art. Summary of the Invention
[0008] The primary objective of this application is to provide a method and system for diagnosing abnormal indicators of e-commerce products, enabling rapid identification and precise location of anomalies. Furthermore, this application also provides a method and system for anomaly analysis of profit data, capable of quickly and accurately analyzing abnormal profit data; a method and system for incremental identification of announcement data, accurately acquiring new announcements from multiple platforms; and a method and system for anomaly analysis of tax data, capable of performing differential analysis on multi-source tax data and quickly and accurately identifying the factors contributing to the discrepancies.
[0009] To achieve the above objectives, this application proposes a method for diagnosing abnormal indicators of e-commerce products, including the following steps:
[0010] Step S1: Obtain the diagnostic task information of the product to be diagnosed, and obtain the historical operating data of the product to be diagnosed in the target business dimension within the first period based on the diagnostic task information; Step S2: Standardize and periodically serialize the historical operating data to obtain a historical indicator dataset of several primary core indicators within the target business dimension; Step S3: Generate a first health threshold adapted to each primary core indicator based on the historical indicator dataset, and fuse the first health threshold according to the preset multi-source diagnostic benchmark to obtain a second health threshold; Step S4: Select several historical indicator data subsets from the historical indicator dataset for several consecutive periods, obtain the first health level corresponding to each historical indicator data subset based on the second health threshold, and calculate the comprehensive indicator score of the primary core indicator based on the first health level and its deduction ratio; Step S5: Calculate the original dimension score of all primary core indicators within the target business dimension based on the comprehensive indicator score of each primary core indicator and its weight ratio within the target business dimension; Step S6: Correct the original dimension score using a preset weight adjustment mechanism, compare the obtained target dimension score with the second health threshold to determine the second health level, and generate an abnormal indicator list.
[0011] Other technical features and effects of this application will be described in the latter part of the specification. The technical problem-solving approach and related product design scheme of this application are as follows:
[0012] Current e-commerce ERP systems primarily rely on manual configuration of tags, alert rules, operational targets, or exporting data from multiple modules for product anomaly analysis, often using a uniform threshold or manual threshold evaluation. Due to the significant differences in the operational characteristics and fluctuation ranges of various products, a uniform threshold is prone to false alarms and missed alarms. Diagnosing anomalies for a single product can take several hours with this approach, resulting in low efficiency, poor accuracy, and strong subjectivity. Even configuring thresholds for each indicator presents computational challenges and is prone to failure in scenarios with insufficient samples or poor historical data quality, lacking fault tolerance and degradation capabilities.
[0013] To this end, this application performs quantile fitting on the historical operating data of individual products and generates four levels of first health thresholds based on different mapping processes according to the business attributes of primary core indicators, serving as the basis for subsequent calculations. Then, multi-source benchmark fusion is performed to select the optimal second health threshold; for mature products, personalized fitting thresholds are used to reduce false negatives and false negatives, and other benchmarks are automatically used as fallback when samples are insufficient, balancing algorithm objectivity with business experience.
[0014] If a general large model is used directly to diagnose the original business data, it will be difficult to achieve accurate and traceable output: the large model lacks e-commerce business logic, is prone to calculation bias, and has the defects of random results and unfounded attribution; moreover, simply adding output constraints still cannot make up for the lack of business rules and standards, and it is also easy to confuse result indicators with cause indicators.
[0015] This application adopts a hierarchical collaborative architecture of algorithm and AI: the algorithm layer completes data processing, threshold fitting, health scoring, and anomaly identification; the AI layer only receives the structured data output by the algorithm and completes semantic attribution under the constraints of a fixed attribution tree. When the AI layer outputs, it limits the use of only primary core indicators for abnormal problems and phenomena, and only secondary attribution indicators for the root causes and attribution evidence. Only when the algorithm identifies an anomaly in the primary core indicator does it deduce and bind quantitative evidence along the corresponding attribution path, and output the diagnostic results according to fixed fields. This avoids the problem of unfounded attribution in large models, and takes into account the computational advantages of algorithms and the natural language expression capabilities of AI, ensuring that the conclusions are accurate, stable, traceable, and have a controllable format.
[0016] Furthermore, traditional health scoring methods employ static weighting and single-period comparisons, which suffer from three main drawbacks: the overall score can easily mask significant individual risks; it is prone to incorrect deductions and distorted scoring when there is no advertising data; and it is susceptible to promotional and holiday fluctuations, making it difficult to identify true deterioration trends. This application, however, constructs a five-dimensional scoring system with three corresponding correction mechanisms: weighting the advertising dimension when there is no effective advertising; implementing linked deductions to identify complex risks when multiple indicators in the same dimension are simultaneously abnormal; and triggering a veto to forcibly correct the health level in cases of significant risks. These measures improve the issues of scoring distortion, missed diagnoses, and short-term fluctuations, ensuring fairness in health assessment and accuracy in anomaly identification.
[0017] In summary, this application relies on algorithms to achieve deterministic identification of the operational status of goods, combines constrained AI to achieve semantic root cause output, and displays the results through standardized front-end display to build a high-precision goods health judgment system. This can reduce the time required for manual analysis from several hours to several minutes, greatly improve diagnostic efficiency, and reduce the cost of data analysis and manual attribution, thereby achieving efficient, accurate, and reliable diagnosis of goods anomalies.
[0018] Furthermore, this application also provides a method for anomaly analysis of profit data, including steps A1-A4:
[0019] Step A1: Confirm the target data range, target analysis indicators, and target statistical methods, and obtain the configuration information of the target analysis indicators; Step A2: Obtain the profit data of the target single product within the target data range, and calculate the data of each target analysis indicator based on the profit data; Step A3: Select the corresponding target statistical method according to the nature of the target analysis indicators, and perform fusion calculation on the respective indicator data to obtain the benchmark value of each target analysis indicator; Step A4: Based on the respective configuration information, indicator data, benchmark value, and preset anomaly judgment conditions, filter out the abnormal indicators in the target analysis indicators and calculate their comprehensive anomaly score to determine the risk level.
[0020] Other features and technical effects of this application will be described in the latter part of the specification. The technical problem-solving approach and related product design scheme of this application are as follows:
[0021] Current profit anomaly analysis relies on manual judgment, requiring the download of multiple reports for verification, resulting in a cumbersome process, insufficient stability and accuracy of results, and numerous factors that can lead to profit anomalies.
[0022] This solution allows users to customize the analysis time range, store / site, detection algorithm, and the activation status, trigger thresholds, and weights of core anomaly indicators through the indicator configuration panel. The system captures and cleans product-level profit data for the corresponding time period based on the configuration, calculating core indicators such as sales revenue and gross profit margin. The solution provides two anomaly detection algorithms: the interquartile range method calculates quantiles and interquartile ranges based on the distribution of samples in the same scenario to identify products deviating from the normal distribution; the standard score method identifies extreme anomalies using statistics such as mean and standard deviation, balancing business readability with dynamic identification capabilities. Furthermore, it adapts differentiated deviation calculation logic for different indicator characteristics: for trend-based indicators such as gross profit and selling price, the rate of change is calculated by comparing the current period's data with the previous period's data; for horizontally comparative indicators such as service fee percentage and return rate, the deviation rate is calculated by comparing individual product data with the store's average and median.
[0023] Traditional multi-indicator anomaly assessments only count the number of anomaly tags or simply sum the scores, failing to differentiate indicator weights, reflect the actual impact of each indicator on profits, and the analysis results are affected by the number of user-configured rules, making results from different configurations incomparable. This solution introduces a weighted normalization scoring mechanism, calculating individual scores based on the degree of deviation of each indicator, and using a dedicated formula to calculate a comprehensive anomaly score, classifying product risk into three levels: high, medium, and normal.
[0024] Existing profit reporting systems can only identify abnormal behavior but cannot automatically pinpoint the specific sources of anomalies such as selling price and cost, requiring manual verification item by item. General analysis tools lack contextual constraints and supporting evidence. This application addresses these issues by using preset rules to constrain the scope of AI analysis, combining time series data with threshold comparisons of comprehensive store indicators to identify various profit anomalies such as declining gross profit margins and deviations in service fee ratios. It outputs attribution results with quantified contribution percentages and evidence chains across four dimensions, automatically locating anomalous factors and generating standardized analysis reports.
[0025] Furthermore, this application also provides an incremental identification method for announcement data, including steps B1-B6:
[0026] Step B1: Periodically obtain the configuration information of the target announcement source; Step B2: If the target announcement source is determined to be a non-restricted announcement source, select the preset announcement acquisition method according to the announcement source type in the configuration information to collect the original announcement text; Step B3: Perform data cleaning on the original announcement text to obtain the target announcement text; Step B4: Obtain a preset number of historical announcement texts from the same source as the target announcement text, and construct historical context based on the historical announcement texts; Step B5: Perform structured parsing and incremental recognition on the target announcement text and historical context to obtain the target announcement entry set; Step B6: Identify newly added announcement entries in the target announcement entry set to generate push notification information, and send it to the operator according to the preset push strategy.
[0027] Other features and technical effects of this application will be described in the latter part of the specification. The technical problem-solving approach and related product design scheme of this application are as follows:
[0028] Various cross-border e-commerce platforms and third-party business platforms will periodically publish announcements such as policies, interface changes, rule updates, and service notifications on their public web pages, help centers, developer documentation, RSS feeds (content aggregation subscription feeds), or public API feeds (external open data sources). These announcements have the following characteristics:
[0029] 1. Heterogeneous Announcement Source Formats: Announcements are published in different formats across different platforms, including static web pages, client-side rendered pages, and public APIs. The main text may be located in page components or embedded frames.
[0030] 2. Inconsistent content structure: The titles, publication times, body text, and details links of announcements on different platforms do not have a unified format, and there are significant differences in the completeness of publication times and the presentation of content.
[0031] Existing technologies typically employ two processing methods, both of which have significant drawbacks: First, periodically comparing page text hashes fails to distinguish between announcement changes and adjustments to non-announcement content, and cannot extract structured fields or identify new announcements, easily triggering false alarms and exhibiting poor adaptability to heterogeneous announcement sources; second, configuring XML path language / CSS selector parsing rules separately for each platform results in high development and maintenance costs, is prone to failure after page structure changes, and has low incremental recognition accuracy. To address these issues, this application proposes a unified abstraction of public announcement sources such as static web pages and API sources into "announcement source configuration." The system automatically matches the corresponding collection method based on the announcement source type; the collected original text undergoes cleaning and normalization, removing script and style noise while retaining core information such as titles and body text, forming a standardized format that effectively reduces development and maintenance costs.
[0032] 3. Difficulty in incremental identification: Traditional identification methods based on Uniform Resource Locator (URL), title, timestamp, or page hash are easily affected by factors such as title adjustment and page layout changes, which can easily lead to duplicate alarms or missed alarms.
[0033] Existing technologies typically rely on publication time or title deduplication to determine incremental updates, which has significant limitations: stable determination is impossible when publication time is missing or format is inconsistent; slight title changes can easily lead to duplicate entries; misjudgments are prone to occur in scenarios such as multiple entry points for the same announcement or reordering of old announcements, and semantic-level judgment based on historical announcement context is impossible. Furthermore, existing technologies that directly call intelligent models to extract current page content have several problems: the model cannot distinguish processed announcements when only the current original text is input; relying solely on title or time for deduplication still carries the risk of misjudgment. To address these issues, this application proposes constructing a historical context by combining the cleaned original announcement text with a preset number of historical announcements already in the database from the same source. This allows the system to determine new announcements based on historical data, avoiding duplicate / missed alerts caused by relying solely on single dimensions such as page changes or publication time; for announcements lacking a clear publication time, summaries, historical records, and natural order recognition can be combined to improve cross-platform adaptability and reduce information loss during multi-stage conversions.
[0034] 4. Insufficient compatibility with restricted announcement sources: The system cannot automatically access announcement sources that require login, verification codes, or permission checks. Existing technologies lack a closed-loop mechanism that combines automated monitoring with manual inspection.
[0035] In response, this application proposes a manual inspection supplementary closed-loop mechanism to generate periodic manual inspection reminders for restricted access announcement sources, thereby preventing the system from losing its monitoring capabilities due to the inability to access automatically.
[0036] In summary, this application proposes the following: External platform public announcement sources are uniformly abstracted as "announcement source configuration." The system matches the collection method according to the source type and performs cleaning and normalization processing on the acquired original text; it reads historical announcements from the same source to construct context, and simultaneously completes structured parsing and incremental identification of "current original text + historical context," outputting structured announcement entries and new identifiers; new entries are persisted and generate alarm records, which are uniformly sent by an independent alarm processor, recording failures and limited retries, thus enabling timely and accurate identification of new announcement changes from heterogeneous announcement sources.
[0037] Furthermore, this application proposes a method for anomaly analysis of tax data, including steps C1-C5:
[0038] Step C1: Obtain the original tax data from the target system and perform field standardization on the original tax data to obtain standardized data; Step C2: Perform semantic mapping on the standardized data according to the preset field mapping table to obtain mapped data, and perform direction unification transformation on the monetary data in the mapped data according to the preset symbol normalization rule to obtain symbol unified data; Step C3: Select the accounting time anchor point for the symbol unified data according to the preset accounting time rule, and perform currency conversion on the symbol unified data according to the accounting time anchor point and the preset exchange rate table to obtain exchange rate matching data; Step C4: Summarize the exchange rate matching data according to the target dimension to obtain the monthly tax-related dataset, and perform hierarchical field matching between the monthly tax-related dataset and the original tax data according to the three-level matching conditions to obtain the matching results of each difference record; Step C5: Calculate the difference value of each difference record according to the matching results, call the preset root cause rule to output the target root cause label corresponding to the difference value, and identify the abnormal reasons of the original tax data.
[0039] Other technical features and effects of this application will be described in the latter part of the specification. The technical problem-solving approach and related product design scheme of this application are as follows:
[0040] In order to achieve multi-caliber collection, verification, and discrepancy analysis of cross-platform, multi-source tax data, and to quickly and accurately identify the factors causing the discrepancies, this application proposes the following solution:
[0041] First, it receives raw tax data from multiple sources, including cross-border e-commerce platforms, internal profit reporting systems, and advertising expense systems, and standardizes the fields. Then, it categorizes expenses and binds them to rules through pre-defined mapping relationships, unifying the amount direction of revenue, refunds, and expenses. It matches the accounting time anchor point according to expense type and converts the amount to RMB based on the exchange rate corresponding to the accounting date. Second, it generates tax-related data from the categorized raw tax data by store, site, and month, and matches it with tax reports, platform transaction reports, and other documents. Finally, it calculates the difference between the unified amount direction and the raw tax data, and automatically generates the reason for the difference based on expense classification, time caliber, and matching results. This achieves multi-caliber collection, verification, and difference analysis of cross-platform, multi-source tax data, quickly and accurately locating the root cause of anomalies.
[0042] Furthermore, this application also includes systems corresponding to various methods. These systems contain the functional modules involved in this application, execute operation instructions for the corresponding functional modules or methods, and output relevant data information to the system front-end interface. The system is stored in a server and / or computer device containing a processor, which executes the system's operation instructions.
[0043] Declaration: The functional modules of this application can be integrated with each other, or they can exist independently, or one functional module can be a sub-module of another functional module; the step numbers S1, S2, etc. do not limit the order of the corresponding operation steps. Attached Figure Description
[0044] The accompanying drawings are provided to further understand this application and do not constitute a limitation thereof; the content shown in the drawings may be actual data of the embodiments and falls within the protection scope of this application.
[0045] Figure 1 This is a schematic diagram of the functional modules of an e-commerce ERP system in one embodiment of this application.
[0046] Figure 2 This is a schematic diagram of the abnormal indicator diagnosis method for e-commerce products in one embodiment of this application.
[0047] Figure 3 This is a flowchart illustrating an abnormal indicator diagnosis method for e-commerce products in one embodiment of this application.
[0048] Figure 4 This is a schematic diagram of the abnormal indicator diagnosis method for e-commerce products in one embodiment of this application.
[0049] Figure 5 This is a flowchart illustrating an anomaly analysis method for profit data in one embodiment of this application.
[0050] Figure 6This is a schematic diagram of a profit data anomaly analysis method in one embodiment of this application.
[0051] Figure 7 This is a flowchart illustrating an incremental identification method for announcement data in one embodiment of this application.
[0052] Figure 8 This is a schematic diagram of the incremental identification method for announcement data in one embodiment of this application.
[0053] Figure 9 This is a flowchart illustrating an anomaly analysis method for tax data in one embodiment of this application.
[0054] Figure 10 This is a schematic diagram of a method for analyzing anomalies in tax data in one embodiment of this application. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only for explaining this application and are not intended to limit this application.
[0056] refer to Figures 2-4 This application proposes a method for diagnosing abnormal indicators of e-commerce products, which is used in the product module of an e-commerce ERP system. The method includes steps S1-S6.
[0057] Step S1: Obtain the diagnostic task information for the product to be diagnosed, and based on the diagnostic task information, obtain the historical operational data of the product within the target business dimensions in the first period. This includes: obtaining the diagnostic task parameters input by the user, assembling the diagnostic task parameters with the system context to obtain the diagnostic task information; and collecting the historical operational data of the product to be diagnosed based on the product / store / site identifier and user permission information in the diagnostic task information. The first period is the past year; the target business dimensions include: sales, profit, advertising, inventory, and after-sales service. The product to be diagnosed is uniquely identified by its product code, store identifier, and site identifier. "E-commerce product" is a higher-level concept and can include one or more individual products.
[0058] In one embodiment, the diagnosis is divided into two stages: algorithm calculation and AI analysis. Algorithm calculation stage: The system receives a user's diagnosis request and inputs the product code, store name, and site name as a unique identifier for the product to be diagnosed. All subsequent operations are performed based on this identifier. A timed diagnosis switch can be set: in timed mode, tasks are automatically generated according to a preset period; in manual mode, tasks are generated immediately after the user initiates the process from the product analysis page or the AI product advisor entry.
[0059] Then, the task parameters such as the product to be diagnosed, store, site, diagnosis cycle, and timer switch are merged and assembled with the system context (including the current store ID, site, logged-in user ID, permissions, data version, or data source identifier, etc.), missing fields are filled in and validated, generating complete diagnostic task information containing product / store / site / user identifiers, diagnosis initiation time, timer status, diagnosis cycle, and user permission information. Based on this, operational data for the corresponding product over the past year (approximately 54 weeks) across five business dimensions—sales, profit, advertising, inventory, and after-sales service—are collected. Furthermore, data from different sources are linked together using the format "product + store + site + date" to form complete historical operational data. If there are no sales for multiple consecutive periods or the sample size is insufficient, the diagnosis will be skipped and a "lack of valid operational analysis samples" message will be output to avoid generating misleading conclusions.
[0060] Step S2: Standardize and periodically serialize historical operating data to obtain historical indicator datasets for several primary core indicators within the target business dimension. This includes: cleaning invalid or missing data in the historical operating data, converting the currency of monetary fields, and standardizing the numerical format and data statistical rules for non-monetary fields to obtain unified historical data; segmenting the unified historical data according to the third cycle's segmentation duration, starting from the day before the diagnosis initiation time in the diagnosis task information, to obtain historical cycle data; and extracting periodic statistical values from the historical cycle data to obtain historical indicator datasets for several primary core indicators.
[0061] The third cycle lasts 7 days. Examples of primary core indicators include: Sales dimension: sales volume, sales revenue, conversion rate, etc.; Profit dimension: gross profit margin, gross profit, etc.; Advertising dimension: advertising cost-to-sales ratio, advertising click-through rate, advertising conversion rate, advertising order volume ratio, etc.; Inventory dimension: FBA available days, inventory percentage aged 90-180 days, FBA unsellable percentage, redundant inventory, inventory percentage aged over 180 days, etc.; After-sales dimension: refund rate, return rate, number of new negative reviews, number of ratings, etc.
[0062] In one embodiment, standardizing and periodically serializing historical operating data includes:
[0063] Invalid and missing data in historical operational data are cleaned, and monetary fields such as sales revenue, advertising expenditure, and gross profit are converted to the target currency according to a preset exchange rate or ERP internal rules. Non-monetary fields such as sales volume, conversion rate, and number of negative reviews are standardized in terms of numerical format and data statistics rules. For example, order and inventory reports only count "valid sales" that have been successfully delivered but not fully refunded, excluding test orders, canceled orders, and reissue orders, resulting in unified historical data. Then, starting from the day before the diagnosis initiation time, the unified historical data is rolled backward in 7-day cycles (i.e., the third cycle) to obtain historical cycle data including the current cycle and multiple historical comparison cycles. This segmentation method differs from the natural week segmentation, ensuring that the duration of each cycle is consistent with the business semantics at any diagnosis time.
[0064] Therefore, if we let the diagnosis initiation time be T, then the time window of the kth cycle can be expressed as:
[0065] =[T-1-7k,T-1-7(k-1)](1);
[0066] In formula (1), k=1 represents the most recent 7-day cycle, k=2 represents the previous cycle, and so on.
[0067] Therefore, through the above processing, the system can obtain consistent data for the past 7 days and historical comparison period data at any diagnosis initiation time, both of which are referred to as historical period data.
[0068] For each primary core indicator, periodic statistical values are extracted from historical periodic data to form a historical indicator dataset. For example, the historical sequence of primary core indicator j (i.e., the historical indicator dataset):
[0069] (2);
[0070] In formula (2) This represents the statistical value of the primary core indicator j in the nth historical period.
[0071] Step S3: Based on the historical indicator dataset, generate a first health threshold adapted to each primary core indicator, and fuse the first health threshold according to a preset multi-source diagnostic benchmark to obtain a second health threshold. This establishes a unified standard between the system's automatic judgment and user operational experience, making the diagnostic results both personalized and compatible with user-configured rules. Step S3 includes: calculating quantiles for the historical indicator datasets of each primary core indicator, performing differentiated mapping based on the business attributes of the primary core indicators, generating a first health threshold under the historical fitting benchmark; selecting the fitting benchmark with the highest priority among several target fitting benchmarks to obtain the second health threshold. This application uses product code + store + site as the threshold fitting subject, and the calculated threshold is the personalized baseline of the product code under the corresponding store and site, rather than the industry general baseline; the data source is limited to the historical operating data of a single product over the past year, and general operation and maintenance indicators are not used.
[0072] In one embodiment, historical distribution quantiles are calculated for each historical indicator dataset. Different threshold directions or boundary mapping processes are performed according to the business attributes of positive, negative, and interval indicators to generate healthy, reasonable, warning, and dangerous threshold boundaries, thus obtaining the first healthy threshold under the historical fitting benchmark. The threshold setting rules for different types of indicators are as follows: For positive indicators (such as sales revenue and gross profit), higher values indicate a better state, and the level boundaries are divided according to the high, median, and low quantiles of the historical distribution; for negative indicators (such as return rate and the number of new negative reviews), higher values indicate a worse state, and the interval is set using quantiles; for interval indicators, values that are too high or too low are abnormal, and upper and lower risk thresholds need to be set respectively (e.g., too few FBA available days pose a risk of stockouts, while too high a number poses a risk of inventory backlog).
[0073] The first health threshold of the primary core indicator j can be calculated as follows: ; ; ; Percentage points can be adjusted according to the business attributes of the indicators; reverse and interval indicators can be processed with reverse or bilateral thresholds accordingly.
[0074] Then, because purely automatic benchmarking may ignore user experience, while purely manual benchmarking has a high barrier to entry and insufficient coverage, a second health threshold is obtained by selecting the highest priority benchmark from historical benchmarking, user-input benchmarking, and system rule benchmarking (including automatic labels, warning rules, etc.) to balance automation and personalization. The priority of the three benchmarks decreases sequentially, with the final merged benchmark being the primary core indicator j. The judgment rules are as follows: if the historical fitting benchmark If not empty, then ;like Empty and user input baseline If not empty, then If both of the above are empty, then (System rule benchmark). The health threshold under the final merged benchmark is the second health threshold; if a historical fitting benchmark is selected, the second health threshold is equivalent to the first health threshold.
[0075] Step S4: Select several consecutive periods of historical indicator data subsets from the historical indicator dataset. Based on the second health threshold, obtain the first health level corresponding to each historical indicator data subset. Calculate the comprehensive indicator score of the primary core indicator based on the first health level and its deduction ratio, thereby reducing the impact of single-period fluctuations. Step S4 includes: starting from the current time, selecting several consecutive periods of historical indicator data subsets from the historical indicator dataset; aggregating each historical indicator data subset to calculate its actual indicator value, comparing all actual indicator values with the second health threshold to determine the first health level of each historical indicator data subset; matching the deduction ratio corresponding to the first health level, calculating the score of each subset's individual indicator, and averaging all individual indicator scores to obtain the comprehensive indicator score.
[0076] In one embodiment, subsets of historical indicator data for several consecutive periods starting from the current time are selected from the historical indicator dataset. For example, four consecutive subsets of historical indicator data are selected starting from the current day: data from the past 7 days and historical data from the previous three weeks. The actual values of the indicators are aggregated and compared with a second health threshold to determine the threshold range and the comprehensive health level (i.e., the first health level). The comprehensive health level is divided into four categories: excellent state, reasonable state, warning state, and dangerous state, where the first two categories are healthy states and the latter two are unhealthy states.
[0077] Secondly, based on the corresponding first-level health level deduction ratio for each historical indicator data subset, the score for each individual indicator is calculated. For example, no points are deducted for excellent status (maximum score 100), 20% is deducted for reasonable status, 60% for warning status, and 100% for dangerous status. The average score of the individual indicators over multiple consecutive periods is then calculated to obtain the comprehensive score of the primary core indicators. The formula for calculating the comprehensive index score for the four statistical periods is as follows: =1 / 4×(D1+D2+D3+D4) (3); where, in formula (3), D1-D4 represent the individual indicator scores for the past 7 days, the previous 1 cycle, the previous 2 cycles, and the previous 3 cycles, respectively.
[0078] Step S5: Based on the comprehensive index score of each primary core indicator and its weight ratio within the target business dimension, calculate the original dimension score of all primary core indicators within the target business dimension, including: calculating the comprehensive index score of each primary core indicator under the target business dimension; and performing a weighted summation based on the weight ratio of each primary core indicator to obtain the original dimension score of the target business dimension.
[0079] In one embodiment, after obtaining the scores of all core indicators within the dimension in the same manner, the scores are weighted and summed according to their respective weight ratios to obtain the original dimension scores, forming the initial scores for five dimensions: sales, profit, advertising, inventory, and after-sales service. The initial weight ratios for each dimension can be preset: sales 25%, profit 25%, advertising 20%, inventory 15%, and after-sales service 15%. Therefore, the dimension score for business dimension i is: (4); where, in formula (4) This represents the score of the j-th primary core indicator within the business dimension. This refers to the weight of the indicator within this business dimension.
[0080] Step S6: Correct the original dimension score using a preset weight adjustment mechanism, compare the obtained target dimension score with the second health threshold to determine the second health level, and generate an abnormal indicator list.
[0081] In one embodiment, the original dimension score is adjusted according to a preset weighting mechanism to obtain the target dimension score. The target dimension score is compared with a second health threshold to determine the second health level and generate an abnormal indicator list, including: business dimensions in a warning or dangerous state, comprehensive indicator score, current indicator value, comparison period, comparison value, second health level, deduction item identifier, veto condition identifier, and secondary attribution indicators. The secondary attribution indicators are detailed business indicators under the primary core indicators and do not participate in the dimension score weighting calculation. They are used to decompose business driving factors when the primary core indicators fluctuate abnormally, achieving root cause location of the anomaly. Therefore, operations personnel can directly filter for warning or dangerous products through the abnormal indicator list.
[0082] In another embodiment, the overall health level can be determined directly based on the range of the original dimension score to obtain the second health level. The overall health level can be divided into: excellent (80-100 points), reasonable (70-79 points), warning (40-69 points), and dangerous (below 39 points).
[0083] A preset weight adjustment mechanism is used to correct the original dimension score. The obtained target dimension score is then compared with a second health threshold to determine the second health level. This includes: if the target business dimension has zero effective overhead, the original weight of the target business dimension is distributed to the other target business dimensions, and the target dimension score is recalculated; or, if multiple primary core indicators within the same target business dimension are in an unhealthy state, a preset score is deducted from the original dimension score to obtain the target dimension score; or, when a preset veto condition is triggered, the original dimension score is forcibly limited to the threshold range corresponding to the unhealthy state to obtain the target dimension score. The adjusted target dimension score is then compared with the second health threshold to determine the threshold range to which the target dimension score belongs and its corresponding second health level.
[0084] The secondary attribution metrics are as follows: Sales dimension: number of conversations, organic order volume, advertising order volume, percentage of advertising order volume, average order value, rating, number of new neutral and negative reviews, etc.; Profit dimension: net sales revenue, percentage of procurement costs, percentage of first-mile delivery fees, percentage of advertising spending, percentage of warehousing fees, percentage of refund amount, etc.; Advertising dimension: ad impressions, ad clicks, cost per click, ad sales revenue, ad order volume, ad conversion rate, etc.; Inventory dimension: FBA available inventory, average daily sales, in-transit inventory, recommended replenishment quantity, inventory age structure, unsellable inventory, etc.; After-sales dimension: number of refund orders, number of return orders, order volume, rating, star rating, number of new neutral and negative reviews, etc.
[0085] In one embodiment, to avoid static weighted summation masking single extreme risks or complex anomalies, three risk correction mechanisms are set to adjust the original dimension scores (which can be enabled independently or in combination without conflict) to improve the sensitivity of anomaly identification. The three risk correction mechanisms are as follows:
[0086] Dynamic weight adjustment: If a target business dimension has zero overhead (e.g., no effective advertising in the last 7 days, or insufficient data such as ad clicks to constitute a valid analysis sample), its original weight is evenly distributed to other dimensions and the business dimension score is recalculated to avoid incorrect deductions due to dimensions without data and improve the fairness of the scoring.
[0087] Linked Deduction: If multiple primary core indicators within the same target business dimension are in an unhealthy state, an additional 5-20 points will be deducted (default 10 points, configurable based on business experience). This deduction must maintain the original level range, thereby strengthening the ability to identify complex anomalies in scenarios where multiple indicators deteriorate simultaneously. For example, additional points will be deducted when both gross profit margin and gross profit in the profit dimension reach a warning or dangerous state.
[0088] One-vote veto: When preset veto conditions are met, the original dimension scores are forcibly limited to the threshold range corresponding to the unhealthy state, preventing the overall score from masking key individual risks and enabling timely identification of high-priority anomalies. The preset veto conditions include: at least two business dimensions are in a dangerous state; at least three business dimensions are in a warning state; or a first-level core indicator such as abnormal FBA sellable days or an excessive number of new negative reviews triggers a preset risk threshold; any core business dimension reaches a dangerous level; two or more business dimensions reach a dangerous level; or three or more business dimensions reach a warning level.
[0089] Step S7: When the second health level is in an unhealthy state, construct attribution input data based on the abnormal indicator list and target attribution data, and call the intelligent analysis model to process the attribution input data to obtain the target attribution path. The intelligent analysis model (such as an AI model) analysis stage only begins when the algorithm operation stage identifies an abnormal first-level core indicator: the AI model performs constrained semantic attribution based on the structured results (i.e., the abnormal indicator list) provided by the algorithm operation stage, improving the reliability and accuracy of the diagnostic results.
[0090] Step S7 includes: if the second health level is judged to be in a warning state or a dangerous state, select the corresponding fixed attribution tree according to the target business dimension; generate multiple candidate attribution paths according to the change range, anomaly level, and business relationship with the first-level core indicators of the secondary attribution indicators; calculate the comprehensive anomaly score of each candidate attribution path and take the one with the highest score as the target attribution path; when the second highest score path and the highest score meet the preset proximity threshold, output at most one additional secondary attribution path.
[0091] In one embodiment, this application abstracts the experience of operational experts into a fixed attribution tree, requiring that attribution conclusions be bound to indicator evidence, thus transforming the AI model output from "generative guessing" to "constrained evidence-based reasoning," which aligns with the operational logic and data support requirements of e-commerce. A fixed attribution tree and evidence binding mechanism are designed, with the fixed attribution tree establishing path mappings for five business dimensions: sales, profit, advertising, inventory, and after-sales service, each corresponding one-to-one with the target business dimension.
[0092] Therefore, after the algorithm outputs structured results, it first determines whether the primary core indicators are abnormal. When it is confirmed that the second health level is in an unhealthy state, the AI model will then conduct an abnormal root cause analysis. This involves combining the list of abnormal indicators with the target attribution data (including diagnostic task information, comprehensive indicator scores, target dimension scores, multi-source diagnostic benchmarks, fixed attribution trees, output format constraints, prohibited item constraints, etc.) as attribution input data, selecting a fixed attribution tree for the corresponding business dimension, and ensuring that all attribution conclusions are bound to indicator evidence, prohibiting free association across business dimensions.
[0093] Then, within the corresponding fixed attribution tree, multiple candidate attribution paths are generated based on the change range, anomaly level, and preset business causal relationship with the primary core indicators of the secondary attribution indicators. For example, when sales decline, the number of sessions declines simultaneously, and the conversion rate remains stable, the primary attribution is traffic contraction; when sales decline, the number of sessions remains stable, but the conversion rate declines, the primary attribution is deterioration in conversion rate.
[0094] Finally, a comprehensive anomaly score is calculated for each candidate attribution path, and the one with the highest score is selected as the primary attribution path. Only when the second-highest score path meets a preset proximity threshold with the highest score will at most one secondary attribution path be output, and all others will be discarded. If the scores of all candidate paths are lower than the confidence threshold, no attribution conclusion will be output to avoid increasing the judgment burden on business personnel due to a large number of parallel speculations.
[0095] Step S8: Bind quantifiable attribution evidence to the target attribution path and output structured diagnostic results.
[0096] In one embodiment, at least one piece of attribution evidence is bound to each root cause conclusion. Preferably, one piece of supporting evidence from the main path and one piece of excluding evidence from other paths are bound. This is done in the form of a triplet with a one-to-one mapping of indicator name, comparison method, and numerical value, such as "The number of sessions decreased by 33% month-on-month; the conversion rate remained stable month-on-month, ruling out continuation issues." If there is no valid data (secondary attribution indicators are missing or insufficient to support the attribution), a catch-all description is output, such as "Anomalies have been identified, but there is no valid attribution data, and the driving factor cannot be determined at this time."
[0097] Ultimately, the structured diagnostic results include: a second health level (i.e., the comprehensive health level corresponding to the original dimension scores), a comprehensive indicator score, a target dimension score, anomalies (i.e., the target attribution path), anomalies, attribution evidence, and root causes. Among these, "anomalies" only describe anomalies at the business dimension level, without including causes or specific data; "anomalies" only use primary core indicators to describe the anomaly's manifestation, comparison methods, and values; and "root causes" only use secondary attribution indicators, presented in a conclusion + evidence format. The model output only covers business dimensions that are in a warning or dangerous state; when there are multiple anomalies, the dimension with the lowest score and the most severe problem is output first.
[0098] Example output format is as follows: Health and Score: Warning (50 points); Anomaly 1: Sales volume contraction; Anomaly: Sales volume decreased by 29% month-on-month in the past 7 days; Root cause: Mainly judged to be traffic volume contraction; Attribution evidence: Session count decreased by 33% month-on-month, conversion rate remained stable month-on-month. Anomaly 2: Decreased advertising efficiency; Anomaly: Advertising cost-to-sales ratio increased from 15% to 20%; Root cause: Primarily attributable to increased cost-per-click; Attribution evidence: Cost-per-click reached a 25-week high, while advertising sales declined simultaneously.
[0099] Step S9: Verify the structured diagnostic results using preset verification rules to check whether the structured diagnostic results conform to the output format constraints and prohibited item constraints in the target attribution data.
[0100] In one embodiment, the system performs rule verification on the structured diagnostic results output by the AI model to ensure that they meet format constraints and prohibited item constraints, thereby ensuring that the output results are stable, traceable, and can be embedded in product pages.
[0101] The preset validation rules include: health status and score must be consistent with the algorithm output; the anomaly field should only describe business-level anomalies and must not contain root causes, suggestions, or secondary indicators; the phenomenon field should only use primary core indicators to describe its changes; the root cause field should only use secondary attribution indicators and be presented in the form of conclusion plus evidence; each root cause conclusion must be bound to evidence; no definitive conclusions without data support should be output; no action suggestions should be output (except for those entering the subsequent suggestion module); the output field must not exceed the preset character limit; the output business dimensions must not exceed the preset number, etc. If the validation fails, the system may require the AI model to regenerate or replace the non-compliant fields with catch-all text.
[0102] The final diagnostic results are stored in the diagnostic results database, which includes: the product to be diagnosed (product code + store + site), user identifier, diagnosis time, diagnosis type (manual / scheduled diagnosis), overall health and score, five-dimensional scores, abnormal business dimensions, abnormal issues, abnormal phenomena, root causes of abnormalities, triggered abnormal indicators, triggered linkage deductions or veto conditions, data cycle and data source descriptions, etc. Furthermore, the diagnostic results can be displayed on the AI product diagnosis entry point, product analysis page, and historical diagnosis page, and are linked with the existing product analysis process of the e-commerce ERP to support continuous tracking of changes in product health. Specifically, diagnosed product codes display the most recent diagnostic results, while undiagnosed product codes display the enabled diagnosis entry point; the historical diagnosis page supports viewing multiple diagnostic results for the same product code, and can be filtered by health status, abnormal dimensions, diagnosis time, store, site, product code, etc.
[0103] The following example illustrates the execution process of the anomaly diagnosis method for e-commerce products in this application, using a user's diagnostic request for product code-A under US site and store-X via the AI Product Advisor portal:
[0104] First, the system receives product code-A, store-X, US site, and diagnosis time parameters. After verifying user data permissions, it collects sales, profit, advertising, inventory, and after-sales data for product code-A over the past year (54 weeks). Using the day before the diagnosis date as a baseline, the historical data is divided into 7-day rolling segments, and the amount fields are uniformly converted to USD. Historical sequences of primary core indicators such as sales revenue, conversion rate, and refund rate are extracted to obtain the historical indicator dataset.
[0105] Then, based on historical distribution, excellent, reasonable, warning, and dangerous thresholds are generated for each primary core indicator. User input benchmarks and system rules are integrated according to priority to calculate the health status and indicator scores of each primary core indicator in the last 7 days and the previous 3 weeks. The scores of the five dimensions are obtained by weighting according to formula (4). It is detected that the product code has advertising expenditure in the last 7 days. The advertising dimension participates in the scoring. The gross profit margin and gross profit both reach the warning state, triggering the profit linkage deduction. After deducting the preset score of 10 points, the comprehensive score is calculated according to formula (3) and the score is 58 points. At this time, the health level is warning, and the sales and profit dimensions are identified as the main abnormal dimensions.
[0106] Finally, the algorithm results, list of abnormal indicators, secondary attribution indicators, fixed attribution tree, and output format constraints are input into the AI model. The AI model enters the sales attribution tree, determining that the sales decline stems from a decrease in the number of sessions and a stable conversion rate. It selects "traffic issues" as the strongest attribution path, binding the decrease in the number of sessions as supporting evidence and the stable conversion rate as evidence to exclude conversion issues. Simultaneously, it enters the profit attribution tree, determining that the decrease in gross profit margin stems from an increase in the proportion of advertising spending, selecting "increased expense ratio" as the primary attribution path. After verifying that the output fields meet the constraints, the diagnostic results are stored and displayed. Example of final output: Health and Score: Warning (58 points); Abnormal Issue 1: Sales Scale Contraction; Abnormal Phenomenon: Sales volume decreased by 29% month-on-month in the past 7 days; Root Cause: Mainly due to traffic scale contraction; Evidence: Number of sessions decreased by 33% month-on-month, conversion rate remained stable month-on-month. Abnormal Issue 2: Profit Quality Decline; Abnormal Phenomenon: Gross profit margin decreased by 8 percentage points in the past 7 days; Root Cause: Primarily attributable to increased expense ratio; Evidence: Increased proportion of advertising spending, net sales remained relatively stable.
[0107] Furthermore, in addition to diagnosing product operation data, e-commerce ERP systems also need to perform infringement detection on product images to avoid infringement. For example, when reselling goods, sellers often collect products from other platforms and publish them in their own stores. The images of these resold products may contain trademarks belonging to others, thus leading to trademark infringement risks. Therefore, this application further proposes a trademark infringement detection method and system based on product images to reduce the risk of product image infringement.
[0108] When determining trademark infringement for goods, the accuracy of comparing the similarity of the entire image is very low because the trademark image occupies only a very small part of the overall product image. Furthermore, comparing the similarity of sub-images after segmenting the product image cannot guarantee the integrity of the trademark image within the image.
[0109] To address this, the applicant proposed extracting and separating trademark information from product images before conducting image similarity comparisons, thus eliminating interference from the products on the trademark elements. Due to the excessive types of interfering factors in product images (variable brightness or contrast, complex product backgrounds, millions of images, differences in shooting angles, etc.), target detection cannot accurately identify and extract the trademark pattern from the product images. Based on this, the applicant proposed using a cutting and segmentation method to crop the product images, converting the numerous and highly interfering product images into a limited number of image elements.
[0110] Based on the segmentation algorithm, by setting different types of segmentation indicators (box hints determined by the bounding box of the predicted box, point hints determined by the centroid of corner points, and line hints corresponding to the segmentation lines of the product image according to the block ratio), the target pattern in the product image is accurately extracted by combining the segmentation algorithm and the segmentation indicators. For box hints, the applicant decomposes common trademark graphics of products, summarizes the annotation rules applicable to most trademark graphics, and determines the predicted box (the smallest bounding rectangle of the graphic) of each graphic based on the annotation rules, ensuring that the box hints of the predicted box can be adapted to most trademarks; for point hints, the applicant proposes to use corner detection to purify some complex trademark patterns and accurately locate the inflection points of complex trademark patterns; for line hints, the applicant noticed that the product in the product image is generally located in the center of the image, and the smaller the cut, the more obvious the element features. Through practice, the applicant found that by dividing the product image into 9 equal parts and cutting the length and width of the product image in a 2:1:2 ratio, the trademark pattern can be ensured to be complete while highlighting the trademark pattern.
[0111] Furthermore, when cutting product images based on cutting lines, compared to equal-part cutting which leads to incomplete trademark patterns, the applicant noted that the predicted frame, as the smallest bounding rectangle of the pattern, can maximize the integrity of the trademark pattern. Therefore, the applicant proposed using the boundary of the predicted frame as the cutting line to obtain shape cutting elements. Also, for complex trademark patterns, corner clustering can preserve pattern details to the greatest extent. Therefore, based on corner clustering, the class boundary of the corner class is determined, and the class boundary is used as the cutting line to obtain corner cutting elements. Additionally, the product image is pre-cut (9-part cutting and proportional cutting). Based on this, combined with the position of the predicted frame and the position of the class boundary, the pre-cutting lines are adaptively moved to ensure the integrity of the trademark pattern and to maximize the preservation of most of the features of the trademark elements, resulting in block cutting elements.
[0112] Therefore, the trademark infringement detection method based on product images in this application may include the following steps:
[0113] Step D1: Obtain the trademark image and retrieve the product image of the product to be tested from the product database;
[0114] Step D2: Obtain image elements from the product image, including cropping elements and segmentation elements:
[0115] Step D21: Determine the segmentation indication based on the predicted bounding box, the centroid of the corner class, and the block ratio, and input the segmentation indication into the segmentation algorithm to segment the product image, obtaining shape segmentation elements, corner segmentation elements, and block segmentation elements. The predicted bounding box is the smallest bounding rectangle of each graphic in the product image, the corner class is the set of corners obtained after corner detection and classification of the product image, and the block ratio is the ratio of the length and width of the product image to the block ratio. The segmentation indication includes a bounding box hint determined by the bounding box boundary of the predicted bounding box, a point hint determined by the centroid of the corner class, and a line hint corresponding to the product image segmentation line according to the block ratio.
[0116] Step D22: Determine the cutting lines of the product image using the predicted bounding box, the class boundaries of corner points, and the translation block boundaries, respectively. Then, cut the product image based on these cutting lines to obtain shape cutting elements, corner cutting elements, and block cutting elements. The block boundaries are the boundary lines of each block element after the product image is cut into block elements. Specifically, pre-cut the product image into blocks to obtain block elements, and determine the block boundaries and length and width values of each block element. The pre-cutting of blocks includes cutting into 9 equal parts and determining the block ratio. Example of cutting: Calculate the centerline of the predicted box in the horizontal and vertical directions, and determine the centroid of each corner point class; calculate the distance L1 from each block boundary to the centerline and the distance L2 to the centroid, and determine whether there is one of L1 and L2 equal to 0; if so, move the block boundary with a distance of 0 by d, where d takes the value of (0, the width or length of the adjacent block boundary perpendicular to the block boundary with a distance of 0 / 100); when L1 and L2 are not equal to 0, cut the product image according to the block boundary of each block element to obtain the block cutting elements;
[0117] Step D3: Classify the image elements and perform redundancy removal on each element class according to element priority;
[0118] Step D4: Compare the image similarity of the deduplicated image elements with the trademark image. If the image similarity of any image element is greater than the image threshold, it is confirmed that the product to be detected corresponding to the image element infringes on the trademark.
[0119] This trademark infringement detection method can reduce the workload of infringement comparison, balance the accuracy and efficiency of infringement judgment, provide infringement warnings when products are listed for sale, and monitor infringement during store operation. In addition, it can eliminate interference from backgrounds, watermarks, and shooting angles in product images, adapt to trademark infringement detection for various types of product images, accurately extract tiny targets, and accurately and completely extract trademark patterns from product images, thus improving the accuracy of infringement detection.
[0120] refer to Figure 1 , Figure 5 and Figure 6 This application also provides a method for anomaly analysis of profit data for the profit module of an e-commerce ERP system, the method including steps A1-A5.
[0121] Step A1: Confirm the target data range, target analysis indicators, and target statistical methods, and obtain the configuration information of the target analysis indicators.
[0122] In one embodiment, the user enters the product profit anomaly analysis page, determines the target data range such as site, store, time window, and target product, selects at least one of the following as the target analysis indicator: total cost, gross profit margin, service fee ratio, total advertising sales cost ratio, and return rate, and selects the target statistical method such as interquartile range method or standard score method; simultaneously, the user obtains configuration information such as the activation status, trigger threshold, and original weight value of the target analysis indicator. In another embodiment, the above content can be automatically determined by the device.
[0123] Step A2: Obtain the profit data for the target products within the target data range, and calculate the target analysis indicators based on the profit data. This involves obtaining the profit data for the target products from multiple original business systems, such as the e-commerce seller platform backend and internal enterprise business systems, excluding products with zero sales, and obtaining the indicator data for each target analysis indicator through their respective calculation methods. Example: Using electronic products from two self-operated stores on Amazon US as the analysis object, collect profit data for the past 7 days, and calculate indicators such as gross profit margin, service fee ratio, and advertising sales cost ratio. The advertising sales cost ratio = advertising expenditure ÷ sales revenue generated by advertising × 100%.
[0124] Step A3: Select the corresponding target statistical method according to the nature of the target analysis indicators, and perform fusion calculation on the respective indicator data to obtain the benchmark value of each target analysis indicator.
[0125] In one embodiment, for individual month-on-month indicators (such as declining gross profit or abnormal costs), the original value from the previous period is directly used if historical profit data is available. For indicators without historical data or those comparing stores horizontally, corresponding target statistical methods are used for fusion calculation. Example: If the advertising sales cost ratio fluctuates greatly and has many extreme values, the IQR interquartile range method is used to identify samples that deviate from the main distribution, and the median of the remaining samples is used as the store / previous period benchmark value for this indicator. If the return rate and refund rate have stable distributions and few outliers, the standard mean method is used to identify extreme deviations based on the mean, standard deviation, median, or absolute median difference, and the arithmetic mean of the filtered remaining samples is used as the store / previous period benchmark value for this indicator. This mechanism takes into account both the interpretability of business thresholds and the ability to identify dynamic anomalies.
[0126] Step A4: Based on their respective configuration information, indicator data, benchmark values, and preset anomaly detection conditions, filter out abnormal indicators from the target analysis indicators and calculate their comprehensive anomaly scores to determine the risk level, including:
[0127] Step A41: Identify anomalous indicators based on the anomaly determination criteria, and calculate the initial deviation value based on the indicator data and benchmark value when the anomaly determination criteria are met; otherwise, set the initial deviation value to zero and mark it as a normal indicator. Calculating the initial deviation value based on the indicator data and benchmark value when the anomaly determination criteria are met includes: if the anomaly determination criteria for the target analysis indicator are met, select the absolute difference or relative rate of change according to the benchmark type used for the anomalous indicator, and substitute it into the corresponding indicator data and benchmark value to calculate the initial deviation value. The anomaly determination criteria are: limiting the direction of anomaly occurrence based on business meaning; the initial deviation value is calculated only when the indicator deviates from the benchmark value in a direction of business deterioration; if the deviation occurs in a non-deterioration direction, the initial deviation value is set to 0.
[0128] Step A42: Select the corresponding calculation rule according to the benchmark type of the target analysis indicator, and substitute the corresponding initial deviation value, as well as the trigger threshold and original weight value in the configuration information, to calculate the weight score of the target analysis indicator, including: Step A421: When the benchmark type of the target analysis indicator is a business fixed benchmark, select the first calculation rule and compare the initial deviation value with the corresponding trigger threshold; Step A422: When the benchmark type is the previous period result benchmark or store statistics benchmark, select the second calculation rule and compare the initial deviation value with the corresponding trigger threshold; Step A423: Select the corresponding product coefficient according to the comparison result and multiply it with the original weight value to obtain the weight score.
[0129] When the first rule is selected, step A423 includes: if the initial deviation value is equal to 0, multiplying the original weight by the first coefficient; if the initial deviation value is greater than 0 and no greater than twice the trigger threshold, multiplying the original weight by the second coefficient; if the initial deviation value is greater than twice the trigger threshold, multiplying the original weight by the third coefficient. When the second rule is selected, step A423 includes: if the initial deviation value is greater than 0 and no greater than the trigger threshold, multiplying the original weight by the first coefficient; if the initial deviation value is greater than the trigger threshold and no greater than twice the trigger threshold, multiplying the original weight by the second coefficient; if the initial deviation value is greater than twice the trigger threshold, multiplying the original weight by the third coefficient. The product coefficients include a first coefficient, a second coefficient and a third coefficient that increase sequentially, which may be 0, 1 and 1.5 respectively.
[0130] Step A43: calculating a total weight value of all target analysis indicators, performing normalization processing on all weight scores based on the total weight value to obtain a comprehensive anomaly score, and determining a risk level according to an interval in which the comprehensive anomaly score is located, including: accumulating original weight values and weight scores of all target analysis indicators respectively to obtain a total weight value and a total weight score correspondingly; dividing the total weight score by the total weight value and then multiplying by a mapping score coefficient to obtain a comprehensive anomaly score; wherein the mapping score coefficient may be set to 100.
[0131] In one embodiment, after obtaining the baseline value, an anomaly determination condition is first verified: only when an indicator deviates from the baseline value in a direction of business deterioration, it is determined as an abnormal indicator and an initial deviation value is calculated; otherwise, the initial deviation value is set to 0 and it is determined as a normal indicator. Calculating the initial deviation value requires first distinguishing baseline types (for example, low gross profit adopts a 20% business fixed baseline, gross profit margin adopts a previous period result baseline, and service fee adopts a store statistics baseline), and selecting a corresponding calculation mode in combination with the anomaly determination condition:
[0132] An absolute percentage point (pp) difference mode is applicable to ratio-type indicators such as gross profit margin and refund rate: R=|current period value - baseline value| (6). A relative change rate mode is applicable to amount and amplitude-type indicators such as cost and gross profit: R=|(current period value - baseline value) / baseline value| (7); wherein the current period value in formulas (6) and (7) is indicator data. After the initial deviation value is calculated, a corresponding weight score rule is selected according to the baseline type: the business fixed baseline applies the first rule (R=0: not triggered, score=W×0=0; 0<R≤2T: mild anomaly, score=W×1; R>2T: severe anomaly, score=W×1.5), and the previous period result / store statistics baseline applies the second rule (0<R≤T: not triggered, score=W×0=0; T<R≤2T: mild anomaly, score=W×1; R>2T: severe anomaly, score=W×1.5), and the initial deviation value R, the trigger threshold T and the original weight W are substituted to calculate the weight score.
[0133] The principle and process of calculating the weight score are shown in Table (1) and Table (2) respectively. The prerequisite is the abnormal judgment condition, the weight is the original weight value, the threshold is the trigger threshold, and MSKU is the seller's inventory unit. The previous period / store benchmark is the benchmark value, the current period / MSKU value is the indicator data, and the abnormality judgment is the calculation rule judgment.
[0134]
[0135] Table (1)
[0136]
[0137] Table (2)
[0138] Secondly, the comprehensive abnormal score = Σ score of each enabled rule / Σ weight of each enabled rule * 100 (5). In formula (5), the score of each enabled rule is the weight score, and the weight of each enabled rule is the original weight value.
[0139] Finally, the risk level is determined based on the range in which the comprehensive abnormal score falls: comprehensive abnormal score > 60: high risk; 30 < comprehensive abnormal score ≤ 60: medium risk; comprehensive abnormal score ≤ 30: normal or low risk.
[0140] Step A5: When the risk level is "risk exists", the intelligent analysis model is invoked to analyze and calculate the profit details data corresponding to the abnormal indicators, and the attribution end and final abnormal factors corresponding to the abnormal indicators are located under the preset inference boundary constraints. This includes: when the risk level is high risk or medium risk, under the inference boundary constraints, the profit contribution ratio, relative business threshold deviation, and moving average deviation within the target period of each profit detail data under the attribution end are calculated; based on the profit contribution ratio, relative business threshold deviation, and moving average deviation, several candidate attribution factors are selected from the profit detail data; the moving average deviation and relative business threshold deviation of each candidate attribution factor are weighted and fused, and the obtained deviation degree is multiplied by the corresponding profit contribution ratio to obtain the attribution weight, and all attribution weights are sorted to output several final abnormal factors.
[0141] Specifically, anomalies are pre-mapped to attribution points (e.g., a decline in selling price is primarily mapped to revenue, while an increase in procurement costs or first-mile delivery fees is primarily mapped to costs). The attribution point stores detailed profit data associated with the corresponding anomalies. This detailed profit data is raw business data exported and synchronized from upstream business systems, with several profit items pre-mapped to four attribution points: revenue, costs, expenses, and refunds. For example, revenue includes buyer shipping costs and gift wrapping fees, costs include procurement costs and first-mile delivery fees, and expenses include warehousing fees and subscription fees. The final anomaly factors include: current value, comparison value, magnitude of change, contribution percentage, and supporting evidence.
[0142] In one embodiment, the attribution phase begins when the initial deviation value exceeds the trigger threshold (risk level: medium / high risk). The entire process is executed under inference boundary constraints (including evidence caliber, input boundaries, and output binding constraints). First, the profit detail data corresponding to all abnormal indicators are input into the intelligent analysis model to calculate three core indicators: 1. Profit contribution ratio (the proportion of the profit impact amount of a single profit detail to the total abnormal loss within the target period); 2. Relative business threshold deviation (the difference between the current value of the detail and the preset business threshold); 3. 7-day moving average deviation (the difference between the current value of the detail and the 7-day moving average). Candidate attribution factors must simultaneously meet two conditions: Condition A, the relative business threshold deviation and / or moving average deviation are significantly different; Condition B, the profit contribution ratio is ≥ the preset deviation threshold (e.g., greater than 5%).
[0143] For the selected candidate attribution factors, the deviation degree is obtained by weighting and fusing the moving average deviation value with the relative business threshold deviation value. This deviation is then multiplied by the corresponding profit contribution percentage to calculate the attribution weight. After sorting by weight, the final anomaly factors are output, along with required fields (current value, comparison value, change magnitude, contribution percentage, evidence statement, etc.) and short / medium / long-term optimization suggestions, assembled into a structured anomaly analysis report. Example: On March 5, 2026, MSKU1's ACoS was 72.7%, and the 7-day moving average was 29.3%, an increase of 43.4 percentage points (pp), exceeding the configured threshold. This indicated drastic fluctuations in advertising expenses, significantly compressing gross profit margins. The comparison values are the relative business threshold deviation value and the moving average deviation value.
[0144] Evidence caliber constraints unify the calculation criteria for evidence, preventing the model from arbitrarily selecting comparison benchmarks. For example, each anomaly must simultaneously reflect both relative threshold deviation and 7-day moving average deviation. Input boundary constraints limit the analysis data pool: only single-item daily profit data, enabled rules, and selected statistical methods within the current report context are used; external industry averages, other product data, and virtual data not provided by the system are prohibited for derivation. Output binding constraints specify the output format and business logic, limiting the attribution classification framework: each attribution factor must include the current value, comparison value, change magnitude, contribution percentage, and evidence sentence; each anomaly is bound to at least one attribution factor; each attribution factor is bound to at least one processing suggestion.
[0145] refer to Figure 1 , Figure 7 and Figure 8 This application also provides an incremental identification method for announcement data, used in the data module of an e-commerce ERP system, the method including steps B1-B6.
[0146] Step B1: Periodically acquire configuration information of target announcement sources: According to a preset scheduling cycle (e.g., check once every morning at 7:00 AM), acquire configuration information of target announcement sources that are in an enabled state from multiple external e-commerce platforms or third-party business platforms, including public web pages, help centers, developer documentation, RSS feeds, or public APIs. This includes at least one of the following: announcement name, announcement address, announcement source type, platform, start / stop status, whether manual inspection is required, and alarm subscription relationship. Step B1 is followed by: recording the collection operation and generating a collection log; determining whether the target announcement source is a non-restricted announcement source based on the announcement source type and whether manual inspection is required; if the announcement source type is a static public web page, content aggregation subscription source, or external open data source, and no manual authentication is required, then the target announcement source is determined to be a non-restricted announcement source; otherwise, it is a restricted announcement source, and a notification message to be pushed is generated.
[0147] The collection operation generates a collection log, which includes: if the target announcement source is successfully obtained, the collection status is recorded as successful and the parsing status is recorded as pending parsing; if it fails, the collection status is recorded as failed and the parsing status is recorded as failed parsing, and the configuration information is re-obtained within the preset retry time period.
[0148] In one embodiment, when configuring the announcement source, a collection log is generated simultaneously, containing the announcement source identifier, collection and parsing status, and creation and update times. If collection is successful, the announcement source is saved and marked as successful collection and pending parsing; if collection fails, both collection and parsing are marked as failed, and retrying is performed according to rules within a limited time (e.g., retrying every hour before 12:00, every 2 hours after 12:00, terminating at 22:00) to avoid network fluctuation errors. Subsequently, a dual state is initialized, distinguishing between announcement sources based on their type and manual verification requirements: static public web pages, RSS feeds, public API feeds, or announcement sources that do not require manual authentication are determined to be unrestricted; restricted announcement sources that require login, verification codes, and permission verification generate a manual inspection reminder containing the announcement source name, address, and inspection instructions, and push it to subscribers.
[0149] Step B2: If the target announcement source is determined to be a non-restricted announcement source, then select the preset announcement acquisition method according to the announcement source type in the configuration information, and collect the original announcement text, including: if it is a non-dynamic public page, initiate a network access request and receive the returned original announcement text; if it is a dynamic public page and has the first characteristic, perform page rendering and parsing to obtain the original announcement text; if it is a dynamic public page and has the second characteristic, traverse the target announcement source and its nested document objects to extract the original announcement text.
[0150] In one embodiment, non-dynamic public pages directly retrieve the original announcement text via HTTP requests; dynamic public pages prioritize calling compatible interfaces for data collection, and when no interface is available, content is obtained by parsing the page rendering component for client-rendered pages, and content is extracted from the main document and embedded frame text for page embedded box content to avoid missing the main text.
[0151] Step B3: Perform data cleaning on the original announcement text to obtain the target announcement text, including: denoising the target noise content in the original announcement text to obtain the target announcement text.
[0152] In one embodiment, target noise content such as scripts, announcement styles, header metadata, and irrelevant tags are removed from the original announcement text, while the target announcement text such as text, title, and links are retained. At the same time, the link text and link address are retained, so that more attention is paid to the effective content of the announcement item itself. The announcement texts of different forms are converted into relatively uniform, readable, and low-noise text input, which improves the stability of subsequent structured parsing and incremental recognition.
[0153] Step B4: Obtain a preset number of historical announcements that are from the same source as the target announcement, and construct a historical context based on the historical announcements. Constructing a historical context based on the historical announcements includes: extracting the target fields from the historical announcements and constructing the historical context according to the target fields.
[0154] In one embodiment, the original text of a preset number (e.g., 5) of recent historical announcements from the announcement source is retrieved, and fields such as publication time and summary are extracted and sorted to generate historical context, which is used to determine whether the current content is new, avoiding duplicate and missed identification problems.
[0155] Step B5: Perform structured parsing and incremental identification on the original text of the target announcement and its historical context to obtain a set of target announcement entries. This includes: Step B51: Perform structured parsing on the original text of the target announcement to obtain an initial set of announcement entries; Step B52: Compare the initial set of announcement entries with the historical announcement context, and mark each announcement entry as newly added according to a preset incremental identification rule to generate a set of target announcement entries. Step B52 includes: If both the initial set of announcement entries and the historical context contain a publication time, then determine whether to mark it as newly added based on the publication time; if the initial set of announcement entries does not contain a publication time, then determine whether to mark it as newly added based on the position of the target announcement unit in the original text of the target announcement, or the semantic similarity between the announcement summary in the initial set of announcement entries and the historical context; if there is no historical context, then mark it as newly added; wherein, each announcement entry includes at least one of the following: whether it is newly added, publication time, announcement summary, announcement details, and original text link.
[0156] In one embodiment, an AI intelligent model is used to perform structured parsing of the original text of the target announcement and its historical context, generating an initial set of announcement entries and several announcement units. An incremental recognition method is used to compare the historical context and mark the status as new: if all have a publication time, it is determined by time comparison; if the original text of the target announcement does not have a publication time, it is determined by the semantic similarity of the announcement summary or the arrangement order of the target announcement units in its original text; if there is no historical context, all are marked as new. Target announcement units whose publication time cannot be extracted inherit the publication time of the previous unit; if none have a time, the current time is filled in, ultimately generating a set of target announcement entries.
[0157] Step B6: Identify newly added announcement entries in the target announcement entry set, generate push notification messages, and send them to operators according to a preset push strategy. Sending push notification messages to operators according to the preset push strategy includes: sending push notification messages to operators within a preset period according to preset batch limits and rate limiting strategies.
[0158] In one embodiment, the system iterates through the announcement entry set, only adding new entries to the database, generating structured announcement intelligence records containing fields such as announcement source identifier, platform, publication time, summary, details, original link, and collection log identifier. Non-new entries are not repeatedly added to the database, preventing redundant data and duplicate alarms. Simultaneously, it generates pending alarm records by branch: automatically collecting alarms from branch pushes containing summaries, details, and links of new announcements; and manually checking the basic information of the announcement source in branch pushes and providing reminders. The system periodically scans pending and failed push records, processing them in batches by creation time within a specified time window (with a maximum processing limit per batch). It supports aggregating multiple new announcements from the same source and highlighting them. Successful pushes are updated to a success status; failures are marked as failures and retried within a limited time. This mechanism decouples announcement processing from external alarm channels, avoiding data loss due to channel anomalies, and limits the retry range through time windows, batch limits, and status filtering to prevent unlimited retries. Pending alarm records include announcement source identifier, channel identifier, alarm content, push status, and creation and update times.
[0159] Step B6 is followed by: performing compliance checks and compatibility adaptation on the target announcement entry set, updating the parsing status in the collection log based on the processing results, and generating push notification information for target announcement entry sets that have failed to parse multiple times. Performing compliance checks and compatibility adaptation on the target announcement entry set to update the parsing status in the collection log based on the processing results includes: performing structural checks and field normalization on the target announcement entry set to obtain a format-validated target announcement entry set; if there are abnormal target format types, performing fault-tolerant adaptation to obtain the processing result; if the processing result is the target structure, the parsing status is recorded as parsing successful; if it is not the target structure, it is recorded as parsing failed.
[0160] In one embodiment, after item parsing is completed, structure validation and field normalization are performed uniformly to filter out abnormal parsed data. Issues such as formatting errors, missing fields, and abnormal dates are addressed through adaptive fault-tolerant processing, supporting operations such as compatibility with object / array structures, skipping items without a summary, setting nullable timestamps to prevent parsing, and truncating excessively long summaries. Items conforming to JSON format after fault-tolerant processing are marked as parsing successful; otherwise, they are marked as parsing failed. For items that fail to parse multiple times, corresponding alarm prompts are generated, and a limited retry mechanism is implemented.
[0161] refer to Figure 1 , Figure 9 and Figure 10 This application also provides a method for anomaly analysis of tax data, used in the tax module of an e-commerce ERP system. This method includes steps C1-C5:
[0162] Step C1: Obtain the original tax data from the target system and perform field standardization processing on the original tax data to obtain standardized data. This standardization process includes: unifying the expense description fields in the platform expense report, tax report, and expense name fields in the expense ledger report into standard expense description fields; and converting order numbers, site codes, and store codes in different formats into unified identification fields. The expense ledger report is an internal logistical report that records and aggregates the details of various expenses incurred by the enterprise in chronological order.
[0163] In one embodiment, the system can connect to multiple target systems, such as e-commerce platforms, internal profit reporting systems, advertising expense systems, order removal systems, and exchange rate maintenance systems, through various interfaces. It obtains raw tax data using methods such as APIs, file uploads, scheduled synchronization, and database connections. This data includes at least one of the following: store identifier, site identifier, currency, amount, expense description, order identifier, expense identifier, and original occurrence time. Then, the raw data fields from each report are mapped to unified fields to generate standardized data. The standard expense description field is used to uniformly classify similar expenses from multiple sources. For example, the abandonment fee in the tax-related report includes removal fees from the order removal system and seller return and destruction fees from the financial interface; the system uniformly classifies both as abandonment fees.
[0164] Step C2: Semantically map the standardized data according to the preset field mapping table to obtain mapped data, and perform directional unification transformation on the monetary data in the mapped data according to the preset symbol normalization rules to obtain symbol unified data. This includes: Step C21: Obtaining the field mapping table based on the mapping relationship between the pre-established accounting rules and the platform's original cost description, Chinese cost description, and internal cost classification; Step C22: Parsing the data structure of the standardized data and performing semantic mapping according to the field mapping table to obtain mapped data; After parsing the data structure of the standardized data, the steps also include: labeling the monetary data in the standardized data to find the root cause of anomalies based on the label classification results; Step C23: Selecting the symbol conversion method for the monetary data in the mapped data according to the preset symbol rule matrix to obtain symbol unified data, including: selecting the preset target direction in the symbol rule matrix according to the business scenario of each tax indicator and comparing it with the original symbol of each tax indicator in the monetary data; if they are the same, the original symbol is retained; otherwise, it is reversed to obtain symbol unified data.
[0165] In one embodiment, the system pre-establishes a mapping relationship between the platform's original fee description, Chinese fee description, internal fee classification, and accounting rules, generating a field mapping table. It pre-sorts and maintains over 500 types of interface data structures; after data synchronization, the system automatically identifies the structure and maps it to internal fields, such as mapping Referral fee and Return Processing fee to commission and return processing fee, respectively. The fee mapping results are used for fee display and support the determination of time caliber, exchange rate dates, and discrepancy verification rules. Cross-language fee name association reduces manual classification errors.
[0166] The system employs a three-dimensional rule matrix based on expense category, transaction type, and source report type, pre-setting target symbols for amounts. Querying the symbol rule matrix yields the target direction: revenue is positive, while costs, expenses, and refunds are negative. The system then compares the original amount symbols, retaining those in the same direction and inverting those in the opposite direction, writing the result to a normalized symbol field for audit traceability. For example, a commission originally valued at +15 USD in a tax report is converted to -15 USD after matching the rules. Expense categories include revenue, commissions, advertising fees, and removal fees; transaction types include order revenue and expense deductions; and source report types include tax reports, advertising invoices, and removal order details.
[0167] The system adds four-dimensional tags to monetary data: fund flow, tax attributes, confirmation status, and period attribution. Discrepancy verification can simultaneously check the monetary value and business semantics. When the amounts are the same but the confirmation status differs, the cause of the discrepancy can be directly identified, providing refined structured data for root cause analysis. Specifically, fund flow is marked as inflow / outflow; tax attributes are marked as taxable, deductible, and tax-exempt; confirmation status is marked as confirmed, estimated, and reserved; and period attribution is marked as current period, inter-period, and adjustment item.
[0168] Step C21 and beyond includes: if no mapping relationship can be matched, fuzzy matching, keyword matching, or manual confirmation will be used to map the target cost to the category to be reviewed or other cost categories, so that the operator can confirm whether to update the mapping relationship.
[0169] Step C3: Select an accounting time anchor point for the symbolic data according to the preset accounting time rules, and perform currency conversion on the symbolic data according to the accounting time anchor point and the preset exchange rate table to obtain exchange rate matching data. This includes: selecting the corresponding accounting time anchor point for the expense category of the tax indicator according to the preset mapping relationship between expense categories and accounting time anchor points, and selecting the corresponding offset date for tax indicators with offset rules to update the accounting time anchor point; querying the corresponding target exchange rate in the preset exchange rate table according to the accounting time anchor point, and converting the original currency amount of the tax indicator to obtain exchange rate matching data.
[0170] In one embodiment, a pre-configured anchor mapping table is loaded during system initialization or rule version release. This table stores the fee category, anchor field, anchor source, and offset rule number, with a one-to-one correspondence between the fee category and the anchor field. For example, the anchor for revenue and refund is the delivery time; the anchor for monthly storage fee and return processing fee is the delivery time and an offset rule is configured; and the anchor for long-term storage fee is the delivery month and an offset rule is configured. The anchor mapping table supports version management; rule changes generate new versions, and historical data is recalculated using the corresponding version of the rules, ensuring traceability and recalculation of the calculations.
[0171] The system selects accounting time anchors based on expense categories: direct fields such as order placement time and shipping time are extracted and standardized; derived fields such as shipping month are generated by rule calculations. When the anchor field is empty, the value is downgraded according to the fallback chain of shipping time → order placement time → report generation time → data import date, and the fallback level is marked to identify time deviations caused by missing anchors, solving the problem of inconsistent time standards for multiple expense categories that cannot be directly verified. Monthly storage fees, return processing fees, and long-term storage fees use offset rules: the accounting date is calculated by offsetting the basic anchor time; the monthly storage fee is taken from the shipping time, and the period to which it belongs is determined by matching the previous month's storage report; the return processing fee is calculated by deducting a preset number of days from the shipping time; the long-term storage fee is taken from a fixed date in the shipping month, and multiple accounting records are split if the billing cycle is cross-cycle.
[0172] Subsequently, based on the accounting time anchor, the target exchange rate is matched from a preset exchange rate table containing fields such as currency, exchange rate date, and exchange rate value. The original currency amount is converted into RMB to obtain exchange rate matching data, and the period and exchange rate value date are unified to prevent misalignment. The exchange rate adopts a forward nearest matching strategy: records with the same currency and exchange rate date no later than the accounting date are selected, and the exchange rate with the largest exchange rate date is taken; if no matching record is found, the earliest exchange rate for that currency is taken and marked as an extrapolation match; for multiple exchange rates on the same accounting date, they are selected according to the source priority (central bank midpoint rate > platform official exchange rate > third-party exchange rate), and the rest are marked as reserve exchange rates.
[0173] Step C3 is followed by: if the difference in the amount of tax indicators calculated using multiple exchange rate sources exceeds a preset abnormal threshold, it is marked as an exchange rate abnormality.
[0174] In one embodiment, the RMB amount under multiple exchange rate sources is calculated simultaneously for each tax indicator. When the difference in amount caused by different exchange rate sources exceeds a preset abnormal threshold (such as 0.5%), it is marked as an exchange rate abnormality.
[0175] Step C4: Summarize the exchange rate matching data according to the target dimension to obtain the monthly tax-related dataset. Then, perform hierarchical field matching between the monthly tax-related dataset and the original tax data according to three-level matching conditions to obtain the matching results for each discrepancy record. This includes: acquiring the exchange rate matching data of the target dimension for a preset historical period at a set time every day to obtain the initial tax-related dataset; if the initial tax-related dataset changes, performing field standardization, semantic mapping, sign normalization, and currency conversion operations on the initial tax-related dataset to obtain the monthly tax-related dataset; if the monthly tax-related dataset and the original tax data satisfy the first matching condition, the second matching condition, and the third matching condition respectively, then set the confidence level of the matching result to the first value, the second value, and the third value respectively.
[0176] The first matching condition is that all items—store, site, month, fee category, order number, and currency—match, and the amount difference is less than the fourth value. The second matching condition is that the store, site, month, fee category, and currency match, and the conditions of fuzzy matching of fee description, approximate matching of amount, and time window matching are met. The third matching condition is that the relative difference in the grouped total amount of store, site, month, fee category, and currency is less than the fifth value. Fuzzy matching of fee description is that the similarity of the fee description text is not less than the sixth value. Approximate matching of amount is that the relative difference between the two amounts is less than the seventh value. Time window matching is that the transaction dates of the two records do not differ by more than a preset number of days. The first value is 1, the second value is between 0.7 and 0.9, the third value is 0.5, the fourth value is 0.1, the fifth value is 1%, the sixth value is 0.8, and the seventh value is 2%.
[0177] In one embodiment, the system constructs a monthly tax-related dataset based on exchange rate matching data, categorized by store, site, and month: a scheduled task updates the previous period's data to generate an initial tax-related dataset; when the initial data changes, the system performs full field standardization, semantic mapping, symbol normalization, and currency conversion on all incremental data from the previous month's source reports to generate the monthly tax-related dataset.
[0178] The system compares the monthly tax-related dataset with multiple source reports, such as tax reports and platform transaction reports. If all aspects—store, site, month, expense category, order number, and currency—are identical, and the amount difference is less than the fourth value (e.g., 0.1), it is considered a perfect match, and the confidence level is set to the maximum (e.g., 1). If a perfect match fails, it proceeds to a related match. Under the premise of identical store, site, month, expense category, and currency, three sub-conditions must be met simultaneously: fuzzy matching of expense descriptions (text similarity of expense descriptions ≥ the sixth value, e.g., 0.8, calculated using edit distance or inverse document frequency algorithms), approximate matching of amounts (relative difference between two amounts < the seventh value, e.g., 2%), and matching within a time window (the transaction dates of two records do not differ by a preset number of days, e.g., 3 days). If successful, the confidence level is set to the second value (0.7~0.9). If a single match fails, it escalates to a summary dimension: the amounts are grouped and summarized by store, site, month, expense category, and currency. If the relative difference in the summarized amounts meets the standard (less than the fifth value, e.g., 1%), it is considered a summary match, and the confidence level is set to the third value (e.g., 0.5). If all three types of matching fail, the order is marked as unmatched and the reason for failure is recorded, which serves as the basis for determining the difference in order missing categories.
[0179] Step C5: Calculate the difference value of each difference record based on the matching results, call the preset root cause rule to output the target root cause label corresponding to the difference value, and identify the abnormal reasons of the original tax data, including: if the first matching condition or the second matching condition is met, calculate the difference amount between the monthly tax dataset and the original tax data under the corresponding matching condition; if the third matching condition is met, calculate the sum of the amount difference; if the absolute value of the difference amount is not less than the preset value, or the sum of the amount difference is not zero, use the decision tree to hierarchically determine the difference type and target root cause label of the difference record.
[0180] Step C5 is followed by: if a single difference record has multiple candidate root cause labels, then the feature vector of the target dimension feature is multiplied by the predefined weight vector of each candidate root cause label and sorted. The one with the highest score is taken as the primary root cause label, and the rest are listed as secondary root cause labels and potential root cause labels in order of their scores.
[0181] In one embodiment, the difference is calculated based on the unified amount direction and matching results: For precise / related matching, the difference amount and difference rate (difference amount divided by the larger of the absolute values of both parties) between Party A's monthly tax-related dataset and Party B's original data are calculated; if the absolute value of the difference amount (e.g., 0.01) is less than a threshold, it is marked as no difference; otherwise, it is marked as an amount difference and proceeds to root cause identification. When a summary match occurs but a single item cannot be matched: if the summary difference is 0 and there is no one-to-one correspondence among the details, internal offsetting differences are marked (total amount consistent, details mismatched); if the summary difference is non-zero, a summary difference is marked, and the grouped details are retrieved for loose matching to locate the document.
[0182] Root cause identification employs a hybrid model combining decision trees and feature vector scoring, comprehensively considering multiple dimensions such as expense classification, time caliber, symbol, exchange rate, anchor confidence, and matching confidence. The first-level decision tree identifies the type of discrepancy: when it's a unilateral record and the amount record only exists in transaction reports or tax reports, it's marked as either a missing order or an overreported expense; mismatched expense categories indicate a classification difference; when bilateral amounts are inconsistent, a difference in the original currency but not in RMB indicates an exchange rate difference; identical amounts but different months indicate a time caliber difference; mismatch in a single item within a summary match indicates a detail mismatch; differences in the original currency lead to the second-level decision tree. The second-level decision tree identifies the root causes of amount anomalies: inconsistent accounting dates → time caliber difference; inconsistent normalization symbols → symbol rule difference; insufficient similarity in expense descriptions → expense description mismatch; difference ratio close to a fixed rate → rate caliber difference; inconsistent confirmation status → confirmation status difference; if all conditions are not met, it's marked as an unidentified difference and submitted for manual review.
[0183] When a single discrepancy record corresponds to multiple candidate root causes, the nine-dimensional feature vector (time deviation days, amount discrepancy rate, sign inconsistency flag, exchange rate discrepancy rate, cost description similarity, anchor confidence, period integrity score, matching confidence, and historical discrepancy frequency) is weighted and calculated, and the primary, secondary, and potential root cause labels are output in order of score.
[0184] The above are merely preferred embodiments of this application and do not limit the scope of the patent application. All equivalent modifications made based on the inventive concept of this application and the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included within the scope of patent protection of this application.
Claims
1. A method for diagnosing anomalies in e-commerce products, characterized in that, The method includes the following steps: Step S1: Obtain the diagnostic task information of the product to be diagnosed, and obtain the historical operating data of the product to be diagnosed in the target business dimension within the first period based on the diagnostic task information. Step S2: Standardize and periodically serialize the historical operating data to obtain a historical indicator dataset of several primary core indicators within the target business dimension; Step S3: Based on the historical indicator dataset, generate a first health threshold that adapts to each primary core indicator, and fuse the first health threshold according to the preset multi-source diagnostic benchmark to obtain a second health threshold. Step S4: Select several consecutive period historical indicator data subsets from the historical indicator dataset, obtain the first health level corresponding to each historical indicator data subset based on the second health threshold, and calculate the comprehensive indicator score of the first-level core indicator based on the first health level and its deduction ratio. Step S5: Calculate the original dimension scores of all primary core indicators within the target business dimension based on the comprehensive index scores of each primary core indicator and their weight ratios within the target business dimension. Step S6: Correct the original dimension score using a preset weight adjustment mechanism, compare the obtained target dimension score with the second health threshold to determine the second health level, and generate an abnormal indicator list.
2. The method as described in claim 1, characterized in that, The method further includes: Step S7: When the second health level is in an unhealthy state, construct attribution input data based on the list of abnormal indicators and the target attribution data, and call the intelligent analysis model to process the attribution input data to obtain the target attribution path; Step S8: Bind quantifiable attribution evidence to the target attribution path and output structured diagnostic results; Step S9: Verify the structured diagnostic results using preset verification rules to check whether the structured diagnostic results conform to the output format constraints and prohibited item constraints in the target attribution data. The target attribution data includes: diagnostic task information, comprehensive index score, target dimension score, multi-source diagnostic benchmark, and fixed attribution tree, output format constraints, and prohibited item constraints of the intelligent analysis model; the structured diagnostic results include: second health level, comprehensive index score, target dimension score, target attribution path, abnormal phenomena, attribution evidence, and abnormal root causes.
3. The method as described in claim 1, characterized in that, Step S3 includes: Quantities are calculated for the historical indicator datasets of each primary core indicator. Differential mapping is then performed in conjunction with the business attributes of the primary core indicators to generate the first health threshold under the historical fitting benchmark. The second health threshold is obtained by selecting the highest priority fitting benchmark among several target fitting benchmarks. The target fitting benchmark includes historical fitting benchmarks, user-input benchmarks, and system rule benchmarks, with the priority of historical fitting benchmarks, user-input benchmarks, and system rule benchmarks decreasing in that order.
4. The method as described in claim 1, characterized in that, Step S4 includes: Starting from the current time, select a subset of historical indicator data for several consecutive periods from the historical indicator dataset; The actual values of the indicators are obtained by performing aggregation operations on subsets of historical indicator data. The actual values of the indicators are then compared with the second health threshold to determine the corresponding first health level. Match the deduction ratio corresponding to the first health level, calculate the score of each subset of individual indicators, and take the average of all individual indicator scores to obtain the comprehensive indicator score.
5. The method as described in claim 1, characterized in that, The step of correcting the original dimension score using a preset weight adjustment mechanism and comparing the obtained target dimension score with a second health threshold to determine the second health level includes: If there is zero effective cost in the target business dimension, the original weight of the target business dimension is distributed to the other target business dimensions, and the target dimension score is recalculated. Alternatively, if multiple primary core indicators within the same target business dimension are in an unhealthy state, then the original dimension score is reduced by a preset value to obtain the target dimension score. Alternatively, when a preset rejection condition is triggered, the original dimension score is forcibly limited to the threshold range corresponding to the unhealthy state to obtain the target dimension score. The adjusted target dimension score is compared with the second health threshold to determine the threshold range to which the target dimension score belongs and its corresponding second health level. The preset veto conditions include: at least two target business dimensions are in a dangerous state, at least three target business dimensions are in a warning state, and the primary core indicator triggers the preset risk threshold; the abnormal indicator list includes: business dimensions in a warning or dangerous state, comprehensive indicator score, indicator current value, comparison period, comparison value, second health level, deduction item identifier, veto condition identifier, and secondary attribution indicator; the secondary attribution indicator is the business detail indicator under the primary core indicator; unhealthy state includes: warning state or dangerous state.
6. The method as described in claim 1, characterized in that, Step S5 includes: Calculate the comprehensive score of each primary core indicator under the target business dimension; then, sum the scores by combining the weight ratios of each primary core indicator to obtain the original dimension score of the target business dimension.
7. The method as described in claim 1, characterized in that, Step S2 includes: The invalid or missing data in the historical operating data is cleaned, the currency of the monetary fields is converted, and the numerical format and data statistics rules of the non-monetary fields are standardized to obtain unified historical data. Starting from the day before the diagnosis initiation time in the diagnosis task information, the unified historical data is divided according to the cutting duration of the third cycle to obtain historical cycle data. Periodic statistical values are extracted from historical periodic data to obtain historical indicator datasets for several primary core indicators.
8. The method as described in claim 1, characterized in that, Step S1 includes: Obtain the diagnostic task parameters input by the user, assemble the diagnostic task parameters with the system context, and obtain the diagnostic task information; Based on the product identifier, store identifier, site identifier, and user permission information in the diagnostic task information, collect historical operating data of the product to be diagnosed; The diagnostic task parameters include: product code, store, site, diagnostic cycle, and scheduled diagnostic switch; the diagnostic task information includes: product identifier, store identifier, site identifier, user identifier, diagnostic initiation time, scheduled start status, diagnostic cycle, and user permission information; the first cycle is the historical period of the past year; the target business dimensions include: sales, profit, advertising, inventory, and after-sales service.
9. The method as described in claim 2, characterized in that, Step S7 includes: If the second health level is judged to be in a warning state or a dangerous state, select the corresponding fixed attribution tree according to the target business dimension; Multiple candidate attribution paths are generated based on the magnitude of change and anomaly level of the secondary attribution indicators, as well as their business relevance to the primary core indicators; Calculate the comprehensive anomaly score for each candidate attribution path, and select the one with the highest comprehensive anomaly score as the target attribution path; If the second-highest score path and the highest score meet a preset proximity threshold, then at most one additional secondary attribution path will be output. Among them, the fixed attribution trees correspond one-to-one with the target business dimensions, including: sales attribution tree, profit attribution tree, advertising attribution tree, inventory attribution tree, and after-sales attribution tree.
10. An anomaly diagnosis system for e-commerce products, characterized in that, The system executes the operation instructions contained in the abnormal diagnosis method for e-commerce products according to any one of claims 1-9.
