# Overview

Human URL: https://dochorizon.klippa.com/docs/capturing/shared-components/fraud
Source: https://dochorizon.klippa.com/docs/llms/capturing/shared-components/fraud.md

> Learn about the fraud shared component

---

The fraud component provides analysis results to detect fraudulent activities in documents. It includes a range of options that users can enable or disable according to their requirements. These options fall into four categories: **Metadata**, **Validity**, **Visual**, and **AI Analysis**.

> **WARNING:** Fraud detection for Word or Excel files is **not supported**. Word and Excel documents require their own techniques for accurately spotting fraud. Simply converting them to PDF would drop fraud-specific information. Currently, sending a Word or Excel file will result in an empty fraud output. No analyses take place.

### Metadata Options

Metadata options focus on the source and consistency of document data.

##### Editor

The editor detection feature extracts metadata or Exif data to verify the source of an image editor. If the editor is identified as suspicious (by being one of the reject-listed editors), the API returns an editor object with details on the detected editors.

See the JSON below for an output example that includes a flagged editor.

##### Date

The date analysis option examines creation, digitization, and modification dates for inconsistencies.

- **Original**: The date the photo was taken or the PDF was created.
- **Digitized**: The date a physical photo or PDF was scanned.
- **Last Modified**: The date the file was last changed, including content additions, annotations, or metadata modifications.

See the JSON below for an output example that includes a date discrepancy.

### Validity Options

Validity checks verify the accuracy of captured data by comparing captured values with their expected counterparts.

During the document capture process, certain values are extracted directly from the document. For example, a total amount may be listed explicitly. However, this total can also be calculated by adding up individual item amounts present on the document. In this case, the validity check involves comparing the directly captured total with the sum of individual amounts.

Fraud currently returns the following validity checks:

- **Line Item Total Amount**: Confirms that the sum of all line items matches the captured total amount.
- **Total Amount per Line Item**: Checks that each line item's total is correct based on the item's unit price and quantity.
- **Total Amount VAT**: Verifies that the total amount matches the document's value-added tax (VAT) details. It does this by comparing the document's captured total amount against a calculated sum. Here's how the check calculates the sum: - For each VAT category, it calculates the total amount with VAT by adding the VAT amount to the VAT-excluding amount. To get the VAT amount, multiply the VAT-excluding amount by the VAT percentage.
- Sum all VAT categories together. For instance, suppose we have two VAT categories: - A category with a VAT-excluding total amount of 4.00 EUR and a VAT percentage of 21%.
- A category with a VAT-excluding total amount of 2.00 EUR and a VAT percentage of 9%. For step 1, the first category's total amount with VAT is 4.0 × (100% + 21%) = 4.84 EUR; the second category's multiplication is 2.0 × (100% + 9%) = 2.18 EUR. For step 2, sum these together and obtain 4.84 + 2.18 = 7.02 EUR. This is the calculated total amount including VAT. If the captured total amount and the calculated total amount differ by more than one unit of currency (1.00 EUR, 1 HUF, etc.), the check will set its `risk_score` to `1.0`; otherwise the `risk_score` is set to `0.0`.

> **WARNING:** To perform validity checks, specific components must be enabled in a configuration. Below are the requirements for each check: - **Line Items Total Amount**: Enable the Line Items and Tax Details components.
- **Total Amount per Line Item**: Enable the Line Items component.
- **Total Amount VAT**: Enable the Tax Details component.

See the JSON below for a Validation output example:

```json
{
  "summary": {
    "risk_category": "RISK_HIGH",
    "risk_score": 1,
    "confidence": 1
  },
  "metadata": {
    "date": null,
    "editor": null
  },
  "visual": {
    "copy_move": null,
    "splicing": null,
    "pdf_modifications": null
  },
  "validity": {
    "line_items_total_amount": {
      "risk_category": "RISK_HIGH",
      "risk_score": 1,
      "confidence": 1,
      "captured_total_amount": 1119.49,
      "calculated_total_amount": 17.5
    },
    "total_amount_per_line_item": {
      "risk_category": "RISK_UNDETECTED",
      "risk_score": 0,
      "confidence": 1,
      "entries": [
        {
          "risk_category": "RISK_UNDETECTED",
          "risk_score": 0,
          "confidence": 1,
          "captured_total_amount": 0.99,
          "calculated_total_amount": 0.99,
          "captured_quantity": 1,
          "captured_amount_each": 0.99
        },
        {
          "risk_category": "RISK_UNDETECTED",
          "risk_score": 0,
          "confidence": 1,
          "captured_total_amount": 0.99,
          "calculated_total_amount": 0.99,
          "captured_quantity": 1,
          "captured_amount_each": 0.99
        },
        {
          "risk_category": "RISK_UNDETECTED",
          "risk_score": 0,
          "confidence": 1,
          "captured_total_amount": 0.99,
          "calculated_total_amount": 0.99,
          "captured_quantity": 1,
          "captured_amount_each": 0.99
        },
        {
          "risk_category": "RISK_UNDETECTED",
          "risk_score": 0,
          "confidence": 1,
          "captured_total_amount": 0.99,
          "calculated_total_amount": 0.99,
          "captured_quantity": 1,
          "captured_amount_each": 0.99
        },
        {
          "risk_category": "RISK_UNDETECTED",
          "risk_score": 0,
          "confidence": 1,
          "captured_total_amount": 5,
          "calculated_total_amount": 5,
          "captured_quantity": 1,
          "captured_amount_each": 5
        },
        {
          "risk_category": "RISK_UNDETECTED",
          "risk_score": 0,
          "confidence": 1,
          "captured_total_amount": 5,
          "calculated_total_amount": 5,
          "captured_quantity": 1,
          "captured_amount_each": 5
        },
        {
          "risk_category": "RISK_UNDETECTED",
          "risk_score": 0,
          "confidence": 1,
          "captured_total_amount": 3.54,
          "calculated_total_amount": 3.54,
          "captured_quantity": 1,
          "captured_amount_each": 3.54
        }
      ]
    },
    "vat_total_amount": {
      "risk_category": "RISK_HIGH",
      "risk_score": 1,
      "confidence": 1,
      "captured_total_amount": 1119.49,
      "calculated_total_amount": 0
    }
  }
}
```

### Visual Options

Visual options assess the integrity of image content.

##### Copy-Move

The copy-move action detects if a portion of an image has been copied and pasted within the same image. If a match is found, it also provides the coordinates of the pasted image.

> **WARNING:** The copy-move action is specifically designed to work on image file formats. Other file types, especially PDFs, are **not supported**. If you send a PDF to the document fraud system, it will automatically detect the file type and deactivate copy-move detection. However, if you send an *image* of a PDF page (for example, a screenshot or scan of a PDF page), the system will not recognize this image as originating from a PDF. As a result, copy-move detection will remain activated and may produce false positives. For example, it might incorrectly regard parts of the image as being copy-moved, even though they're legitimately part of the (image of a) PDF page. Avoid passing images of PDF pages to the copy-move action. Instead, use our dedicated check for PDFs, described in the [PDF modifications](#pdf-modifications) section.

See the JSON below for an output example of copy-move.

##### Splicing

The splicing option detects if parts of an image have been pasted from another image source. See the JSON below for an output example.

##### PDF Modifications

The PDF modification check identifies alterations made to a PDF document. Each modification is characterized by its modification type, which describes the method used to alter the document, and its detection type, which indicates how the change was identified.

###### Modification Types

The model is capable of detecting the following Modifications:

- **Free Text**: Text directly added to the page.
- **Ink**: Hand-drawn markings such as lines or scribbles.
- **Rubber Stamp**: A shape or image applied to the page.

###### Detection Types

The following detection types are supported:

- **Added**: Annotations are added to the PDF, with no concealment of original content.
- **Removed**: Original content is obscured by annotations.
- **Modified**: Annotations add content while simultaneously hiding some of the original text.

###### PDF Modification Entries

For each detected modification, the capturer provides the following information:

- **Coordinates**: The location of the modification within the document.
- **Modified Content**: The content of the modification. This is null for removals and only applicable for Free Text types.
- **Detection Type**: Specifies whether the modification is an addition, removal, or a modification of existing content.
- **Original Content**: The original content that was present before the modification.
- **Layers**: Details the changes made to the document layers, including coordinates, original and modified content, and the type of each modification (**Free Text**, **Ink**, or **Rubber Stamp**).

See the JSON below for a PDF modification output example:

##### Font Anomalies

The font anomalies check finds texts whose font differs from surrounding text. We call such differences 'font anomalies'. When a font anomaly is found, we report both the anomalous font and the surrounding texts' font. Note that the font anomalies check currently only works on PDFs.

> **INFO:** ### Compressed font names While we are accustomed to font family names such as 'Times New Roman' or 'Helvetica', these names may be shortened or otherwise compressed in documents. For example, 'Helvetica' may simply become 'helv'. Because we directly report the fonts found inside a document, you may see such compressed font names in the output.

###### Font Anomaly Entries

For each detected font anomaly, the capturer provides the following information:

- **Coordinates**: One or more locations in the document where this anomaly occurs. For example, if a page contains three instances where 'Comic Sans' is used while in the vicinity only 'Helvetica' is used, the output will contain one font anomaly entry with three coordinates.
- **Common font**: The font used in surrounding texts. This is the 'normal' font that appears commonly in that area of the document.
- **Detected font**: The font that differs from the common font.

> **INFO:** ### Fields listed in the font comparison We only report the aspects of a font that differ between the common font and detected font. For example, if the common font is 'Helvetica' in 11 pt., and if the detected font is 'Helvetica' in 13 pt., then we only report the difference in point size, and leave the family name out of the result. We do so to let you focus on what is anomalous.

See the JSON below for a font anomalies output example:

```json
{
  "summary": {
    "confidence": 1,
    "risk_category": "RISK_MEDIUM",
    "risk_score": 0.6
  },
  "metadata": {
    "date": null,
    "editor": null
  },
  "visual": {
    "font_anomalies": {
      "confidence": 1,
      "entries": [
        {
          "common_font": {
            "family": "Arial Mt",
            "size": 11.991
          },
          "confidence": 1,
          "coordinates": [
            {
              "file": 0,
              "page": 0,
              "vertices": [
                [
                  0.33,
                  0.42
                ],
                [
                  0.34,
                  0.42
                ],
                [
                  0.34,
                  0.44
                ],
                [
                  0.33,
                  0.44
                ]
              ]
            }
          ],
          "detected_font": {
            "family": "Helvetica",
            "size": 12
          },
          "risk_category": "RISK_MEDIUM",
          "risk_score": 0.6
        }
      ],
      "risk_category": "RISK_MEDIUM",
      "risk_score": 0.6
    }
  },
  "validity": {
    "line_items_total_amount": null,
    "total_amount_per_line_item": null,
    "vat_total_amount": null
  },
  "ai_analysis": {}
}
```

##### Template Detection

The template detection check determines whether a document originates from a template based document generator. A match means the document was produced with such a generator rather than issued by the system it claims to come from, which is a reason to inspect it more closely. Like other checks, it returns a confidence, a risk score, and a risk category. For this check, these outputs are returned in the `template_detection` field of the visual output.

### Textual Options

The textual checks inspect the text of a document and detect forms of fraud strictly based on this inspection.

##### Spelling & Grammar

> **INFO:** The spelling & grammar check is rolled out gradually and is disabled by default. It is not part of any default configuration. Contact your Doxis representative to enable it for your account.

The spelling & grammar check determines whether a document contains spelling or grammar errors that are inconsistent with genuine documents. Genuine documents rarely contain such errors, so finding them is a signal that the text was written or altered by hand.

> **WARNING:** Enabling this check incurs additional costs, because its analysis is more involved than that of the other checks. Enable it deliberately for the configurations that need it.

### AI Analysis Options

The AI analysis checks determine if a document has been tampered with using AI. Currently, only the Generative AI check is available.

##### Generative AI

The Generative AI check determines if the document was generated using a generative AI model. It works at the level of pages and higher, so it does *not* verify if specific elements, such as text or images within the document, were generated by AI.

This check uses two modules. Both modules are always active. They are:

- The metadata module.
- The visual (or 'model') module.

First, the check reads a special piece of metadata embedded in the document. This metadata indicates the origin of the document, including the generator and AI model used to create it. The fraud detection model uses this metadata to assess whether the document was AI-generated. This module works at the level of entire documents.

Second, the check inspects the document visually. If it detects patterns in the document indicative of AI-generated content, this module will report potential presence of fraud. This module works at the level of individual pages in documents.

##### Limitations

> **WARNING:** Not all AI providers include metadata in their generated documents. Documents created by such providers will not be flagged as AI-generated by the metadata module.

Note that, since the standard behind the metadata is relatively new, some tools or processes may unintentionally remove the metadata during manipulation. Consequently, these documents may also not be flagged as AI-generated by the metadata module.

The metadata module only reads metadata that is embedded inside the document itself. It cannot read the file details shown by your operating system, such as the origin information in Apple Finder on macOS or File Explorer on Windows. That information is stored by the operating system on your computer and is not part of the document, so it is not available to an online platform like Doxis AI.dp.

Still, the visual inspection module may detect generated documents in which the metadata was intentionally or unintentionally stripped.

###### Generative AI Entries

For each document for which the check suspects generative AI, the capturer provides the following information:

- **Type**: The module that detected generative AI use. This can be one of two values: `METADATA` and `MODEL`. `METADATA` refers to module (1) discussed above; `MODEL` refers to module (2) discussed above.
- **AI generator**: The organisation whose AI model produced the generated document. This field is only supplied by the `METADATA` module.
- **AI model**: The AI model used to generate the document. This field is only supplied by the `METADATA` module.
- **Coordinates**: The 'coordinates' of detected generative AI use. Since this check's modules detects generative AI use at the level of pages and documents, we only specify the file- and page attributes of the coordinates; the vertices are left empty.

See the JSON below for a Generative AI output example:

```json
{
  "summary": {
    "confidence": 0.99215186,
    "risk_category": "RISK_HIGH",
    "risk_score": 1
  },
  "metadata": {
    "date": null,
    "editor": null
  },
  "visual": {},
  "validity": {
    "line_items_total_amount": null,
    "total_amount_per_line_item": null,
    "vat_total_amount": null
  },
  "ai_analysis": {
    "generative_ai": {
      "confidence": 0.99215186,
      "entries": [
        {
          "ai_generator": "OpenAI",
          "ai_model": "GPT-4o",
          "confidence": 1,
          "coordinates": [
            {
              "file": 0,
              "page": 0,
              "vertices": null
            }
          ],
          "risk_category": "RISK_HIGH",
          "risk_score": 1,
          "type": "METADATA"
        },
        {
          "confidence": 0.9843038,
          "coordinates": [
            {
              "file": 0,
              "page": 0,
              "vertices": null
            }
          ],
          "risk_category": "RISK_HIGH",
          "risk_score": 1,
          "type": "MODEL"
        }
      ],
      "risk_category": "RISK_HIGH",
      "risk_score": 1
    }
  }
}
```

### Output

The output of fraud consists of a summary object that encapsulates the overall fraud assessment. Additionally, it provides distinct objects for **metadata**, **validity**, **visual**, and **ai_analysis** results.

Each fraud result includes the following fields:

- **Confidence**: The level of certainty the model has in its fraud prediction.
- **Risk Category**: A textual label representing the risk level, which varies depending on the type of check performed.
- **Risk Score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.

##### Overall Fraud Assessment

The overall fraud result are computed as follows:

- **Risk Score**: Reflects the highest score captured on the document.
- **Risk Category**: The risk category based on the overall risk score.
- **Confidence**: The average of all individual confidence scores.

##### Risk Category Definitions

The fraud model may return the following risk categories:

- **RISK_UNKNOWN**: Assigned to checks that are in place but not yet reliable for conclusive results.
- **RISK_UNDETECTED**: Allocated to basic checks, such as date modifications. A risk score of 0.0 will result in RISK_UNDETECTED, indicating a high certainty of no fraud.
- **RISK_LOW**: Indicates a low probability of fraud, typically associated with model-based scores close to 0.0.
- **RISK_MEDIUM**: Suggests possible fraudulent activity. Users should verify the document.
- **RISK_HIGH**: Implies a high likelihood of fraud. Verification of the document is strongly advised.

##### Interpreting Scores and Confidence

A risk score and confidence are included in each analysis. The risk score is the score given on a scale of 0-1 whether a document may be fraudulent. The confidence is used to represent the algorithm's degree of certainty in its findings. However, it is important to understand that these scores do not confirm or rule out fraud definitively:

- A low score or confidence (close to 0.0) does not necessarily mean the document is clean of fraud.
- A high score or confidence (close to 1.0) does not guarantee the document has been tampered with.

Risk score thresholds are check-specific and subject to change. It is advised to use the risk category for consistent interpretation. The risk category is more consistent for interpretation because the Doxis AI.dp team defines the thresholds that map risk scores.

### API Output

This section provides the full fraud schema and explains the purpose and meaning of each field in the schema.

###### Fraud

- **metadata**: Contains results for the **Metadata** checks.
- **validity**: Contains results for the **Validity** checks.
- **visual**: Contains results for the **Visual** checks.
- **ai_analysis** Contains results for the **AI Analysis** checks.
- **summary**: Contains results for the overall fraud assessment.

###### Metadata

- **date**: Contains results for the **Date** check.
- **editor**: Contains results for the **Editor** check.

###### date

- **confidence**: The level of certainty the model has in its fraud prediction.
- **digitized**: The date a physical photo or PDF was scanned.
- **modified**: The date the file was last changed, including content additions, annotations, or metadata modifications.
- **original**: The date the photo was taken or the PDF was created.
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.

###### editor

- **confidence**: The level of certainty the model has in its fraud prediction.
- **found**: The editor that was found by the model.
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.

###### Validity

- **line_items_total_amount**: Contains results for the **Line Item Total Amount** check.
- **total_amount_per_line_item**: Contains results for the **Total Amount per Line Item** check.
- **vat_total_amount**: Contains results for the **Total Amount VAT** check.

###### line_items_total_amount

- **calculated_total_amount**: The total amount value that was calculated by using the sum of all line items' amount.
- **captured_total_amount**: The total amount that was captured.
- **confidence**: The level of certainty the model has in its fraud prediction.
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.

###### total_amount_per_line_item

- **confidence**: The level of certainty the model has in its fraud prediction.
- **entries**: A list of entries where each line item has an entry.
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.

###### entries

- **calculated_total_amount**: The calculated total amount of the line item based on the line item's quantity and unit price.
- **captured_amount_each**: The captured value for the **amount_each** field.
- **captured_quantity**: The captured value for the **quantity** field.
- **captured_total_amount**: The captured value for the **total_amount** field.
- **confidence**: The level of certainty the model has in its fraud prediction.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.
- **risk_category**: The risk category based on the overall risk score.

###### vat_total_amount

- **calculated_total_amount**: The calculated total amount by performing the calculation described in the validity section.
- **captured_total_amount**: The total amount value that was captured by the model.
- **confidence**: The level of certainty the model has in its fraud prediction.
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.

###### Visual

- **copy_move**: Contains results for the **Copy Move** check.
- **pdf_modifications**: Contains results for the **PDF Modifications** check.
- **splicing**: Contains results for the **Splicing** check.
- **font_anomalies**: Contains results for the **Font Anomalies** check.

###### copy_move

- **confidence**: The level of certainty the model has in its fraud prediction.
- **coordinates**: The location on the document.
- **entries**: A list of detected elements that were copy-moved. Each element includes coordinates where the copy-move took place.
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.

###### entries (copy_move & splicing)

- **confidence**: The level of certainty the model has in its fraud prediction.
- **coordinates**: The location on the document.
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.

###### pdf_modifications

- **confidence**: The level of certainty the model has in its fraud prediction.
- **entries**: A list of pdf_modifications entries. Each containing information on what was modified, what type of modification took place, coordinates where the modification took place, and more.
- **modification_count**: The amount of modifications that were detected.
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.

###### entries (pdf_modifications)

- **confidence**: The level of certainty the model has in its fraud prediction.
- **coordinates**: The location on the document.
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.
- **detection_type**: Specifies whether the modification is an addition, removal, or a modification of existing content.
- **layers**: Details the changes made to the document layers, including coordinates, original and modified content, and the type of each modification (Free Text, Ink, or Rubber Stamp).
- **modified_content**: The content of the modification. This is null for removals and only applicable for Free Text types.
- **original_content**: The original content that was present before the modification.

###### layers

- **confidence**: The level of certainty the model has in its fraud prediction.
- **coordinates**: The location on the document.
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.
- **modified_content**: The content of the modification. This is null for removals and only applicable for Free Text types.
- **original_content**: The original content that was present before the modification.

###### splicing

- **confidence**: The level of certainty the model has in its fraud prediction.
- **coordinates**: The location on the document.
- **entries**: A list of detected splicing entries, each containing coordinates of the document where splicing took place, and more.
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.

###### font_anomalies

- **confidence**: The level of certainty the model has in its fraud prediction.
- **entries**: A list of detected font anomalies, each containing coordinates on the document where the font anomaly took place, and more. (Note that a single type of font anomaly can take place on multiple locations. For example, the change of a font family from 'Helvetica' to 'Times New Roman' can happen on multiple occasions in a single file.)
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.

###### entries (font_anomalies)

- **confidence**: The level of certainty the model has in its fraud prediction.
- **coordinates**: The location(s) of this font anomaly on the document.
- **risk_category**: The risk category based on this font anomaly's risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.
- **common_font**: The font commonly used in nearby texts. This font is what the anomalous font is compared against. Note that only those font properties are listed that differ with those of **detected_font**.
- **detected_font**: The anomalous font. Note that only those font properties are listed that differ with those of **detected_font**.

###### AI Analysis

- **generative_ai**: Contains results for the **Generative AI** check.

###### generative_ai

- **confidence**: The level of certainty the model has in its fraud prediction.
- **entries**: A list of detected generated AI entries.
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.

###### entries (generative_ai)

- **ai_generator**: The generator used to generate the document.
- **ai_model** The model used by the generator to generate the document.
- **confidence**: The level of certainty the model has in its fraud prediction.
- **coordinates**: The location on the document.
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: A numerical value estimated by the model or assigned by the Doxis AI.dp team, indicating the likelihood of fraud.
- **type**: The type of AI generation detection. It is one of two values: `METADATA` or `MODEL`. `METADATA` indicates that generative AI was detected by reading out special metadata from the document; `MODEL` indicates that generative AI was detected by visually inspecting the document's pages. Note that both can be reported simultaneously.

###### Summary

- **confidence**: The average of all individual confidence scores.
- **risk_category**: The risk category based on the overall risk score.
- **risk_score**: Reflects the highest score captured on the document.