Module 5/10 · Weeks 7–8 · 14 h

Warehouse-management-system integration and mission evaluation

UAT 459 UAS, Internet of Things and Smart Warehouse Systems

About 100 minDraft, awaiting reviewLast updated 2 October 2026

Lesson

By the end of this module you will be able to

  1. Design the data flow between the warehouse management system (WMS) and the drone system, from count task creation to human-approved adjustment
  2. Design count-result messages and reconcile drone results with WMS records at pallet level
  3. Evaluate mission efficiency with indicators, an acceptance test with a confidence interval, and net present value
  4. Evaluate mission safety through hazard identification and a risk matrix before and after controls

Prerequisites: Modules 1 to 4 · UAT 106 Statistics and Data Analytics for Technology

Why this matters

The best flight results are worthless if they stay on the drone operator’s laptop. They must reach the WMS in a form it can use, and pass through gates that stop machine errors from changing the company’s stock figures. Meanwhile, warehouse management will ask two questions before investing for real: “does it pay?” and “is it safe enough to fly in a warehouse where people work?” Both must be answered with numbers and evidence, not feelings.

This module covers the last two topics of the course description: integration with the warehouse management system, and evaluation of mission safety and efficiency.

Data flow between the WMS and the drone system

The ISA-95 standard (IEC 62264) divides enterprise systems into levels (International Society of Automation, n.d.). The WMS sits at level 3, operations management, while the drone, cameras and control station sit at levels 1 and 2. Drone data starts to have business value when it reaches level 3, but on the way it must pass through clear steps, as Figure 1 shows.

Flow diagram. A yellow box, WMS creates cycle-count tasks, leads to a purple box, plan sorties and lock aisles, then a blue box, drones scan barcodes and tags, then a blue box, results per location plus image, then down to a purple box, reconcile with WMS records. That splits two ways: down to a green box, match: close the count, or to an orange box, mismatch or unread: recount task, which leads down to an orange box, staff recount and supervisor approves, then to a yellow box, adjust WMS with reason code, which loops back to the first box
Figure 1 Data flow between the warehouse management system and the drone system

Five design principles matter most:

  1. The WMS alone owns the stock figures. The drone never adjusts stock; it only sends observations. Adjustments need a staff recount, supervisor approval and a reason code, such as put-away error or short receipt
  2. Blind counting. The drone system receives only the list of locations to count and need not know which pallet each slot should hold. Comparison happens in a reconciliation service on the WMS side, so expectations cannot bias how images are interpreted
  3. Every message has a unique ID. If the network glitches and a message is resent, the receiver must end up in the same state as if it arrived once (idempotent)
  4. Times carry a time zone, such as +07:00, and every device clock is synchronised
  5. Keep an audit trail of who changed what, when, and on what evidence, because stock figures are accounting data

Bartholdi and Hackman (2019) list cycle counting as a high-end WMS feature. In practice many WMSs already have a counting module, so the drone system should act as one more “counter” for that module rather than a parallel system. A result for one location is sent as a message like this:

{
  "msg_id": "D1-20261001-000812",
  "task_id": "CC-20261001-A03",
  "location": "A03-27-5-2",
  "status": "READ",
  "sscc": "088501234567890121",
  "confidence": 0.97,
  "image": "cc/2026-10-01/D1/000812.jpg",
  "drone": "D1",
  "time": "2026-10-01T23:14:05+07:00"
}

The status field takes one of three values: READ, EMPTY or UNREAD, and as module 2 stressed, the last two must always be kept apart. How messages travel over the warehouse network, with MQTT, IoT platforms and databases, is covered in detail in modules 6–10 of this course.

Reconciling drone results with WMS records

Reconciliation compares what the drone saw with what the WMS recorded, location by location. There are five outcomes: match, unread (re-fly or staff check), missing (the WMS has a pallet but the slot is empty), misplaced (the WMS records this pallet elsewhere) and unknown (a pallet the WMS does not know). Pallet-level accuracy uses only the locations that were read, , because an unread location is not evidence of an error.

Example 1 Reconciling ten locations in aisle A03

The locations were chosen to show every outcome, so the proportions are not typical. SSCCs are shown by their last four digits (assumed values).

# reconcile drone observations with WMS records at pallet level (SSCC shown by its last 4 digits, assumed)
wms = {"A03-27-5-1": "0121", "A03-27-5-2": "0138", "A03-29-5-1": "0145", "A03-29-5-2": None,
       "A03-31-5-1": "0152", "A03-31-5-2": "0169", "A03-33-5-1": "0176", "A03-33-5-2": "0183",
       "A03-35-5-1": "0190", "A03-35-5-2": None}
drone = {"A03-27-5-1": "0121", "A03-27-5-2": "0138", "A03-29-5-1": "EMPTY", "A03-29-5-2": "EMPTY",
         "A03-31-5-1": "0169", "A03-31-5-2": "0152", "A03-33-5-1": "UNREAD", "A03-33-5-2": "0183",
         "A03-35-5-1": "0207", "A03-35-5-2": "0145"}
home = {s: loc for loc, s in wms.items() if s}          # where the WMS thinks each pallet is
seen = {s: loc for loc, s in drone.items() if s not in ("EMPTY", "UNREAD")}
tasks, match, read = [], 0, 0
for loc in wms:
    exp, obs = wms[loc], drone[loc]
    if obs == "UNREAD":
        tasks.append((loc, "re-scan")); continue
    read += 1
    if obs == (exp or "EMPTY"):
        match += 1
    elif obs == "EMPTY":
        where = seen.get(exp)
        tasks.append((loc, f"pallet {exp} missing" + (f", seen at {where}" if where else "")))
    elif obs in home:
        tasks.append((loc, f"pallet {obs} belongs at {home[obs]}: move or update"))
    else:
        tasks.append((loc, f"pallet {obs} unknown to WMS, expected {exp}: check receiving"))
print(f"matched {match}/{read} read locations = {match / read * 100:.1f} %")
for loc, what in tasks:
    print(loc, what)
matched 4/9 read locations = 44.4 %
A03-29-5-1 pallet 0145 missing, seen at A03-35-5-2
A03-31-5-1 pallet 0169 belongs at A03-31-5-2: move or update
A03-31-5-2 pallet 0152 belongs at A03-31-5-1: move or update
A03-33-5-1 re-scan
A03-35-5-1 pallet 0207 unknown to WMS, expected 0190: check receiving
A03-35-5-2 pallet 0145 belongs at A03-29-5-1: move or update

The system does more than say “mismatch”; it tells a story. Pallet 0145 is not lost but stored at 35-5-2. Pallets 0152 and 0169 have swapped slots, which usually happens when someone scans the wrong beam label at put-away. Pallet 0207, unknown to the WMS, suggests goods received without being recorded. Each line goes to staff to check before any adjustment, and location 33-5-1 joins the re-flight queue from module 4.

Evaluating mission efficiency

The efficiency of a counting mission can be measured from several angles; choose indicators that answer the users’ real questions:

  • Coverage: the share of planned locations actually scanned that night
  • First-pass read rate and accuracy against a human check
  • Locations per flight hour and time to finish the night’s work
  • Recount tasks per 1,000 locations, the workload handed back to people
  • IRA trend and staff-hours saved

Before going live, run an acceptance test: let the drone count a set of locations and have people check them carefully as ground truth. Measured accuracy is an estimate from a sample, so it must be reported with a confidence interval. For proportions the Wilson (1927) interval is widely used because it behaves well even near 1. A strict rule is to accept only when the lower bound of the interval is above the target.

Example 2 Acceptance test before going live

The trial counts 1,200 locations in 0.62 flight hours, and the drone agrees with the human check at 1,181 locations. The target is at least 97% accuracy (assumed values).

import math
# acceptance test of a trial on 1,200 locations: drone result vs a careful manual check (assumed)
n, correct, target = 1200, 1181, 0.97
flight_h, locations = 0.62, 1200
p = correct / n
z = 1.96                                          # 95 % two-sided
centre = (p + z * z / (2 * n)) / (1 + z * z / n)
half = z / (1 + z * z / n) * math.sqrt(p * (1 - p) / n + z * z / (4 * n * n))
lo, hi = centre - half, centre + half
print(f"accuracy {p * 100:.2f} %, Wilson 95 % interval {lo * 100:.2f} to {hi * 100:.2f} %")
print("accept" if lo >= target else "not proven yet", f"(target {target:.0%})")
print(f"throughput {locations / flight_h:.0f} locations per flight hour")
accuracy 98.42 %, Wilson 95 % interval 97.54 to 98.98 %
accept (target 97%)
throughput 1935 locations per flight hour

Accuracy is 98.42% and the lower bound 97.54% is above target, so the system is accepted. Had the trial covered only 200 locations with 197 correct (98.5%), the lower bound would drop to about 95.7%, below target, so sample size matters as much as the measured value. Throughput of 1,935 locations per flight hour is lower than module 4’s figure of one aisle, 560 locations, in 866 seconds, about 2,330 per hour, because the trial includes re-flights.

Economic efficiency is evaluated with life-cycle cost. The NIST handbook (Kneifel & Webb, 2025) explains comparing alternatives by present value: future payments and savings are converted to today’s value with a discount rate. Net present value is , where is the investment, the saving in year and the discount rate. A positive NPV means the investment beats the current way of working.

Example 3 Comparing manual counting with the drone system

The current cost uses the workload from module 1. If the auditors accept cycle-count results instead of an annual stocktake, the company saves the overtime and late shipments of the yearly shutdown, and more accurate records cut emergency orders and penalties from customers’ stopped lines. The drone system costs 2.4 million baht, lasts 5 years, and the discount rate is 6% (all values assumed).

# yearly cost of counting the upper levels: manual today vs the drone system (THB, all assumed)
manual = {"count staff 732 h x 250": 732 * 250, "order picker 366 h x 400": 366 * 400,
          "annual stocktake, overtime": 160_000, "annual stocktake, late shipments": 300_000,
          "emergency orders and line-stop claims": 900_000}
drone = {"software licence": 240_000, "maintenance and batteries": 150_000,
         "night technician (half time)": 210_000, "staff recounts 200 h x 250": 200 * 250,
         "emergency orders and line-stop claims": 300_000}
CAPEX, YEARS, RATE = 2_400_000, 5, 0.06       # drones, docks, WMS integration; life; discount rate
pv = sum(1 / (1 + RATE) ** t for t in range(1, YEARS + 1))     # present value of 1 THB a year
saving = sum(manual.values()) - sum(drone.values())
print(f"manual {sum(manual.values()):,} THB/yr, drone {sum(drone.values()):,} THB/yr, saving {saving:,}")
print(f"simple payback {CAPEX / saving:.1f} years, NPV {YEARS} yr at {RATE:.0%}: {saving * pv - CAPEX:,.0f} THB")
for claims in (450_000, 600_000):             # sensitivity: what if records improve less?
    s = saving + drone["emergency orders and line-stop claims"] - claims
    print(f"claims fall only to {claims:,}: saving {s:,}, NPV {s * pv - CAPEX:,.0f} THB")
manual 1,689,400 THB/yr, drone 950,000 THB/yr, saving 739,400
simple payback 3.2 years, NPV 5 yr at 6%: 714,622 THB
claims fall only to 450,000: saving 589,400, NPV 82,767 THB
claims fall only to 600,000: saving 439,400, NPV -549,087 THB

The base case pays back in 3.2 years with a positive NPV of 714,622 baht, but the sensitivity analysis tells a more important truth. If emergency-order costs fall only to 600,000 baht instead of 300,000, NPV turns negative. The project’s value rests mainly on one assumption: how much more accurate the records really become. Labour savings alone do not pay for it, so the team should record emergency-order costs before and after the trial to test that assumption.

Line chart of cumulative present value in million baht from year 0 to year 5. All lines start at minus 2.4 million. The green base case crosses zero between years 3 and 4 and ends at plus 0.71. The yellow line with claims falling only to 450k ends at plus 0.08, and the pink line with claims at 600k ends at minus 0.55
Figure 2 Cumulative present value of the drone system under three assumptions

Evaluating mission safety

A warehouse drone flies in its employees’ workplace. Section 6 of Thailand’s Occupational Safety, Health and Environment Act B.E. 2554 (2011) obliges the employer to provide and keep the establishment and employees in safe working conditions and environment (Occupational Safety, Health and Environment Act B.E. 2554, 2011). Camera images that capture staff are personal data under the Personal Data Protection Act B.E. 2562 (2019), so the purpose must be stated, collection kept to what is necessary, and a retention period set. As for drone registration and other requirements of the CAAT notification in force since 17 May 2026 (Civil Aviation Authority of Thailand, 2026), the team should confirm with CAAT which apply to flights inside the company’s closed building rather than assume.

The ISO 31000 risk management process (International Organization for Standardization, 2018) runs through risk identification, analysis, evaluation and treatment, followed by monitoring and review. A common way to analyse risk is to score likelihood () and severity () from 1 to 5 and compute the risk score . The team in this case sets 15 or more as high and unacceptable, 8 to 14 as medium needing controls, and 7 or less as low. These bands are the team’s own; every organisation must define its own scales.

Example 4 Risk matrix before and after controls

The safety team, the warehouse supervisor and staff representatives identify seven hazards and score them before and after controls (scores assumed).

# risk score = likelihood x severity (1 to 5 each) before and after controls (team ratings, assumed)
risks = [  # hazard, (L, S) before, (L, S) after, main controls
    ("drone hits a person in the aisle", (3, 5), (1, 5), "aisle lock from WMS, presence sensor, 1 m/s"),
    ("drone falls onto stock or a person", (3, 4), (2, 3), "aisle locked, land-in-place, inspections"),
    ("battery fire in the charging area", (2, 5), (1, 5), "fire-rated cabinet, no stock within 3 m"),
    ("contact with sprinklers or lights", (3, 3), (1, 3), "ceiling geofence 1 m below sprinklers"),
    ("drone strikes a rack upright", (3, 3), (2, 3), "collision prevention, 0.9 m clearance"),
    ("rotor wash blows film or cartons", (4, 2), (2, 2), "survey loose items, stand-off distance"),
    ("images capture staff", (3, 2), (1, 2), "night flights, blur faces, 30-day retention"),
]
def band(s):
    return "HIGH" if s >= 15 else "MEDIUM" if s >= 8 else "LOW"
for h, (l0, s0), (l1, s1), c in risks:
    print(f"{h:<36} {l0 * s0:2d} {band(l0 * s0):<6} -> {l1 * s1:2d} {band(l1 * s1)}")
drone hits a person in the aisle     15 HIGH   ->  5 LOW
drone falls onto stock or a person   12 MEDIUM ->  6 LOW
battery fire in the charging area    10 MEDIUM ->  5 LOW
contact with sprinklers or lights     9 MEDIUM ->  3 LOW
drone strikes a rack upright          9 MEDIUM ->  6 LOW
rotor wash blows film or cartons      8 MEDIUM ->  4 LOW
images capture staff                  6 LOW    ->  2 LOW

The only risk unacceptable at the start is the drone hitting a person. Aisle locking from the WMS, presence sensors and a speed limit reduce its likelihood from 3 to 1. Note that most controls reduce likelihood, not severity: hazards 1 and 3 still have severity 5. If a control fails, for example a broken presence sensor, the outcome is as serious as ever, so check regularly that controls actually work rather than lowering scores on paper and stopping there.

Two five-by-five risk matrices with likelihood on the vertical axis and severity on the horizontal axis; green cells are low, yellow medium and pink high. In the left matrix, before controls, hazard 1 sits in a pink cell at likelihood 3 severity 5, hazards 2 to 6 in yellow cells, and hazard 7 in a green cell. In the right matrix, after controls, every hazard is in a green cell, with hazards 1 and 3 at likelihood 1 severity 5
Figure 3 Seven hazards on the risk matrix before and after controls

Mission safety must also be measured continuously after go-live. Common indicators include incidents and near misses per 100 flight hours, the number of times collision prevention had to stop a drone, the number of approaches to aisles that were not locked, and the time taken to close each report. A rise in reports in the early months usually means people are willing to report, not that safety is getting worse.

Module lab

Lab: an end-to-end mock counting system and evaluation report

  1. Design the JSON count-result message and the data flow between a mock WMS and the drone system, stating which steps need human approval and how the audit trail is kept
  2. Build mock WMS data for at least 100 locations and count results from the module 3 mock rack, run the reconciliation code of Example 1, and check every recount task by hand
  3. Compute accuracy with a Wilson confidence interval as in Example 2, and cost and NPV as in Example 3, using figures the group has researched with sources, and run a sensitivity analysis on at least two variables
  4. Build the risk matrix for the group’s mission as in Example 4 with the instructor or someone role-playing the warehouse supervisor, then summarise everything in a report to warehouse management of no more than five pages

Common mistakes

Watch out

  • Letting the drone adjust WMS stock directly, with no staff recount, no reason code and no audit trail
  • Counting unread locations as errors, which understates IRA, or as matches, which overstates it
  • Reporting trial accuracy without a confidence interval, or deciding from too small a sample
  • Judging value from labour cost alone, or skipping sensitivity analysis on the key assumption
  • Lowering risk scores on paper without checking that the controls work

Summary

  • The WMS owns the stock figures; the drone sends blind-count observations, every message has a unique ID and a time with time zone, and adjustments need human approval and a reason code
  • Reconciliation sorts results into match, unread, missing, misplaced and unknown, and computes from the locations read
  • Efficiency is measured by coverage, read rate, accuracy with a Wilson confidence interval, throughput, and NPV with sensitivity analysis
  • Safety is evaluated by identifying hazards and scoring before and after controls, within the employer’s duties under workplace-safety and personal-data law

Check your understanding

  1. One night 470 locations are read and 446 match the WMS. What is the pallet-level accuracy?
  2. A trial of 500 locations has 490 correct, and the lower bound of the 95% Wilson interval is about 96.4%. The target is 97%. Should the system be accepted?
  3. An investment of 1.5 million baht saves 450,000 baht a year for 4 years at a 6% discount rate (sum of present-value factors 3.4651). What is the NPV?
  4. A hazard has likelihood 4 and severity 3; after controls the likelihood is 2. What are the scores before and after, and in which band under the team’s scale?
  5. Why should a drone not adjust WMS stock directly?
Answers
  1. Not yet. The measured 98% is above target, but the lower bound of 96.4% is below 97%, so it is not proven; extend the trial to a larger sample
  2. baht, slightly positive
  3. Before , medium; after , low
  4. Drone results can be wrong through misreads, wrong slots or unread locations, and stock figures are accounting data that drive purchasing, so a person must confirm, a supervisor approve, a reason code be entered and an audit trail kept

Key formulas

Pallet-level accuracy
Wilson confidence interval
Net present value
Risk score

Key references

  1. International Society of Automation. ISA-95 standard: Enterprise-control system integration (ANSI/ISA-95, IEC 62264). link
  2. Bartholdi, J. J., III, & Hackman, S. T. (2019). Warehouse & distribution science (Release 0.98.1). The Supply Chain & Logistics Institute, Georgia Institute of Technology. link
  3. Wilson, E. B. (1927). Probable inference, the law of succession, and statistical inference. Journal of the American Statistical Association, 22(158), 209–212. link
  4. Kneifel, J., & Webb, D. (2025). Life cycle costing manual for the Federal Energy Management Program (NIST Handbook 135, 2025 ed.). National Institute of Standards and Technology. link
  5. International Organization for Standardization. (2018). Risk management – Guidelines (ISO 31000:2018). link
  6. พระราชบัญญัติความปลอดภัย อาชีวอนามัย และสภาพแวดล้อมในการทำงาน พ.ศ. 2554. (2554). ราชกิจจานุเบกษา, 128(4 ก). link
  7. พระราชบัญญัติคุ้มครองข้อมูลส่วนบุคคล พ.ศ. 2562. ราชกิจจานุเบกษา, 136(69 ก), 52–95. link
  8. Health and Safety Executive. (2007). Warehousing and storage: A guide to health and safety (HSG76, 2nd ed.). HSE Books. link
  9. สำนักงานการบินพลเรือนแห่งประเทศไทย. (2569). ประกาศ กพท. เรื่อง หลักเกณฑ์และวิธีการในการอนุญาตให้ผู้บังคับหรือปล่อยอากาศยานซึ่งไม่มีนักบิน ประเภทอากาศยานที่ควบคุมการบินจากภายนอก ที่มีน้ำหนักไม่เกิน 25 กิโลกรัม ปฏิบัติแตกต่างไปจากเงื่อนไขที่กำหนด พ.ศ. 2569 (มีผล 17 พฤษภาคม 2569). link

Further reading

Study the assigned knowledge units in advance, review media and take the module quiz

In class / field

Lab or field practice from worksheets with a safety checklist

Learning evidence: Checked worksheets and quiz results

Module quiz

This is a formative self-check, not a graded exam

Knowledge domain: Delivery, indoor operations and warehousing · Communications, networks and IoT · Law, safety and risk · Management, innovation and professional practice · Installation, maintenance and testing