Journal:Avoidance of operational sampling errors in drinking water analysis

From LIMSWiki
Jump to navigationJump to search
Full article title Avoidance of operational sampling errors in drinking water analysis
Journal AQUA - Water infrastructure, Ecosystems and Society
Author(s) Fernandes, Ana; Figueiredo, Margarida; Ribeiro, Jorge; Neves, José; Vicente, Henrique
Author affiliation(s) Universidade Lusófona, Universidade de Évora, Instituto Politécnico de Viana do Castelo, Instituto Universitário de Ciências da Saúde, Universidade do Minho
Primary contact Email: hvicente at uevora dot pt
Year published 2022
Volume and issue 71(3)
Page(s) 373–386
DOI 10.2166/aqua.2022.074
ISSN 2709-8036
Distribution license Creative Commons Attribution 4.0 International
Download (PDF)


The internal audits carried out in the first half of 2019 in Portuguese water laboratories as part of quality accreditation in accordance with ISO/IEC 17025:2017 showed a high frequency of adverse events in connection with sampling. These faults can be a consequence of a wide range of causes, and in some cases, the information about them can be insufficient or unclear. Considering that sampling has a major influence on the quality of the analytical results provided by water laboratories, this work presents a system for reporting and learning from adverse events. Its aim is to record nonconformities, errors, and adverse events, making possible automatic data analysis to better ensure continuous improvement in operational sampling. The system is based on the Eindhoven Classification Model and enables automatic data analysis and reporting to identify the main causes of failure. Logic programming is used to represent knowledge and support the reasoning mechanisms to model the universe of discourse in scenarios of incomplete, contradicting, or even unknown information. In addition to suggesting solutions to the problem, the system provides formal evidence of the solutions presented, which will help to continuously improve drinking water quality and promote public health.

Keywords: drinking water, Eindhoven Classification Model, Knowledge Representation and Reasoning, logic programming, sampling errors, water quality, decision support system


  • An adverse event reporting and learning system for water sampling is described.
  • The Eindhoven Classification Model is extended and adapted for water sampling.
  • Logic programming is used for knowledge representation.
  • The proposed system can deal with insufficient or ambiguous information.
  • The system allows users to identify the relevant issues behind the errors that may occur.


Securing water quality for human consumption through a public supply system is an essential element of health policy. By the end of the nineteenth century, an assessment and control of risks to human health from transmission of diseases caused by water consumption had been carried out empirically on the basis of the physical appearance of water.[1] Epidemiological studies conducted by John Snow showed a close association between the consumption of water with fecal contamination and a cholera outbreak in London.[2] The discovery of the existence of microorganisms by Louis Pasteur in 1863 and the isolation of Vibrio cholera bacillus in 1883 by Robert Koch formed the crucial scientific basis for the association of water use with public health and served as a starting point for the establishment of practices and protocols to control water quality.[3][4]

Until the middle of the twentieth century, the quality of water for human consumption had been largely assessed based on its organoleptic characteristics, i.e., its colorless, tasteless, and odorless features.[5] However, this type of assessment does not guarantee the protection of public health from pathogenic microorganisms and hazardous chemicals. Therefore, it is imperative to establish standards based on quantifiable parameters that define the properties of water for human consumption in terms of microbiological, physical, chemical, and radiological factors.[6] Current methods of controlling water quality are time-consuming and complex, and they involve the use of significant technical and financial resources (e.g., calibrated equipment, infrastructure, skilled technicians, and reagents). With all this complexity, a large number of errors and failures can occur.[7] A failure can be defined as a planned action not meetings its required end result, at times because of use of an incorrect plan. These failures can be in connection with products, processes, and systems.[8]

The best way to prevent similar errors and failures from happening again is to report them, i.e., create experiential learning systems to identify their causes. Although this approach is widely used in the water sector, it is important to note that classification systems work better when they are limited to a specific field/stage/phase (e.g., pre-analytical, analytical, and post-analytical phases). Sampling is an important stage in a water quality control program as it can affect results if a sample is not representative of the water being controlled. On the one hand, sampling errors can arise if the sampling is not designed to answer specific questions (usually regulators specify the sampling approach and the sampling design to be adopted). On the other hand, sampling errors can also be related to operational issues.

In this work, a system for reporting and learning from errors is presented, with the aim of describing and preventing those that occur in operational sampling of water for human consumption. The operational sampling of water for human consumption involves four main steps: collection, conditioning, preservation, and transportation. These steps are depicted in Figure 1. Water samples are delivered to the laboratory for analysis, and the sampling technician is responsible for taking a valid and representative sample.[9]

Fig1 Fernandes AQUA22 71-3.png

Figure 1. The main steps in operational sampling of water for human consumption.

Due to the increasing importance attached to the representativeness of sampling, greater emphasis has been placed on the adequate collection, conditioning, preservation, and transport of samples. Thus, it is advisable that laboratories help to plan a sampling program in partnership with their customers. This partnership is essential to ensure that the selection of samples is adequate in order to minimize errors and to correspond to the needs of the consumer.[10] At this point, it is important to reiterate that the main goal of water analysis is to aid the decision-making process.

Thus, the reliability of the decisions made depends on the variability of the experimental results. Despite variability being inherent to natural systems, if the variability due to errors in sampling, transport, handling, and/or analysis is underestimated, wrong decisions can be made, with negative consequences for health, environment, and financial matters, just to name a few. Indeed, the errors that occur during the water analysis process are difficult to quantify. Inadequate training, over-reliance on automated systems, and complicated software resources are some of the relevant issues behind the errors that may occur.[11] More broadly, knowledge is crucial to solve the problems of the economy and society. In everyday situations, however, the information that flows from various sources is often incomplete, inaccurate, uncertain, contradictory, and even unknown. On the other hand, existing models are built based on some idealizations that remove these real-world properties.

The result is a system that, due to its inability to model the world or universe of discourse, never delivers the expected answers.[12] In the water sector, particularly with regard to sampling errors, there are many situations where the information available on errors is insufficient or ambiguous. The system proposed in this work is based on the Eindhoven Classification Model (ECM)[13] and focuses on avoiding the causes of errors by applying a model specially developed for the operational sampling phase.

The ECM was created to address human error in the chemical process industry and has since been applied in different areas.[14][15][16][17][18][19] The ECM classifies two types of errors, namely, human or active errors and latent ones. With regard to human error, the ECM incorporates Rasmussen's SRK thematic, which includes three levels of behavior, namely, competence-based, rule-based, and knowledge-based behavior levels.[20] In the case of latent errors, the ECM differentiates between technical and organizational errors.[13] The former occurs when there is an obstacle associated with physical components (e.g., devices and physical installations), while the latter is associated with protocols, procedures, or knowledge transfers.

The main objective of this work is to present an adverse event reporting and learning system, developed specifically for the sampling phase. Based on the internal audits carried out in the first half of 2019 in Portuguese water laboratories, the adverse event "Failure in Sampling" was chosen to demonstrate how the proposed system can be applied to real-world problems. This system, known as Adverse Event Reporting and Learning System related to Water Sampling (AERLS-WS), intends to record the nonconformities, errors, and adverse events that occur during sampling. It also intends to be a learning system that enables data analysis to ensure continuous improvement in drinking water quality and the promotion of public health.

Related work

The need for accurate predictions of water quality has encouraged researchers to develop new methods and improve the predictive capabilities of traditional ones. This includes artificial intelligence (AI)–based problem-solving methods, which have seen adoption in the water industry. Several studies in the literature illustrate the application of these tools for quality water control, but very few relate to drinking water. Indeed, water quality modeling is a powerful tool for studying, describing, and predicting the ecological status of an aquatic ecosystem. Morales-Torres et al.[21] presented a study about the use of sustainable drainage systems to manage urban runoff, aiming to contribute to environmental and landscape improvement. The authors developed a tool to analyze the impact of storm water management on the urban environment and introduced energetic and environmental criteria in the decision-making process. Stefanovic et al.[22] developed a web-based system to manage Serbian reservoirs. The authors created a software that brings together all the relevant actors, processes, data sources, and applications. The software allows for testing different organizational scenarios, due to its flexibility, extensibility, and the fact that it could be customized. Allan et al.[23] studied the effects of regulation, proprietorship, and business culture on risk management within the water sector. The authors stressed that a paradigm shift is necessary. The water sector should move from a reactive to a pro-active risk management culture based on knowledge. However, the authors stated that there is a gap in the understanding of the drivers required to bring about such a change. Pearson et al.[24] presented a decision support system to support managers in the urban water sector. The proposed system aims to shift decision-making from the conventional standards to a sustainable, inclusive, and dynamic paradigm, anchored by social learning and commitment. The authors stressed the value of the basic units of social learning, i.e., knowledge transfer for transformation, monitoring and evaluation of the decision-making process, and stakeholder engagement.

In the water sector, there are many situations in which information is incomplete. However, most of the decision support systems ignore this fact. Most of the time, such systems do not provide the expected answers due to their inability to represent the universe of discourse. Thus, it is of utmost importance to deal with defective information. In this context, the use of the logic programming (LP) paradigm to express theories has grown in recent years, and many other fields have started using its tools and methodologies. Theories are typically expressed as a succession of rules and facts that allow to deduce non-logical consequences using logical inferences.[25] According to the extension to the LP language presented by Ferreira Maia Neves[26], both explicit (or strong) negation and explicit declarations may be used in the establishment of rules and facts. Furthermore, theories can be enhanced by adding special rules in the form of invariants to specify the context under which the universe of discourse should be understood. Such invariants specify the conditions that must be met and must have overall consistency, i.e., it must not be possible to infer a conclusion and its contradiction.[26][27][28] This extension to the LP language uses the open-world assumption (OWA), i.e., everything is unknown or undefined until one has some secure evidence of its truthfulness or falseness.[29] The OWA differs from the more usual closed-world assumption (CWA), where everything is assumed false until there is solid evidence of its truthfulness.[29] The use of the OWA is the main advantage of the method used, since it allows to deal with incomplete, inconsistent, contradictory, default, or forbidden information, and the conclusions are an object of a formal proof. Indeed, this point is of utmost importance, since in the real world, information is incomplete and updateable.


The ECM was initially conceived to address errors in the chemical industry[13] and has since been adapted to be used in different areas, e.g., the steel industry, power generation, healthcare, water distribution, or public administration.[14][15][16][17][18][19] In this work, an adjusted version of the ECM was conceived, with extensions and adaptations for water sampling scenarios, as well as causal trees (CTs) that describe the root causes of errors. The data used in this work were obtained during the first semester of 2019, in internal audits carried out at the Water Laboratory of Santiago do Cacém Municipality (located in Alentejo Litoral, southern Portugal), within the scope of ISO/IEC 17025:2017 quality accreditation. Checklists were used to record nonconformities. In the checklists, verified observations were organized according to the general and specific requirements of the ISO/IEC 17025 standard. In this work, the nonconformities were classified into major nonconformity, minor nonconformity, opportunity for improvement, and in terms of the ECM, referred to as adverse events or errors.

The formal approach of the proposed errors reporting system in water sampling is based on the LP paradigm for problem-solving and is set according to an extension to the LP language.[26] Undeniably, there are many approaches to knowledge representation and reasoning (KRR) using the epitome of LP, namely, in the areas of model theory and proof theory. In this article, the Proof Theoretical approach for problem-solving was adopted and conveyed as an extension of the LP language. Indeed, an extended logic program (ELP) is grounded on a specified ensemble of clauses in the form of Program 1:

Program 1. The archetype of an extended logic program
Prg1 Fernandes AQUA22 71-3.png

...where pi, qj, and p stand for a set of predicates. A predicate is the part of a sentence that contains the verb and tells something about the subject. In Program 1, "," designates "logical and" while "?" denotes "falsity." The classical negation sign "⌝" denotes a strong declaration, whereas "not" denotes negation by failure, i.e., a collapse in demonstrating a certain statement, since it is not declared in an explicit way.[26] According to this way of thinking, a set of exceptions are presented in every program[26], i.e., clauses in the form:

...that denotes data, information, or knowledge that cannot be ruled out. On the other hand, clauses of the type:

...are invariants that make it possible to specify the context under which the universe of discourse should be understood.[26]

In order to isolate a customized version of the ECM for a particular problem, it is of the utmost importance to identify all the causes that lead to such an undesirable event. To adapt the ECM to the problems related to the sampling of water for human consumption, new dimensions have been considered. These dimensions aim to adjust the original model to the sampling context and provide a general view of the events that can happen. The Adjusted version of ECM for Water Sampling (A-ECM-WS) followed the dimensions "technical," "organizational," "human behavior," and "other," presented in Table 1.

Table 1. Categories of the adjusted ECM for water sampling and the corresponding codes.
Category Description Code
Technical dimension
External Technical faults outside the control and responsibility of the company TEX
Design Faults caused by inadequate design of equipment, software, tags, or template TD
Construction Construction faults regardless of a right design TC
Materials Material deficiencies not categorized as TD or TC TM
Reagents Faults caused by alack or poor quality of chemicals TR
Organizational dimension
External Faults at an organizational level outside the control of the company OEX
Transfer of knowledge Faults due to inadequate decisions that do not guarantee that the knowledge is shared with inexperienced employees OK
Protocols Faults due to the quality/availability of the internal procedures (excessively intricate/simple, imprecise, or non-existent) OP
Management priorities Internal choices in which safety is transferred to a lower position, giving priority to production OM
Culture Faults due to the collective attitude towards risk and behaviors within the company OC
Human behavior dimension
External Human faults that have its origins outside the control of the company HEX
Knowledge-based behavior
Knowledge-based errors The disability of a member to put in practice current knowledge in a new situation HKK
Rule-based behavior
Qualifications Inappropriate fit among the task to be performed and the employee's training, qualifications, or education HRQ
Coordination Deficient task coordination (e.g., a fundamental task not fulfilled because the team was convinced that someone performed it) HRC
Verification Faults during the performance of an accurate and full assessment of the set of circumstances before starting the execution of a specific task, covering the conditions and materials and/or equipment to be used HRV
Intervention Faults that arise from defective preparation of a task and/or bad implementation HRI
Monitoring Faults that occur during the monitoring of an activity or process HRM
Skill-based behavior
Slips Faults in performing a task related to the operator's lack of fine motor skills HSS
Other dimension
Technicians' related factor Faults associated with physical and/or mental conditions of the employee that affect the task execution and are outside the control of the company TRF
Consumers' related factor Faults associated with consumers’ conduct that can affect water quality and are outside the control of the company CRF
Unclassifiable Faults that cannot be included in the previous categories X

Table 1 also shows the categories included in each dimension, as well as a brief description and the corresponding codes. To illustrate the type of adverse events that can be included in each code, Table 2 presents a few examples. Thus, based on Tables 1 and 2, the systematization of the causes that lead to an adverse event becomes straightforward and effective, being processed according to the flow chart presented in Figure 2. For instance, an adverse event assigned to the category "Organizational dimension – Protocols" (OP) occurs due to the quality/availability of the internal procedures. The events assigned to this category arise from difficulties in execution or interpretation of unclear protocols that can lead to adverse events such as the failure of not flowing the stagnant water in the faucet or the failure to remove the faucet accessories.

Table 2. An excerpt from the code set of the adjusted ECM for water sampling and examples of possible adverse events.
Code Extension to water sampling Examples
TR Faults caused by a lack or poor quality of chemicals Unintended use of out-of-date reagents
OP Very complicated, inadequate, or missing protocols, or protocols not disclosed to the team Allowed nonconformity of protocols with various negative effects (e.g., non-flow of stagnant water in the duct section, failing to remove accessories outside the tap)
HEX Human faults outside the control of the company Allowed excessive time between sampling and delivery to the laboratory
HKK Failure to put on preservatives or choosing the wrong preservative Failed to add HNO3 in the samples for determining iron and manganese
HRI Failure in task planning or during its execution Did not disinfect hands before sampling, did not use gloves, did not use the blowtorch correctly, and did not choose a tap under normal conditions of conservation and hygiene
HRM Faults that occurred during the monitoring of a task Failed to calibrate the data logger used inside the thermal bags

Fig2 Fernandes AQUA22 71-3.png

Figure 2. The adverse event classification process.

The ECM makes use of root cause analysis to classify adverse events through codes established in advance.[13] Thus, beyond the classification framework presented above, CTs regarding each adverse event should be conceived. CTs can be considered as a hierarchical representation of an adverse event, allowing to identify the circumstances that lead to its occurrence.[30] The original version of the ECM only comprises cases for which the causes of adverse events are well known. This fact should be a limitation, since in many situations information about errors and adverse events can be incomplete, unknown, or even contradictory. To include the uncertainty that is always present in real situations, in the present work, the unknown and forbidden operators were considered in the conception of the extended causal trees (ECTs).


Table 3 lists the adverse events and the number of occurrences recorded in the internal audits carried out in the Water Laboratory of Santiago do Cacém Municipality (located in Alentejo Litoral, southern Portugal) during the first semester of 2019. A perusal of Table 3 reveals that 128 adverse events occurred. Considering the general requirements of the ISO/IEC 17025 standard, 28.9% of the occurrences were related resource requirements, 53.9% were associated with processes requirements, and 17.2% were linked to management system requirements. In terms of nonconformities, 81.2% were classified as a minor nonconformity (N) and 18.8% corresponded to a major nonconformity (M).

Table 3. Number of adverse events that occurred during the first semester of 2019 at the Water Laboratory of Santiago do Cacém Municipality. M = major nonconformity; N = minor nonconformity.
General requirements Specific requirements Description Classification Number of occurrences Total
Resource requirements Facilities and environmental conditions Laboratory facilities are not adequate (e.g., no separation between incompatible testing areas). M 2 7
The laboratory did not formalize the facilities and environmental conditions. N 5
Metrological traceability The laboratory did not formalize the methodology for estimating uncertainties. N 7 22
The calculation of the uncertainty estimate for the temperature test was not shown. N 9
The calculation of the uncertainty estimate for free and total residual chlorine was not shown. N 6
Equipment The laboratory did not show records of annual visual inspections of the volumetric glass material. N 8 8
Process requirements Nonconforming work The methodology for nonconforming work is not formalized. M 10 10
Selection, verification, and validation of methods The laboratory has not formalized the requirement methods/procedures for testing and validating the methods. N 5 9
The laboratory did not formalize the methodology for the implementation of the test methods. N 4
Sampling Sampling technician failures were found (e.g., failure in disinfection). N 12 50
It was found that in the procedure there were deficiencies in the location of the sampling point. N 6
It was found that inappropriate bottles were being used to carry out the sampling. N 12
Failures were found in the preservation of samples. N 10
Transport failures were noted (e.g., agitation during transport, time between collection, transport, and testing). N 10
Management system requirements Documentation Documentation control is neither adequate nor formalized. M 12 22
The external documents to be controlled are not defined. N 10
Adverse events registered 128

Considering the data presented in Table 3, it can be argued that the sample-related adverse events occur much more frequently than the others, which require special attention. From the nonconformities recorded during the first semester of 2019, it is feasible to specify the actions and causes that contribute to the occurrence of the adverse event "Failure in Sampling." The ECT presented in Figure 3 was established with the collaboration of sampling technicians and address the "Failure in Sampling" adverse event. The ECT was the subject of an in-depth study before its final structure took shape. The ECT contains feasible causes, being a symbolic depiction of a problem. Each branch of the ECT describes the causes of a particular adverse event.

Fig3 Fernandes AQUA22 71-3.png

Figure 3. The ECT regarding the adverse event "Failure in Sampling."

To illustrate the operating mode of the A-ECM-WS, the undesired event "Failure in Sampling" and the respective causal tree (Figure 3) were considered. Taking into account the fact that an adverse event can emerge due to several causes that should be considered simultaneously or separately, AND/OR-nodes were incorporated in the CT. Furthermore, the operators "unknown" and "forbidden" were also added to express events for which the causes are unknown, forbidden, or not permitted. Therefore, taking into account the information available in Figure 3, the following different scenarios can be examined:

  • Scenario A – The "Failure in Sampling" was due to microbiological contamination caused by the non-removal of the faucet accessories.
  • Scenario B – The "Failure in Sampling" was due to chemical contamination caused by a failure in sample preservation.
  • Scenario C – A "Failure in Sampling" has occurred. The causes behind the event were not recorded.
  • Scenario D – A "Failure in Sampling" has occurred. The causes of the adverse event were not recorded due to the internal rules of the company.

In Scenario A, the cause of the adverse event was recorded, corresponding to a known value. Scenario B corresponds to a situation in which the cause that led to the adverse event is unknown. However, it is possible to lay down a finite set of causes that can lead to its occurrence, configuring a situation of an unknown value in a finite set of values (two in this example: wrong preservative or expired reagent). In Scenario C, the occurrence of the adverse event was recorded, but nothing is known about its cause, corresponding to an unknown value. Finally, Scenario D involves a forbidden or a not-allowed value, since it is not permitted to know the causes of the adverse event.

The four scenarios described above can be depicted in Program 2, following the archetype presented in Program 1, in terms of the extent of predicate adverse_event_cause (aec), namely:

Program 2. Structure of the logic program in relation to Scenarios A, B, C, and D.
Prg2 Fernandes AQUA22 71-3.png
Prg2-1 Fernandes AQUA22 71-3.png

In decision-making processes, it is necessary to consider only the most promising answers. Thus, each answer must be tested in terms of its ability to adapt to dynamic environments (i.e., environments that are constantly updated) to choose the most appropriate action from a wide range of alternatives. The optimal response, in terms of the LP paradigm, is a logic program or theory that models the universe of discourse, maximizing the quality of information (QoI).[31][32] The QoI with respect to a generic predicate p can be analyzed in four situations and can be measured in the interval [0, 1]. With regard to cases in which information is known, the QoI for the extension of predicate p is 1. For cases where information is unknown, the QoI is given by the following:

...where N stands for the number of terms or clauses of the extension of predicate p. For cases in which information is unknown but can be selected from a set of possible values, although only one can be considered, the QoI is given by the following:

...where Card is the cardinality of the set of exceptions of p. If more than one value can be considered, the QoI is given by the following:

...where is a card-combination subset, with Card elements.[31][32]

The information included in the ECT was depicted in terms of the LP paradigm through the extensions of a predicate set (Program 2), which make possible to evaluate the QoI regarding each of the scenarios described above. In the case of Scenario A, there is no doubt about the cause of the adverse event. The sampling failure was caused by the non-removal of the faucet accessories, with QoI being equal to 1. In Scenario B, the cardinality of the set of exceptions of the predicate is 2, i.e., the usage of a wrong preservative or an out-of-data reagent, with QoI being equal to 1/2. Finally, in Scenarios C and D, it is known that the adverse event took place, but its causes are unavailable. Any value presented in the ECT can be assumed as a feasible solution and the QoI is 0.

Using the formal approach based on the LP paradigm mentioned above, an AERLS-WS was developed. In addition to recording adverse events, the AERLS-WS is an information management system that provides a knowledge base where it is possible to use data mining tools. Thus, the AERLS-WS includes three main modules, as shown in Figure 4. The Reporting Forms Module (RFM) allocates the web interface that allows the registration of adverse events. The recording can be carried out by any laboratory employee, regardless of the department, by way of predefined forms adapted to each user profile (e.g., sampling technicians, chemical/microbiological technicians, technical managers, and management team). Bearing in mind what has just been mentioned, the focus in the development of this interface was its usability.

Fig4 Fernandes AQUA22 71-3.png

Figure 4. A global view of the Adverse Event Reporting and Learning System related to Water Sampling (AERLS-WS).

The Manager Reports Module (MRM) is equally a web interface. It intends to make possible analysis of the adverse events previously recorded in the RFM, having the A-ECM-WS subjacent. The A-ECM-WS allows that the system provides suggestions for improvements to minimize or eliminate organization failures. Thus, the system can automatically issue individual reports for the adverse events recorded, as well as details in terms of the branches of the ECT. The improvement suggestions contained in the reports are due to the methodology followed, which combines an adjusted version of the ECM for water sampling and LP for knowledge representation and supports the reasoning mechanisms. The system's reports are essential to ensure the quality of laboratory results, since the time and resources required to study the causes of the events, to make inferences, and to establish patterns and trends are substantially reduced. In this way, this task (which is usually time-consuming) can be performed rapidly, which in turn contributes to further avoiding or mitigating failures.

In addition, once the data are stored in the same database, they are always available for further studies. The MRM can provide updated information about the impact, occurrence, and type of events recorded. The user can choose how the information is displayed (e.g., bar charts, pie charts, tables, and tree diagrams). Based on the system's reports, the user can have information about the contribution of each possible action/cause to the adverse event. For example, for the adverse event corresponding to Scenario A (i.e., failure in sampling due to microbiological contamination caused by the non-removal of the faucet accessories), the report generated by the system informs how many times it occurred, the places and dates of the occurrences, and the error consequences (e.g., invalid analysis) and recommends remedial actions to minimize the problem (e.g., the report suggests that sampling technicians should pay careful attention to sampling rules for microbiological analysis). Moreover, based on the reports provided by the system, the management team can assess the need to provide training to sampling technicians. It should be noted that the actions/causes were identified by the system automatically, considering the A-ECM-WS and the ECTs, in turn contributing to avoiding or overcoming the identified issues and errors.

Lastly, the Knowledge Manager Module (KMM) is a Java application. This module makes use of the records stored in the database to generate a knowledgebase from which other relevant studies (e.g., through the use of data mining tools) aiming to optimize the sampling procedures can be carried out.


To achieve accurate results in water analysis, it is essential that sampling is carried out correctly. To help fulfill this objective, this work presents an adverse event reporting and learning system, developed specifically for the sampling phase, that aims to improve the quality of drinking water and, therefore, contributes to the promotion of public health. The key contribution of this work is related to the quantification of the QoI imbedded in CT, and addressing the issues pertaining to incomplete information using the LP paradigm. The proposed approach allows to identify in advance the causes that lead to adverse events, enabling the formulation of action plans to avoid or, at least, minimize them. The construction of a CT for a particular event is often time-consuming and difficult, because initially it requires the development of branches for each possible cause. However, after this stage is passed, the process of classification and analysis of adverse events becomes a speedier and easier exercise. A computation of the QoI enables the ranking of possible causes and the identification of the ones that should be prioritized. Consequently, in the construction of a CT, it is mandatory to look for all possible causes, not only the most probable or the usual ones.

The adverse event reporting and learning system presented allows knowledge extraction, i.e., the identification of the main failure causes, possible trends, areas requiring improvement plans, or changes in procedures. The automatic reports generated by the system are reliable. In fact, the quantification on-the-fly of the QoI of the logic terms used in the process of judgement (given in terms of a theorem to be proved) minimizes user participation, which is only necessary to approve the recommendations. One of the main advantages of the proposed system has to do with its modularity. This feature allows one to update the system at any time (e.g., add new categories, subcategories, and/or causal trees) without changing its structure or way of functioning.



This work has been supported by FCT – Fundação para a Ciência e Tecnologia within the R&D Units Project Scope UIDB/00319/2020 and UIDB/50006/2020.

Conflict of interest

None stated.


  1. Bagchi, Biman (14 November 2013). Water in Biological and Chemical Processes: From Structure and Dynamics to Function (1 ed.). Cambridge University Press. doi:10.1017/cbo9781139583947. ISBN 978-1-139-58394-7. 
  2. Snow, J. (1855). "On the Mode of Communication of Cholera" (PDF). John Churchill. 
  3. Geison, G.L. (1995; 2014). The Private Science of Louis Pasteur. Princeton Legacy Library. Princeton University Press. ISBN 9781400864089. 
  4. Brock, Thomas D. (1999). Robert Koch: A life in medicine and bacteriology. Washington, D.C: ASM Press. ISBN 978-1-55581-143-3. 
  5. Bridgewater, Laura L.; Baird, Rodger B.; Eaton, Andrew D. et al., eds. (2017). Standard methods for the examination of water and wasterwater (23rd edition ed.). Washington, DC: American Public Health Association. ISBN 978-0-87553-287-5. 
  6. "ISO/IEC 17025:2017 General requirements for the competence of testing and calibration laboratories". International Organization for Standardization. November 2017. 
  7. Byleveld, Paul M.; Deere, Daniel; Davison, Annette (1 March 2008). "Water safety plans: planning for adverse events and communicating with consumers" (in en). Journal of Water and Health 6 (S1): 1–9. doi:10.2166/wh.2008.035. ISSN 1477-8920. 
  8. Hommersom, Arjen; Lucas, Peter J. F.; Van Bommel, Patrick (1 November 2008). "Checking the quality of clinical guidelines using automated reasoning tools" (in en). Theory and Practice of Logic Programming 8 (5-6): 611–641. doi:10.1017/S1471068408003451. ISSN 1471-0684. 
  9. Li, Y.; Migliaccio, K. (2010; 2019). Water Quality Concepts, Sampling, and Analyses (1st ed.). CRC Press. ISBN 9780367383510. 
  10. Nollet, Leo M. L.; De Gelder, Leen, eds. (2013). Handbook of water analysis (Third edition ed.). Boca Raton: CRC Press, Taylor & Francis Group. ISBN 978-1-4398-8964-0. 
  11. Reason, J. (18 March 2000). "Human error: models and management". BMJ 320 (7237): 768–770. doi:10.1136/bmj.320.7237.768. PMC PMC1117770. PMID 10720363. 
  12. Parsons, S. (1 June 1996). "Current approaches to handling imperfect information in data and knowledge bases". IEEE Transactions on Knowledge and Data Engineering 8 (3): 353–372. doi:10.1109/69.506705. 
  13. 13.0 13.1 13.2 13.3 van der Schaaf, Tjerk W. (1 September 1995). "Near miss reporting in the chemical process industry: An overview" (in en). Microelectronics Reliability 35 (9-10): 1233–1243. doi:10.1016/0026-2714(95)99374-R. 
  14. 14.0 14.1 Henneman, Elizabeth A; Blank, Fidela S.J; Gattasso, Sandra; Williamson, Katherine; Henneman, Philip L. (1 July 2006). "Testing a classification model for emergency department errors" (in en). Journal of Advanced Nursing 55 (1): 90–99. doi:10.1111/j.1365-2648.2006.03878.x. 
  15. 15.0 15.1 Raab, Stephen S.; Vrbin, Colleen M.; Grzybicki, Dana Marie; Sudilovsky, Daniel; Balassanian, Ronald; Zarbo, Richard J.; Meier, Frederick A. (1 June 2006). "Errors in Thyroid Gland Fine-Needle Aspiration" (in en). American Journal of Clinical Pathology 125 (6): 873–882. doi:10.1309/7RQE37K6439T4PB4. ISSN 0002-9173. 
  16. 16.0 16.1 Simmons, Debora; Graves, Krisanne (1 December 2008). "Tubing misconnections--a systems failure with human factors: lessons for nursing practice". Urologic Nursing 28 (6): 460–464. ISSN 1053-816X. PMID 19241785. 
  17. 17.0 17.1 Rodrigues, Susana; Brandão, Paulo; Nelas, Luís; Neves, José; Alves, Victor (1 September 2011). "A logic programming approach to medical errors in imaging" (in en). International Journal of Medical Informatics 80 (9): 669–679. doi:10.1016/j.ijmedinf.2011.06.005. 
  18. 18.0 18.1 Vicente, Henrique; Borralho, Fábio; Couto, Catarina; Gomes, Guida; Alves, Victor; Neves, José (1 November 2015). "An Adverse Event Reporting and Learning System for Water Sector Based on an Extension of the Eindhoven Classification Model" (in en). Water Resources Management 29 (14): 4927–4943. doi:10.1007/s11269-015-1075-y. ISSN 0920-4741. 
  19. 19.0 19.1 Fernandes, Ana; Carvalho, Filomena; Ribeiro, Jorge; Vicente, Dinis; Faria, João; Figueiredo, Margarida; Capita, António; Neves, José et al.. (2019), Alexandrov, Daniel A.; Boukhanovsky, Alexander V.; Chugunov, Andrei V. et al.., eds., "Fully Informed Classification Systems Simpler, Maybe Better" (in en), Digital Transformation and Global Society (Cham: Springer International Publishing) 1038: 3–16, doi:10.1007/978-3-030-37858-5_1, ISBN 978-3-030-37857-8, Retrieved 2023-01-28 
  20. Rasmussen, Jens (1976), Sheridan, Thomas B.; Johannsen, Gunnar, eds., "Outlines of a Hybrid Model of the Process Plant Operator" (in en), Monitoring Behavior and Supervisory Control (Boston, MA: Springer US): 371–383, doi:10.1007/978-1-4684-2523-9_31, ISBN 978-1-4684-2525-3, Retrieved 2023-01-28 
  21. Morales-Torres, Adrián; Escuder-Bueno, Ignacio; Andrés-Doménech, Ignacio; Perales-Momparler, Sara (1 October 2016). "Decision Support Tool for energy-efficient, sustainable and integrated urban stormwater management" (in en). Environmental Modelling & Software 84: 518–528. doi:10.1016/j.envsoft.2016.07.019. 
  22. Stefanovic, Nenad; Radojevic, Ivana; Ostojic, Aleksandar; Comic, Ljiljana; Topuzovic, Marina (1 May 2015). "Composite Web Information System for Management of Water Resources" (in en). Water Resources Management 29 (7): 2285–2301. doi:10.1007/s11269-015-0941-y. ISSN 0920-4741. 
  23. Allan, Richard; Jeffrey, Paul; Clarke, Martin; Pollard, Simon (1 June 2013). "The impact of regulation, ownership and business culture on managing corporate risk within the water industry" (in en). Water Policy 15 (3): 458–478. doi:10.2166/wp.2013.175. ISSN 1366-7017. 
  24. Pearson, Leonie J.; Coggan, Anthea; Proctor, Wendy; Smith, Timothy F. (1 January 2010). "A Sustainable Decision Support Framework for Urban Water Management" (in en). Water Resources Management 24 (2): 363–376. doi:10.1007/s11269-009-9450-1. ISSN 0920-4741. 
  25. Fernandes, Ana; Lima, Rui; Figueiredo, Margarida; Ribeiro, Jorge; Neves, José; Vicente, Henrique (30 December 2020). "Assessing Employee Satisfaction in the Context of Covid-19 Pandemic". ParadigmPlus 1 (3): 23–43. doi:10.55969/paradigmplus.v1n3a2. ISSN 2711-4627. 
  26. 26.0 26.1 26.2 26.3 26.4 26.5 Ferreira Maia Neves, José Carlos (1984). "A logic interpreter to handle time and negation in logic data bases" (in en). Proceedings of the 1984 annual conference of the ACM on The fifth generation challenge - ACM 84 (Not Known: ACM Press): 50–54. doi:10.1145/800171.809603. ISBN 978-0-89791-144-3. 
  27. Kakas, A. C.; Kowalski, R. A. (8 January 1998), "The Role of Abduction in Logic Programming" (in en), Handbook of Logic in Artificial Intelligence and Logic Programming: Volume 5: Logic Programming (Oxford University Press), doi:10.1093/oso/9780198537922.003.0007, ISBN 978-0-19-853792-2, Retrieved 2023-01-28 
  28. Neves, José; Maia, Nuno; Marreiros, Goreti; Neves, Mariana; Fernandes, Ana; Ribeiro, Jorge; Araújo, Isabel; Araújo, Nuno et al. (25 July 2022). "Employees balance and stability as key points in organizational performance" (in en). Logic Journal of the IGPL 30 (4): 664–678. doi:10.1093/jigpal/jzab010. ISSN 1367-0751. 
  29. 29.0 29.1 Keet, C. Maria (2013), Dubitzky, Werner; Wolkenhauer, Olaf; Cho, Kwang-Hyun et al.., eds., "Open World Assumption" (in en), Encyclopedia of Systems Biology (New York, NY: Springer New York): 1567–1567, doi:10.1007/978-1-4419-9863-7_734, ISBN 978-1-4419-9862-0, Retrieved 2023-01-28 
  30. van der Schaaf, T.W.; Habraken, M.M.P. (August 2005). "PRISMA-Medical: A brief description" (PDF). Technische Universiteit Eindhoven. Archived from the original on 06 October 2021. 
  31. 31.0 31.1 Vilhena, João; Vicente, Henrique; Martins, M. Rosário; Grañeda, José M.; Caldeira, Filomena; Gusmão, Rodrigo; Neves, João; Neves, José (1 August 2016). "A case-based reasoning view of thrombophilia risk" (in en). Journal of Biomedical Informatics 62: 265–275. doi:10.1016/j.jbi.2016.07.013. 
  32. 32.0 32.1 Coelho, Cristina; Vicente, Henrique; Rosário Martins, M.; Lima, Nelson; Neves, Mariana; Neves, José (1 January 2017). "An assessment of environmental and toxicological risk to pesticide exposure based on a case-based approach to computing". IOP Conference Series: Earth and Environmental Science 52: 012091. doi:10.1088/1742-6596/52/1/012091. ISSN 1755-1307. 


This presentation is faithful to the original, with only a few minor changes to presentation. Grammar was tweaked significantly to improve readability. The PMCID and DOI were also added when they were missing from the original reference. The original article lists references alphabetically, but this version—by design—lists them in order of appearance.