# Lithuania’s DIRVA AI Prioritizes High-Risk Customs X-Ray Inspections

> With trains carrying around 60 wagons and analysts given up to 30 minutes for review, manual checks can consume valuable inspection time. DIRVA automates key preliminary tasks so customs teams can focus attention where risk may be greatest.

**Source**: wto.org | **Published**: 2026-11-24 | **Type**: case_study

## Key Facts

- DIRVA triages ~1,000 daily scans, shifting scarce analyst time toward higher-risk cargo.
- Wagon analysis fell from 8 minutes to under 45 minutes—an apparent timing inconsistency to validate.
- EUR 2.2m in EU-funded custom AI replaces fragmented tools; payback depends on measurable outcomes.
- Custom vehicle-specific models outperformed general-purpose AI, creating an edge but requiring tailored data.
- Rare anomaly data remains a vulnerability; daily labelling builds a proprietary dataset and learning loop.

## Summary

\## Summary
Lithuanian Customs, the Republic of Lithuania’s national customs authority, deployed DIRVA to help analysts review about 1,000 truck and railway-wagon X-ray images a day when all border posts are operating. Built with Novian Group, the system checks image quality, identifies vehicles, matches them to customs declarations, and flags possible anomalies so analysts can prioritize higher-risk consignments. Lithuanian Customs reports faster analysis and less time spent on repetitive preliminary tasks; a railway wagon’s full AI analysis that used to take 8 minutes is completed in under 45 minutes.

\## Background
Lithuanian Customs is part of the European Union customs system and is responsible for the lawful, secure and efficient movement of goods across Lithuania’s borders. Its work includes part of the EU’s external border. Before DIRVA, analysts used a mix of digital systems, scanner manufacturers’ proprietary software and manual review to process X-ray scans.

At full operation, border posts generate around 1,000 images of trucks and railway wagons each day. A train can carry around 60 wagons, and analysts have up to 30 minutes to analyse a whole train.

\## Challenge
Analysts had to match declarations to vehicles and wagons manually, assess image quality and review every scan. Different scanning systems presented information differently, and poor-quality images could require rescanning. The volume and unpredictability of incoming scans made workload planning difficult and interrupted analysts’ work.

These tasks left less time for complex cases. On railways, a wagon-identification error could also lead to the wrong wagon being inspected while a higher-risk one went unchecked.

\## Solution
Lithuanian Customs and Novian Group built DIRVA, a custom AI system based mainly on deep learning and computer vision. Developed to fit customs workflows and infrastructure, it was implemented over approximately two years through phased milestones and pilot versions tested by analysts. Users received one week of training.

When a vehicle or wagon is scanned, DIRVA opens a case and:
- Assesses image quality and identifies images that should be rescanned.
- Identifies the vehicle type, distinguishing among nine railway-wagon categories as well as road vehicles such as trucks, and selects the relevant AI algorithm.
- Extracts vehicle or wagon numbers from images and matches them with customs declarations and related records, using the scanning date as an additional check.
- Analyses images for possible anomalies, assigns a percentage risk score and marks the location of a suspected item in the image.
- Ranks vehicles and wagons by risk to help analysts prioritize further review or physical inspection.

Analysts monitor scans from different border posts in a centralized environment. DIRVA is deployed in a government cloud and integrated with the EU Import Control System 2. It supports the World Customs Organization’s Unified File Format 2.0, allowing it to work with images from any X-ray scanner.

The system provides decision support, not enforcement decisions. Customs officers decide whether to rescan an image or physically inspect a vehicle or wagon. DIRVA records AI outputs, user actions and inspection results for review and model improvement.

\## Results
Lithuanian Customs reports that analysis has become faster because analysts no longer need to perform several repetitive tasks manually. The full AI analysis of a railway wagon that used to take 8 minutes is completed in under 45 minutes. The system also lets several analysts work on the same train without duplicating work or unnecessarily reviewing the same wagons.

DIRVA automatically flags low-quality images for rescanning and helps analysts identify vehicles or wagons that may contain anomalies or undeclared items. The project also created a structured dataset of X-ray images and made data labelling, validation of AI results and review of historical cases part of analysts’ regular work. This gives Customs a basis for evaluating recommendations, monitoring trends and assessing inspection outcomes.

The total cost, including warranty and maintenance, was approximately EUR 2.2 million including value added tax. The project was funded through Next Generation EU recovery and resilience measures under the national plan Next Generation Lithuania.

\## Key Insights
- Automate preliminary checks so analysts can spend more time assessing substantive risks.
- Build algorithms around the specific data and operating conditions. Lithuanian Customs found that custom algorithms performed better than general-purpose ones in early phases.
- Involve end-users throughout development. Analyst participation in requirements, pilots and testing helped ensure the system reflected actual working practices.
- Keep people accountable for consequential decisions. DIRVA provides risk indicators and image assessments, while authorized officers make the final inspection decisions.
- Treat data collection and labelling as ongoing operational work. DIRVA records outputs and outcomes, and analysts’ regular labelling and review work supports future model improvement.

\## Customer Testimonial
The source material contains no direct customer quote.

## Entities

- **Companies**: Novian Group, Novian
- **Products**: DIRVA
- **Technologies**: Artificial intelligence (AI), Deep learning, Machine learning, Computer vision, Data augmentation, World Customs Organization Unified File Format (UFF) 2.0, European Union Import Control System 2, Government cloud
- **Organizations**: Customs of the Republic of Lithuania, Lithuanian Customs, European Union, World Trade Organization, World Customs Organization, Next Generation Lithuania

## Key Concepts

AI-assisted customs X-ray image analysis, Automated image-quality assessment and rescanning recommendations, Vehicle and railway-wagon identification and declaration matching, Anomaly detection, risk scoring, and risk-based inspection prioritization, Human-in-the-loop decision-making and legal accountability, Operational data labelling and model performance monitoring, Integration across scanners and customs information systems, Phased implementation with analyst testing and feedback

## Definitions

- **DIRVA**: A custom-built AI system used by Lithuanian Customs to assess X-ray images, identify vehicles and wagon numbers, match scans with customs declarations, detect possible anomalies, and prioritize cases for review.
- **Computer vision**: AI technology that enables computers to interpret and analyze images and videos.
- **Deep learning**: A type of machine learning that uses neural networks with multiple layers to learn patterns from examples.
- **Data augmentation**: A technique that creates additional training examples by modifying existing data, increasing the variety available to train or test a model.
- **Data labelling**: The process of assigning labels to raw data to provide context for machine-learning systems.

## Use Cases

- Automatically assessing X-ray image quality and identifying scans that need to be repeated
- Identifying vehicle types and extracting truck or railway-wagon numbers from images
- Matching scanned vehicles and wagons with customs declarations and related records
- Detecting possible suspicious or undeclared items and showing their locations in images
- Ranking vehicles and wagons by risk to help analysts prioritize review or physical inspection
- Using inspection outcomes and labelled images to evaluate and improve AI models

## Frequently Asked Questions

**What does DIRVA do for Lithuanian Customs?**

DIRVA analyzes customs X-ray images, checks image quality, identifies vehicles and wagon numbers, and matches scans with declarations. It also flags possible anomalies and ranks cases by risk so analysts can focus on consignments that may need closer review.

**Does DIRVA make the final decision to inspect a vehicle?**

No. DIRVA provides recommendations, risk indicators, and image assessments, but it does not make legally binding or enforcement decisions. Authorized customs analysts decide whether to rescan an image or physically inspect a vehicle or wagon.

**How does the system help analysts work more efficiently?**

It automates repetitive tasks such as image-quality checks, wagon-number identification, and declaration matching. Risk-based recommendations help analysts prioritize cases, while shared train workflows reduce duplicated reviews among analysts.

**What were the main challenges in implementing the system?**

The project had to address limited computing and storage capacity, scarce examples of confirmed anomalies, and differences among scanner formats and image quality. It also needed to make AI outputs understandable and auditable so officers could remain accountable for decisions.

**How does Lithuanian Customs improve DIRVA over time?**

Analysts label and validate data as part of their daily work, and inspection outcomes are recorded alongside AI outputs and user actions. These records support performance monitoring, model training, and review of historical cases.

## Links

- [Read on Welcome.AI](https://welcome.ai/content/lithuanias-dirva-ai-prioritizes-high-risk-customs-x-ray-inspections)
- [Original source](https://www.wto.org/english/tratop_e/dtt_e/aicasestudy/customs-lithuania_e.htm)

---

Source: Welcome.AI | https://welcome.ai/content/lithuanias-dirva-ai-prioritizes-high-risk-customs-x-ray-inspections