ExamplePublication & ethicsComputer science

Example manuscript: visual analytics of traffic sensor big data (annotated)

An original, annotated research article on separating sensor faults from unusual traffic in city-wide sensor data. It helps PhD scholars in data science and transport structure an applied data paper and evaluate a tool honestly.

What you will learn

  • Narrow a broad data topic to an evaluable research question
  • Report data volume, completeness and missingness
  • Describe an analytics workflow so that others can reproduce it
  • Evaluate a detection tool with metrics suited to rare events
  • Discuss the limits of ground truth honestly
  • Use published work correctly: cite it, never copy it

What you will unlearn

  • Reworking a published paper is a legitimate way to produce a sample.It is plagiarism; learn from published papers by citing and critiquing them.
  • A dashboard paper only needs to describe the dashboard.It needs a question, an evaluation and an honest account of limitations.
  • High accuracy shows a fault detector works.With rare faults, precision and recall are the informative measures.

Skills you will practise

  • Applied data writing
  • Data quality reporting
  • Evaluation design
  • Visual analytics
  • Research integrity

About this example

This page is a short research article of the kind a doctoral researcher in data science or transport informatics might submit to a journal or conference. It describes a visual analytics workflow for traffic sensor data in a medium-sized city, designed to help engineers tell faulty sensors apart from genuinely unusual traffic. The annotations show how to structure an applied data paper, how to report data quality and how to evaluate a tool honestly.

It is an original illustrative teaching example. The city, the sensors and all numbers are illustrative data created for teaching, not results from a real deployment. (2022) in full. Do not submit any part of this example as your own work; your university's academic integrity rules apply.

The example: title, abstract and introduction

Title

Fault or event? A visual analytics workflow for separating sensor faults from unusual traffic in city-wide loop-detector data

Abstract

Cities collect traffic counts from hundreds of fixed sensors, but sensor faults and genuine traffic events both appear as departures from normal patterns, and engineers must tell them apart before the data are used for planning or modelling. We present a workflow that combines automated quality checks, a simple robust anomaly score and linked visual views that let an analyst compare a flagged sensor with its neighbours. Applied to one year of 15-minute counts from 120 detectors (illustrative data), the workflow flagged 78 episodes as suspected faults, of which 52 matched faults later recorded by maintenance crews (precision 67%), and it detected 52 of the 61 recorded faults (recall 85%). Analysts reported that the neighbour comparison was the most useful view. We discuss the limits of maintenance logs as ground truth and the steps needed for operational use.

1. Introduction

Traffic counts from inductive loops and similar sensors underpin signal timing, transport planning and estimates of traffic emissions; road transport is a major source of urban air pollution (Bachechi et al., 2022). Because sensors fail in ordinary ways, by dropping out, freezing at a constant value or drifting, raw counts cannot be used without checks. Automated rules catch obvious faults, but they also flag genuine events such as holidays, road works or a football match, and removing those would discard exactly the data planners most need.

Visual analytics combines automated analysis with interactive visualisation so that people can apply judgement where rules are uncertain. Previous systems have shown the value of dashboards for exploring traffic trends and their link to air quality (Bachechi et al., 2022). Less attention has been paid to the narrow but frequent task of deciding whether an anomaly is a fault or an event. This paper asks: (1) can a simple workflow separate the two reliably enough to support maintenance decisions, and (2) which views do analysts find useful for the decision?

The example: data and methods

2.1 Data

The data were 15-minute vehicle counts from 120 loop detectors over one calendar year, a total of 4,204,800 expected records, together with the city's maintenance log of sensor faults (illustrative data). Records were stored in a distributed processing framework so that profiles and scores could be recomputed for the whole network in minutes (Zaharia et al., 2016).

2.2 Workflow

  1. 1Ingest 15-minute counts and the maintenance log
  2. 2Quality checks: missing intervals, impossible values, flat lines
  3. 3Build each detector's typical profile by weekday type and time of day
  4. 4Score departures with a robust z-score (median and median absolute deviation)
  5. 5Group flagged intervals into episodes and compare with neighbouring detectors
  6. 6Analyst reviews linked views and labels each episode as fault or event
Figure 1. The workflow, from raw counts to an analyst's decision (original diagram).

Quality checks first marked missing intervals and values outside physical limits. Missing data were not imputed before scoring, because the pattern of missingness is itself evidence of a fault and imputation could hide it (Little & Rubin, 2019). Each detector's typical profile was the median count for each 15-minute slot, computed separately for working days, Saturdays and Sundays and public holidays. Departures were scored as robust z-scores, using the median absolute deviation so that past anomalies did not distort the baseline; scores beyond ±4 were flagged. The threshold was chosen on the first three months and kept fixed for the remaining nine, so that it was not tuned on the data used for evaluation (Bergmeir & Benítez, 2012).

Flagged intervals on the same detector within two hours were merged into episodes. An episode was proposed as a suspected fault if neighbouring detectors on the same corridor did not show a similar departure, and as a suspected event if they did. The interface linked three views: a calendar heat map of data completeness, the flagged detector's counts plotted against its typical profile, and the same plot for its neighbours on a common scale. Design choices followed established guidance on graphical perception, using position on a common scale for the key comparison (Cleveland & McGill, 1984) and removing decoration that carried no data (Tufte, 2001).

The example: results

3.1 Data completeness

Of the 4,204,800 expected records, 93.8% (about 3.94 million) were received. Missing data were concentrated: nine detectors accounted for more than half of all missing intervals, and the calendar view showed that most gaps on these detectors occurred in long blocks rather than scattered intervals.

3.2 Separating faults from events (question 1)

Table 1. Suspected faults compared with the maintenance log over nine evaluation months (illustrative data).
OutcomeCount
Faults recorded in the maintenance log61
Episodes proposed as suspected faults78
Suspected faults matching a recorded fault52
Recorded faults not flagged9
Precision (52 / 78)67%
Recall (52 / 61)85%

Of the 26 suspected faults with no matching log entry, analysts judged 11 to be probable unrecorded faults after review, which suggests that the maintenance log understates faults and that the true precision may be higher than 67%. Most of the nine missed faults were slow drifts that never crossed the threshold. Because faults are rare among all intervals, precision and recall are reported rather than overall accuracy (Saito & Rehmsmeier, 2015).

3.3 Which views helped (question 2)

Five traffic engineers each reviewed 20 episodes using the interface and were then interviewed. All five named the neighbour comparison as the view that most often decided the label; the completeness calendar was used mainly to spot detectors with recurring dropouts.

The example: discussion and conclusion

4. Discussion and limitations

A simple, transparent workflow separated most faults from events, and the neighbour comparison proved the most useful aid to judgement. Three limitations qualify these findings. First, the maintenance log is an imperfect reference: it records only faults that crews found, so both precision and recall are estimates. Second, slow drifts were missed; a trend-based check would be needed for them. Third, the user evaluation was small and exploratory. Graphs used to justify decisions should show the underlying data rather than only summaries (Weissgerber et al., 2019), and the interface does so by plotting each episode against its baseline.

5. Conclusion

For the common task of telling sensor faults from unusual traffic, a robust baseline, a fixed threshold and a neighbour comparison offer a practical starting point. Future work should add drift detection, test the workflow in a second city and evaluate it with more analysts over a longer period.

How to adapt this to your own study

  1. Narrow a broad topic (big data in traffic) to one task your study can evaluate.
  2. Cite the closest published systems, and read them in full; never copy their text or figures.
  3. Describe data volume, completeness and missingness before any analysis.
  4. Fix thresholds and settings on data separate from the evaluation data.
  5. Report the counts behind every percentage and choose metrics suited to rare events.
  6. Discuss the quality of your ground truth.
  7. Remove statistics you cannot trace to a current, authoritative source.

Common mistakes in this kind of paper

  • Reproducing a published paper, or its figures, as your own work.
  • Opening with dramatic statistics that are out of date or misattributed.
  • Describing a tool without evaluating it against a stated question.
  • Tuning thresholds on the same data used to evaluate them.
  • Reporting accuracy for rare events, which hides missed faults.
  • Treating an incomplete log as perfect ground truth.
  • Linking key terms to unrelated pages.
How this article meets common examiner and reviewer expectations.
What examiners and reviewers look forWhere this example does itCheck in your own draft
Originality and correct attributionOwn workflow and figure; closest work citedIs every borrowed idea cited and every sentence your own?
A focused questionTwo questions at the end of the introductionCan you state your questions in one line each?
Reproducible methods2.1 and 2.2 state data, settings and reasonsCould someone rebuild your pipeline?
Honest evaluationTable 1 with counts; precision and recallDo your metrics suit your class balance?
Awareness of limitationsSection 4: ground truth, drifts, small user studyHave you said how each limitation affects your results?
Accurate background claimsUnverified statistics removedIs every statistic current and traceable?

Key takeaways

Your next step

Want to apply this to your own study?

  1. 1Tell us your topic, data and deadline
  2. 2A subject mentor reviews your work with you
  3. 3You get a plan and a quote
Manuscript rewriting

References

  1. Bachechi, C., Po, L., & Rollo, F. (2022). Big data analytics and visualization in traffic monitoring. Big Data Research, 27, Article 100292. https://doi.org/10.1016/j.bdr.2021.100292
  2. Bergmeir, C., & Benítez, J. M. (2012). On the use of cross-validation for time series predictor evaluation. Information Sciences, 191, 192-213. https://doi.org/10.1016/j.ins.2011.12.028
  3. Cleveland, W. S., & McGill, R. (1984). Graphical perception: Theory, experimentation, and application to the development of graphical methods. Journal of the American Statistical Association, 79(387), 531–554. https://doi.org/10.1080/01621459.1984.10478080
  4. Little, R. J. A., & Rubin, D. B. (2019). Statistical analysis with missing data (3rd ed.). Wiley. https://doi.org/10.1002/9781119482260
  5. Saito, T., & Rehmsmeier, M. (2015). The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets. PLoS ONE, 10(3), e0118432. https://doi.org/10.1371/journal.pone.0118432
  6. Sollaci, L. B., & Pereira, M. G. (2004). The introduction, methods, results, and discussion (IMRAD) structure: A fifty-year survey. Journal of the Medical Library Association, 92(3), 364–367. https://pmc.ncbi.nlm.nih.gov/articles/PMC442179/
  7. Tufte, E. R. (2001). The visual display of quantitative information (2nd ed.). Graphics Press.
  8. Weissgerber, T. L., Winham, S. J., Heinzen, E. P., Milin-Lazovic, J. S., Garcia-Valencia, O., Bukumiric, Z., Savic, M. D., Garovic, V. D., & Milic, N. M. (2019). Reveal, don't conceal: Transforming data visualization to improve transparency. Circulation, 140(18), 1506–1518. https://doi.org/10.1161/CIRCULATIONAHA.118.037777
  9. Zaharia, M., Xin, R. S., Wendell, P., Das, T., Armbrust, M., Dave, A., Meng, X., Rosen, J., Venkataraman, S., Franklin, M. J., Ghodsi, A., Gonzalez, J., Shenker, S., & Stoica, I. (2016). Apache Spark: A unified engine for big data processing. Communications of the ACM, 59(11), 56-65. https://doi.org/10.1145/2934664

How to cite this article

Choose your referencing style, then copy. Check your university's or journal's guide for local variations.

PhD Research Lab Academy. (2023, December 1). Example manuscript: visual analytics of traffic sensor big data (annotated). PhD Research Lab. https://www.phdassistance.com/sample-work/a-study-on-analytics-and-visualization-of-big-data-in-traffic-monitoring/

PhD Research Lab Academy. “Example Manuscript: Visual Analytics of Traffic Sensor Big Data (annotated).” PhD Research Lab, 1 Dec. 2023, www.phdassistance.com/sample-work/a-study-on-analytics-and-visualization-of-big-data-in-traffic-monitoring. Accessed [access date].

PhD Research Lab Academy (2023) Example manuscript: visual analytics of traffic sensor big data (annotated). PhD Research Lab. Available at: https://www.phdassistance.com/sample-work/a-study-on-analytics-and-visualization-of-big-data-in-traffic-monitoring/ (Accessed: [access date]).

PhD Research Lab Academy. “Example Manuscript: Visual Analytics of Traffic Sensor Big Data (annotated).” PhD Research Lab. December 1, 2023. https://www.phdassistance.com/sample-work/a-study-on-analytics-and-visualization-of-big-data-in-traffic-monitoring.

PhD Research Lab Academy, ‘Example Manuscript: Visual Analytics of Traffic Sensor Big Data (annotated)’ (PhD Research Lab, 1 December 2023) <https://www.phdassistance.com/sample-work/a-study-on-analytics-and-visualization-of-big-data-in-traffic-monitoring> accessed [access date].

PhD Research Lab Academy. Example manuscript: visual analytics of traffic sensor big data (annotated) [Internet]. PhD Research Lab; 2023 Dec 1 [cited [access date]]. Available from: https://www.phdassistance.com/sample-work/a-study-on-analytics-and-visualization-of-big-data-in-traffic-monitoring/

PhD Research Lab Academy, “Example manuscript: visual analytics of traffic sensor big data (annotated),” PhD Research Lab, Dec. 1, 2023. [Online]. Available: https://www.phdassistance.com/sample-work/a-study-on-analytics-and-visualization-of-big-data-in-traffic-monitoring. [Accessed: [access date]].

@online{a_study_on_analytics_and_visualization_of_big_data_in_traffic_monitoring_2023,
  author = {{PhD Research Lab Academy}},
  title = {{Example manuscript: visual analytics of traffic sensor big data (annotated)}},
  organization = {PhD Research Lab},
  date = {2023-12-01},
  url = {https://www.phdassistance.com/sample-work/a-study-on-analytics-and-visualization-of-big-data-in-traffic-monitoring},
  urldate = {[access date]}
}

This article is for learning. Use it to understand the method and cite the original sources above in your own work; do not copy or submit it as your own.

Example manuscriptNeed help applying it to your study?
Manuscript rewriting