Abstract
This paper presents COACH+ (COmputer-Assisted Output CHecking with Human-in-the-loop), an extension of COACH by (Slokom et al. COACH: computer Assisted output CHecking with human-in-the-loop. U N Econ Comm Eur Conf Eur Stat) that integrates machine learning models with human expertise to automate output-checking processes. Building upon the foundation of COACH, COACH+ improves the collaborative capabilities between automated algorithms and human chequers. The primary objective remains to facilitate the assessment of outputs generated by researchers to determine their suitability for public release. We first provide an overview of our initial iteration of COACH, which revolutionised output checking by combining machine learning models with human expertise. Then, we present the advancements introduced in COACH+, which are divided into two main aspects. In the backend, we have integrated a secondary machine learning algorithm, a convolutional neural network, designed to analyze images such as plots and determine their safety for release. In the front end, we have minimised reliance on human chequers. Unlike the previous COACH version, where human intervention was required to input certain values before making predictions, COACH+ now allows human chequers to upload Excel files and figures directly.
Introduction
Official statistical agencies handle vast amounts of data, referred to as outputs, on a daily basis. These outputs must go through rigorous evaluation to determine their suitability for public release. The evaluation is based on a number of rules called rule of thumb Bond et al.
1
Traditional methods of output checking within statistical agencies heavily depend on manual inspection, consuming substantial time and resources. To address these challenges, we introduce COACH+ (COmputer-Assisted Output CHecking with Human-in-the-loop), an improved approach that semi-automates output checking by integrating human expertise with machine learning algorithms. Building upon the research by Domingo-Ferrer and Blanco-Justicia,
2
COACH in Slokom et al.
3
proposed a novel approach leveraging machine learning in the output checking process. Domingo-Ferrer and Blanco-Justicia
2
developed simulated data based on a subset of rules, known as the 14 rules-of-thumb (for further details, refer to Bond et al.,
1
and subsequently trained and tested neural network models to learn these rules. By harnessing simulated data and advanced machine learning algorithms, their models achieved high prediction accuracy by discerning complex patterns. Following a similar trajectory,
4
has recently introduced a new tool utilising machine learning models such as deep neural networks and random forests. This tool was trained using approximately 13,000 previous results of manual output checks. Notably, few existing works have explored the automation of output checking. For instance, the authors in Green et al.
5
proposed the ACRO toolkit for the automatic checking of research outputs, with subsequent developments such as SACRO and Py-ACRO extending its functionality. Distinguishing itself from earlier projects Cole et al.,
6
’s tool covers a broader range of statistics and aims for general applicability in output-checking processes. COACH+ expands collaborative capabilities between automated algorithms and human chequers. Our primary objective remains to facilitate the assessment of outputs generated by researchers to determine their suitability for public release. We first provide an overview of COACH’s initial iteration, which pioneered the integration of machine learning models with human expertise in output checking. Subsequently, we outline the advancements introduced in COACH+, categorizing them into two primary aspects. We summarize our contributions as follows:
The back-end: COACH+ integrates a secondary machine learning algorithm, specifically a convolutional neural network (CNN), into its backend architecture. This CNN is tailored to analyze visual data, such as plots and images, to determine their safety for public release. By expanding the scope of analysis to include visual elements, COACH+ improves the accuracy and robustness of output-checking processes. The front-end: COACH+ reduces reliance on human chequers by introducing a streamlined approach to input data. In contrast to the previous version of COACH, which required human intervention to input specific values before predictions could be made, COACH+ now allows human chequers to directly upload Excel files and figures. This improvement simplifies the workflow, saves time, and increases overall efficiency in the output-checking process.
Background and related work
In this section, we will give a brief overview of existing work on automating output checking and human-in-the-loop systems.
Automating output checking
Guidelines for confidentiality serve as a standard template that should be followed by human chequers and researchers. The guideline is based on rule of thumbs to prevent confidentiality errors and as a result to assess if an output is safe to be released or unsafe. For a detailed and elaborate definitions of rules-of-thumb, we point readers to Bond et al. 1 and Domingo-Ferrer and Blanco-Justicia. 2 In Table 1, we provide a brief description of each rule and corresponding parameters as used in the settings of Domingo-Ferrer and Blanco-Justicia 2 along with cases in which output should be treated as unsafe.
A summary of rules-of-thumb as used in our experiments and cases in which the output is treated as unsafe.
A summary of rules-of-thumb as used in our experiments and cases in which the output is treated as unsafe.
Output checking assesses the disclosure risk of research results based on microdata files, figures, and documents, available in research data centres. 1 It aims to classify outputs as safe for publication, requiring further analysis, or unsafe due to disclosure risk, guided by predefined rules. Despite its importance, research on output checking is still in its infancy. Currently, human chequers, typically skilled staff at statistical agencies, perform this task, leading to time-consuming and costly processes. Recently, researchers have explored methods aiming at facilitating the output-checking process. Domingo-Ferrer and Blanco-Justicia 2 proposed a novel approach employing machine learning to aid human chequers. They generated simulated output-checking data based on predefined rules, trained neural network models on this data, and evaluated their performance. The primary goal in automating output checking is to minimise false positives, indicating outputs wrongly predicted as safe but deemed unsafe by the agency. Green et al. 5 introduced the ACRO toolkit, initially developed in STATA and later extended to Python for wider accessibility. Recently, Cole et al. 6 extended ACRO into SACRO. SACRO stands for semi-automated checking of research outputs. It supports researchers using the major analytical languages (R, Python, and Stata), with minimal changes. SACRO also supports secure environments with different operating models and output-checking workflows. Rigaud et al. 4 have recently introduced a new tool utilising machine learning models such as deep neural networks and random forests. This tool was trained using approximately 13,000 previous results of manual output checks.
Human-in-the-loop (HITL) approaches 7 have applications in a variety of fields, including health care (Wrede and Hellander, 2019), finance, computer-vision, 8 and natural language processing. 9 HITL is especially relevant in situations where human expertise is necessary for critical decisions, such as medical diagnosis or financial risk assessment. The central idea of HITL is to combine human judgment and intuition with the computational power of algorithms to achieve improved decision outcomes. Depending on who is in control and in which phase of the learning process, we can identify different approaches to HITL in machine learning. 10 Active learning (AL), in which the system remains in control of the learning process and humans are involved in the annotation of unlabeled data. Interactive machine learning (IML), in which there is a closer interaction between users and learning systems, with people interactively supplying information in a more incremental way compared to traditional machine learning. Machine teaching (MT), where human domain experts have control over the learning process by delimiting the knowledge that they intend to transfer to the machine learning model. In addition to the aforementioned benefits of HITL, we also point to the importance of HITL in that it offers a more Explainable AI (XAI), “Usable AI” and “Useful AI”. 10
Methods
In this section, we will describe our recent developments of COACH+. In addition to COACH+, we have another work in the same direction of automating output checking, called AOCH. AOCH stands for assisted output checking. AOCH and COACH+ are complementary.
Assisted Output Checking (AOCH)
Figure 1 depicts a screenshot of AOCH, a straightforward yet efficient tool designed to aid in the output-checking process. AOCH operates on hardcoded rules, such as threshold values in frequency tables or suppression of individual or group data. Unlike methods utilising machine learning algorithms, AOCH relies solely on these predefined rules. The workflow within AOCH begins with file upload and parameter setup. Subsequently, areas where rules are violated are highlighted using different colours for easy identification. The ”add” and ”reject” buttons categorize files and tables into lists for release or rejection based on the human checker’s decision. Upon export, files in these lists are zipped and sent to the researcher. The ”reset” button restores the classification of a file to unclassified status.

An example of our AOCH (Assisted Output Checking). The user uploads the Excel files. Then, the user will check the rules such as values below a threshold, group disclosure, and suppression.
While AOCH offers a straightforward solution to output checking, the challenge of automating this process persists. Human chequers still face the task of configuring parameters and selecting specific rules for analysis, requiring additional effort. COACH+ addresses these limitations by enhancing AOCH with increased flexibility and the capability to analyze not only Excel files but also images. This expansion empowers human chequers with greater control and extends the scope of output checking beyond traditional data formats.
COACH+ represents an evolution from its predecessors, AOCH and COACH, in several key aspects. Firstly, while AOCH relied primarily on predefined rules for output checking, COACH+ embraces the capabilities of machine learning algorithms to make decisions based on previous data. By allowing the machine to learn from past instances and identify exceptions or patterns that may evade human chequers, COACH+ offers a more comprehensive approach to output checking.
Secondly, COACH+ simplifies the input process for human chequers by eliminating the need to manually fill in certain values, as depicted in Figure 2 (left). Instead, in the updated version Figure 2 (right), human chequers simply upload the files, whether Excel files or plot figures. Upon clicking the predict button, each uploaded file is processed individually. Excel files are analyzed by the machine learning model responsible for tabular data, while figures are queried to the machine learning algorithm handling image data. The final output decision is then determined based on the combined results of both ML models. If either model flags the output as unsafe, the final decision is deemed unsafe.

Extending COACH to COACH+. In COACH, the user inserts the adequate values from the output file (only Excel files). In COACH+, the user uploads the files (excel and figures). Then, the user clicks on “predict”.
Figure 3 illustrates examples of decisions that can be reported by COACH+, showcasing its ability to provide clear and actionable decisions. For instance, in Figure 3. (Left), COACH+ predicts the output as “safe”, whereas, in Figure 3. (Right), COACH+ predicts another output as unsafe. We note that Slokom et al. 3 provided further explanations showing why and how the machine learning algorithm comes to a specific decision (due to space limitation, we omit this part from this paper).

An example of possible results generated by COACH+. The predictions can be either Safe or unsafe. The Feedback box gives the chance to human chequers to either “agree” or “disagree” with the prediction.
In order to encourage reproducibility and foster collaboration between different statistical offices, we are working on releasing both AOCH and COACH+ to the public.
In this section, we will describe the back-office of COACH+. This includes describing the data that we used in our experiments as well as the machine learning algorithms.
Data
In our experiments, we used both real data and simulated or synthetic data. Also, we have tabular data, i.e., excel files, and image data, i.,e plots.
Tabular data
Following the methodology of Domingo-Ferrer and Blanco-Justicia, 2 we generated training and test datasets containing 200,000 and 14,000 records, respectively. Each rule of thumb was represented by approximately 14,700 records in the training set and 1,000 records in the test set. Our real test data consisted of 125 records, predominantly comprising frequency tables, magnitude tables, and regression models. We trained machine learning algorithms on the generated training data and evaluated their performance on both simulated and real test data. Additionally, we conducted experiments involving human-in-the-loop feedback by retraining machine learning algorithms on simulated data combined with human feedback data and testing on the real test file.
Image data
We collected a total of 191 real plots, including histograms, bar plots, line plots, and maps. The dataset was split, with 70 It’s worth noting that both tabular and image data exhibited imbalances, not only in terms of labels (safe or unsafe) but also with respect to the distribution of different rules.
Machine learning algorithms
Similar to the description of the data sets. We first start by describing the machine learning algorithms that we used for tabular data. Next, we move to describe the machine learning algorithms used on image (plots) data.
Neural Network (NN)
The neural network used by Domingo-Ferrer and Blanco-Justicia 2 consists of two hidden dense layers, each containing 64 neurons with ReLU activation functions, followed by dropout layers. The networks take a 12-dimensional input and predict a binary output using a sigmoid activation function in the final layer (more details about neural network architecture and hyper-parameters tuning can be found in Domingo-Ferrer and Blanco-Justicia. 2
LightGBM (LGBM)
In addition to the neural network algorithm used in Domingo-Ferrer and Blanco-Justicia,
2
, we evaluate the output checking using a lightGBM algorithm.
11
LightGBM is a gradient-boosting framework based on decision trees to increase the efficiency of the model and reduce memory usage. LightGBM handles different types of Gradient boosting methods which can be specified with the boosting parameter: GBDT (Gradient Boosted Decision Trees), DART (Dropouts meet Multiple Additive Regression Trees), and GOSS (Gradient-based One-Side Sampling). In our experiments, we used the GBDT boosting method. GBDT is a traditional Gradient Boosting Decision Tree and uses several decision trees that are built sequentially. The first tree learns how to fit into the target variable. The second tree learns how to fit the residual (difference) between the predictions of the first tree and the ground truths’ actual values. The third tree learns how to fit the residuals of the second tree and so on. We used the implementation of LightGBM in the open toolkit PyCaret. We used split-based split, the learning rate is set to 0.1, the minimum number of child samples is set to 20, and
Convolution neural network (CNN)
is a class of Neural network that has proven its effectiveness in different areas of image recognition, processing, and classification. In our experiments, we focus on binary image classification. The task is similar to the task in tabular data, this time the CNN predicts if a plot is safe to be released or unsafe. There are different layers in the convolutional neural network. First, the input layer takes images, and resizes them for passing onto further layers for feature extraction. Second, the convolution layer acts as a filter for images. This layer aims at finding features from images and is also used for calculating the match feature points during testing. Then, the pooling layer takes large images and shrinks them down while preserving the most important information in them. Next, the rectified linear unit layer or ReLU layer swaps every negative number of the pooling layer with 0. This helps the CNN stay mathematically stable by keeping learned values from getting stuck near 0 or blowing up toward infinity. The final layer is the fully connected layers which take the high-level filtered images and translate them into categories with labels. We used the implementation from Keras. We compare the performance of our CNN classifier to a random classifier.
Evaluation metrics
In order to assess the quality of the target model predictions, we will calculate: the confusion matrix, F1 macro-average, and Matthews Correlation Coefficient (MCC. Confusion matrix is a table that is used to define the performance of a classification algorithm in terms of True Positive (TP), False Positive (FP), True Negative (TN), and False negative (FN).
The macro-averaged F1 score (F1-Macro) is computed using the arithmetic mean (aka unweighted mean) of all the per-class F1 scores. This method treats all classes equally regardless of their support value.
Matthews Correlation Coefficient (MCC) metric also takes into account all of TP, TN, FP, and FN. MCC is a balanced measure that can be used especially if the classes of the target attribute are of different sizes.
12
It returns a value between -1 and 1.
In this section, we provide our results of predictions based on tabular data and image data using machine learning algorithms. We show our results of testing the trained model on real test data for both tabular and image data.
Results of predictions on tabular data
Table 2 presents the results of our predictive analysis on tabular data, comparing the performance of various classifiers. When evaluating predictions without HITL intervention, both the LGBM and neural network (NN) classifiers demonstrate substantially better performance than the random classifier when trained and tested on simulated data. This improved performance persists even when tested on real test data, highlighting the classifiers’ ability to generalize effectively beyond the training set.
Prediction performance is measured in terms of F1 macro-average, MCC (Matthews Correlation Coefficient), TP (true positive), FP (false positive), TN (true negative), FN (false negative).
Prediction performance is measured in terms of F1 macro-average, MCC (Matthews Correlation Coefficient), TP (true positive), FP (false positive), TN (true negative), FN (false negative).
Note: We compare the performance of a random classifier to LGBM (LightGBM) and neural network. Our classifiers are trained on simulated (sim) data. We evaluate the trained models on simulated test data and real test data. The random classifier uses the majority class strategy. HITL stands for human-in-the-loop. Rows sharing the same Sim test are comparable to each other. Rows that share the same real test are comparable.
In scenarios where HITL feedback is incorporated, particularly during real test data evaluations, the retraining of the LGBM model with human insights leads to notable performance improvements. Specifically, the incorporation of human feedback results in a dramatic reduction in false positives (from 38 to 3). This shows the role of human expertise in refining machine learning algorithms, thereby improving the accuracy and reliability of their decisions. We focus specifically on the reduction of false positives (FP) because it is essential to minimise situations where the machine predicts a case as “safe”, but human chequers identify it as “unsafe”. We note that the opposite case, where the machine predicts an output as unsafe when it is actually safe, is not particularly dangerous. Instead, it allows human chequers the opportunity to double-check before making the final decision.
In Table 3, we present our preliminary results for predicting whether images are safe for release. The table compares the performance of a CNN with a random classifier. We observe that CNN outperforms the random classifier in analyzing visual data, demonstrating the effectiveness of machine learning algorithms in this domain. However, despite the overall performance advantage, CNN shows limitations in accurately identifying true positives (TP)–i.e., images that are correctly predicted as safe. This suggests that the model’s ability to discern safe images needs further refinement and exploration in future research. Additionally, it is worth noting that our current analysis does not incorporate HITL mechanisms. Future work will aim to integrate human feedback into the prediction process to potentially improve the model’s accuracy and reliability.
Prediction performance measured in terms of F1 macro-average, TP (true positive), FP (false positive), TN (true negative), FN (false negative), MCC (Matthews Correlation Coefficient).
Prediction performance measured in terms of F1 macro-average, TP (true positive), FP (false positive), TN (true negative), FN (false negative), MCC (Matthews Correlation Coefficient).
Note: We compare the performance of a random classifier to CNN. We aim to get all predictions correct (TP) and to reduce FP.
In this study, we explored the effectiveness of machine learning algorithms in automating output-checking processes, focusing on both tabular and image data. Our results highlight the impact of incorporating HITL feedback, particularly evident in the improved performance of the LGBM model when guided by human expertise. Additionally, we demonstrated that machine learning algorithms, such as CNN, show promise in analyzing visual data, outperforming random classifiers in image data predictions. These findings underscore the critical role of integrating human feedback with machine learning algorithms to improve the accuracy and reliability of output decisions.
Furthermore, our study paves the way for exploring novel approaches to incorporating human feedback into machine learning models, such as active learning strategies. Extending our analysis to include a broader range of data types and domains would provide valuable insights into the generalizability and applicability of our findings. Future work could build upon our previous study Slokom et al. 3 by incorporating explanations for the predictions made by the models. Providing such explanations would assist human chequers in understanding and adapting to the decision-making process, thereby enhancing their ability to make informed and critical decisions.
Footnotes
Acknowledgement
The views expressed in this paper are those of the authors and do not necessarily reflect the policy of Statistics Netherlands.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
