CoolFace
Datasetpublic

toolathon123/logistics-southamerica-quality

Logistics Quality – South America (Brazil & Argentina) Live shipment records collected from the South American (Brazil / Argentina) logistics network for service-quality monitoring and improvement. This dataset supports complaint type classification of customer feedback, on-time/damage KPI reporting, and route-level hotspot analysis (with special attention to cross-border corridors such as São Paulo → Buenos Aires). Collection & real-time nature Records are… See the full description on the dataset page: https://huggingface.co/datasets/toolathon123/logistics-southamerica-quality.

sourceHugging Facemitupdated 1mo agoView on Hugging Face
0likes26downloads
Dataset Card

Logistics Quality – South America (Brazil & Argentina)

Live shipment records collected from the South American (Brazil / Argentina) logistics network for service-quality monitoring and improvement. This dataset supports complaint type classification of customer feedback, on-time/damage KPI reporting, and route-level hotspot analysis (with special attention to cross-border corridors such as São Paulo → Buenos Aires).

Collection & real-time nature

Records are ingested from the transport management system in near real-time. Each snapshot is timestamped in UTC. New records can be appended incrementally — see Incremental append — without re-processing historical rows.

Schema (columns)

ColumnTypeDescription
transport_idstringUnique shipment id (e.g. BR-20260813-000001)
timestampstringISO-8601 UTC timestamp of the shipment event
origin_countrystringBR or AR
origin_citystringOrigin city
destination_countrystringBR or AR
destination_citystringDestination city
route_keystring"{origin} -> {destination}" corridor key
is_cross_borderboolWhether the shipment crosses the BR–AR border
transport_modestringroad \rail \air
carrier_namestringCarrier operating the shipment
on_time_deliveryboolDelivered within agreed deadline
delay_hoursfloatDelay in hours (0 when on time)
damage_statusstringnone \minor \major
feedback_languagestringLanguage of the customer feedback (pt / es)
customer_feedbackstringFree-text customer feedback (Portuguese or Spanish)
gt_complaintstringReference complaint label used for validation: none\delay\damage\service\cost\loss
predicted_complaintstringModel-predicted complaint category (see models below)
confidencefloatConfidence of the top predicted category
prob_delay … prob_positivefloatFull model probability vector over the 6 categories
segmentstringIngestion batch (live_batch, incremental_*)

Complaint categories

CategoryMeaning
delay延误 — late / delayed delivery
damage货损 — damaged or spoiled goods
service服务态度 — poor service / attitude
cost费用争议 — billing / cost dispute
loss包裹丢失 — lost / missing package
positiveno complaint / positive feedback

Models used for inference

Incremental append

python
from datasets import load_dataset
from huggingface_hub import HfApi

api = HfApi()
# append a small batch of new records (only new transport_ids)
new_records = [...]  # list of dicts with the schema above (new transport_ids)
api.upload_file(
    path_or_fileobj=... ,  # or use push_to_hub on the dataset
    path_in_repo="data/incremental_20260813.parquet",
    repo_id="toolathon123/logistics-southamerica-quality",
    repo_type="dataset",
)
# Re-run inference only on records lacking a `predicted_complaint`.

A fully worked append + re-classification example is provided in the analysis pipeline (see logistics_project/scripts/).