NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Research on Oil Well Data Cleaning System

Feng Yao, Zhao LiInternational Journal of Advanced Network Monitoring and Controls 2022

Abstract

In the information age, with the continuous development of Internet technology, information data occupies every field of contemporary society. The development of the big data age makes these data more and more prominent. While users read the information they need from these massive data, data quality has also become a concern of users. A large number of data are preprocessed before data analysis, such as some duplicate values, missing values deal with inaccurate and other abnormal data, and filter the data through the data cleaning system to improve the standardization of the data, so as to improve the analysis efficiency of the data, reduce some unnecessary expenses, and save time and effort. The data cleaning system in this paper is implemented based on flash framework. Taking Python as the main language for data cleaning, technical cleaning and standard integration are carried out for some structural problems, duplication problems and missing problems of some different source data. Through the processing of abnormal data, the data quality and data analysis efficiency are greatly improved.

Introduction

In the oil and gas industry, data serves as the foundation for critical decision-making processes. However, raw data collected from field sensors and manual logs frequently contain errors, such as missing entries from equipment failure, duplicate records due to system glitches, and outliers from sensor noise or human error. Traditional manual cleaning is prohibitively expensive and slow for modern large-scale datasets, while some automated methods can be computationally heavy or risk damaging data integrity. This research presents a web-based data cleaning system designed to provide a lightweight, accessible, and reliable tool for industrial production departments to ensure data quality for downstream analysis.

Methodology

The developed system utilizes a modern full-stack architecture to automate the data cleaning pipeline.

System Architecture

The backend is built using the Flask framework (referred to as "flash" in the original text), chosen for its flexibility and seamless integration with Python's extensive data processing libraries. The frontend interface allows users to interact with the system without programming knowledge. Data storage and management are handled via a MySQL database connected through ODBC (Open Database Connectivity) to ensure compatibility across various database systems like Oracle and SQL Server.

Data Cleaning Logic

The system follows a structured workflow to process uploaded datasets. It employs a "backtracking" principle to identify anomalies and applies specific strategies for different types of "dirty" data:

  1. Missing Value Processing: The system uses a mean filling method, replacing missing indicators with the average value of the corresponding index across the dataset.
  2. Duplicate Handling: Redundant records are identified, and the system replaces them with calculated average values to maintain consistency.
  3. Outlier Handling: Data is validated against pre-defined logical ranges. Values outside these bounds are cleared and subsequently refilled using the imputation logic applied to missing values.
Figure 1: Flowchart of the data cleaning system process.

Results and Discussion

The system was validated using an industrial dataset consisting of 21 records with multiple oil well attributes, including production metrics and coordinates. Functional testing confirmed the system's ability to handle user registration, data upload, and the core cleaning tasks effectively.

Visual verification demonstrated that the system successfully "standardized" the messy industrial data. As shown in the processed output, missing values were populated, duplicates were resolved, and outliers were corrected according to the defined logic. This automated approach significantly reduces the time and financial resources previously required for manual data auditing.

Figure 5: Cleaned data output showing filled missing values and corrected entries.

Conclusion

This research successfully implemented a Flask-based data cleaning system tailored for the oil industry. While the current iteration uses efficient but basic methods like mean filling, it provides a robust foundation for industrial data standardization. Future work will focus on integrating more advanced statistical models, such as K-Nearest Neighbors (KNN), and scaling the architecture to handle real-time streaming data from IoT-enabled wellheads.

Summary updated

BibTeX
@article{yao2022research,
  author = {Feng Yao and Zhao Li},
  title = {{Research on Oil Well Data Cleaning System}},
  journal = {International Journal of Advanced Network Monitoring and Controls},
  year = {2022},
  doi = {10.2478/ijanmc-2022-0026},
}
Figure