Multimodal AI Review Loop for E-commerce Merchant Governance and Counterfeit Complaints

    This article describes a two-stage AI review workflow for e-commerce platforms that process merchant qualification documents, consumer complaints, and product images and videos. It explains how a multimodal screening stage and a compliance assessment stage connect through structured evidence bundles, how a unified model gateway routes requests to multiple models, and how audit logs and manual review keep each decision traceable.

    1. Background

    E-commerce platforms receive large volumes of merchant qualification documents, consumer complaints, and product images and videos every day. Traditionally, reviewers check each item by hand. This approach has three main problems. The volume of material is large, judgment criteria are scattered across rules, and the evidence process is hard to verify. A single defective video often requires reviewers to replay it repeatedly, compare the product detail page with photos of the physical item, and check advertising law provisions and platform rules before writing a decision. Each case takes a long time, standards vary between reviewers, and when a merchant appeals, it is difficult to reconstruct the basis for the original decision.

    Counterfeit complaint handling depends on the evidence chain, and that chain is often weak. Consumer material may be blurry, edited, or not matched to the order. Comparison images from merchants may be taken from different angles or retouched. If a system only returns “suspected violation,” operations staff cannot use the result directly for a penalty decision, and they cannot explain the reason to the merchant. An intelligent solution should therefore produce structured conclusions that are traceable, reviewable, and supported by evidence.

    2. Overall Design: A Two-Stage Review Loop

    In practice, a safer approach is to split the process into two stages, with each stage using a model suited to its task.

    The first stage is multimodal screening, whose task is to understand the material. The model identifies the product category, appearance features, logos and text, watermarks, and key actions in images and videos. It also extracts the points of dispute from complaint text. This stage handles large volumes of data, so the cost per call must stay low, and response speed matters. The model only needs to output structured fields. It does not need to perform complex legal reasoning.

    The second stage is compliance assessment, whose task is to make a judgment. The model compares the evidence summary from screening with platform rules, advertising language standards, and intellectual property clauses, item by item. It determines whether the content involves false advertising, exaggerated efficacy claims, imitation, or counterfeit sales, and then recommends an action. This stage receives less input, but it requires more rigorous reasoning. It suits models that are strong in text reasoning and rule interpretation.

    The two stages connect through a structured evidence bundle. The evidence bundle is the core carrier of the review. It is recommended to include the following fields:

    • Case ID and source channel
    • Product identifier and category
    • Material list, including the hash, duration, and capture time of each item
    • Features and dispute points extracted during screening, each linked to a timestamp or page number in the source material
    • Summary of the claims from both the complainant and the merchant
    • Confidence of the screening result and a list of uncertain items

    3. Implementation Essentials for Multimodal Screening

    3.1 Material Preprocessing

    Extract frames from videos before sending them to the model. A common approach is to sample key frames at fixed intervals and use shot-change detection to keep frames with large visual changes. Too many frames increase cost, while too few frames may miss defect details. Set a frame limit for each video and record the frame sampling strategy so that the input can be reconstructed during review.

    Images need a unified resolution and format. Precise location data and device identifiers written by capture devices count as private information and should be removed before storage.

    3.2 Structured Output

    The screening prompt should require the model to return results in a fixed JSON structure. This avoids parsing errors caused by free-form text. Clear field definitions make the later compliance assessment more consistent. Example fields include:

    • material_id: unique identifier of the material
    • category: product category
    • visible_defects: list of visible defects, each with a timestamp or region coordinates
    • claim_texts: original text of promotional claims that appear in the frame
    • confidence: confidence of this judgment

    3.3 Cost Control

    Screening involves the largest number of calls, so the following measures should be prioritized:

    • Deduplicate first. Process materials with the same hash only once.
    • Route text-only complaints separately from complaints that include images.
    • Queue materials by priority so that urgent cases are processed first.
    • Cache extracted features from product detail pages to avoid repeated extraction.

    4. Designing the Compliance Assessment

    Compliance assessment requires explicit rules. It is recommended to organize platform rules, banned advertising terms, and intellectual property criteria into a searchable rule base. During assessment, retrieve the relevant clauses based on the case type, and then pass them to the model for comparison. Loading all rules directly into the context wastes cost and can distract the model from the key points of the judgment.

    The assessment output should contain three parts: the violation conclusion, the basis clauses with their reference locations, and the recommended measures. Measures can be graded by severity, for example, a warning to correct, delisting the product, restricting business operations, or referral to an external agency. Each conclusion should carry a confidence score. Cases below a set threshold go automatically to a manual review queue.

    Manual review cannot be skipped. Model conclusions serve only as advisory input, and reviewers make the final penalty decision. This approach improves efficiency and provides the evidence that merchant appeals and regulatory inspections require.

    5. Design of the Unified Access Layer

    When multiple model providers or model versions are in use at the same time, business code should not depend directly on the interface details of each provider. It is recommended to add a unified gateway between the business logic and the models. The gateway handles the following responsibilities:

    1. Unified authentication and key management, with keys stored in environment variables or a dedicated key management service
    2. Unified request and response data structures that hide parameter differences between models
    3. Timeout, retry, and circuit breaker policies
    4. Call logging and cost statistics
    5. Routing requests to the appropriate model based on task type

    The following is an illustrative implementation structure that shows the layering. For specific interfaces and parameters, refer to the official documentation of the service you use.

    1. import os
    2. from dataclasses import dataclass, field
    3. @dataclass
    4. class EvidenceItem:
    5. material_id: str
    6. media_type: str # image or video
    7. features: dict = field(default_factory=dict)
    8. dispute_points: list = field(default_factory=list)
    9. confidence: float = 0.0
    10. class ModelGateway:
    11. """Unified gateway: encapsulates authentication, routing, retry, and logging details."""
    12. def __init__(self):
    13. self.api_key = os.environ["MODEL_API_KEY"]
    14. self.base_url = os.environ["MODEL_BASE_URL"]
    15. self.routing = {
    16. "screen_multimodal": os.environ["SCREEN_MODEL"],
    17. "compliance_review": os.environ["REVIEW_MODEL"],
    18. }
    19. def call(self, task: str, payload: dict, timeout: int = 30) -> dict:
    20. model = self.routing[task]
    21. # Wrap the HTTP request, exponential backoff retries, and call logging here.
    22. # The exact implementation depends on the protocol of the service being integrated.
    23. raise NotImplementedError
    24. def run_case(case, gateway: ModelGateway, threshold: float = 0.8):
    25. evidence = []
    26. for material in case.materials:
    27. raw = gateway.call("screen_multimodal", build_screen_payload(material))
    28. evidence.append(parse_evidence(raw))
    29. bundle = build_bundle(case, evidence)
    30. raw_review = gateway.call("compliance_review", build_review_payload(bundle))
    31. decision = parse_decision(raw_review)
    32. if decision.confidence < threshold:
    33. enqueue_manual_review(case, decision)
    34. else:
    35. write_audit_log(case, bundle, decision)
    36. return decision

    Functions such as build_screen_payload and parse_evidence in the code above must be implemented based on the platform’s own data structures. The core idea is that the business process only needs to handle evidence bundles and decision results, not the underlying call details.

    6. Engineering Considerations

    • Data security: Materials may contain user privacy information and merchant business data. Use encrypted channels for transmission, apply access controls for storage, and desensitize model call logs before saving them.
    • Auditability: For each conclusion, save the hash of the evidence bundle, the model version, the prompt version, and the raw output. This supports review after the fact.
    • Version regression: After a model or prompt upgrade, run regression tests on previously decided cases. Measure the consistency rate between old and new conclusions, and check the inconsistent cases closely.
    • Evaluation metrics: Track the false positive rate, the false negative rate, the rate of manual review overturning automated conclusions, and the average processing time per case. The overturn rate shows directly how usable the automated conclusions are.
    • Compliance boundaries: Automated conclusions should not serve directly as final penalty grounds. Major actions such as delisting or restricting business must be confirmed by a person.

    7. Summary

    The efficiency problems in counterfeit complaint handling and merchant governance come down to organizing scattered materials, rules, and judgment steps into a traceable evidence chain. The two-stage loop separates understanding the material from making the judgment. A unified gateway handles calls to multiple models. Evidence bundles and audit logs make each step reviewable. In practice, start with high-frequency case types that have clear standards. After accumulating regression data, expand the scope of automation gradually.