sludge-analysis

Sewage Sludge Drying–Grinding Statistical Analysis

R code supporting the manuscript:

Exploring a drying-grinding system for pulverized sewage sludge production

Ayumi Schober, Andrea Narvaez Torres, Juan Pablo Segovia-Gutiérrez, Nelson de Oliveira Quesado Filho, Lukas Thomae-Pohl, Matthias Rapf, Florian Drunsel, Natalie Germann

Browse the code

The complete R source code is available in the GitHub repository.

Overview

This repository contains the exploratory statistical analyses used to investigate relationships between sewage-sludge properties and the performance of a pilot-scale thin-film drying-grinding process.

The study evaluates four municipal sewage sludges processed under fixed operating conditions. The analyses examine associations among:

The dataset contains 24 process observations, while several sludge-level properties are repeated within each sludge source.

Analyses

The R scripts implement:

Pull-off force is converted to its absolute magnitude so that larger values represent stronger resistance during plate detachment. Numeric variables are standardized before the structural equation model is estimated.

Scripts

Some alternative model specifications are retained as commented code to document the model-development process and estimation limitations.

Requirements

The analysis was developed in R and uses the following packages:

tidyverse
readxl
ggcorrplot
correlation
ggbiplot
okcolors
writexl
rstudioapi
dagitty
lmtest
MVN
lavaan

Install the required packages before running the scripts.

Running the analysis

Place the input workbook in the expected data directory and update its filename in the scripts when necessary. The current scripts reference:

data/20260609_Data_Sensitivity.xlsx

Open each script in RStudio and run them in numerical order:

1. dewatering.process.R
2. drying.process.R
3. dag.R

The scripts use the location of the active RStudio document to define the working directory. Statistical tables are exported as Excel files to the configured results directory.

Data considerations

Wastewater treatment plants are represented by anonymized identifiers from KA-1 to KA-4.

The analyses should be interpreted cautiously because:

Funding

This work was supported by the European Union’s Horizon 2020 research and innovation programme under grant agreement No. 958267, FlashPhos.