1 Introduction

The number of inhabitants on our planet is undeniably growing, and the demands on the quality of living standards are also increasing. This is associated with a significantly increased burden on natural resources and the environment. It is necessary to adapt to trends in an effort to ensure a sustainable state in light of the current global issues brought about by society’s development. Nowadays, the problem of sewage sludge (SS) disposal from wastewater treatment plants (WWTPs) is also related to this case. Although in the past, sludge was used and disposed of on agricultural land without problems; today, this procedure appears to be problematic in several cases. The reason for this is the increasing amount of contaminants in the sludge [1,2,3,4,5]. At present, the regulation of SS land application is only based on the heavy metal content outlined in Council Directive 86/278/EEC [6]. However, this directive is outdated and fails to address the contemporary imperative of safeguarding the agricultural use of sludge. Therefore, finding another suitable alternative for the sludge used or disposed of in this way is necessary.

According to Verlicchi and Zambello [5], SS is produced as a byproduct of the biological and chemical processes that take place in WWTPs. It can consist of a wide variety of organic and inorganic compounds, as well as microorganisms and viruses. The suitability of using sludge for final disposal after dewatering is crucial to understanding its basic physical and chemical properties [7]. The dewatered SS is composed of around 50–70% organic compounds and 30–50% mineral components, including 1–4% inorganic carbon. It also contains 3.4–4.0% nitrogen, 0.5–2.5% phosphorus, and notable quantities of other nutrients, including micronutrients [8]. Heavy metals, polycyclic aromatic hydrocarbons, polychlorinated biphenyls, adsorbable organohalogens, pesticides, surfactants, hormones, pharmaceuticals (PhACs), personal care products, and many more are just some of the harmful and toxic substances found in SS [9, 10].

Several factors contribute to SS production, such as the effectiveness of primary, secondary, and tertiary treatment; the treatment technology employed (e.g., membrane bioreactor, nutrient removal, phosphorus precipitation, etc.); the method of sludge stabilization (aerobic or anaerobic digestion); and the operating conditions (sludge age and organic load) [3]. Data on the amount of SS produced and disposed of from municipal wastewater (as dry matter, DM) in the EU is available on the Eurostat website [11]. It is estimated that around 10 million tons per year of sewage sludge DM were produced in the EU in the period 2003–2006. This amount increased to 11.5 million tons of DM in 2010, and in 2020, the estimated amount produced is 13.5 million tons of DM [12, 13]. With the improvement of wastewater collection systems and an increasing number of households connected to the sewage system, the production of SS in EU countries is expected to rise. According to Grabic et al. [14], it is expected that around 15 million tons of SS DM will be generated of 5 years. Consequently, appropriate management and disposal of approximately 70 million tons of untreated sludge become imperative.

Various methods for disposing of SS exist worldwide, including landfilling, agricultural usage, landscaping, thermal treatment, or improper disposal [15,16,17,18,19,20,21]. The predominant method for managing SS remains land application, primarily due to its cost-effectiveness and the presence of valuable nutrients like nitrogen and phosphorus. Additionally, dewatered SS digestate can be used for agricultural purposes. However, safety concerns related to the utilization of SS in this manner have been raised [14]. This activity is controlled in different ways due to the implementation in the Member States of Directive 86/278/CEE, which allows the application of SS (biosolids) on land [22]. Since traditional methods of SS disposal are no longer economically or environmentally viable, thermal processes may become the dominant method of sludge disposal in the future. The organic component of the sludge, as well as any pathogens or pharmaceutical residues, are removed during thermal operations, leaving only the ash component, which is then disposed of in its entirety. According to Goldan et al. [23], the primary objective of thermal processing of SS is to maximize the usage of the energy stored in the sludge while minimizing the negative effects on the environment to comply with increasingly stringent regulations. Thermal treatment options for SS include sludge drying, incineration, pyrolysis, and gasification [21, 24]. Additional drying of SS after dewatering is necessary due to a decrease in the water content of the sludge and an increase in its calorific value [25]. The energy content of SS is similar to that of wood biomass. According to Durdević et al. [24] and Kubonova et al. [26], the calorific value of dry matter in SS varies depending on the type of sludge. Raw sludge has a calorific value of 17–18 MJ/kg, activated sludge has a calorific value of 14–16 MJ/kg, and stabilized sludge has a calorific value of 8–12 MJ/kg. Drying is usually applied before further thermal treatment [16]. Depending on the type of dryer (disc and thin film dryers, drum dryers, belt dryers, or solar drying), the drying of SS can take place in the temperature range of 10–200 °C [25]. Although the melting and boiling points of most PhACs are above 100 °C [27, 28] significant decomposition of PhACs in sludge during this process is not expected. Pyrolysis is a combustion process of SS that occurs at temperatures between 300 and 700 °C in environments with limited or no air [21, 29]. The pyrolysis process produces pyrolysis gas, pyrolysis liquids (bio-oil or pyrolysis oil), and solid biochar [21]. The parameters influencing pyrolysis products are particle size, temperature and heating rate, moisture content, reactor operating principle, gas phase retention time, and carbon, ash, and liquid phase separation. In general, as the temperature increases, solid matter yields decrease, and liquid and gas yields increase [30]. Pyrolysis can be categorized into three types: slow, quick, and flash, based on heating rate and residence time [21]. The slow pyrolysis process, also known as carbonization or torrefaction, is characterized by low heating rates and extended residence times, often ranging from hours to days, and operates at temperatures around 300–700 °C. The primary objective of this method is to optimize the formation of biochar [31]. Torrefaction is typically carried out at temperatures below 400 °C. During the process, there is a reduction in moisture content, accompanied by an increase in the density of the torrefied char, as observed by Gao et al. [32]. The torrefaction process has several advantages when used for sludge treatment including reducing overall volume and effectively eliminating pollutants such as NOx and SOx. Moreover, this method increases the calorific value and C/H ratio of SS, as shown in studies conducted by Atienza-Martínez et al. [33, 34].

Sludge combustion occurs through oxidation at temperatures typically above 1000 °C, where additional oxygen facilitates the combustion of carbon and volatile chemicals [35, 36]. Sludge incineration is considered one of the most effective disposal alternatives [37]. Besides the incineration of sludge, this process is also used to treat other types of waste, such as medical or municipal waste [38]. There are three main aspects to the incineration of SS: the production of heat and energy, the elimination of the effects of hazardous substances present in the sludge, and the reduction of the volume of SS [32]. The primary products of this thermal process are combustible gas, bio-oil, and bio-char [38]. Gasification can be categorized as a variant of pyrolysis, and it is commonly performed at temperatures over 900 °C to attain a substantial production of purified and flammable gases, such as hydrogen (H2), carbon monoxide (CO), and light hydrocarbons [39]. Steam, air–steam mixtures, carbon dioxide, and steam-carbon dioxide mixtures have all been investigated as potential gasifying agents in addition to air [21, 32, 40,41,42]. The considered method shows significant similarities to combustion, except for its reduced ability to tolerate moisture in the reactor, which should not exceed 15% by weight. Additionally, there is a deficiency in stoichiometric oxidants required to achieve complete combustion, as noted by Oladejo et al. [36]. According to Dogru et al. [43], it is a remarkable feature that sludge with a moisture content below 15% undergoes complete moisture loss during the gasification process.

The thermal treatment of SS is used effectively in some European Union (EU) countries, such as the Netherlands, which processes all of its sludge output in this manner. With 97% of its sludge thermally processed, Switzerland (a non-EU country) comes in second, followed by Belgium (89%) and Germany (70%) [25]. The implementation of thermal treatment on sludge is likely to be a necessary measure to fulfill the criteria outlined in the revised Directive 271/1991, particularly in relation to achieving energy neutrality and reducing greenhouse gas emissions.

The presence of emerging contaminants, including PhACs, has raised significant concerns due to their adverse effects on human health as well as aquatic and terrestrial ecosystems [44]. The complexity and heterogeneity of SS make it a difficult matrix to work with. In the literature, there are much fewer articles on the occurrence of PhACs in different types of sludge than in wastewater, possibly because sludge is a more complex and complicated matrix for analysis [2, 14, 45,46,47]. PhACs can occur at high levels in digested sludge, for example, ciprofloxacin (12,858 ng/g DM), ofloxacin (6712 ng/g DM), norfloxacin (6049 ng/g DM), diclofenac (7020 ng/g DM), ibuprofen (4105 ng/g DM), caffeine (2828 ng/g DM), and gemfibrozil (1562 ng/g DM) [3, 47].

Thermal sludge treatment does not always take place in highly sophisticated and controlled combustion processes. The disposal of SS, mainly from small sources and in rural areas, can take place in simple conditions (domestic combustion) where high temperatures are not reached and the process of decomposition of sludge and organic components may not be perfect. To our knowledge, very few studies have addressed the impact of thermal processes or the effect of temperature on the removal of PhACs, drugs, and their metabolites from SS. Our vision was to perform laboratory tests that aimed at quantifying the concentration of PhACs content in sludge after thermal processes performed at low as well as high temperatures. We desired to prove that thermal processes are safe and that they effectively remove organic constituents from sludge, such as PhACs. Furthermore, the aim was to determine the temperature at which complete decomposition of the studied PhACs occurs. This study is the first in the Slovak Republic to provide a comprehensive description of how thermal processes impact the presence of PhACs in SS. Thus, a further objective of the study is to offer insights into the prospective application of thermal treatment as a method of sludge disposal.

2 Materials and methods

2.1 Characterization of WWTPs

Sewage sludge from eight WWTPs in different parts of Slovakia was selected (see the map in SM) to study the removal of PhACs. Five of them are located in the west (Bratislava—Devínska Nová Ves, Trnava, Trenčín, Piešťany, and Nitra), one in the center (Banská Bystrica), and two of them in the east of Slovakia (Poprad and Košice). All WWTPs utilize anaerobic digestion with biogas production. Basic relevant information on studied WWTPs is given in Table 1.

Table 1 Basic information on studied WWTPs

Each of the WWTPs operates on the mechanical–biological principle of wastewater treatment. Nitrogen removal from wastewater is carried out in nitrification in combination with pre-denitrification, and then phosphorus is removed by increased biological removal or, additionally, with chemical precipitation. Sludge is anaerobically stabilized in digester tanks with biogas production. The generated biogas is energetically recovered in cogeneration units.

2.2 Sampling and analysis

Sludge samples were taken after stabilization and dewatering of the sludge from eight WWTPs. The retention time of the sludge in the WWTP (including anaerobic sludge stabilization processes) ranges between 50 and 100 days; therefore, the sample cannot be defined by time. The collection took place in October 2019. The collected samples were stored at 8 °C until the experiments (approximately 24 h).

For a more efficient thermal process and better handling, the anaerobically stabilized sludge was first crushed into smaller parts, and then, the amount of sludge required for trials was weighed on analytical scales (approximately 10 g). Each sludge was prepared in triplicates. The results are reported as an arithmetic mean.

The thermal processes were done in the laboratory at the Department of Environmental Engineering, Faculty of Chemical and Food Technology, Slovak Technical University in Bratislava. For the experiments, digital drying ovens with a moisture analyzer (MB27 moisture analyzers from the manufacturer OHAUS, 80 °C), a classic laboratory drying oven with natural forced circulation Ecocell (105 and 250 °C) and a laboratory muffle furnace (550 °C) were used. The samples were dried for 2 h. After cooling in the desiccators, the dried sludge samples were weighed for dry matter content (Table 1).

2.3 Calculation of pharmaceutical concentration and removal efficiency in thermal processes

The PhAC concentration was determined in the thermally treated sludge. Target compounds were extracted from sludge samples using the two-step extraction procedure described in detail by Golovko et al. [45]. The filtered sludge extracts were analyzed by liquid chromatography with tandem mass spectrometry (LC–MS/MS) at the Faculty of Fisheries and Protection of Waters, USB, Czech Republic [14]. LC–MS/MS analyses were carried out using a TSQ Quantiva triple-stage quadrupole mass spectrometer from Thermo Fisher Scientific in San Jose, CA, USA. This mass spectrometer was coupled to an Accela 1250 LC pump from Thermo Fisher Scientific as well as an HTS XT-CTC autosampler from CTC Analytics AG, Zwingen, Switzerland. The chromatographic separation was performed using a Hypersil Gold aQ column with dimensions 50 mm × 2.1 mm ID × 5 μm particles (Thermo Fisher Scientific). There is further information available that provides a more in-depth description of MS/MS transitions and analytical methodologies [45, 48, 49].

The concentration of 101 pharmaceuticals, illicit drugs, and their metabolites was determined in sludge samples. Only compounds in sludge samples with values above the limit of quantification (LOQ) were included in the following calculations. Average PhAC concentrations in ng/g units were calculated from triplicates for individual PhAC, which were subsequently used to calculate the content of the given PhAC per gram of sludge dry matter (in units of ng/g dry matter).

The following calculation was used to evaluate the PhACs removal efficiency in sludge during individual thermal processes:

$$\mathrm{Removal\;rate\;}\left[\%\right]=1-\frac{{C}_{1,T}}{{C}_{0}}*100$$
(1)

In the equation, C0 expresses the concentration of PhACs in the sludge before the thermal process, and C1,T expresses the concentration of PhACs in the sludge after the thermal treatment at the process temperature T.

3 Results and discussions

The concentrations of 101 pharmaceuticals, illicit drugs, and some metabolites (belonging to 20 different therapeutic groups, see Table S1) were quantified in the mentioned sludge samples using the LC–MS/MS method. The therapeutic groups included psychoactive substances and their metabolites (n = 25), antibiotics (n = 16), antihypertensives (n = 15), illicit drugs and their metabolites (n = 16), antihistamines (n = 6), lipid regulators (n = 4), analgesics/NSAIDs (n = 3), and others. The efficacy of thermal processes was evaluated only for the 13 PhACs with the highest concentration that were found in sludge samples from all monitored WWTPs (Table 2). The highest concentrations of PhACs were found in sludge from WWTP Trenčín and WWTP Nitra (the sum of concentrations of 13 selected PhACs were 3900 and 3500 ng/g DM, respectively), and the lowest sum of concentrations was found in sludge sample from WWTP Trnava (1800 ng/g DM). Concentrations of these 13 PhACs in individual WWTPs as well as LOQs are presented in Tables S2.

Table 2 Selected pharmaceuticals in sludge samples

The selected PhACs were sorted into three categories, namely: psychoactive compounds (n = 6), cardiovascular pharmaceuticals (n = 3), and others (n = 4, this group includes antibiotics, antihistamines, analgesics/NSAIDs). These PhACs are often detected at higher concentration levels in sludge samples not only in Europe but all over the world [3, 5, 50, 51].

Among the PhACs that showed the highest concentrations (based on sludge dry matter) was TEL (Fig. 1), with a minimum concentration value of 1100 ng/g at the WWTP Trnava, and the maximum concentration at the WWTP Trenčín (1800 ng/g). Others included the antihistaminics FEX (minimum concentration − 120 ng/g at the WWTP Trnava and maximum at the WWTP Nitra (500 ng/g)), antidepressant SER (the lowest concentration was 69 ng/g at the WWTP Trnava and the highest concentration at the WWTP Trenčín (430 ng/g)), and CIT (minimum concentration 69 ng/g WWTP Trnava and maximum 300 ng/g WWTP Trenčín) and the NSAID DIC (the lowest concentration was found at the WWTP Banská Bystrica (41 ng/g) and the highest WWTP at the Nitra (200 ng/g)).

Fig. 1
figure 1

Concentrations of selected PhACs in SS from Slovak WWTPs (minimum, first quartile, median, third quartile, and maximum)

3.1 The influence of thermal processes on the concentration of PhACs in sewage sludge

Sludge samples from all monitored WWTPs were subjected to thermal processes in laboratory conditions. Subsequently, PhACs concentrations were evaluated for individual thermal stages (described in Chapter 2.2).

Table 3 contains the total concentrations of 13 selected PhACs in dewatered sludge and sludge after individual thermal processes. The total concentration of all selected PhACs in all sludge samples after thermal treatment at 80 °C decreased. The highest decrease was recorded at the WWTP Nitra (85%, a decrease from a value of 3500 to 510 ng/g DM), while the lowest efficiency was observed in the sludge sample from the WWTP Košice (76%, from a value of 2500 to a value of 590 ng/g DM). This temperature is a real temperature operated in many drying ovens of SS [25]. The original dewatered stabilized sludge contains about 70–80% water, the rest is organic biomass or inorganic matter. PhACs in such a matrix are freely dissolved in the aqueous phase or are physic-chemically bound to solid particles. Such high removal of the monitored PhACs during drying is surprising knowledge not yet observed in literary sources. This is probably due to a change in the structure of the substance under consideration when its state changes from a dissolved form to a solid form, while even a small structural change is evaluated as “decomposition” from a chemical-analytical point of view. Thus, in the process of drying, certain decomposition processes may occur, which will register as a decrease in the concentrations of individual monitored PhACs in the sludge. This phenomenon was also confirmed at 105 °C, when the total concentration decreased to 3000 ng/g DM (86% removal). At this temperature, the highest decrease in the total concentration of selected PhACs was detected at the WWTP DNV (91%) and the lowest decrease in the total concentration of substances (80%) at the WWTP Poprad.

Table 3 Total concentrations of selected pharmaceuticals in dewatered vs. thermally treated sludge at individual WWTPs

Increasing the temperature to 250 °C resulted in an apparent decrease in PhAC concentrations in all tested sludges. The total concentration at all WWTPs was 35 ng/g DM, which represents almost a 100% decrease from the original dewatered sludge. At a temperature of 550 °C, the concentrations of selected compounds were below the LOQs value; therefore, we assume a complete decomposition of the PhACs at this temperature.

3.1.1 Psychoactive compounds

All substances from this group showed very similar behavior during thermal processes. The highest concentration in DSS was determined for SER—430 ng/g DM and CIT—300 ng/g DM at WWTP Trenčín.

The total concentration of psychoactive substances at all WWTPs was 5300 ng/g DM. After thermal treatment at temperatures of 80 and 105 °C, the decrease was shown to 840 ng/g DM (84%) and 650 ng/g DM (88%), respectively. However, we assume that simple processes, such as dehalogenation, occur during drying at lower temperatures. These assumptions remain hypotheses, as they are not confirmed by the literature.

The concentration of all these psychoactive drugs was below LOQs at 250 and 550 °C (Table 4). Therefore, we can assume a high efficiency of PhAC removal by thermal processes at higher temperatures. The study conducted by Moško et al. [52] examined the impact of varying pyrolysis temperatures on the elimination of organic contaminants, including PhACs, found in anaerobically stabilized SS. Sludges were tested for the presence of 27 different compounds from different therapeutic groups, but only nine of them were detected in the sludge in the concentration range from 0.1 to 50 ng/g DM. The results reveal that a pyrolysis temperature as low as 400 °C was sufficient to remove the studied pharmaceuticals.

Table 4 Total concentrations of psychoactive pharmaceuticals (CAR, CIT + N-CIT, SER + NOR, TRA) in dewatered (DSS) vs. thermally treated sludge at individual WWTPs

3.1.2 Cardiovascular pharmaceuticals

Of this group of compounds, TEL was especially important. This PhAC is frequently detected in sludge matrices at relatively elevated levels [47, 51, 53]. Notably, among the 13 selected PhACs, TEL exhibited the highest concentration in the Slovak sludge samples, with a maximum concentration of 1800 ng/g DM observed at WWTP TN (Fig. 2). It is evident from the results that already at 80 °C, there is a significant decrease of TEL in all monitored sludges.

Fig. 2
figure 2

The concentration of TEL in dewatered sludge (DSS) and sludge after thermal treatment (minimum–average–maximum)—data from all WWTPs

TEL was found above its LOQ even after heat treatment at 250 °C. Its concentration ranged from 1.6 (WWTP Poprad) to 9.9 ng/g DM (WWTP Nitra). After thermal treatment at the highest temperature (550 °C), TEL concentrations were below the LOQ.

Table 5 provides an overview of the total concentrations of cardiovascular PhACs, including TEL, VAL, nd VER comparing dewatered sludge to thermally treated sludge at all monitored WWTPs.

Table 5 Total concentrations of cardiovascular pharmaceuticals (TEL, VAL, VER) in dewatered (DSS) vs. thermally treated sludge at all monitored WWTPs

As discussed above, TEL was the dominant compound in all sludge samples. Kodešova et al. [54] investigated the effects of soil on the uptake and transfer of PhACs from sewage sludge amended soils to spinach. The results showed that TEL showed high bioaccumulation in plant roots. This fact may be the reason for classifying this substance as potentially hazardous to human health.

3.1.3 Other therapeutic groups of pharmaceuticals

This group includes PhACs such as FEX (antihistaminic), DIC (NSAID), AZI (antibiotics), and CET (antihistaminic). Of these PhACs, FEX showed the highest concentrations in each sludge sample (maximum 500 ng/g DM at WWTP Nitra, minimum 120 ng/g DM at WWTP Trnava). In a study by Ivanová et al. [3], the maximum concentration for FEX was 5600 ng/g DM, which is several times higher than the maximum concentration found in this study (Table 6). Such differences between the values can be explained by the fact that the occurrence and concentrations of PhACs in the effluent on WWTP (subsequently also in the sludge) depend not only on the properties of the PhAC compounds (e.g., log Kow value, volatility, etc.), the properties of the wastewater inflow (i.e., alkalinity and acidity), sorption of pharmaceutical substances to suspended solids and applied treatment processes [55], but also on seasonal changes in consumption of PhAC and treatment processes efficacy during the year.

Table 6 Total concentrations of other pharmaceuticals (AZI, CET, DIC, FEX) in dewatered (DSS) vs. thermally treated sludge at all monitored WWTPs

The concentration of AZI in dewatered sludge was found in the range of 27–160 ng/g DM which is similar to values reported by Mejias et al. [47]. Aydin et al. [50] detected AZI in anaerobically stabilized sludge at a maximum value of 1500 ng/g DM (median 20 ng/g DM). AZI increased in thermally treated sludge at 80 °C at WWTP Poprad by up to 102% compared to the concentration in dewatered sludge (from initial 95 to 190 ng/g DM). At 105 °C, at the same WWTP, a 174% increase in the concentration of AZI (to a concentration of 260 ng/g DM) was observed in the thermally treated sludge sample.

The concentration of DIC in dewatered sludge was found in the range of 41–190 ng/g DM. These values differ from the reported ones. Mejias et al. [47] found diclofenac in anaerobically stabilized sludge in the concentration of 7000 ng/g DM. Contrary, Aydin et al. [50] found a maximum concentration of 19 ng/g DM.

At higher temperatures, these PhACs were below the LOQs. In general, it can be assumed that the strong oxidizing conditions during combustion preclude the presence of residual concentrations of PhAC in the combustion products. However, this assumption has not yet been confirmed in the literature.

4 Conclusion

Thermal processes are a promising way to handle sewage sludge produced in biological wastewater treatment plants. Their advantages include a significant reduction in sludge volume, maximum reduction of organic matter content, and sludge disinfection. Another technological advantage is the possible use of the energy content of sludge in the form of combustible gases, biochar, etc.

This work confirmed the presence of pharmaceuticals, illicit drugs, and some metabolites in anaerobically stabilized sludge from eight Slovak WWTPs. Based on the results, we concluded that thermal processes are an effective method for removing pharmaceutical substances from sludge even at lower process temperatures. Thermal processes at temperatures of 80 °C and 105 °C resulted in a significant decrease in the concentrations of the selected pharmaceuticals. At the minimum operating temperature of 80 °C, the total concentration of pharmaceuticals in all examined sludge samples decreased by nearly 81%. When compared to the total concentration in the samples that were not subjected to thermal treatment, the total concentration of pharmaceuticals reduced by 86% when the temperature increased to 105 °C. Increasing the temperature to 250 °C led to a nearly 100% decrease in concentrations, and at 550 °C, the concentrations were below the limit of quantification, indicating complete decomposition of the pharmaceuticals. Based on the physicochemical properties of pharmaceuticals, we assume that they degrade during thermal processes or that they may volatilize. What exactly happens to pharmaceuticals during thermal processes can be investigated using thermogravimetric analysis (TGA), which may be an ambition for our future study.