An Agentic Approach for Active Data Collection, Travel Behavior Modeling, and Weather-Sensitive Demand Prediction
Organizations: Department of Civil Engineering, McGill University, Montreal, Quebec, Canada
Abstract
Travel behavior research increasingly combines digital data collection with predictive modeling, yet these stages are often developed and evaluated separately. This study proposes a three-agent workflow integrating conversational data collection, structured data processing, and behavioral prediction. A chatbot-administered, image-augmented stated-preference survey collected mode choices from student commuters across five predefined weather scenarios, yielding 454 respondent-scenario observations. Weather-related associations were analyzed using a multinomial logit model, while logistic regression and random forest provided machine-learning benchmarks. Nine locally deployed large language models (LLMs), ranging from 2 to 35 billion parameters, were evaluated across four zero-shot prompt-and-context conditions and extended through persona, few-shot, and vision-based configurations. Random forest achieved 69.6% five-class accuracy, while the best text-only zero-shot LLM reached 69.9% without task-specific fitting. Habitual travel information produced the most consistent gains, Expert framing generally outperformed Role-Play, and persona information was most useful when habitual travel information was unavailable. Few-shot prompting improved prediction for several models, with gains stabilizing after a small number of examples. Using the same weather images shown to respondents, the best vision-based configuration reached 71.5% five-class accuracy, indicating that visual context may provide additional predictive information for selected models. Overall, the study shows how conversational surveys, structured data processing, conventional behavioral modeling, machine learning, and multimodal LLM prediction can be coordinated within an auditable multi-agent workflow.
Figures & tables
| Agent | Main inputs | Authorized functions | Main outputs |
| Data Collection Agent | Survey specification and collection instructions | Chatbot construction, survey logic implementation, procedural question answering, response validation, clarification, deployment, and response aggregation | Deployable survey interface, distribution link or QR code, raw responses, interaction logs, and collection metadata |
| Data Processing Agent | Raw survey data, optional external data, codebook, and processing instructions | De-identification, validation, recoding, missing-data handling, text coding, data integration, feature construction, and quality assessment | Processed dataset, quality flags, derived variables, supplementary data, and processing records |
| Data Modeling Agent | Processed data, modeling instructions, candidate model library, and evaluation requirements | Model specification, code generation, statistical estimation, machine-learning training, LLM-based choice prediction, validation, and result organization | Fitted model, parameter estimates, predictions, uncertainty measures, diagnostics, evaluation metrics, and structured results |
| Mode | Covariate | Coef. | Rob. t | p |
| Cycling | Rainy (vs. Sunny) | 0.856 | 2.01 | 0.044* |
| Cycling | Foggy/cold (vs. Sunny) | 1.166 | 2.52 | 0.012* |
| Cycling | Snowy (vs. Sunny) | 1.820 | 2.63 | 0.009** |
| Cycling | Owns bicycle | 1.219 | 2.06 | 0.039* |
| Cycling | Cycling experience (yrs.) | 0.341 | 2.67 | 0.008** |
| Public Transit | Hot–humid (vs. Sunny) | 0.518 | 2.17 | 0.030* |
| EXP-RC | EXP-BC | RP-RC | RP-BC | |||||
| Model | 5-cl. | Binary | 5-cl. | Binary | 5-cl. | Binary | 5-cl. | Binary |
| Gemma 4:e2B | 44.0 4.5 | 68.7 4.1 | 31.6 4.1 | 66.8 4.3 | 41.2 5.0 | 67.9 4.2 | 32.3 4.3 | 65.8 4.1 |
| Llama 3.2:3B | 41.2 4.3 | 62.5 4.5 | 12.7 3.6 | 56.7 4.4 | 26.7 3.7 | 60.7 4.3 | 18.6 3.6 | 60.3 4.5 |
| Gemma 3:4B | 64.2 4.4 | 79.1 3.3 | 41.3 4.0 | 64.1 4.4 | 54.5 4.2 | 75.9 3.9 | 36.7 4.2 | 55.6 4.4 |
| Gemma 4:e4B | 42.8 4.4 | 67.9 4.4 | 40.4 4.5 | 66.4 4.2 | 40.1 4.5 | 68.3 4.0 | 35.7 4.5 | 66.0 4.2 |
| Gemma 4:12B | 69.9 3.9 | 73.5 4.2 | 64.6 4.3 | 73.0 4.2 | 69.8 4.4 | 71.5 4.1 | 63.9 5.0 | 70.6 4.1 |
Multimodal Large Language Models
Multimodal large language models combine language models with image, video, audio, and other inputs for grounded understanding and generation.
See all 1,092 papers