Cargo Lens

Cargo Flash · 2020

Internal POC · Cargo Flash Infotech — Product & Design (POC), with an AI/ML engineer and an Android developer

Cargo FlashAir cargoMobilePOC

A handheld mobile app concept that lets warehouse operators photograph unlabelled or damaged air cargo and match it against open irregularity reports.

Overview

Cargo Lens is a stand-alone mobile app for the handheld devices and phones that warehouse operators carry on the floor. It targets one of air cargo's most stubborn problems: unidentified and missing cargo. Standing next to a stray box, the operator photographs its label, or the box itself if there's no label. Cargo Lens reads whatever is left, whether that is a full label, a damaged one or none at all. It then narrows thousands of open irregularity records down to a short list the operator can check, and lets them report the find to the tracing team without leaving the app.

Cargo Lens was an internal proof of concept (POC) at Cargo Flash Infotech in 2020. It never went to a pilot or a production build. I covered both the product and the design side, working alongside an AI/ML engineer and an Android application developer. I owned the Business Requirement Document (BRD), co-authored the Cargo Lens white paper, defined the application logic for each case and designed the wireframes.

App structure: screens and navigation

  1. Log in

    After login, the app opens straight on the capture screen

  2. Tap to upload or scan

    Capture by barcode, image or text; several images can be taken before scanning

  3. Then: Scan
  4. Scanning

    Reads the label, or the box itself when there is no label

  5. Review recognised details

    AWB, pieces, origin and destination, weight, shipper, consignee, MAWB and HAWB, all editable; Exit or Proceed

  6. Then: Proceed
  7. Label intact (case 1)

    1. Shipment details

      The full AWB record from the WMS; Save, Exit or Scan new

      Airline not on Cargo Lens · an alert names the airline from the AWB prefix

    ↩ Returns to Tap to upload or scan, via Scan new

  8. Label damaged or missing (cases 2 and 3)

    1. Possible AWBs

      Candidates shaded by whether an irregularity has been raised; Export list or Add filter

    2. Then: Add filter
    3. Filters

      Handling labels, handwritten information, gross weight and acceptance timestamps; searches irregularity records by default, or the whole database

    4. Then: Apply
    5. Short list

      The drilled-down list; Save list, Exit or Scan new

    ↩ Returns to Tap to upload or scan, via Scan new

  9. Then: From any result screen
  10. Actions menu

    Report to Tracers (raises an FDCA and tags the warehouse location), Export as PDF, JSON or PNG, or Mail

The handheld app's information architecture, drawn from the wireframes, the BRD and the application logic.

The problem: cargo nobody can name

When a box loses its Air Waybill (AWB) label, or never had a readable one, nobody can say whose it is. Everyone in the chain pays for that:

  • Warehouse space and demurrage. Unidentified cargo sits in the warehouse, and after a set time that space becomes chargeable.
  • Claims and insurance. Missing cargo leads to loss claims, and a worse claims record raises insurance costs.
  • Time and people. Warehouse operators and logistics providers spend extra effort tracing each piece, and responsibility for clearing it still sits with the logistics provider.
  • Customer trust. Every irregularity is another unhappy client, for airlines and ground handling agents (GHAs) alike.

How it worked before

Once someone found a stray box, the team searched their own application and checked internally whether anyone had raised an irregularity for it. If no one had, they ran a network trace with the other airlines sharing the warehouse. Replies from other airlines came back late and not in step with the trace, which made the whole process slow.

The root issue was simple: there was no way to identify the cargo from the cargo itself.

Who it was for

The BRD named the internal users as GHAs, cargo terminal operators (CTOs), warehouse handlers and the AI/ML team. There were no external users.

The people it was designed around are the warehouse operators and handlers on the floor. The BRD specified the app as installed on a hand-held device or mobile, and the execution plan called for a cross-platform native app for Android and iOS, with an Android developer on the team. On the handheld, the operator can capture several images before scanning, edit what was recognised, search for matches, and report a found box to the tracers. Behind the app, Cargo Lens would connect to the warehouse management system (WMS) through its API, including the irregularity records.

Framing it as three cases

I split the problem by how much information the box still carries. That split became the backbone of the white paper, the BRD, the application logic and the wireframes.

CaseWhat the handler hasWhat Cargo Lens doesPhase
1. Label intactAn IATA 606-style AWB labelScans it (2D image or QR) and pulls the full record from the WMSPhase 1
2. Label damagedA partly readable labelApplies OCR, predicts the likely AWB sequences and lists possible matchesPhase 1
3. No labelJust the box, perhaps with handling labels or handwritingUses computer vision to read the box's aspect ratio, labels and handwritten text, then filters open irregularitiesPhase 2

Distorted boxes were explicitly out of scope.

Each case had its own system flow. These are the original diagrams.

Case 1: the phone sends the label to the database under a unique ID; the app engine reads it with Vision AI and pulls the shipment from the tracking API, with data logged to storage and Power BI.
Case 2: a possible AWB sequence goes to the tracking API, then through a filter that exchanges data with the warehouse claim/request API before returning to the app engine.
Case 3: the app captures the box; its aspect ratio, labels and handwritten text pass through a filter with the warehouse claim/request API, and the operator can send optional filters from the phone.

Application logic: input, process, output

For each case, I mapped what the user does, what the application does and what the system does behind it:

  • Case 1: The user captures the label. The app applies OCR and recognises the text, the system collects the record from the database, and the app displays it.
  • Case 2: The user captures a distorted label. The app recognises part of the text, and the logic predicts the most likely AWB sequences. The system collects data from the warehouse irregularity database, and the user filters the list by aspect ratio and handling-label codes.
  • Case 3: The user captures the cargo itself. Computer vision calculates the aspect ratio, detects labels and recognises handwritten text. The list is filtered by dimensions, handling-label codes, chargeable weight, nature of goods and handwriting.

Key decisions

Search the irregularity records first. By default, Cargo Lens matches against AWBs that already have an irregularity raised, because that set is smaller and faster to search. A checkbox lets the handler widen the search to the whole database.

Filter in stages. In Cases 2 and 3, the handler drills down through four filters:

  1. Handling labels, which show the type of goods
  2. Handwritten details such as shipper, consignee, pieces, origin, destination and flight number
  3. Gross weight, after weighing the box by hand
  4. Acceptance timestamps from the WMS, so recent shipments are searched first rather than the whole database

The white paper estimated that extracting this extra information could cut the candidates from around 1,500 to around 100.

Always let a person edit. Recognition can be wrong. On every screen, the handler can correct or add details such as weight, shipper, consignee, HAWB and MAWB before moving on.

Close the loop with tracing. Once a box is identified, Report to Tracers alerts the tracing team to raise an FDCA and records the warehouse location where the box was found. Records can also be exported as PDF, JSON or PNG, or sent by email.

Handle other airlines gracefully. If the scanned AWB belongs to an airline that doesn't use Cargo Lens, the app says its data isn't available but still names the airline from the AWB prefix.

Scope to what the team could build. Management asked for 3D modelling of boxes. In the execution plan, I proposed what we could realistically deliver instead: image modelling, similar-image search, word embeddings and text-to-image search.

Wireframes

Every screen was designed for a phone-sized handheld held by an operator next to the cargo. The sketches below are redrawn from my original wireframes, with placeholder lines in place of real shipment data.

First pass

The first wireframes explored a single camera screen with modes for barcode, image and text, plus a manual measurement form for the box's length, breadth and width.

One capture screen with barcode, image and text modes.
The captured box with a quick measurement and labels form.
The full manual form: dimensions, labels, pieces, shipper, consignee, route, MAWB and HAWB.

Label intact (case 1)

The later iteration turned each case into a linear flow: capture, review what was recognised, see the result, then act.

After login, the app opens on ‘Tap to upload or scan’.
The label is scanned while the operator waits.
The operator checks and edits the recognised details, then proceeds.
The full shipment record comes back from the WMS, with Save, Exit or Scan new.
The actions menu: report to tracers, export as PDF, JSON or PNG, or mail.

Label damaged or missing (cases 2 and 3)

When the label can't be read in full, or there is none, the app returns a list of possible matches for the operator to narrow down.

With no label, the operator photographs the box itself.
Possible AWBs, shaded by whether an irregularity has been raised.
Filters by handling labels, handwriting, gross weight and timestamps, across irregularity records or the whole database.
The drilled-down short list, ready to save.

Proposed delivery plan

I also wrote the execution plan for taking the POC further. It proposed a cross-platform app in React Native with a Python/Flask back end, hosted on Azure, with MongoDB and Azure Cognitive Services for vision. The plan set out five phases (0 to 4), each with a working output:

  • a Python base application that accesses and processes the tracking API data
  • the app wireframes
  • a basic app that takes an AWB number as text and returns its shipment details
  • automatic AWB scanning
  • recognition of damaged or blurred labels, and finally scanning a box to extract information from it

The first phase was marked complete when I wrote the plan in April 2020. The later phases assumed a dedicated React Native developer.

Outcome

Cargo Lens stayed an internal POC. It produced a white paper, a BRD, application logic and wireframes, along with a phased proposal running from simple label scanning to full computer-vision matching. It didn't go on to a pilot, a production build or measured results.

Reflections

This was my first time designing for the warehouse floor rather than a desk. The most useful move was the three-case split. Ranking boxes by how much information they still carry gave engineering, the business and the interface one shared model, and it made the phasing obvious: propose the label cases first and leave the hard vision problem for later.