By Luis Lopez, AI transportation consultant, CEO of Go Hub.io Holdings Corp and subsidiaries, and host of the Freight Guru Podcast
Freight class is one of the most common sources of surprise charges in LTL shipping. A shipper books a pallet at one class, the carrier measures it at the terminal, and the invoice comes back higher with a reclass and an inspection fee attached. Most of these corrections trace back to the same root cause: the shipper did not have accurate dimensions, weight, or product descriptions when the bill of lading was created. That is a data problem, and data problems are where AI and machine learning can genuinely help.
How Density-Based Classification Works
LTL carriers in the United States price most freight using the National Motor Freight Classification, commonly called the NMFC. Each commodity is assigned a class, and lower classes generally mean lower rates. Historically, class was determined by several characteristics: density, stowability, handling, and liability. For a large share of commodities, density is the dominant factor.
Density is weight divided by cubic volume, usually expressed in pounds per cubic foot. You measure the shipment’s length, width, and height as tendered, including the pallet and any overhang, calculate the cubic feet, and divide the total weight by that number. Denser freight generally earns a lower class because it uses less trailer space for its weight. For the full calculation, see how to calculate freight density.
The NMFC is maintained and periodically revised, and in recent years the industry has moved more commodities toward density-based classification. Because those rules change, shippers should always confirm the current item and class for their products against the current NMFC rather than relying on an old bill of lading. For background on the classes themselves, see what freight class is and how NMFC classes work.
Why Shippers Get Class Wrong
Classification errors usually come from a handful of predictable causes:
- Product-level data instead of shipment-level data: the item master has carton dimensions, but nobody records the dimensions of the built pallet.
- Ignoring the pallet and overhang: density must be calculated on the shipment as tendered, not the product alone.
- Estimated weights: a default weight from the system rather than a scale reading.
- Vague descriptions: a description that does not match the actual commodity can lead to the wrong NMFC item entirely.
- Copying old bills of lading: a class that was correct for a past shipment may not fit today’s packaging or today’s rules.
- Mixed pallets: different products on one pallet complicate the class decision.
Where AI and Machine Learning Help
Mapping product master data to NMFC items
Most shippers have a product master with SKU descriptions, materials, packaging types, and dimensions. Natural language processing models can read those descriptions and suggest the most likely NMFC item for each product. A description that says “assembled metal shelving unit, boxed” points to a different item than “plastic storage bins, nested.” The model narrows the options; a trained person confirms the final mapping. Once confirmed, the mapping becomes reusable reference data instead of a decision made from scratch on every shipment.
Predicting pallet dimensions and weight
If a shipper knows how many cartons of each SKU go on a pallet and how they are typically stacked, a model can predict the built pallet’s dimensions and weight from the order. That gives a density estimate at order time, before anything is built. Predictions improve when the model is trained against actual measured pallets, which brings us to dimensioners.
Using dimensioning systems as ground truth
Dimensioning systems use cameras or sensors to capture length, width, and height, often paired with a scale for weight. Carriers use them at terminals to check what shippers declare. Shippers and warehouses can use them too. Capturing actual dimensions and weight at the dock gives you shipment-level data and a record you can point to if a reclass is disputed. It also creates a feedback loop: every measured pallet can be compared with the predicted density, and the model learns where its predictions drift.
Flagging likely reclass risk before tender
A model trained on past shipments and past carrier corrections can flag bills of lading that look risky, such as a density close to a class breakpoint, a description that has historically been reclassed, or a weight that looks inconsistent with the dimensions. Flagged shipments can be re-measured or reviewed before pickup. This connects directly to the inspection process described in LTL reweigh, reclass, and inspection explained.
Auditing invoices for corrections
On the back end, AI can compare invoices against tendered class, weight, and dimensions, highlight every correction, and group them by product, facility, or carrier. Patterns tell you where to focus. If most corrections come from one SKU family or one warehouse, that is where your data or your packing process needs work.
The Risks of Getting It Wrong With AI
AI can make classification more consistent, but it can also make the same mistake faster and at scale. A few cautions:
- Garbage in, garbage out: if your product master has outdated dimensions, the model will confidently produce wrong densities. Cleaning these fields is step one; see top 10 data fields to clean before buying AI.
- Rule changes: a model trained on old classifications will keep suggesting old answers after the NMFC changes. Mappings need periodic review against the current classification.
- Descriptions still matter: density does not override the requirement to describe the commodity accurately. Misdescribing freight to reach a lower class is a compliance problem, not an optimization.
- Edge cases: hazardous materials, high-value goods, unusual packaging, and mixed shipments often need human judgment.
As an AI transportation consultant, the first thing I look at is whether a shipper captures actual dimensions and weight for its LTL shipments at all. Without measured data, any classification model is guessing from product specs, and the carrier’s dimensioner will be the one setting your class.
A Practical Starting Plan
- Pull a period of LTL invoices and list every reclass and reweigh correction.
- Identify the products and facilities that generate most of them.
- Clean the product master for those items: accurate descriptions, carton dimensions, and weights.
- Start capturing measured pallet dimensions and weights at the dock.
- Build or adopt a model that maps products to NMFC items and predicts density, with human sign-off on mappings.
- Review corrections monthly and feed them back into the model and the mapping table.
The Bottom Line
Getting LTL class right starts with accurate shipment-level density and an honest product description. AI and machine learning can map product data to NMFC items, predict pallet density, flag risky bills of lading, and audit corrections, but only when they are fed measured data and reviewed by people who know the classification rules. Shippers who treat class as a data discipline see fewer surprise invoices and stronger footing when they do dispute a correction.
For more conversations on freight and AI, subscribe to the Freight Guru Podcast.
About the author: Luis Lopez is a Miami-based AI transportation consultant and logistics entrepreneur, the CEO of Go Hub.io Holdings Corp and subsidiaries, and host of the Freight Guru Podcast.


