scieee AI-readable full text Open interactive document viewer

ELI: an IoT-aware big data pipeline with data curation and data quality

de Haro Olmo, Francisco José; Valencia Parra, Álvaro; Varela Vaca, Ángel Jesús; Álvarez Bermejo, José Antonio; Gómez López, María Teresa

Abstract

The complexity of analysing data from IoT sensors requires the use of Big Data technologies, posing challenges such as data curation and data quality assessment. Not facing both aspects potentially can lead to erroneous decision-making (i.e., processing incorrectly treated data, introducing errors into processes, causing damage or increasing costs). This article presents ELI, an IoT-based Big Data pipeline for developing a data curation process and assessing the usability of data collected by IoT sensors in both offline and online scenarios. We propose the use of a pipeline that integrates data transformation and integration tools and a customisable decision model based on the Decision Model and Notation (DMN) to evaluate the data quality. Our study emphasises the importance of data curation and quality to integrate IoT information by identifying and discarding low-quality data that obstruct meaningful insights and introduce errors in decision making. We evaluated our approach in a smart farm scenario using agricultural humidity and temperature data collected from various types of sensors. Moreover, the proposed model exhibited consistent results in offline and online (stream data) scenarios. In addition, a performance evaluation has been developed, demonstrating its effectiveness. In summary, this article contributes to the development of a usable and effective IoT-based Big Data pipeline with data curation capabilities and assessing data usability in both online and offline scenarios. Additionally, it introduces customisable decision models for measuring data quality across multiple dimensions.

Full text

Submitted 20 April 2023 Accepted 29 August 2023 Published 2 October 2023 Corresponding author Francisco José de Haro-Olmo, [email protected] Academic editor M Emilia Cambronero Additional Information and Declarations can be found on page 21 DOI 10.7717/peerj-cs.1605 Copyright 2023 de Haro-Olmo et al. Distributed under Creative Commons CC-BY 4.0 OPEN ACCESS ELI: an IoT-aware big data pipeline with data curation and data quality Francisco José de Haro-Olmo1, Alvaro Valencia-Parra2, Ángel Jesús Varela-Vaca2, José Antonio Álvarez-Bermejo1and María Teresa Gómez-López2 1Departamento de Informática, Universidad de Almería, Almería, Spain 2Departamento de Lenguajes y Sistemas Informáticos, Universidad de Sevilla, Sevilla, Spain ABSTRACT The complexity of analysing data from IoT sensors requires the use of Big Data technologies, posing challenges such as data curation and data quality assessment. Not facing both aspects potentially can lead to erroneous decision-making (i.e., processing incorrectly treated data, introducing errors into processes, causing damage or increasing costs). This article presents ELI, an IoT-based Big Data pipeline for developing a data curation process and assessing the usability of data collected by IoT sensors in both offline and online scenarios. We propose the use of a pipeline that integrates data transformation and integration tools and a customisable decision model based on the Decision Model and Notation (DMN) to evaluate the data quality. Our study emphasises the importance of data curation and quality to integrate IoT information by identifying and discarding low-quality data that obstruct meaningful insights and introduce errors in decision making. We evaluated our approach in a smart farm scenario using agricultural humidity and temperature data collected from various types of sensors. Moreover, the proposed model exhibited consistent results in offline and online (stream data) scenarios. In addition, a performance evaluation has been developed, demonstrating its effectiveness. In summary, this article contributes to the development of a usable and effective IoT-based Big Data pipeline with data curation capabilities and assessing data usability in both online and offline scenarios. Additionally, it introduces customisable decision models for measuring data quality across multiple dimensions. Subjects Data Science, Emerging Technologies, Internet of Things Keywords Data curation, Data quality, Big data pipeline, Internet of Things, Sensors INTRODUCTION The present and the near future are full of scenarios in which devices of the Internet of Things (IoT) are equipped with sensors to gather a myriad of data from various sources to carry out business intelligence processes or decision-making actions subsequently. These devices can be found not only in the industrial environment, but also increasingly in the everyday scenario of each of us. These interconnected devices, such as smart appliances, can collect large chunks of data from their environment that are later injected into Big Data pipelines. In Ceravolo et al. (2018), the authors propose a sequence of stages to follow to achieve the business intelligence-based goals planned using Big Data technologies. However, several issues are raised regarding the data collected by IoT devices through How to cite this article de Haro-Olmo FJ, Valencia-Parra A, Varela-Vaca ÁJ, Álvarez-Bermejo JA, Gómez-López MíT. 2023. ELI: an IoT- aware big data pipeline with data curation and data quality. PeerJ Comput. Sci. 9:e1605 http://doi.org/10.7717/peerj-cs.1605 their onboard sensors and how these data will be processed into Big Data systems. Some of the main challenges when IoT data are incorporated in a Big Data system are (1) the heterogeneity of data sources, (2) the processing of stream data along with its gathering process, and (3) the collection of large chunks of data that can increase issues with data quality, privacy, and security, Choi et al. (2017). In this article, we focused on the extension of a Big Data pipeline incorporating both data curation and quality phases adapted to IoT information. This is not a straightforward aspect; rather, it is a complex issue because the evaluation is highly context-dependent (i.e., the origin of the data and its nature, the semantics, as well as the problem domain). Low-quality data (i.e., incomplete data, wrong readings, null readings) will lead analytical processes to unintended consequences; Rahm & Do (2000),Redman (1998) and Hernández & Stolfo (1998) resulting in bad decisions recommended by processing incorrectly treated data, introducing errors into processes, causing damage or increasing costs. Therefore, it is critical to incorporate quality methods that ensure a proper data acquisition process and prevent low-quality data from being processed by enforcing a minimal level of usability in the scenario and context in which it is carried out. However, one of the challenges is that the meaning of quality depends on the context. For this reason, any solution that supports data curation and quality must provide mechanisms to describe business rules according to the required domain in each case. The challenges to be taken into account are the following: (1) managing the heterogeneity of data coming from IoT sensors in offline or online environments; (2) developing an adaptable mechanism to provide data curation including data quality assessment depending on the context. To face these challenges, three objectives have been defined: (i) to propose an IoT-aware Big Data pipeline that allows data curation and data quality from different IoT sensor devices according to the context; (ii) the definition of mechanisms that enable data transformation to integrate them into a single data set; (iii) the integration of mechanisms based on context-aware decision models that facilitate the automated measurement and evaluation of data quality, and; (iv) the evaluation of the current proposal through a real scenario from the agricultural context by analysing the results obtained. One example of this type of IoT context can be found in the agribusiness sector. There is a catalyst in the agribusiness industries’ move to a model based on automated data collection and the creation of decision processes that rely on those data. Therefore, the concept of a smart farm is increasingly being adopted, as mentioned in Kosior (2018).Figure 1 depicts a classical smart farm scenario. The nature of the sources from where data is gathered makes it more than necessary to undergo preprocessing stages before feeding the pipeline that runs the Big Data system. Furthermore, the hostile environment in which these devices operate (high temperatures, humidity, battery-operated devices, radio connections, etc.) is an added handicap to ensure that data maintain quality. The fact that data sources are diverse and heterogeneous and the complexity of their sources can raise serious issues that can negatively impact data quality, Ilyas & Chu (2019) (e.g., missing or incomplete data due to power supply problems). This leads to taking into account that the data collected by IoT sensors, before their integration into the Big Data pipeline, must be preprocessed (i.e., data curation) and also must be submitted to an evaluation to determine their coherence. Thus, data that do not meet the requirements need to be discarded or improved; only data de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 2/24 Data Adquisition Humidity Sensor Temperature Sensor Controller 1Smart Farm 1 Water Sensor Soil Moisture Sensor Humidity Sensor Temperature Sensor Controller NSmart Farm N Water Sensor Soil Moisture Sensor Data Preparation ... Figure 1 Smart Farm IoT context example. Full-size DOI: 10.7717/peerjcs.1605/fig-1 that meet quality thresholds are considered to add value to the system. This will have an impact on the subsequent processes that depend on the data collected. For tackling the objectives, we integrate into a Big Data pipeline the data curation stage using CHAMALEON (Valencia-Parra et al., 2019) to integrate data coming from heterogeneous data sources, and the DMN4DQ (Valencia-Parra et al., 2021;de Haro-Olmo et al., 2021) to support a data quality assessment. Neither CHAMALEON nor DMN4DQ have been applied in IoT environments, at the same time that they have not been integrated into the same Big Data pipeline. For this reason, ELI has been proposed as an applicable pipeline that provides a framework for testing and analysing results in offline and online scenarios. We aim to achieve data curation and quality for the context at hand by proposing an approach that allows users to define a standard, easy-to-use and executable mechanism for specifying conditions in terms of what dimensions, what restrictions, etc. In summary, we have a publication that deals with data quality assessment, Valencia-Parra et al. (2021) and we have another article about data curation, Valencia-Parra et al. (2019) and de Haro-Olmo et al. (2021), respectively. In this new contribution we define a unified Big Data pipeline with tools for data quality assessment and data curation for sensorized environments, for which we have integrated CHAMALEON for curation and DMN4DQ for data quality assessment. This has not been done in any other contribution we have published before. The main contribution of this work is the provision of the framework and the evaluation that has been done under offline and online scenarios. The rest of the article is organised as follows. In the following section, we collect work related to IoT technology and Big Data pipelines, including the study of tasks related to the data acquisition and curation process. Section ‘ELI: IOT-Aware Big Data Pipeline Approach’ describes ELI, the proposed model for integrating data collected through IoT sensors and the Big Data pipeline. Section ‘DMN4DQ in a nutshell’ briefly introduces the data quality approach that is integrated into the Big Data pipeline. In Section ‘Case Study: de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 3/24 the agri-food case’ a concrete case is shown with data coming from an agricultural farm and in which the ELI pipeline in this work is applied. In Section ‘Evaluation and Analysis’ the results of applying the model to the case study are analysed. In Subsection ‘Discussion’, we contrast the results obtained between the different offline and online scenarios. In the final part, ‘Conclusions and Future Work’, conclusions and proposals for future work are drawn. RELATED WORK Faced with the challenge of integrating IoT technology with Big Data, several studies have been carried out, with relevant contributions to the architecture of the proposed models (Cecchinel et al., 2014;Marjani et al., 2017;Taherkordi, Eliassen & Horn, 2017). In Cecchinel et al. (2014) an architecture composed of boards that integrate IoT sensors is proposed that can intercommunicate through bridges established between different groups of sensors, which in turn would be responsible for sending the data to the cloud. Extending the perspective, Marjani et al. (2017) offers a somewhat more complex architecture, incorporating, in addition to IoT sensors, other elements with distinct functions for data collection through IoT sensors, networks connecting the various sensors, and providing a gateway for storing data in the cloud. Data are subsequently analysed in Big Data processes and add value to the entire process. As far as real-time data processing is concerned, the proposals shown so far do not show significant differences. Taherkordi, Eliassen & Horn (2017) specifies the architecture and component elements for a Big Data system to be able to process data from IoT environments. Several authors have proposed a lambda architecture for real-time processing of data collected through IoT sensors, Villari et al. (2014) and Kiran et al. (2015). However, these works are focused on defining or processing aspects of the architecture, ignoring the data quality and curation aspects. Data curation is one of the key issues that must be addressed for data collected by sensor devices in IoT environments to be valid and usable in the system. Freitas & Curry (2016) analyse the different challenges of Big Data with regard to the integration of curation and how new technologies deal with these new requirements. An important task is data acquisition (Lyko, Nitzschke & Ngonga Ngomo, 2016) and how new technologies have to deal with different problems and challenges (Lyko, Nitzschke & Ngonga Ngomo, 2016). We found other articles, such as Stonebraker et al. (2013),Choi et al. (2017),Lyko, Nitzschke & Ngonga Ngomo (2016),Beheshti et al. (2017),Rehm et al. (2020),Yang et al. (2017) and Murray et al. (2020) that address the tasks that are carried out to make the data reach a minimum quality for it to be used correctly. These tasks include data cleansing, data transformation, or data formatting, not forgetting that data may originate from heterogeneous devices with different ways of representing data, on which necessary transformations must be performed to obtain a set of resulting data that are compatible with each other. The proposal we carry out can provide an improvement to the architecture proposed in Yang et al. (2017) in which the importance of having accurate data is highlighted as a previous step to cloud storage. In this way, the proposed architecture takes into account the process of treatment of the acquired data, such as error detection, and refers to the de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 4/24 lack of new techniques to achieve this objective. Our work introduces as a novelty the use of the DMN4DQ in a Big Data pipeline combined with data curation process, where it allows the definition of business rules under the DMN notation (Object Management Group, 2019), which are applied to the received data in order to measure and evaluate the quality of the data and thus accept or reject each data, reporting on the quality of each data separately. Decision model and notation (DMN) is a modelling language and notation for the specification of business rules, which provides engines for automatic decision-making. Several tasks make up the process of data curation, reading, collection, classification, and enrichment, which must be perfectly defined and coordinated so that the result is adequate (Beheshti et al., 2017), also addressing the proposal of an API to facilitate the process of data curation for users. In Rehm et al. (2020), to avoid poor quality data in text documents, a platform is proposed to organise the data curation workflow in different contexts. To this end, they focus on aspects such as ensuring the pattern that data follows, incorporating machine learning techniques to assess data quality, and increasing the credibility of the data by making use of reference sources. A very interesting proposal is the one made by Murray et al. (2020), which deals with a tool in the field of COVID-19 disease, which deals with the detection of symptoms in various patients and on which data curation techniques are applied, as the data originally acquired does not always have the desired quality. To this end, a data cleaning and curation process is proposed that involves processing the data to obtain the appropriate format and types of data in each field. The data quality analyse process proposed in our work can contribute positively to the improvement of the process, complementing its data curation proposal and, by providing business rules for data quality, can provide measurement and evaluation of the data incorporated into the system, including in terms of usability. This is an innovative approach to the work we propose, as it incorporates a proven framework in the field of data quality that allows data to be tracked throughout its lifecycle, systematically applying business rules according to the context in which it is applied. It is important to note that this approach can be applied to any context that makes use of IoT environments that need to collect data from sensors for automatic processing and with minimum quality requirements. ELI: IOT-AWARE BIG DATA PIPELINE APPROACH The increasing complexity of sources and the later analysis has made it necessary to develop a set of activities to acquire, prepare, analyse and interpret the data. This set of activities is choreographed in the known as Big Data pipelines to facilitate the data flow when data have variety, velocity, and an important volume. These three Vs, known as relevant features of Big Data, tend to appear in IoT environments. IoTs describe a network of physical objects to extract data from the real environment to interchange data among devices via the Internet. Previous proposals have incorporated the management of complex semi-structured data, including data curation (Valencia-Parra et al., 2019). However, online data quality analysis and application in an IoT environment were out of the scope of the previous proposal. de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 5/24 ELI: Big Data Pipeline Data Storage Extensions Data Transformation and Integration Data Quality Rules Data Acquisition Data Preparation Data Analysis Interpretration and Visualisation Sensors Data Curation Data Quality Assesment Figure 2 ELI pipeline overview. Full-size DOI: 10.7717/peerjcs.1605/fig-2 To extract valuable data from IoT sensor readings, several tasks must be performed in a coordinated manner to form a Big Data Pipeline (Ceravolo et al., 2018;Pääkkönen & Pakkala, 2015;Curry, 2016;Ardagna et al., 2017). Building on existing models, this leads to the proposal of ELI, an IoT-aware Big Data Pipeline model, and it is shown in Fig. 2. It is important to remark on the differences between machine learning and Big data pipelines. A machine learning pipeline aims to produce a machine learning model, but a Big Data pipeline aims to extract value from data (Valencia-Parra, 2022;Ceravolo et al., 2018). The current machine learning processes or pipelines are based on data preparation, model training and evaluation, and returning a trained model. Big data pipelines can integrate a business intelligence or machine learning process in the data analysis stage to extract value from data. In the proposed model (see Fig. 2), after the collection of data from IoT sensors, a pipeline is established to carry out the following tasks: (1) Data Acquisition of sensors and arrange them in a situation to be used in the next phase of the pipeline; (2) Data Preparation, which involves cleaning and formatting operations, and integrating of the original data to adapt them to the appropriate format to be processed in the next phase; according to Curry (2016), this task can be added to the following one; (3) Data Analysis, where valuable information is obtained from the data by applying business intelligence, Ardagna et al. (2017) and data science, Poornima & Pushpalatha (2016);Marjani et al. (2017); (4) Interpretation and Visualisation, the final phase of the pipeline in which to display the valuable information that emerges after the entire Big Data pipeline process. (5) Data Storage, whose main objective is to store data from the moment of acquisition so that it is available throughout the entire process. In addition to these tasks along the pipeline, two more tasks are introduced sequentially, Data Curation and Data Quality Assessment. Data Curation is defined as ‘‘the act of discovering a data source of interest, cleaning and transforming the new data, semantically integrating it with other local data sources, and de-duplicating the resulting composite’’, de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 6/24 Stonebraker et al. (2013). It consists of preparing the data in the form that is required in the system to be properly processed and to be able to obtain quality data. Data Quality Assessment: Batini & Scannapieco (2016) evaluates the data using rules on various dimensions of data quality to determine the degree of quality of each piece of data fed into the system. To achieve the inclusion of data curation and data quality assessment, it is proposed to use CHAMALEON (Valencia-Parra et al., 2019) and DMN4DQ, Valencia-Parra et al. (2021), respectively. CHAMALEON in a nutshell Data transformation has been an important topic in the data-warehouse area and currently applied to Big Data environments that need new mechanisms and tools to combine huge quantities of heterogeneous information. The data transformation process is a difficult, error-prone, time-consuming, but crucial stage of data analytics. In order to facilitate advanced data transformations in Big Data environments, CHAMALEON (https://github.com/IDEA-Research- Group/Data-Chameleon) (Valencia-Parra et al., 2019) proposes a set of complex functions in a concise syntax supported by a Domain-Specific Language (DSL). CHAMALEON was tested on a Big Data framework to obtain an initial benchmark about the impact on performances of size factors such as the number and the size of tuples. CHAMALEONenablesdatacurationofcomplexheterogeneousdatasourcesusingaDSL to facilitate data wrangling. The DSL provided by CHAMALEON allows transformation using templates with operations, for example, to change schemas. The data from sensors are ingested and stored in different data stores (i.e., cvs or txt files) in the data storage layer. Afterwards, the data are curated using the CHAMALEON template, generating a single dataset. After the data curation process, DMN4DQ is used to assess the usability of data quality rules. Applied to IoT environments, CHAMALEON permits the definition of a set of transformations to obtain a single repository where data quality assessment and later analysis are applied, as shown in Fig. 3. This is the first integration of CHAMALEON into a Big data pipeline to curate data from IoT environments. DMN4DQ in a nutshell DMN4DQ method (Valencia-Parra et al., 2021) is designed to automatically obtain an evaluation of the quality of the data and its usability in the context to which it belongs and according to predefined rules. As shown in Fig. 4, it is a matter of defining the different rules that will make it possible to determine the quality of the data in terms of usability at different hierarchical levels. To define the business rules, DMN4DQ is based on Decision Model and Notation (DMN) (Object Management Group, 2019), a modelling language and notation for the specification of business rules, providing engines for automatic decision-making. This notation can be used to represent the business logic that will be applied to the data to be de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 7/24 Figure 3 Data preparation for an IoT scenario with multiple data sources. Full-size DOI: 10.7717/peerjcs.1605/fig-3 BR.DV.[1:k] BR.DUD About the value Deploy and Execute DMN4DQ About the data usability ... BR.DUD BR.DQA BR.DQM.Dimension1 BR.DQM.DimensionN About the DQ assessment BR.DQM.[Dimension1:DimensionN] About the DQ measurement BR.DQA BR.DV.01 BR.DV.n BR.DV.m BR.DV.k Instantiate DMN4DQ Hierarchy Define Business Rules for Data Quality Figure 4 DMN4DQ method. Full-size DOI: 10.7717/peerjcs.1605/fig-4 de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 8/24 Figure 5 DMN table example. Full-size DOI: 10.7717/peerjcs.1605/fig-5 processed, achieving a classification of the data incorporated into a business process as evaluated by one of the existing engines. These rules are based on existing ‘‘if-then’’ statements in programming languages. We can see an example of a decision rule definition in Fig. 5 implemented through a table, in which the data that make up the input for the rule are defined, arranging the different conditions in different numbered rows, conditions are expressed in the FEEL language (Object Management Group, 2019). Each rule will have an output that will be activated depending on the input conditions that are met. Both input and output data types can be string, integer, decimal, date, and Boolean. Following the example in Fig. 5, those data submitted to the input whose value, for instance, in the first entry, for the Completeness attribute must be greater than or equal to 5 and the entries for the Accuracy attribute must be greater than or equal to 100. In this case, if the rule is satisfied, you would get an output, for instance, DQA (Data Quality Assessment) with the assigned value of ‘‘suitable quality’’. In the example of Fig. 5, the decision about the ‘DQA’ is taken according to the values of the inputs hi‘Completeness’, ‘Accuracy’ hi. The evaluation of each rule is executed and ordered from the first row to the last. For example, for a tuple of input values hi3.0, 150 hi, the output is ‘sufficient quality’ since row 1 is not satisfied, but row 2 is. Row 3 is not evaluated since inputs have matched row 2. Likewise, the DMN model also incorporates a way to handle multiple matches in a rule, making it possible to enrich the outputs to respond to a wide variety of possible cases. For this purpose, it has a hit policy indicator, which can take the following values: unique (U), where only one rule can be activated, and it is not possible to activate any other rule in the same set; any (A), where it is possible that several rules can be activated and will be taken into account to make the output of the rule. Priority (P), in this case, although several rules can be activated by fulfilling the condition, only the one with the highest priority will be the one that is finally activated, giving rise to the output associated with the selected rule; first (F), among all the rules defined along the different rows, the first one that meets the requirements will be selected, giving as output the value associated with the output of de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 9/24 Figure 9 Completeness rating of data collected by sensors. Full-size DOI: 10.7717/peerjcs.1605/fig-9 Figure 10 Data quality measurement for the accuracy dimension. Full-size DOI: 10.7717/peerjcs.1605/fig-10 completeness, and accuracy, to classify the data as adequate, sufficient, poor, or unusable quality. The results obtained have been that 42.14% is classified as bad quality data, 36.67% as suitable, 17.53% as sufficient quality, and 3.67% as bad quality. The application of the rules contained in the last level of the hierarchy determines which data are usable and which are not, obtaining the equivalent result that 54.20% of the records can be used as they comply with the quality requirements specified by the business rules and that 45.80% of the data should not be used as they do not reach the minimum quality required. The conclusion of the analysis of the data obtained after the evaluation of the DMN in the data quality dimensions of completeness and accuracy is that 54.20% of the data can de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 16/24 Figure 11 Data quality measurement for the completeness dimension. Full-size DOI: 10.7717/peerjcs.1605/fig-11 Data Ingestion Data Acquisition Data Integration Data Usability Evaluation Controller N ... Controller 1 Data Curation & Quality Data Storage Figure 12 Architecture of the streaming scenario. Full-size DOI: 10.7717/peerjcs.1605/fig-12 be used and that the remaining 45.80% should not be used as they contain temperature or humidity data out of range or incomplete data in an unacceptable proportion. This information can be used to make an effort to review the sensors to detect malfunctions in the operation of some sensors or even to verify the previous stages of data processing on the data classified as unusable. Online scenario The objective of this section is to validate the capability of our proposal to process data in real-time. We have simulated an IoT scenario based on the same dataset used in the previous section. The scenario is composed of 50 sensors generating streaming data, producing an average of 8.5 records and 204 bytes per second. Figure 12 shows a diagram of the de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 17/24 architecture employed in this scenario. All the material used for the evaluation is available at the Zenodo repository (see online directory): https://www.doi.org/10.5281/zenodo.8142846. Data acquisition was simulated using Node-RED. Different factors have been included, so that the generated data includes completeness and accuracy data errors, to make the scenario as realistic as possible. These errors are produced as follows: (i) sensors might generate data with null values with a probability of a 3% on average; (ii) sensors might generate out-of-range data with a probability of a 5% on average; and (iii) sensors generate data at different rates, which could lead to missing values during the aggregation in time intervals. Data ingestion is performed by Apache Kafka, being responsible for collecting the sensors’ data and making it available for curation. Apache Spark consumes this data and performs the curation process according to the ELI pipeline. First, the data from the sensors must be grouped by location and by time intervals. Unlike the original dataset, which groups the data in 1-hour intervals, we decided to group the data in 30-second intervals to increase the rate of processed records. With this setting, each group was composed of an average of 33.7 records from the sensors, consuming 6.87 KB of memory per group. Once the data is grouped, the average of the measurements obtained by each sensor within each group is calculated. If any data value is not available, the result is marked as null. Once transformed, the usability of the data is calculated and stored in a MongoDB database. We executed this scenario for 1 h. The sensors produced an amount of 43,237 data records, which were transformed into 1,292 records after grouping by location and time intervals. 593 of those records (i.e., the 45%) were marked as ‘‘use’’. On the other hand, 699 (i.e., the 54%) were marked as ‘‘do not use’’. The sample size in the online scenario comprises 1,292 data records corresponding to readings generated by a total of 50 sensors in six different locations. The humidity and temperature-related characteristics in the dataset use double values; otherwise, the value ‘‘NA’’ is used as missing data. In particular, for the humidity-related data, VW_30 cm has 1,070 observations, of which 642 are different, VW_60 cm has 1,012 observations, of which 605 are different, VW_90 cm has 943 observations, of which 513 are different, VW_120 cm has 914 observations, of which 497 are different, VW_150 cm has 874 observations, of which 424 are different. Concerning the temperature data, T_30 cm has 956 different values and 1051 observations, T_60 cm has 914 different values and 995 observations, T_90 cm has 857 different values and 956 observations, T_120 cm has 848 different values and 992 observations and T_150 cm has 801 different values and 907 observations. Similar to the offline scenario, we have carried out a statistic analysis, first, Pearson’s Chi-square test is used to obtain statistical data that allow us to determine the relationship between the location of the IoT sensors and the values collected at different depths, both for humidity and temperature. In this online scenario, after analysing the values obtained, we observe that the contingency coefficient is between 0.6615 and 0.9119 for temperature and between 0.8562 and 0.9111 for humidity values. On the other hand, the Lambda statistic in the case of temperature is between 0.0755 and 0.4492, obtaining values between 0.2824 and 0.4420 for the humidity. In all cases, a p-value equal to 0.00 has been obtained, so we could affirm that there is a significant association between the location of the sensors and de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 18/24 the temperature readings as well as between the location of the sensors and the humidity with a confidence level higher than 95%. For the online scenario we performed the hypothesis test concerning the difference between two means (mu1-m2) of samples from normal distributions. The two hypotheses tested are the null hypothesis: mu1-mu2 =0.0, and; the alternative hypothesis: mu1-mu2 <> 0.0. Given the sample of 1,000 observations with a mean of 0.0 and a standard deviation of 1.0, and a second sample of 1,000 observations with a mean of 0.0 and a standard deviation of 1.0, the calculated Z-statistic is equal to 0.0. Since the P-value for the test is 1.0 (greater than 0.05), the null hypothesis cannot be rejected at the 95.0% confidence level. The confidence interval shows that the mu1-mu2 values supported by the data fall between −0.0876524 and 0.0876524. The calculated Z-statistic is 0.0. As a conclusion of the hypothesis test, we can extract that the data included in the two samples used in the test are similar, with no significant differences between the two samples. Regarding the performance, with these settings, and during the time the scenario was run, a total amount of 8,882.24 KB of memory was consumed. The dataset that has been produced is composed of 1,292 data records, which includes the aggregated data and the results of the evaluation of the data usability, totalling 968 KB of data. Regarding the execution time, the evaluation of the usability of the data took 1.08 milliseconds for each aggregated data record. This implies that, in total, the evaluation of the usability of the whole dataset took 1,395.36 milliseconds. For the development of the experiment, a computer with a main memory of 16 GB and an Intel Core i7-1165G7 processor with 4 cores at 2.8 GHz was used, where Spark consumes the maximum allowed for each of the CPUs of the nodes in the cluster, in this case the maximum allowed for each of the four execution threads. Inconclusion,thisscenariodemonstratesthattheproposedELIpipelineisalsoapplicable to IoT scenarios in which data is continuously generated, allowing the evaluation of the usability of data in real-time. Discussion In both offline and online scenarios, the ability to classify data using the ELI pipeline has been tested. In the case of the offline scenario, on a dataset of 3,373,699 records that have been treated and obtaining a data curation with the determination that 54.20% of the data are likely to be incorporated into the system by classifying them as usable, disregarding the rest. In the case of the online scenario, on the other hand, data were obtained by simulation, generating data in real-time on 50 sensors and introducing a predefined error rate in the generation of data so that both samples were similar. In this case, 43,237 records were obtained, of which 45% were classified as usable, a lower percentage than in the offline scenario. In both cases, the data quality process worked correctly on the dataset provided, applying the business rules implemented by DMN. Obtaining a higher rate of data classified as usable depends on the characteristics of the data supplied at the input, on which the different rules of the decision tree will be applied. de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 19/24 According to the process performance, the data quality assessment does not depend on if the data have come from an offline or online scenario. The main difference is the curate phase, where the data integration can be done online, or it must be executed online with reads of the sensor in windows of time. In relation to the evaluation, neither solution implies a technological challenge; the difficulty is that in an online scenario, only a subset of the dataset is considered, and the curation step is executed online, integrating the various sensor reads in a tuple to be assessed. Depending on the size of the window time, different tuples could be created and assessed. CONCLUSIONS AND FUTURE WORKS There are several challenges facing IoT scenarios, especially heterogeneous data sources that collect data from the environment and inject it into the system, which must be treated more or less homogeneously. For this reason, it is necessary to perform the data curation process and determine the quality of data so that only data that meets minimum requirements are accepted. Both processes allow the overall operation of the system and the business logic to be the most appropriate, discarding poor-quality data that can contribute little to the system except in negative aspects, such as incorrect decision-making or the introduction of errors. We have defined an IoT-aware Big Data Pipeline, which integrates CHAMALEON and DMN4DQ to facilitate data curation and data quality aspects. The use of CHAMALEON facilitate the data transformation in a single dataset, meanwhile, DMN4DQ provides users with a method to measure and assess data quality. Further, we have integrated and demonstrated functionality in offline and online scenarios. Thus, both CHAMALEON and DMN4DQ have been used to transform, measure and evaluate the quality of all the data coming from IoT sensors in a real scenario, receiving as output the recommendation in terms of the usability of the data in the defined quality dimensions (completeness and accuracy). After applying the proposed model, the result was that 54% of the data collected by IoT sensors in the offline scenario met the defined quality requirements, and the rest of the data did not meet the same requirements, so that they could be discarded. In the online scenario, 45% of the data were selected as usable. In both cases, the amount of data rejected for being of low quality is relevant, and this fact should be taken into account. Among the benefits obtained by applying the model is the fact that only quality data are selected, providing greater reliability and trustworthiness in the data provided after applying the data curation process. However, data that do not reach a minimum quality after being evaluated are discarded and no longer need to store these data, or we can choose to analyse data problems and try to find corrective actions to ‘‘fix’’ the problems encountered. Among the limitations of the proposed approach are the following: (1) the DMN model must be known to implement the business rules that deal with data from IoT sensors; (2) only two dimensions have been considered in the validation of the model: completeness and accuracy, which could be insufficient in different scenarios and require greater complexity. Regarding future work, the possibility of integrating a data analysis model within ELI that allows statistical analysis compatible with the hierarchy of the DMN business de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 20/24 rules is considered, as well as the incorporation of security measures that guarantee data privacy during the data quality analysis process. Other future lines of research would be the integration of the selection of the corrective actions to fix data quality problems detected and the integration of the data curation process in combination with blockchain technology, where to take advantage of the benefits of this technology. ADDITIONAL INFORMATION AND DECLARATIONS Funding This work has been funded by the projects AETHER-US (PID2020-112540RB- C44/AEI/10.13039/501100011033) and ALBA-US (TED2021-130355B-C32) by MCIN/AEI/10.13039/501100011033, COPERNICA (P20_01224) and METAMORFOSIS (US-1381375). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. Grant Disclosures The following grant information was disclosed by the authors: AETHER-US: PID2020-112540RB-C44/AEI/10.13039/501100011033. ALBA-US (TED2021-130355B-C32): MCIN/AEI/10.13039/501100011033. COPERNICA: (P20_01224). METAMORFOSIS: US-1381375. Competing Interests The authors declare that there are no competing interests. Author Contributions •Francisco José de Haro-Olmo conceived and designed the experiments, performed the experiments, analyzed the data, performed the computation work, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft. •Alvaro Valencia-Parra conceived and designed the experiments, performed the experiments, analyzed the data, performed the computation work, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft. •Ángel Jesús Varela-Vaca conceived and designed the experiments, performed the experiments, analyzed the data, performed the computation work, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft. •José Antonio Álvarez-Bermejo conceived and designed the experiments, performed the experiments, analyzed the data, performed the computation work, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft. •María Teresa Gómez-López conceived and designed the experiments, performed the experiments, analyzed the data, performed the computation work, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft. Data Deposition The following information was supplied regarding data availability: de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 21/24 The raw data and code are available at Zenodo: ajvarela. (2023). ajvarela/eli-iot-bigdata- pipeline: New online results (v.1.1.0). Zenodo. https://doi.org/10.5281/zenodo.8142846. REFERENCES Ardagna CA, Bellandi V, Ceravolo P, Damiani E, Bezzi M, Hebert C. 2017. A modeldriven methodology for big data analytics-as-a-service. In: 2017 IEEE 6th international congress on big data. Piscataway: IEEE, 105–112 DOI 10.1109/BigDataCongress.2017.23. Batini C, Scannapieco M. 2016. Data and information quality: dimensions, principles and techniques. Cham: Springer. Beheshti SMR, Tabebordbar A, Benatallah B, Nouri R. 2017. On automating basic data curation tasks. In: 26th international world wide web conference. Perth: IW3C2, 165–169 DOI 10.1145/3041021.3054726. Cecchinel C, Jimenez M, Mosser S, Riveill M. 2014. An architecture to support the collection of big data in the Internet of Things. In: 2014 IEEE world congress on services. Piscataway: IEEE, 442–449 DOI 10.1109/SERVICES.2014.83. Ceravolo P, Azzini A, Angelini M, Catarci T, Cudré-Mauroux P, Damiani E, Mazak A, Van Keulen M, Jarrar M, Santucci G, Sattler KU, Scannapieco M, Wimmer M, Wrembel R, Zaraket F. 2018. Big data semantics. Journal on Data Semantics 7(2):65–85 DOI 10.1007/s13740-018-0086-2. Choi S, Seo J, Kim M, Kang S, Han S. 2017. Chrological big data curation: a study on the enhanced information retrieval system. IEEE Access 5:11269–11277 DOI 10.1109/ACCESS.2016.2642979. Curry E. 2016. The big data value chain: definitions, concepts, and theoretical approaches. In: New horizons for a data-driven economy: a roadmap for usage and exploitation of big data in Europe. Cham: Springer International Publishing, 29–37 DOI 10.1007/978-3-319-21569-3_3. de Haro-Olmo FJ, Valencia-Parra A, Varela-Vaca AJ, Álvarez Bermejo JA. 2021. Data curation in the Internet of Things: a decision model approach. Computational and Mathematical Methods 3(6):e1191. Freitas A, Curry E. 2016. Big data curation. In: New horizons for a data-driven economy. Cham: Springer International Publishing, 87–118 DOI 10.1007/978-3-319-21569-3_6. Gasch CK, Brown DJ, Campbell CS, Cobos DR, Brooks ES, Chahal M, Poggio M. 2017. A field-scale sensor network data set for monitoring and modeling the spatial and temporal variation of soil water content in a dryland agricultural field. Water Resources Research 53(12):10878–10887 DOI 10.1002/2017WR021307. Hernández MA, Stolfo SJ. 1998. Real-world data is dirty: data cleansing and the merge/purge problem. Data Mining and Knowledge Discovery 2(1):9–37 DOI 10.1023/A:1009761603038. Ilyas IF, Chu X. 2019. Data cleaning. New York: Association for Computing Machinery. de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 22/24 Kiran M, Murphy P, Monga I, Dugan J, Baveja SS. 2015. Lambda architecture for costeffective batch and speed big data processing. In: 2015 IEEE international conference on big data. Piscataway: IEEE, 2785–2792 DOI 10.1109/BigData.2015.7364082. Kosior K. 2018. Digital transformation in the agri-food sector—opportunities and challenges. Annals of the Polish Association of Agricultural and Agribusiness Economists 2018(2):98–104 DOI 10.22004/ag.econ.293647. Lyko K, Nitzschke M, Ngonga Ngomo AC. 2016. Big data acquisition. In: New horizons for a data-driven economy: a roadmap for usage and exploitation of big data in Europe. Cham: Springer International Publishing, 39–61 DOI 10.1007/978-3-319-21569-3_4. Marjani M, Nasaruddin F, Gani A, Karim A, Hashem IAT, Siddiqa A, Yaqoob I. 2017. Big IoT data analytics: architecture, opportunities, and open research challenges. IEEE Access 5:5247–5261 DOI 10.1109/ACCESS.2017.2689040. Murray B, Kerfoot E, Graham MS, Sudre CH, Molteni E, Canas LS, Antonelli M, Klaser K, Visconti A, Chan AT, Franks PW, Davies R, Wolf J, Spector T, Steves CJ, Modat M, Ourselin S. 2020. Accessible data curation and analytics for international-scale citizen science datasets. ArXiv preprint. arXiv:2011.00867. Object Management Group. 2019. Decision model and notation (DMN). Version 1.2. Available at https://www.omg.org/spec/DMN . Pääkkönen P, Pakkala D. 2015. Reference Architecture and Classification of Technologies, products and services for big data systems. Big Data Research 2(4):166–186 DOI 10.1016/J.BDR.2015.01.001. Poornima S, Pushpalatha M. 2016. A journey from big data towards prescriptive analytics. ARPN Journal of Engineering and Applied Sciences 11(19):11465–11474. Rahm E, Do HH. 2000. Data cleaning: problems and current approaches. IEEE Data Engineering Bulletin 23(4):3–13. Redman TC. 1998. The impact of poor data quality on the typical enterprise. Communications of the ACM 41(2):79–82 DOI 10.1145/269012.269025. Rehm G, Bourgonje P, Hegele S, Kintzel F, Schneider JM, Ostendorff M, Zaczynska K, Berger A, Grill S, Räuchle S, Rauenbusch J, Rutenburg L, Schmidt A, Wild M, Hoffmann H, Fink J, Schulz S, Seva J, Quantz J, Böttger J, Matthey J, Fricke R, Thomsen J, Paschke A, Qundus JA, Hoppe T, Karam N, Weichhardt F, Fillies C, Neudecker C, Gerber M, Labusch K, Rezanezhad V, Schaefer R, Zellhöfer D, Siewert D, Bunk P, Pintscher L, Aleynikova E, Heine F. 2020. QURATOR: innovative technologies for content and data curation. In: CEUR workshop proceedings, vol. 2535.Available at http://arxiv.org/abs/2004.12195. Stonebraker M, Stonebraker M, Beskales G, Pagan A, Bruckner D, Cherniack M, Xu S, Analytics V, Ilyas IF, Zdonik S. 2013. Data curation at scale: the data tamer system. In: IN CIDR 2013.Available at http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1. 1.302.8817. Taherkordi A, Eliassen F, Horn G. 2017. From IoT big data to IoT big services. In: Proceedings of the symposium on applied computing. New York: ACM Press, 485–491 DOI 10.1145/3019612.3019700. de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 23/24 Valencia-Parra A. 2022. On the enhancement of big data pipelines through data preparation, data quality, and the distribution of optimisation problems. Universidad de Sevilla. Valencia-Parra Á, Parody L, Varela-Vaca ÁJ, Caballero I, Gómez-López MT. 2021. DMN4DQ: when data quality meets DMN. Decision Support Systems 141:113450 DOI 10.1016/j.dss.2020.113450. Valencia-Parra Á, Varela-Vaca ÁJ, López MTG, Ceravolo P. 2019. CHAMALEON: framework to improve data wrangling with complex data. In: Proceedings of the 40th international conference on information systems, ICIS 2019, Munich, Germany, December 15–18, 2019. Association for Information Systems. Available at https: //aisel.aisnet.org/icis2019/data_science/data_science/16. Villari M, Celesti A, Fazio M, Puliafito A. 2014. AllJoyn Lambda: an architecture for the management of smart environments in IoT. In: 2014 international conference on smart computing workshops. Piscataway: IEEE, 9–14 DOI 10.1109/SMARTCOMP-W.2014.7046676. Yang C, Puthal D, Mohanty SP, Kougianos E. 2017. Big-sensing-data curation for the cloud is coming: a promise of scalable cloud-data-center mitigation for nextgeneration IoT and wireless sensor networks. IEEE Consumer Electronics Magazine 6(4):48–56 DOI 10.1109/MCE.2017.2714695. de Haro-Olmo et al. (2023), PeerJ Comput. Sci., DOI 10.7717/peerj-cs.1605 24/24