Blog articleMethodology & analyticsComputer science

Why data collection fails in computer science PhDs, and how to design reliable system, sensor and log data

In computer science research the data often come from machines: sensors, logs, network traces and APIs. This article explains why such data collection fails in doctoral projects in the UAE and elsewhere, and how to design a pipeline that produces data you can trust, document and defend.

What you will learn

  • Explain why machine-generated data fail in ways that survey data do not
  • Identify the common failure modes of sensor, log, network and API data
  • Design a collection pipeline with timestamps, metadata and quality checks built in
  • Avoid leakage and dataset shift when the collected data are used for machine learning
  • Plan ethics approval and compliance with UAE data protection law for data about people

What you will unlearn

  • Machine-generated data are objective, so they need no validation.Sensors drift, clocks disagree and logs drop events, so every source needs checks before it becomes evidence.
  • More data always improves a model.Data that do not represent deployment conditions, or that leak test information into training, make results look better than they are.
  • Public benchmark datasets remove the need to describe data collection.Benchmarks have their own collection biases and labelling choices, which your thesis must describe and test.
  • Network traffic and device logs are not personal data.IP addresses, device identifiers and location traces can identify people and fall under data protection law.

Skills you will practise

  • Data pipeline design
  • Time synchronisation and metadata
  • Sensor and log quality checks
  • Dataset documentation
  • Leakage-safe data splitting
  • Data protection planning

Why data collection fails in computer science research

Doctoral projects in artificial intelligence, cybersecurity, the internet of things (IoT), cloud computing and smart city systems depend on data that are generated by machines rather than reported by people. Sensor streams, system logs, packet captures and API responses look objective, and that is the problem: researchers often collect them without the design discipline they would apply to a questionnaire. The result is data with gaps, drift, unsynchronised timestamps or hidden duplication, discovered only when a model performs strangely or an examiner asks how a dataset was built.

Most failures fall into four groups. The data do not match the research question (wrong variables, wrong sampling rate, wrong conditions). The pipeline loses or corrupts data (packet loss, API limits, storage failures). The data are not documented well enough to reuse or reproduce. Or the collection breaches ethical or legal requirements because it captured information about people. Each can be prevented at the design stage.

Data collection in computer science doctoral research
Figure 1. Illustration on data collection in computer science research.

What UAE computing studies show about building data

Published work from UAE institutions illustrates the design choices behind credible machine-generated or purpose-built datasets. None of these studies is about doctoral students as such, and no verified study of how UAE computer science PhD researchers collect data was found, but each shows how the collection was planned and reported.

How selected UAE-affiliated or UAE-setting computing studies obtained and reported their data
StudyData and how they were obtainedDesign lesson
Koto et al. (2024)A benchmark of 14,575 multiple-choice questions in Modern Standard Arabic across 40 tasks, built from school examinations in North Africa, the Levant and the GulfA new dataset needs a stated source, sampling across regions and a defined evaluation before results are produced
Almarzooqi et al. (2024)Solar irradiance time series used to train and test a hybrid forecasting model, validated with a moving windowTime-ordered data need time-respecting validation and a naive baseline; variable (cloudy) conditions must be reported separately
Hassan et al. (2026)Hydrodynamic simulation outputs for Abu Dhabi and San Francisco Bay used to train a convolutional neural network surrogateSimulated training data inherit the limits of the simulations (few scenarios, short periods), which must be stated

The ArabicMMLU benchmark by Koto et al. (2024), most of whose authors were at the Mohamed bin Zayed University of Artificial Intelligence, is a model of purposeful collection: the authors chose a population of items (school examination questions), covered several regions and subjects, and fixed the evaluation in advance. Almarzooqi et al. (2024), at Khalifa University, show the other side: with sensor-derived time series, the validation scheme must respect time order, and performance in difficult conditions must be reported rather than averaged away. Hassan et al. (2026) trained a deep learning surrogate on simulations covering Abu Dhabi and acknowledged that few sea-level scenarios and short simulation periods limit what the model can claim.

Failure modes and the controls that prevent them

Researchers meet several technical problems. They are real, and each has a design-stage control.

Common failure modes in machine-generated data and design-stage controls
Failure modeWhat goes wrongControl to build in
Clock and timestamp mismatchEvents from devices or services cannot be aligned, so sequences and latencies are wrongSynchronise clocks, record time zone and source of each timestamp, log the offset
Sensor drift and calibrationReadings shift slowly, so trends reflect the device, not the phenomenonCalibrate before and after collection, keep reference readings, record firmware versions
Packet loss and dropped eventsGaps are silent unless counted, and they are rarely randomSequence numbers, heartbeat records and a missing-data log per source
API limits and changesRate limits, pagination and version changes alter what is returnedRecord API version, query, date and limits; store raw responses before processing
Unrepresentative conditionsData from a lab, a quiet period or one site do not match deploymentPlan collection across conditions that matter (load, weather, time of day, attack types)
Labelling errorsGround truth in logs or traffic is assumed rather than verifiedDocument how labels were produced and check a sample by hand

Network security research shows how much these choices matter. Surveys of intrusion detection datasets find that they differ in how traffic was generated, which attacks are included and how labels were assigned, and recommend evaluating on more than one dataset (Ring et al., 2019). IoT intrusion datasets also use incompatible feature sets and attack categories, which limits comparison across studies (Booij et al., 2022). Arp et al. (2022) list recurring pitfalls in machine learning for security, including sampling bias, label inaccuracy and unrealistic evaluation settings, most of which begin at collection.

Design the collection pipeline before collecting

Treat data collection as part of the research design and write it into the proposal. A reliable pipeline answers five questions: what is measured, from which sources, under which conditions, how it is stored, and how its quality is checked.

  1. Map variables to questions. List every variable the analysis needs, its unit, sampling rate and source.
  2. Keep the raw layer. Store raw data unchanged and process copies, so every cleaning step can be repeated.
  3. Capture metadata as you go. Device, firmware, software versions, configuration and collection dates.
  4. Run a pilot. Collect for a short period, analyse the gaps and drift, and revise before the main collection.
  5. Automate quality checks. Range checks, missing-data counts, duplicate detection and timestamp monotonicity.
  6. Document the dataset. Use a datasheet covering motivation, composition, collection process, labelling and intended uses (Gebru et al., 2021).

Make the data findable, accessible, interoperable and reusable where ethics and contracts allow, following the FAIR principles (Wilkinson et al., 2016). Even when data cannot be shared, the code and the description of the collection process usually can, and reproducibility checklists in machine learning ask for both (Pineau et al., 2021).

When the data feed a machine learning model

Collection decisions shape whether a model evaluation is valid. Kapoor and Narayanan (2023) reviewed leakage across machine-learning-based science and found it in many fields; common forms include duplicates across training and test sets, features that would not be available at prediction time, and random splits of time-ordered data. Plan the split when you plan collection: by time for streams, by device or site for sensor networks, and by session or host for network traffic.

Dataset shift is the related risk. A model trained on one season, one building or one network will meet different conditions in use. Collect a separate test period or site if you can, and report results for it separately, as the UAE forecasting study did for difficult conditions (Almarzooqi et al., 2024).

Reliable data pipelines for computer science research

Ethics and data protection in the UAE

Machine-generated data frequently contain personal data: IP and MAC addresses, account names, location traces, wearable readings and camera images. The UAE's federal Personal Data Protection Law is Federal Decree-Law No. 45 of 2021, and some free zones and the health sector have their own rules (UAE Government, n.d.). Check which regime applies to your data, where your cloud services store them, and whether transfers outside the country are involved. The European GDPR is relevant only in the situations it defines, such as data about people in the EU, so do not assume it is the governing law.

Research involving human participants or their data needs review by your university's research ethics process (United Arab Emirates University, n.d.), and projects using hospital or health data need the relevant health authority approvals as well. In practice, minimise what you capture, pseudonymise identifiers at the point of collection, restrict access and set a retention period. Explain each step in your methods chapter.

Worked example (illustrative)

A hypothetical doctoral project develops an anomaly detection model for energy use in university buildings in Abu Dhabi. The researcher maps the variables needed (power, temperature, occupancy proxy) to three sources: smart meters, a building management system API and a weather feed. A two-week pilot reveals that the meters and the API use different clocks and that 4% of meter readings are missing at night; clocks are synchronised and a missing-data log is added. The main collection covers summer and winter, the test set is a later month in a different building, and Wi-Fi counts used for occupancy are aggregated per floor so that no individual is identifiable, as approved by the ethics committee. A datasheet records every source, version and known gap (Gebru et al., 2021).

What to report, and common mistakes

Data collection elements to report in a computer science thesis
ElementWhat to state
SourcesDevices, systems, APIs and datasets, with versions and configurations
ConditionsSites, periods and operating conditions covered
QualityMissing data, drift, synchronisation checks and how problems were handled
LabelsHow ground truth was obtained and checked
SplitsHow training, validation and test data were separated, and why
Ethics and lawApprovals, personal data handled, pseudonymisation, storage and retention
AvailabilityWhat data and code are shared, where, and under what conditions
  • Starting large-scale collection without a pilot.
  • Cleaning data in place, so the raw record is lost.
  • Splitting time-ordered or device-grouped data at random.
  • Using one public benchmark and treating it as representative (Ring et al., 2019).
  • Capturing personal identifiers that the analysis does not need.

For the wider design of machine learning studies, see methodology mistakes in machine learning PhDs and programming for AI research; for planning data collection in other fields, see how to collect data for your PhD thesis.

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
Primary data collection

References

  1. Almarzooqi, A. M., Maalouf, M., El-Fouly, T. H. M., Katzourakis, V. E., El Moursi, M. S., & Chrysikopoulos, C. V. (2024). A hybrid machine-learning model for solar irradiance forecasting. Clean Energy, 8(1), 100-110. https://doi.org/10.1093/ce/zkad075
  2. Arp, D., Quiring, E., Pendlebury, F., Warnecke, A., Pierazzi, F., Wressnegger, C., Cavallaro, L., & Rieck, K. (2022). Dos and don'ts of machine learning in computer security. In Proceedings of the 31st USENIX Security Symposium (pp. 3971–3988). USENIX Association. https://www.usenix.org/conference/usenixsecurity22/presentation/arp
  3. Booij, T. M., Chiscop, I., Meeuwissen, E., Moustafa, N., & den Hartog, F. T. H. (2022). ToN_IoT: The role of heterogeneity and the need for standardization of features and attack types in IoT network intrusion data sets. IEEE Internet of Things Journal, 9(1), 485–496. https://doi.org/10.1109/JIOT.2021.3085194
  4. Gebru, T., Morgenstern, J., Vecchione, B., Vaughan, J. W., Wallach, H., Daumé III, H., & Crawford, K. (2021). Datasheets for datasets. Communications of the ACM, 64(12), 86–92. https://doi.org/10.1145/3458723
  5. Hassan, B., Karapetyan, A., Chow, A. C. H., & Madanat, S. (2026). Climate adaptation-aware flood prediction for coastal cities using deep learning. Hydrology and Earth System Sciences, 30, 1333–1358. https://doi.org/10.5194/hess-30-1333-2026
  6. Kapoor, S., & Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9), 100804. https://doi.org/10.1016/j.patter.2023.100804
  7. Koto, F., Li, H., Shatnawi, S., Doughman, J., Sadallah, A., Alraeesi, A., Almubarak, K., Alyafeai, Z., Sengupta, N., Shehata, S., Habash, N., Nakov, P., & Baldwin, T. (2024). ArabicMMLU: Assessing massive multitask language understanding in Arabic. In Findings of the Association for Computational Linguistics: ACL 2024 (pp. 5622–5640). Association for Computational Linguistics. https://doi.org/10.18653/v1/2024.findings-acl.334
  8. Pineau, J., Vincent-Lamarre, P., Sinha, K., Larivière, V., Beygelzimer, A., d'Alché-Buc, F., Fox, E., & Larochelle, H. (2021). Improving reproducibility in machine learning research (a report from the NeurIPS 2019 reproducibility program). Journal of Machine Learning Research, 22(164), 1–20. https://www.jmlr.org/papers/v22/20-303.html
  9. Ring, M., Wunderlich, S., Scheuring, D., Landes, D., & Hotho, A. (2019). A survey of network-based intrusion detection data sets. Computers & Security, 86, 147–167. https://doi.org/10.1016/j.cose.2019.06.005
  10. UAE Government. (n.d.). Data protection laws. The Official Portal of the UAE Government. Retrieved October 6, 2026. https://u.ae/en/about-the-uae/digital-uae/data/data-protection-laws
  11. United Arab Emirates University. (n.d.). Ethical review. Research and Sponsored Projects Office. Retrieved October 5, 2026. https://www.uaeu.ac.ae/en/research/research-and-sponsored-projects-office/ethical-review.shtml
  12. Wilkinson, M. D., Dumontier, M., Aalbersberg, I. J., Appleton, G., Axton, M., Baak, A., Blomberg, N., Boiten, J.-W., da Silva Santos, L. B., Bourne, P. E., Bouwman, J., Brookes, A. J., Clark, T., Crosas, M., Dillo, I., Dumon, O., Edmunds, S., Evelo, C. T., Finkers, R., . . . Mons, B. (2016). The FAIR guiding principles for scientific data management and stewardship. Scientific Data, 3, Article 160018. https://doi.org/10.1038/sdata.2016.18

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. (2026, May 12). Why data collection fails in computer science PhDs, and how to design reliable system, sensor and log data. PhD Research Lab. https://www.phdassistance.com/blog/phd-data-collection-service-in-uae/

PhD Research Lab Academy. “Why Data Collection Fails in Computer Science PhDs, and How to Design Reliable System, Sensor and Log Data.” PhD Research Lab, 12 May 2026, www.phdassistance.com/blog/phd-data-collection-service-in-uae. Accessed [access date].

PhD Research Lab Academy (2026) Why data collection fails in computer science PhDs, and how to design reliable system, sensor and log data. PhD Research Lab. Available at: https://www.phdassistance.com/blog/phd-data-collection-service-in-uae/ (Accessed: [access date]).

PhD Research Lab Academy. “Why Data Collection Fails in Computer Science PhDs, and How to Design Reliable System, Sensor and Log Data.” PhD Research Lab. May 12, 2026. https://www.phdassistance.com/blog/phd-data-collection-service-in-uae.

PhD Research Lab Academy, ‘Why Data Collection Fails in Computer Science PhDs, and How to Design Reliable System, Sensor and Log Data’ (PhD Research Lab, 12 May 2026) <https://www.phdassistance.com/blog/phd-data-collection-service-in-uae> accessed [access date].

PhD Research Lab Academy. Why data collection fails in computer science PhDs, and how to design reliable system, sensor and log data [Internet]. PhD Research Lab; 2026 May 12 [cited [access date]]. Available from: https://www.phdassistance.com/blog/phd-data-collection-service-in-uae/

PhD Research Lab Academy, “Why data collection fails in computer science PhDs, and how to design reliable system, sensor and log data,” PhD Research Lab, May 12, 2026. [Online]. Available: https://www.phdassistance.com/blog/phd-data-collection-service-in-uae. [Accessed: [access date]].

@online{phd_data_collection_service_in_uae_2026,
  author = {{PhD Research Lab Academy}},
  title = {{Why data collection fails in computer science PhDs, and how to design reliable system, sensor and log data}},
  organization = {PhD Research Lab},
  date = {2026-05-12},
  url = {https://www.phdassistance.com/blog/phd-data-collection-service-in-uae},
  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.

Why data collection fails in computer science PhDs, and how to design reliable sNeed help applying it to your study?
Primary data collection