Skip to main content

LUP Student Papers

LUND UNIVERSITY LIBRARIES

Finding ways of optimizing coagulant dosage, for a more sustainable wastewater treatment process

Sjöman, Hanna LU (2023) VVAM05 20231
Chemical Engineering (M.Sc.Eng.)
Abstract
The wastewater treatment process at Oatly consists of several treatment steps of which, two are chemical treatment steps involving coagulation followed by flotation to remove phosphorous and COD.
The coagulant dosage is mainly determined based on the operator’s experience and supported using results from jar tests. Jar tests are, however, highly dependent on the wastewater quality parameters making it difficult to apply the result if there are large variations in the composition of the wastewater, which is the case at Oatly. As wastewater parameters such as concentration of COD and Tot-P in the primary influent, pH, temperature, and flow rate all varies multiple jar tests have to be conducted daily and the coagulant dosage is often... (More)
The wastewater treatment process at Oatly consists of several treatment steps of which, two are chemical treatment steps involving coagulation followed by flotation to remove phosphorous and COD.
The coagulant dosage is mainly determined based on the operator’s experience and supported using results from jar tests. Jar tests are, however, highly dependent on the wastewater quality parameters making it difficult to apply the result if there are large variations in the composition of the wastewater, which is the case at Oatly. As wastewater parameters such as concentration of COD and Tot-P in the primary influent, pH, temperature, and flow rate all varies multiple jar tests have to be conducted daily and the coagulant dosage is often adjusted.
Despite this, the BOD7 concentration of the final effluent is well within the concentration limits of the environmental permit. This in combination with the large amounts of coagulant used in the process has raised the question, is it possible to decrease the dosage and still fulfill the requirements of the permit?
The large variations of the primary influent make this difficult to achieve as there is no simple linear relationship between the amount of coagulant used and the coagulation efficiency, instead, it is influenced by several parameters.

Instead, machine learning is used where a random forest regressor algorithm is used to predict the concentration of COD in the effluent based on the flow rate, pH, temperature, PAC dosage, the influent concentration of COD, and Tot-P. To train the model data from the first chemical treatment step is used as more data is available compared to the second chemical treatment step. After training the model it is used to predict the COD concentrations of the effluent from the first flotation.

The results show an r2 value of 0.85 and an RMSE value of approximately 49, indicating a strong relationship between the independent and dependent variables used in the model. The RMSE value on the other hand should preferably have been lowered, it means that the difference between the concentration predicted by the model and the real concentrations is 49 mg/L on average.

To illustrate the possible benefits of the model it is used to estimate the COD concentration based on test data where the dosage of PAC is varied. The predicted COD concentrations are then compared to the COD concentration of the effluent with a 57 % removal efficiency. A 57% removal efficiency was used to determine what would have been a sufficient amount of COD in the effluent as this is the removal efficiency that was used when the WWTP was designed.
The model predictions showed that it, according to the model, would have been possible to decrease the coagulant dosage and save around 280 kg of coagulant/day on average. The carbon footprint of PAC is approximately 0.54 kg CO2-eq/kg PAC so this would mean a decrease in CO2 emission by around 150 kg CO2-eq per day. Decreasing the dosage would also make it possible to save approximately 1000 SEK.

The main suggestion for areas of future work is to increase the size of the dataset to improve the performance of the model. However, the model shows potential as a tool to predict the COD concentrations of the effluent and could be used to estimate the effect of different coagulant dosages, thereby opening up the possibility of optimizing the coagulant dosage. (Less)
Popular Abstract (Swedish)
Maskininlärning kan liknas vid en student som läser en väldigt stor kurs med ett väldigt brett innehåll. När tentan börjar närma sig så inser studenten att det är omöjligt att tentaplugga genom att lära sig allt som står i kurslitteraturen. Så istället fokuserar hen på att göra extentor för att lära dig svara på de frågor som brukar komma på tentan. För varje extenta så svarar studenten på frågorna, jämför med facit och justerar sitt resonerande därefter. Målet för både studenten och med maskininlärning är att ha tillräckligt bra koll på hur man bör svara på en viss typ av fråga att på tentan kunna applicera det på frågor som man inte har övat på.
Maskininlärning är inte bara användbart under studietiden utan går även att applicera i... (More)
Maskininlärning kan liknas vid en student som läser en väldigt stor kurs med ett väldigt brett innehåll. När tentan börjar närma sig så inser studenten att det är omöjligt att tentaplugga genom att lära sig allt som står i kurslitteraturen. Så istället fokuserar hen på att göra extentor för att lära dig svara på de frågor som brukar komma på tentan. För varje extenta så svarar studenten på frågorna, jämför med facit och justerar sitt resonerande därefter. Målet för både studenten och med maskininlärning är att ha tillräckligt bra koll på hur man bör svara på en viss typ av fråga att på tentan kunna applicera det på frågor som man inte har övat på.
Maskininlärning är inte bara användbart under studietiden utan går även att applicera i verkliga livet, exempelvis i en reningsprocess av avloppsvatten. Utanför Landskrona har Oatly en fabrik där man tillverkar havreprodukter och avloppsvattnet från den produktionen renar man i ett tillhörande vattenreningsverk. Reningsprocessen består av ett antal olika steg varav ett är ett kemiskt reningssteg där man använder en fällningskemikalie för att rena vattnet från bland annat organiskt material, COD. För att uppskatta mängden fällningskemikalie som man behöver tillsätta så genomför man ett antal testar där man tar prover, tillsätter olika mängder kemikalie och ser vad som verkar vara en tillräcklig mängd. Problemet är att varje test tar ganska lång tid och när mängden organiskt material i avloppsvattnet eller andra faktorer ändras så måste man göra nya tester. Oatlys avloppsvatten varierar väldigt mycket när det kommer till organiskt material, temperatur, pH och annat. Det innebär att väldigt många justeringar i mängden fällningskemikalie man tillsätter krävs och därför också väldigt många tester.
Man renar också vattnet mer än vad som behövs enligt sitt miljötillstånd och man vill därför se över om det går att minska mängden kemikalie.
Hur effektiv en fällningskemikalie är beror på väldigt många olika faktorer och det är därför svårt att få en överblick, kurslitteraturen är enormt bred och komplicerad. Däremot så kan man använda maskininlärning, mer specifikt, Random Forest, för att försöka hitta ett mönster i sammansättningen av avloppsvattnet som kommer in, mängden fällningskemikalie man tillsätter och hur rent vattnet ut blir. På så sätt så får man både ett verktyg som de som jobbar kan använda för att förhoppningsvis slippa göra så många tester och man kan också undersöka hur rent vattnet beräknas bli vid olika doseringar.
Resultatet är någonting som kan användas för att göra miljön en tjänst samtidigt som man sparar pengar, och det enda som krävs är att låta en dator göra jobbet. (Less)
Please use this url to cite or link to this publication:
author
Sjöman, Hanna LU
supervisor
organization
course
VVAM05 20231
year
type
H2 - Master's Degree (Two Years)
subject
keywords
Wastewater treatment process, coagulant dosage, COD, machine learning, water and environmental engineering
language
English
id
9115694
date added to LUP
2023-06-02 13:47:28
date last changed
2023-06-02 13:47:28
@misc{9115694,
  abstract     = {{The wastewater treatment process at Oatly consists of several treatment steps of which, two are chemical treatment steps involving coagulation followed by flotation to remove phosphorous and COD. 
The coagulant dosage is mainly determined based on the operator’s experience and supported using results from jar tests. Jar tests are, however, highly dependent on the wastewater quality parameters making it difficult to apply the result if there are large variations in the composition of the wastewater, which is the case at Oatly. As wastewater parameters such as concentration of COD and Tot-P in the primary influent, pH, temperature, and flow rate all varies multiple jar tests have to be conducted daily and the coagulant dosage is often adjusted. 
Despite this, the BOD7 concentration of the final effluent is well within the concentration limits of the environmental permit. This in combination with the large amounts of coagulant used in the process has raised the question, is it possible to decrease the dosage and still fulfill the requirements of the permit? 
The large variations of the primary influent make this difficult to achieve as there is no simple linear relationship between the amount of coagulant used and the coagulation efficiency, instead, it is influenced by several parameters. 

Instead, machine learning is used where a random forest regressor algorithm is used to predict the concentration of COD in the effluent based on the flow rate, pH, temperature, PAC dosage, the influent concentration of COD, and Tot-P. To train the model data from the first chemical treatment step is used as more data is available compared to the second chemical treatment step. After training the model it is used to predict the COD concentrations of the effluent from the first flotation. 

The results show an r2 value of 0.85 and an RMSE value of approximately 49, indicating a strong relationship between the independent and dependent variables used in the model. The RMSE value on the other hand should preferably have been lowered, it means that the difference between the concentration predicted by the model and the real concentrations is 49 mg/L on average. 

To illustrate the possible benefits of the model it is used to estimate the COD concentration based on test data where the dosage of PAC is varied. The predicted COD concentrations are then compared to the COD concentration of the effluent with a 57 % removal efficiency. A 57% removal efficiency was used to determine what would have been a sufficient amount of COD in the effluent as this is the removal efficiency that was used when the WWTP was designed. 
The model predictions showed that it, according to the model, would have been possible to decrease the coagulant dosage and save around 280 kg of coagulant/day on average. The carbon footprint of PAC is approximately 0.54 kg CO2-eq/kg PAC so this would mean a decrease in CO2 emission by around 150 kg CO2-eq per day. Decreasing the dosage would also make it possible to save approximately 1000 SEK. 

The main suggestion for areas of future work is to increase the size of the dataset to improve the performance of the model. However, the model shows potential as a tool to predict the COD concentrations of the effluent and could be used to estimate the effect of different coagulant dosages, thereby opening up the possibility of optimizing the coagulant dosage.}},
  author       = {{Sjöman, Hanna}},
  language     = {{eng}},
  note         = {{Student Paper}},
  title        = {{Finding ways of optimizing coagulant dosage, for a more sustainable wastewater treatment process}},
  year         = {{2023}},
}