1. Introduction
The expansion of port economies and the heightened demand for petrochemical products have led to an increased number of ships transporting hazardous goods in and out of ports. This trend presents a challenge in preventing and managing water pollution in port areas [
1]. Among the causes of water pollution caused by ships, the most prevalent is the discharge of sewage containing oil and other hazardous substances. The discharge of water pollutants by ships during berthing or sailing, whether intentional or not, must be avoided. To mitigate the marine pollution caused by ships, the International Maritime Organization (IMO) presented the International Convention for the Prevention of Pollution from Ships (MARPOL) in 1973 [
2]. Since then, the content of the Convention has been continuously amended to promote its aims and purposes. In recent years, a set of regulations and standards that control the collection, disposal, and discharge of water pollutants from ships have been implemented in China [
3,
4]. These regulations mandate that ships may discharge water pollutants created by them in the sea area, only after taking treatment measures that adhere to the applicable standards, or receive uniform treatment and disposal at terminals.
Chemical tank-washing wastewater is predominantly generated during the tank-washing process that occurs when ships switch between incompatible cargos. Compared to other ship water pollutants, such as domestic sewage, its generation is less extensive but more detrimental to water bodies. Accordingly, stringent restrictions are in place regarding its discharge and disposal processes [
5]. This is particularly true in inland ports, where discharging such water into the water is prohibited and it must be transported to the shore for treatment. However, since the economic value of tank-washing wastewater is not as high as oily wastewater, while its treatment costs are higher, the shoreside is not very motivated to receive it [
6]. This further leads to the insufficient capacity of ports to receive this kind of wastewater, which explains the irregular treatment of wastewater by ships and even illegal discharges [
7]. A few cases of the improper disposal of tank-washing wastewater have been detected under the supervision of maritime agencies, such as the concentration of toxic substances in the treated wastewater being too high [
8], or the speed of the ship when discharging wastewater at sea not meeting the standard requirements [
9]. These cases may only be a small fraction of the cases and more irregularities may remain undetected. To effectively regulate the discharge of tank-washing wastewater, discussion on the decision making of shipping corporations under government regulation is important, as it may determine the effectiveness of pollution prevention policies [
10]. Before that, an accurate estimation of the quantity of tank-washing wastewater produced in the region must be performed, which aids in the planning of reception and treatment facilities for tank-washing wastewater, as well as for determining their spatial and temporal distribution. These efforts form the foundation for establishing pollution prevention policies, which is crucial to increase the amount of tank-washing wastewater that is received at the shore and prevent its discharge into inland waterways.
In contrast to air and other ship-generated water pollutants, the produced estimates of regional tank-washing wastewater generation mostly rely on port indicators or factual statistics from tank-washing procedures, but not on techniques like inventories of emissions and modelling [
11,
12]. The current regulations for facilities that receive water pollutants from ships utilize an empirical formula for calculating the amount of water produced during tank washing [
13]. This formula takes into account various port indicators, including the total number of ships docked, the total tonnage, and the port throughput. However, the parameters used in these formulas rely on fixed values drawn from experience and do not consider differences in tonnage distribution among ships or the varying proportions of cargo types changing between regions. Most estimates based on statistical data suggest that a single wash operation produces between 1% and 4% of a ship’s maximum deadweight tonnage in water [
14]. However, this calculation does not take into account the variations in the amount of water generated by different cargo types during the wash operation and, as such, can only provide an approximate range of water generated. Furthermore, given the low economic efficiency of the process, some ships do not undergo tank washing [
15], and some tank-washing operations are carried out by unregistered informal organizations that are not under the supervision of maritime administration agencies [
16]. Therefore, statistical data collected directly from tank-washing service providers may not be fully comprehensive in representing the demands for ships’ tank washing in the region.
Achieving an accurate estimation of the quantity of wash water produced on a regional scale depends on obtaining true and comprehensive wash requirements and precisely assessing the water generated by each washing operation. A method for calculating the quantity of water required for a single wash is presented in MARPOL. The coefficients used in this method are determined by the type of cargo, which influences the amount of water produced during each wash. As ships involved in the carriage of dangerous materials are required to submit a declaration to the Management Agency of the Maritime Safety Administration before arriving at port [
17], disclosing details of the cargo type and loading/unloading operations, it is feasible to accurately estimate the quantity of tank-washing wastewater generated in the area based on this method, in conjunction with the area’s declaration records of ships’ dangerous goods operations. However, as ships’ dangerous goods operations are typically reported to ports or management agencies that cover entire regions, the declaration records kept within a certain region do not fully reflect the operational details of ocean-going ships during their transport voyages across regions or even countries. In response to this situation, the use of automatic identification system (AIS) data to identify a ship’s trans-regional transport voyage to supplement that portion of the information can improve the comprehensiveness and accuracy of the tank-washing requirements determined from the declared records. As a ship monitoring system that reports navigational information such as the ship’s position, speed, and heading in real time, dynamic data from the AIS of ships are widely used to extract behavioral patterns and traffic characteristics of ships [
18,
19]. These data are also commonly used in the estimation of the total amount of water pollutants caused by ships on a regional scale, providing detailed and accurate results [
20,
21].
This study presents a method to estimate the quantity of wash water produced in the region. This method is based on the calculation method in MARPOL and involves utilizing information from AIS and records of dangerous goods operation declarations to extract information on the ship’s voyage. This information is used to identify the requirement for tank washing and thereby provide insights into the distribution of tank-washing wastewater generation in the region. This study demonstrates the efficacy of the method by employing the Pearl River Delta (PRD) region as an illustration. The findings present significant guidance for the development of structures for receiving and disposing tank-washing wastewater and the placement of tank-washing stations. These efforts will aid in the regulation and management of the creation and release of tank-washing wastewater from ships, thereby lessening their negative effects on the quality of water in harbors and bays near settlements, as well as preserving the safety of the environment and the development of resources in marine waters.
2. Methodology
The process for determining the quantity of tank-washing wastewater is depicted in
Figure 1. This included two primary stages:
The identification of tank-washing requirements: Assess whether the ship departs from the investigation zone using AIS data and handle the declaration records concerning dangerous goods operation within said zone based on the aforementioned assessment’s outcome. Subsequently, upon retrieving the ship’s voyage data, appraise its tank-washing requirements in light of the cargo category alterations between voyages.
Calculation of tank-washing wastewater quantity: Calculate the single washing water quantity of various ships using the method proposed in MARPOL, considering the adjustment coefficient based on the cargo loaded during each voyage. Afterwards, combine the tank-washing requirements of each ship with the single washing water quantity to determine the total quantity of tank-washing wastewater produced in the region.
The data used in this methodology consist of the following three items: (1) AIS data, providing real-time ship position, speed, heading, and timestamp information of ships in the study area; (2) records of dangerous goods operation declarations, including detailed information about the dangerous goods operation, such as the ship’s name, location, type of goods, and loading or unloading operations; and (3) the ship archive, which includes information about the ship’s length, breadth, tonnage, number of cargo holds, and capacity.
2.1. Identification of Tank-Washing Requirements
A voyage includes the whole process from the completion of the ship’s operation at the port of discharge to the completion of the ship’s operation at the port of loading and then sailing to the completion of the operation at the new port of discharge, and the ship’s requirement for tank washing is generated in the process of changing cargos between voyages. To determine the requirement for washing between voyages, the AIS data are assessed to establish the ship’s departure from the designated area, and then based on the result, the ship’s operation outside the study area is supplemented with speculations on the type of cargo to extract the complete ship’s voyage information, and then finally, the ship’s requirement for washing is judged whether it is generated during the process of inter-voyage loading or not.
2.1.1. Judgement of the Ship’s Departure from the Area
Ships sailing outside the area will experience a lack of AIS data, used in this study as a measure to determine whether the ship has departed from the area. Identify intervals between the -th AIS data point and the subsequent point sorted by the timestamp. If this interval exceeds a threshold value, the ship’s data are considered missing from that point onwards. The value of the threshold is assigned as , where represents the length of time used for updating the AIS data. However, due to variations in the operating conditions of AIS equipment aboard each ship, the data updating speed may differ from ship to ship. To determine its appropriate value, t is incremented from 0 in 1 min steps. Meanwhile, all neighboring data points of the ship with time intervals less than this value are considered, and the number of these points, , is calculated. Under each step, the growth of is checked and the value corresponding to the maximum of is determined to be suitable.
It is worth noting that a ship may briefly depart from the area due to channel constraints or to avoid certain obstacles, rather than heading to an out-of-area port for operations, and this study aims to recognize the latter behavior, as shown in
Figure 2. To achieve this,
is compared with the average operating time
in the ship’s declared record, and if
is greater than
, it is determined that the ship’s missing data may be due to a voyage to an out-of-area operation.
is calculated by subtracting the initial timestamp from the final timestamp for each undertaking and dividing this value by the total number of operations.
To determine that the ship’s missing data are caused by sailing away from the area, the coordinates of the next trajectory point of the data point where the missing data occur are predicted, and it is determined whether or not the coordinates are located outside the boundary of the area. Considering a ship with uniform acceleration, the acceleration of the ship at the
-th data point should be the difference between the ship’s speed at that point and the ship’s speed at the previous data point. Suppose the ship is missing data at the
-th data point. In that case, the coordinates of the next trajectory point at that point should be calculated according to the kinematic formula for uniformly accelerated linear motion, as follows:
where
and
are the longitude and latitude coordinates of the ship’s position at the
-th data point, respectively, while
and
and
and
are the speed and acceleration components in the longitude and latitude directions, respectively, at the
-th data point.
A position judgement is made on the coordinates obtained from the prediction, and if it is outside the study area, the ship is judged to have departed from the study area from the -th data point for a duration of .
2.1.2. Extraction of Voyage Information
Detailed information on the names, locations, cargo types, and operation forms (loading or unloading) of ships that have conducted dangerous goods operations within the region is documented in the records of dangerous goods operation declarations, reflecting the status of ship transportation voyages. To extract voyage information from declaration records of dangerous goods operations in the region, it is crucial to supplement and process the data of dangerous goods operation declaration records. First, sort the events of ships departing from the study area and operation records in the study area by their respective starting time stamps. Next, supplement the operation records of ships outside the region using the operations before and after the ships left the study area. Lastly, extract the ship’s voyage information from the corresponding record data. During this process, there may be voyages where the ship’s loading and unloading operations occur beyond the study area. This portion of the voyage remains unknown.
Figure 3 illustrates an instance of extracting the ship’s voyage information. The processing results in five voyages during the ship’s operations, with one voyage outside the region having an unknown cargo.
For the part of a ship’s voyage where the cargo onboard is unknown, it becomes imperative to speculate on the types of cargo based on available information. In this study, we assess the possibility of the ship carrying various cargo types during the unknown voyage by evaluating the preference degree of the ship for transporting different cargo categories and subsequently computing the preference degree for all such categories (including those in which the ship has not transported). This situation resembles the personalized recommendation system for e-commerce users. It relies on a portion of the user’s review data to obtain evaluations of all items to provide recommendations.
Collaborative filtering models, such as user-based collaborative filtering [
22] and item-based collaborative filtering [
23], are the most prevalent techniques for addressing personalized recommendation issues. The user-based collaborative filtering model calculates a user’s rating of an item they have not rated by summing up other users’ ratings of that item, with the weights being the user’s similarity. In contrast, the item-based collaborative filtering model calculates it by taking a weighted sum of that user’s ratings of other items, where the weight is the item’s similarity. By analyzing the user’s rating data, these models can infer the user’s preferences and ratings for various items [
24]. Subsequently, the models can recommend items to the user based on the ratings, which the user may prefer. The prediction outcome is contingent on the appraisals provided by the user’s “similar users” or the ratings of the user’s “similar items” for the anticipated item. Similar to the user-based collaborative filtering model, when predicting potential cargo types for a ship’s unknown voyage, the ship’s preferences for certain cargo types can be assessed and compared with other ships based on their previous voyages. Therefore, by considering ships comparable to the one in question, it is feasible to compute its preference for all cargo types.
The preference of ship
for operational cargo type
is calculated as follows:
where
is the set of cargo types, including all cargo types that have been carried in the known voyages of ship
.
denotes the number of voyages among the known voyages of ship
in which the operated cargo type is
.
For a cargo type
that ship
has not previously carried on a voyage, the preference of ship
to carry cargo type
is assumed to be zero in Equation (2). To complement this value, the similarity between ships is used as a weighting value, and the weighted sum of the preferences of all the ships for that cargo type
is used as a surmised value, as shown below:
where
is the set of ships, which includes all ships except for ship
.
denotes the degree of similarity between ship
and ship
, which is measured in the form of cosine similarity:
The probability of ship
operating cargo type
in an unknown voyage is obtained as:
where
is the set of cargo types, including all cargo types.
2.1.3. Determination of Tank-Washing Requirements
The wash requirement calculation produced by ship
after its
-th voyage is shown in Equation (6), where the expected value is used to determine the wash requirement for the voyage with an unknown type of cargo.
where
represents the probability of ship
transporting cargo type
a during a voyage where the type of cargo onboard is unknown;
represents the operational cargo types considered for the
-th voyage;
represents whether a tank-washing operation is necessary when ship
i changes its cargo from type
to type
, with a value of 1 for required and 0 for unnecessary; and
is obtained as:
where
indicates whether the operational cargo type of the
-th voyage is unknown. If it is unknown,
takes the value of 0; otherwise,
is equal to
.
Tank-washing activities conducted between two unknown voyages are not in the study area and are excluded from the determination of inter-voyage tank-washing requirements in this paper. Consequently, for this situation in Equation (6), is assumed to be equal to 0.
2.2. Calculation of Tank-Washing Wastewater Quantity
The quantity of water produced during a ship’s tank-washing operation relies on the cargo type and the combined volume of its liquid cargo tanks. Details relating to the ship’s dimensions, number of cargo tanks, and capacity are available in its archives. The single wash water of each ship is calculated based on the ship archive data, and the total quantity of water generated by the wash operation in the area is calculated by combining it with its wash demand.
2.2.1. Calculation of the Quantity of Water for a Single Wash
The calculation approach proposed by MARPOL sets the minimal pre-wash water quantity required for individual liquid cargo tanks. The resulting figure must be multiplied by an adjustment coefficient to obtain the amount of wash water produced in diverse scenarios, determined by the category of cargo carried aboard the ship. The formula for this calculation method is given below:
where
represents the minimal pre-wash water quantity required for individual liquid cargo tanks, measured in tons;
is the capacity of the liquid cargo tank in m
3;
represents the residual volume of the liquid cargo tank, which varies based on the liquid cargo tank size
; and
is an adjustment coefficient, the value of which varies according to the cargo loaded into the liquid cargo tank. The specific values of
and
are provided in Annex II of MARPOL.
To calculate and distinguish the quantity of water produced by various ships during tank-washing procedures via this method, the quantity of water produced during a single wash by a ship is calculated by adding up the minimum pre-wash water volume of each liquid cargo tank. To determine the appropriate adjustment coefficient, it is essential to classify the cargos transported on a ship’s voyages according to the X, Y, and Z pollution categories outlined in the International Bulk Code (IBC code) [
25]. Briefly, the quantity of water required for a single wash of a ship may be determined using the following equation:
where
represents the quantity of water produced by the tank-washing process carried out by ship
at the conclusion of its
-th voyage, measured in tons;
is the adjustment coefficient corresponding to the highest pollution category of the cargo that the ship carried on its
-th voyage;
represents the number of liquid cargo tanks on ship
;
is the capacity of the
-th liquid cargo tank in m
3; and
represents the residual volume of the liquid cargo tank, which varies based on the liquid cargo tank size
.
As presented in Equation (9),
is dependent on the values of
,
,
, and
. Since
is obtained according to the values of
,
,
and
, these values directly determine the quantity of water for a single wash. However, the ships that are not included in the CSA and CSAD lists of the China Classification Society (CCS) lack the data for the cargo hold number
and the capacity of the cargo holds
. Therefore, it is not feasible to compute the quantity of water for a single wash of these ships solely from the data listed in the ship archives. The number of cargo holds and the capacity of the liquid cargo tanks of a ship determine the ship’s loading capacity, which is closely related to the main dimensions of the ship, such as the length and width [
26,
27,
28]. To calculate the quantity of water for a single wash of the ship with the missing data, a regression analysis can be used with the ship’s length and width to calculate the value of the part of Equation (9) that excludes the adjustment coefficient
(i.e., the value of
”). The information of 2093 ships, which had their length, width, number of cargo holds, and capacity recorded in the ship archives, was extracted as a sample dataset. The dataset was randomly split into a training set and a validation set, with a division of 3:1, respectively, to train and assess a support vector regression (SVR) model. This process was repeated 50 times for cross validation.
SVR is a type of support vector machine (SVM) used for regression problems. It establishes a “spacing band” on both sides of the function, as shown in
Figure 4, and allows for a certain bias ε in the samples. The model does not calculate the loss for samples without deviations up to ε and aims to maximize the width of the interval band and minimize the total loss. The SVR model is a supervised learning algorithm that performs effectively without requiring any a priori assumptions on the parameters. As indicated in
Table 1, the SVR model exhibited satisfactory performance on the problem of supplementing missing ship data in this paper, with a mean absolute percentage error (MAPE) value of about 17%. It also reveals a high correlation between the main dimensions of the ship and the quantity of water in its single wash.
The value derived from the regression of the SVR model can be used to compute the single wash water quantity of ships with the missing data, as shown below:
where
is the regression value of
” that is obtained based on the length and width of ship
.
2.2.2. Calculation of the Total Quantity of Wastewater
The determination of the total quantity of tank-washing wastewater generated in the region should consider all dangerous goods ships that have operated within the area and their corresponding wash requirements, as illustrated in Equation (11):
where
represents the total quantity of tank-washing wastewater generated in the study area within time period
;
represents the number of dangerous goods ships that have berthed in the study area within time period
;
represents the number of voyages made by ship
;
indicates whether the unloading terminal for the
-th voyage is situated within the study area, and if it is, then it is 1, and otherwise, it is 0.
4. Conclusions and Discussion
This study proposes a method to calculate the tank-washing wastewater quantity of a region via the utilization of multi-source data. The proposed method facilitates an accurate and quantitative evaluation of the wastewater quantity generated by washing processes in a large region. When applying the method to estimate the wastewater quantity from tank-washing operations of dangerous cargo ships in the PRD region, it was discovered that around 15,000 tons of tank-washing wastewater was generated during the first quarter of 2018 due to the changing cargos of ships in the study area. Nearly 47.3% of the total was chemical tank-washing wastewater, which was primarily generated at chemical docks. Large petrochemical ports like Shatian Port Area in Dongguan, Gaolan Port Area in Zhuhai, and Quanwan Port Area in Huizhou produced a significant amount of tank-washing wastewater. Additionally, the calculations for tank-washing requirements revealed that the number of such requirements from ships amounted to approximately 7.4% of the total berthing events in the PRD region, which was nearly half the requirement for changing cargo type. Consequently, this research offers some management suggestions for discharging and regulating tank-washing wastewater based on these results.
First, the generation of tank-washing demands and the tank-washing wastewater are concentrated in the ports near large petrochemical industrial parks, while only a small portion is dispersed in other small petrochemical docks. This may cause these small portions to be overlooked, leading to safety accidents caused by the failure of hazardous goods ships to wash, or water pollution caused by ships discharging tank-washing wastewater illegally. These situations should not be allowed to occur in the PRD region, where inland waterways are adjacent to urban residential living areas. Therefore, the government should consider implementing unified supervision of all ships entering the region, endeavoring to achieve the goal of ship tank washing as much as possible and implementing a strict joint-order system for the generation, collection, and disposal of tank-washing wastewater from dangerous goods ships entering the region.
Second, there is potential in the ship tank-washing market in the PRD region. However, there is a need to establish a larger scale of ship tank-washing stations and a tank-washing service industry. At discharge ports, the lack of washing capacity may force ships to travel to other ports for cleaning, which increases empty voyage costs. This may lead to ships being less willing to wash. The provision of sufficient tank-washing services by ports can facilitate the frequent fulfilment of various hazardous goods transportation requirements by ships. This, in turn, can foster the expansion of the petrochemical sector at the port. Therefore, the government should consider providing support to ship cleaning service companies and ships’ water-pollutant-receiving companies. This should include measures such as offering enterprise subsidies and implementing preferential policies, in order to help companies to reduce costs and encourage the provision of services related to tank washing.
Third, tankers produce tank-washing wastewater during maintenance activities. Ships are required to undergo a minimum of two docking and overhaul procedures within 5 years in line with classification society regulations. During the first quarter, 1019 dangerous goods vessels were docked in the study area, resulting in an estimated demand of 102 for tank washing due to ship overhauls. This generated 3292 tons of tank-washing wastewater. Although it is likely that a larger proportion of the wash wastewater generated in this case will be oily wastewater, this part of the wash requirement should still be taken into account in the planning and construction of the tank-washing station, rather than being ignored.
The study results can assist in developing tank-washing wastewater treatment and reception facilities, identifying suitable locations for tank-washing stations, and forecasting the quantity of regional tank-washing wastewater. This can be achieved by incorporating the method employed in this research with the demand prediction model. Moreover, it can enhance the construction of a more detailed spatiotemporal model to help the government to regulate the release of tank-washing wastewater from ships. However, improvements can be made to this research in areas such as the following: (a) the provided case in this research lacks sufficient data on dangerous goods operations at some Shenzhen terminals, which would augment the reliability of the outcomes, and this resulted in the impediment of precise identification of tank-washing demands; (b) as mentioned above, ships may choose to wash while travelling to other locations due to the unavailability of tank-washing services at the discharge port, so the requirement for washing and the generation of tank-washing wastewater within the region may change after the availability of tank-washing services increases, as ships may choose to change cargo types more frequently. This situation may need to be considered in conjunction with some game modelling for further varying outcomes.