Abstract
This paper describes the methodology followed to implement social distancing recommendations in the COVID-19 context along the beaches of the coast of Gipuzkoa (Basque Country, Northern Spain) by means of automated coastal videometry. The coastal videometry network of Gipuzkoa, based on the KostaSystem technology, covers 14 beaches, with 12 stations, along 50 km of coastline. A beach user detection algorithm based on a machine learning approach has been developed allowing for automatic assessment of beach attendance in real time at regional scale. For each beach, a simple classification of occupancy (low, medium, high, and full) was estimated as a function of the beach user density (BUD), obtained in real time from the images and the maximum beach carrying capacity (BCC), estimated based on the minimal social distance recommended by the authorities. This information was displayed in real time via a web/mobile app and was simultaneously sent to beach managers who controlled the beach access. The results showed a strong receptivity from beach users (more than 50.000 app downloads) and that real time information of beach occupation can help in short-term/daily beach management. In the longer term, the analysis of this information provides the necessary data for beach carrying capacity management and can help the authorities in controlling and in determining their maximum capacity.
Keywords: Coastal videometry, Beach carrying capacity, Image processing, COVID-19
1. Introduction
Beaches are places of leisure and recreation visited by large numbers of people mainly during the summer season. In the coast of Gipuzkoa (Basque Country, Northern Spain), approximately 55% of the total population lives in the coastal area. Besides, the region receives a large number of tourists and sea-users. Tourism accounts for 7.4% of the gross regional income (Eusko Jaurlaritza/Gobie, 2020).
The on-going COVID-19 pandemic is among the most devastating global human epidemics. It not only has become a public health crisis, but it has also negatively affected the global economy (Pak et al., 2020). Recent studies confirmed that the peakedess of the epidemic is strongly shaped by population aggregation and heterogeneity (Pak et al., 2020), hence, quarantine and social distancing are currently employed to control its spread within communities. Following such recommendations, the Gipuzkoa Provincial Council decided to apply preventive measures during the 2020 summer to avoid beach crowding, by fixing a minimum extension of individual occupation of eight square meters of free subaerial beach surface per person (Diputación Foral de Gipuz, 2020). Hence, coastal city councils, as beach managers in their municipalities, had the need to regulate the beach access to limit the beach attendance and ensure the minimum social distance recommended by the health authorities.
Multiple approaches have been conducted to quantify the number of people visiting the beach. The measure of this parameter is fundamental for defining costal management plans, for example, at the time of identifying the physical carrying capacity of a beach (the number of individuals a beach can physically accommodate) (Da Silva, 2002), or the beach carrying capacity (the quantity and type of visitors that can be accommodated within a beach without unacceptable social consequences and negative impact on resources) (Manning and Lawson, 2002). A first distinction can be made between manual and automatic methods. Despite the fact that beach user manual counting only gives information at specific times (or during short periods of time) and no standardized methodology has been proposed, there are still studies that follow such method (King and McGregor, 2012; Dwight et al., 2007). On the other hand, automatic methods based on coastal videometry techniques for determining beach user density (BUD) and their distribution have shown their efficiency providing continuous data from months (Kammler and Schernewski, 2004) to years (Guillén et al., 2008). Although these techniques have been successfully used to investigate on beach user behaviour (Balouin et al., 2014) and to determine beach carrying capacity in real time (Cisneros et al., 2016), their benefits to coastal management planning have not been demonstrated yet, as examples of application by beach managers or by beach users are missing.
In Gipuzkoa, a coastal videometry network was developed by the Environment Department of the Provincial Council with the aim of assisting different beach management programs, from long term applications (beach morphology and flooding event monitoring) to daily management for beach safety and for beach carrying capacity control. For this latter application, the real time assessment of beach attendance has been a challenge given the extension of the network (it covers 14 beaches, with 12 stations, along 50 km of coastline).
Automatic methods to count beach users were initially based on the measure of pixel intensity and on ad-hoc filtering techniques (Kammler and Schernewski, 2004; Guillén et al., 2008; Balouin et al., 2014). However, these methods are difficult to parametrize and do not appropriately adequate to different locations and illumination conditions. Recent studies based on machine learning approaches (Gulden, 2018) have delivered more sophisticated image segmentation methods (Hoonhout et al., 2015) for beach occupation estimation. However, these methods involve a huge number of highly precise manually segmented training examples that require a statistically significant number of examples, which is prohibitively time-consuming. Therefore, they are not well adapted to be implemented at regional scale. The use of unsupervised segmentation techniques (Guillén et al., 2008) such as the ones based on active contours (Jimenez et al., 2007) represent a popular and very successful class of algorithm (Caselles et al., 1993), that need no manually labelled data. However, they tend to be unreliable, due to the necessity to manually tune many parameters, to adequate the different techniques to the particularities of each problem.
In this paper, in order to overcome these issues, we have adapted our hybrid method from medical imaging segmentation (Bereciartua et al., 2015, 2016) where a modest number of manual segmentations were gathered, from which a coarse segmentation via statistical classification techniques was obtained. This allows us to perform automatic assessment of beach attendance in real time along the coast of Gipuzkoa.
This approach has been applied in the context of COVID-19 and a new methodology for the management of the beach carrying capacity, by means of coastal videometry, has been developed aiming at ensuring the necessary social distance to minimize contact between individuals. This resulted in providing beach occupation information in real time through a web/mobile app to support coastal managers and lifeguards’ decisions, to raise beach user awareness and to help them to reduce displacements to the beach in a conscious way.
2. Methodology
2.1. Study site
Real time beach occupation data were collected from a total of 14 beaches located along the Basque coast (SE Bay of Biscay) during the 2020 summer season. All the studied beaches are located in the Gipuzkoa province (Fig. 1 ), and all of them are urban beaches with different kind of infrastructures. The beaches in this study belong to 7 different coastal municipalities (in groups of 1–3 beaches per municipality), and they have different characteristics in terms of subaerial beach surface capacity. Due to the length of some of the beaches, or due to specific requests from the municipalities, some beaches have been subdivided into 2 or 3 zones (Z).
Fig. 1.
(a) Localisation of the Gipuzkoan coast and of the beaches included in the analysis: (1) Saturraran, (2) Ondarbeltz, (3) Santiago (Deba), (4) Lapari, (5) Itzurun, (6) Santiago (Zumaia), (7) Gaztetape, (8) Malkorbe, (9) Zarautz, (10) Antilla, (11) Ondarreta, (11) La Concha, (12) Zurriola, (14) Hondarribia. (b-c-d) Oblique images of b) Malkorbe, c) Zarautz and d) Ondarreta beaches obtained from the videometry stations.
The tidal regime is semi-diurnal and has a maximum annual tidal range that exceeds 4.5 m. It is defined as low-mesotidal during neap tides, and high-mesotidal during spring tides (González et al., 2004). The beach sediment along the Basque coast is mainly composed by quartz sand and ranges 0.2–0.46 mm (fine to coarse sand). In addition, a medium height wave exposure results in intermediate morphology states with reduced to moderate supratidal area and high intertidal profiles as the most common configuration. Some reflective profiles can be also seen in the less exposed locations.
2.2. Videometry
All the beaches were monitored using the infrastructure of the Gipuzkoa videometry network. This network uses the coastal videometry technology KOSTASystem developed by AZTI. The camera calibration and orthorectification method is based on the study of Holland et al. (1997). It consists of a two-step calibration (intrinsic and extrinsic) and allows the orthorectification of the images on a uniform z plane or in a predefined digital terrain model grid.
Each station has a specific number of Gigabit Ethernet cameras and fixed lenses, depending on the point of view and the dimensions of the beach. A camera supervision algorithm was set up to regulate the daily functioning interval, the cycle frequency and length, as well as the cycle window in which every element of the station is powered on (cameras, router, and swich). For the capture and processing of the images SIRENA software is used (Nieto et al., 2010). SIRENA creates 4 types of images from each camera: snap (instantaneous images), timex (average images), var (variance images) and timestack images (defined profile images). In previous applications, the cycle duration was set to 10 or 20 min, every 1 h, and the capturing frequency was 1 or 2 Hz.
In the present study, from June 15 to September 15, the configuration of the coastal stations was optimized to update the information visualized in the app to every 30 min, with a survey time of 08:00 to 18:00 UTC. Since the power system in most cases is photovoltaic, the update frequency is limited by the consumption associated with the image capture, processing, and the transmission cycles.
2.3. Beach user density (BUD) estimation
The beach user density (BUD) is defined as the percentage of the number of pixels that have been classified as occupied (beach users or belongings associated to users) from all the pixels analysed in the predefined region (ROI).
| (1) |
For this purpose, a new detection algorithm (Hondartza) was developed (see details in Appendix A). Implementing an algorithm that automatically performs beach occupation estimation is a complex task, mainly due to the difficulty of processing outdoor images that are subjected to changing light and weather conditions. To overcome this drawback, a three-step method was followed:
-
1)
Use of pixel imaging descriptors that are robust to illumination changes such as texture descriptors.
-
2)
Use of a weak classifier to allow feature redundancy to generate a probabilistic map.
-
3)
Employ a level-set over the probabilistic map to accurately remove spurious detections and regularize the estimated segmentation.
Fig. 2 shows an example of the detection algorithm results in the beach of Santiago-Zumaia.
Fig. 2.
Camera captured image (left) and image result of the detection algorithm (right) on Santiago-Zumaia beach, on July 20, 2020. The analysed region is coloured black.
2.4. Beach attendance (BA) estimation
The estimation of the total number of people on the beach (BA) is also a relevant value for coastal managers to manage and plan the use of the beach. It is related to the total number of people on the beach and it is obtained from the following formula:
| (2) |
where S is the available beach surface (m2), and k is the estimation of the number of individuals per square meter occupied. The S parameter varies according to the tide level in the study site. Therefore, three regions of interests (ROI) are set up, considering the representative tide level (high tide, mid tide, and low tide), and avoiding processing non-sandy areas. To calculate the available surface of the beach, the ROI used for the detection is rectified at the mean level of the supratidal beach. At each time of image capturing, the algorithm matches the tidal level with the corresponding ROI (Fig. 3 ).
Fig. 3.
Deba station snapshot image (Camera 1) and ROI definition (low tide, mid tide and high tide).
2.5. Beach carrying capacity (BCC) and beach access management under COVID-19
The beach carrying capacity parameter (BCC) is defined as the maximum beach occupation percentage allowed, based on the recommendations of the beach capacity ratio of c = 8 m2/person, established by the Gipuzkoa Provincial Council in the COVID-19 context, and on the calibration parameter k (number of individuals per square meter occupied):
| (3) |
If the real time BUD estimated from the detection algorithm is larger than the BCC, then the recommendation is not respected. Therefore, it was defined an occupancy threshold (BUD/BCC) that indicates the level of beach occupation ranging from 0 (low occupancy/empty beach) to 1 (full capacity/recommendation not respected). For this purpose, a text information and a colour-based display were implemented in the app (Table 1 ). The green and yellow values indicate that the COVID-19 recommendations (8 m2/person) are respected.
Table 1.
BUD/BCC ratio-based classification and the colour and text displayed in the app.
The information obtained from the system was then processed to be accessible to authorities, local managers (local councils and police and users. The results were displayed via a web/mobile app (Nik Hondartzak) for real time information, and special warnings were sent to managers via emails alerting of occupancy evolution or maximum capacity reached. For this purpose, an information exchange structure was set up in which video image captures were deposited with their configuration files and with the data to be displayed. An implementation was developed to execute the occupation algorithm at predefined intervals and to generate the text information (beach occupation information) and the cropped images (showing only the region of interest) that will be visualized in the app. A summary of the methodology developed here is summarized in Fig. 4 .
Fig. 4.
Schematic illustration of the coastal attendance strategy carried out during the 2020 summer season.
In addition, to avoid erroneous beach access management produced by inaccurate beach user detections (caused by cloudy conditions or building produced shadows), an extra app was developed to allow managers to manually control the beach occupation status displayed for each beach. Moreover, during the summer 2020 the data were continuously analysed in collaboration with authorities and coastal managers to reconsider the beach capacity ratio of 8 m2/person initially set.
The developments of the Nik Hondartzak mobile/web app were opensource, multiplatform and based, among other technologies, on HTML, JS, JAVA and SQL, so the connectivity between our system and third-party systems was optimal. The platform consisted of some basic modules/functionalities which could be adapted and expanded with other functionalities upon request. Personalization and user experience design were essential for the app. These are the functions included in the app: (1) Real time location, (2) Personalization of the application to the corporate image, (3) Real-time data, (4) Content manager to manage the beaches, (5) Push notifications, (6), 4 languages included, (7) Publish on Google play and (8) Publish in App store. The app also included information about the hourly tide levels and subaerial and intertidal surface evolution forecasted daily for each beach (Fig. 5 ).
Fig. 5.
Snapshots of the Nik Hondartzak app. Left: several beaches are listed, and a colour symbol and a text information were displayed depending on their BUD/BCC value. Right: Tidal level information (up) and available beach area information (down) were displayed for the selected beach. (For interpretation of the references to colour in this figure legend, the reader is referred to the Web version of this article.)
3. Results
3.1. Number of individuals per square meter occupied (k)
The k parameter was computed from images and data obtained during previous years at Bakio beach and 8 other beaches of the Basque Coast. Bakio's beach was chosen as the main test site due to the amount of data available and the existence of manual counting records together with images from the videometry station.
During summer 2013, the BUD data obtained by means of videometry was compared with the data obtained by manual counting. The manual counting methodology was carried out every day at 10:00 and 16:00 (UTC) during the summer season (from June 1 to September 30). The video images were analysed at the same time as the manual counting were performed. To obtain the BUD parameter, only the subaerial beach was analysed, and bathers were not considered, assuming that they had some subaerial beach area occupied with a bag or bath towel that would be detected by the algorithm.
Fig. 6 shows the correlation between BUD (obtained from image analysis) and BA/S. BA/S was obtained by dividing the result of manual counting between the subaerial beach area.
Fig. 6.
Relation between BUD obtained from image analysis and BA/S from manual counting divided by subaerial beach area, at Bakio beach for all the data of summer 2013.2 data per day at 10:00 and 16:00 UTC from June 1 to September 30.
During summer 2014, a validation campaign was carried out at 8 beaches of the Basque Coast. For that, BA derived from manual counting was contrasted against BUD from photos taken at the same time, in four sunny days along the summer. Fig. 7 shows the relation between BUD and BA/S in all these beaches. S is the subaerial beach area for each case.
Fig. 7.
Relation between BUD obtained from image analysis and BA/S from manual counting at 8 beaches along the Basque coast in 2014. Photos were taken at the same time of the manual counting in 4 sunny days per beach along the summer.
In both cases the relation between BUD and BA/S is close to 0.3 with an R2 > 0.93. Thus, there is a clear evidence that in the most common beach typologies and attendance levels of the Basque coast, the k ratio (persons/m2) is around 0.3.
3.2. Beach carrying capacity (BCC)
The beach carrying capacity parameter (BCC = 1/kc) is seen as the maximum BUD allowed based on the recommendations of social distance in the COVID-19 context.
This, with a k = 0.3 and a c = 8 m2 per person, leads to a theoretical limit beach carrying capacity of around 0.4 (BCC = 0.4). During the implementation of the methodology there were a series of meetings with the local authorities of the different councils to review this parameter. Some asked a more restricted limit of 10 m2/person, which leads to a BCC of 0.33. From a common agreement, it was decided to start the summer season with a BCC of 0.35. Later during the summer, this BCC limit was modified in the range between 0.3 and 0.4 depending on the feedback received from each local council.
It must be pointed out that, as shown from the results from previous years, values between 0.3 and 0.4 were usually reached only during the more crowded days (e.g. Bakio never exceeded 0.35 during summer 2013). Values over 0.4 were only observed in some special cases usually related with very populated beaches that are drastically reduced during high tide.
With these results, we have shown that 8 m2 per person, is a good balance between applying social distancing measures, without being too restrictive with the access to the beach.
3.3. Image live processing success rate
Fig. 8 shows the success rate (%) obtained at each station during the summer 2020 service. The success rate represents the relative number of images that were captured, transferred, processed, and successfully shown in the mobile app. In general, the system operated effectively, with a success rate of more than 70% in all the beaches. 8 (Saturraran, Santiago-Deba, Itzurun, Malkorbe, Zarautz, Antilla, Ondarreta and La Concha) of the 14 beaches had a success rate of over 90%. 4 (Ondarbeltz, Gaztetape, Zurriola and Hondarribia) had a percentage between 80 and 90% and only one station (Santiago-Zumaia) had a success below 80%.
Fig. 8.
Gipuzkoa videometry network success rate (%) during the summer 2020 service.
The reasons of failure were related to three different factors: i) hardware failures (loss of internal CPU's clock configuration, which affected the image capture and transmission), ii) unstable mobile communications (delayed image delivery to the database, which affected the image processing in time) and, iii) software problems (system crash).
3.4. Beach user density (BUD)
The occupancy classification based on the BUD/BCC ratio is shown in Fig. 9 . Red, yellow and green colours correspond to full occupancy, high occupancy and medium-low occupancy, respectively.
Fig. 9.
Occupancy classification of all the analysed beaches, according to the displayed colour in the app: red (closed beach), yellow (high occupancy), or green (medium-low occupancy). (For interpretation of the references to colour in this figure legend, the reader is referred to the Web version of this article.)
As a general rule, all the analysed beaches had a medium-low occupancy during more than 70% of the time. Some beaches (Saturraran, Ondarbeltz, Malkorbe - zone 2, and Hondarribia - zone 1) never reached the full occupancy level during the summer despite the great number of beach users registered this year because of their large subaerial beach areas.
The beaches with full occupancy level, and closed, less than 5% of the time (Santiago-Deba, Itzurun, Santiago-Zumaia, Malkorbe - zone 1, Zarautz - zone 3, Antilla, Ondarreta and Hondarribia - zone 2) correspond to beaches with high occupancy associated with relatively limited but systematically present subaerial beach.
Management was the most problematic in Zarautz and La Concha beaches where the beach entry was restricted to beach users between 5% and 10% of the time. In the case of Zarautz, the zones 1 and 2 (highly urbanized zones) presented higher access restriction levels in comparison to zone 3 (natural dune zone). Zarautz and La Concha had both a high user attendance and are long beaches, with a small subaerial beach during hight tide.
Gaztetape has similar occupancy levels (full occupancy larger than 5% of the time) but has a different configuration. It is a very small beach, with little beach attendance and with almost no supratidal beach during hight tide. There, the closure of the beach was related to the absence of the supratidal beach.
3.5. Comparison with pre-COVID19 era
A comparison between data analysed during 2020 and data collected during 2019 has been performed. For this purpose, the data were first normalized to allow a correct comparison. Data collected during 2019 were post processed applying the same BCC/BUD thresholds as in 2020. Since some videometry stations were not active in 2019, the comparison was done for 8 of the 14 stations.
The first issue that stands out is the high number of days classified as high-occupancy or full-occupancy in summer 2020 compared with summer 2019 (Table 2 ). In 2020, 6 beaches (Antilla, Zarautz, Malkorbe, Santiago-Zumaia, Itzurun, Santiago-Deba) registered more than 20 days of high occupancy, and Hondarribia and Saturraran registered 15 and 12 days of high occupancy, respectively. This corresponds to more than twice the number of days of high occupancy recorded during 2019, in almost all the beaches. In addition, all the beaches that, in 2019, reached full occupancy conditions increased this number in 2020. Zarautz and Itzurun are especially noteworthy, with 20 and 10 days of full occupancy in 2020, respectively, in contrast to 4 and 0 days in 2019.
Table 2.
Comparison between the number of days with full and high occupancy registered in summer 2020 and in summer 2019.
| Beach | Number of days (2020) |
Number of days (2019) |
||
|---|---|---|---|---|
| Full occupancy | High occupancy | Full occupancy | High occupancy | |
| Saturraran | 0 | 12 | 0 | 0 |
| Santiago-Deba | 4 | 24 | 1 | 13 |
| Itzurun | 10 | 40 | 0 | 19 |
| Santiago-Zumaia | 1 | 22 | 1 | 0 |
| Malkorbe | 2 | 22 | 0 | 2 |
| Zarautz | 20 | 29 | 4 | 10 |
| Antilla | 5 | 21 | 3 | 4 |
| Hondarribia | 0 | 15 | 0 | 2 |
In Fig. 10 , morning and afternoon attendance during 2019 and 2020 is calculated for each summer month in 3 of the beaches with high attendance values. In general, beach attendance is between 2 and 3 times higher in 2020 than in 2019. This might be related with the larger number of sunny days and higher temperatures registered during summer 2020. Based on the monthly weather reports published by the Basque meteorological agency (Euskalmet), both the summer of 2019 and 2020 were hot and dry in the coast of Gipuzkoa. For example, in July 2019 there were 8 rainy days (>1 mm) compared to 7 in July 2020, both below the average. On the contrary, in August 2019 there were 9 rainy days in contrast to 10 in 2020, both around the average values for the month. Sunstroke was normal or slightly high in both years except for July 2020 which was exceptionally high with 20%–30% higher than average. Summer temperatures in 2019 and 2020 were high (1 Celsius degree above the average temperature) comparing to the 1981–2010 reference period, with several extreme temperature events. Nevertheless, the weather during summer of 2020 was good in terms of beach use, and except for a greater insolation in July 2020, the rest of the parameters were similar in both cases.
Fig. 10.
Morning and afternoon total attendance calculated for each month during 2019 and 2020 in 3 of the beaches with higher attendance values.
This reveals a hight demand of beach activity by the population in the context of COVID-19, as other recreational activities have been drastically reduced and beaches are seen by the users as safe spaces where social distancing can be applied.
Beach attendance temporal distribution variations were also observed. Previously to 2020, a bimodal distribution in the daily attendance patterns were commonly observed (Informe depara Dipu, 2019), with one peak in the morning (around 11:00 UTC) and a second and in some cases higher peak in the afternoon (around 16:00 UTC), revealing a clear trend for people to attend some beaches mostly in the afternoon. This was the case of Antilla beach and, in a lesser extent, of Santiago-Deba, in 2019. In 2020, this pattern has changed, with the beach attendance in the morning being equal or higher than in the afternoon.
In terms of spatial distribution, behavioural changes were observed in 2020, in comparison to the pre-COVID-19 years. Beach areas that in the past year where low affluence areas (usually areas far from the shoreline, where temperatures can be very high), have been occupied in 2020. That is, the spatial distribution of beach users observed in previous years, where there was a higher concentration of people near the shore (non-uniform distribution), has been shifted to a uniform spatial distribution (users uniformly spaced along the beach). An example of this change in the behaviour of beach users is shown in Fig. 11 , for two high attendance days (2020 vs. 2019) in Antilla beach. This behaviour demonstrates that people have complied with the recommendations of the Gipuzkoa Provincial Council, respecting the social distance.
Fig. 11.
Different spatial distribution patterns coinciding with maximum BUD in 2020 (left) and in 2019 (right) in Antilla beach.
3.6. Use of the Nik Hondartzak app
The Nik Hondartzak app was downloaded to more than 50,000 devices throughout the 2020 summer season. 65% of the downloads took place during the second half of June, at the beginning of the season. In July and August, 30% and 5% of the downloads were registered, respectively. 64% of downloads were made to mobile devices (52% android and 12% iOS) and 36% have consulted the web app.
The images uploaded to the app are exempt from the Spanish Data Protection and Digital Rights Guarantee Act (LOPDGDD) 2018, as no person can be identified due to the resolution available.
Fig. 12, shows the usage of the app by day of the week for the period June 15 - September 15, 2020. The app is mostly used on weekends (Saturday and Sunday) and the maximum use occurs on Sundays (26%). On working days, the usage percentage is between 10 and 13%, with no large difference between thems. Surprisingly on Fridays, being the day closest to the weekend, the percentage drops to 8%.
Fig. 12.
Usage of the app by day of the week during summer 2020 (June 15 - September 15).
If the consultations are disaggregated by hour of the day (see Fig. 13 ), it is noted that most consultations take place in the afternoon. App users do not consult the app much early in the morning and the maximum number of consultations occur between 16:00 and 17:00 (UTC). The number of consultations remains high until 19:00 (UTC).
Fig. 13.
Usage of the app by hour of the day (UTC time) during summer 2020 (June 15 - September 15).
In addition, all the app consultations were geo-located (Fig. 14 ). This information is of great interest for beach managers as it gives an idea of the provenance and preferences of beach users without doing extensive polls.
Fig. 14.
Geographical distribution of the connections realised by app users during 2020. The blue square delimits the coast of Gipuzkoa. The main nearby cities are illustrated with a red star. Main motorways to Gipuzkoan beaches are highlighted with black dashed lines. The number of connections is illustrated from red (low number of connections) to yellow (high number of connections). (For interpretation of the references to colour in this figure legend, the reader is referred to the Web version of this article.)
It is noticed that most of the consultations were made from locations along the coast of Gipuzkoa (blue square) and from the three nearby largest cities (red stars). Since two of the nearby cities, are not on the coast, people consulted the state of the beaches before traveling to visit them or during the journey to the coast (note the number of enquiries made along the motorway connecting these two nearby capitals with the Gipuzkoa coast). Also, some app enquiries were made from Madrid and Barcelona (most populated cities in Spain) and from other coastal regions along Spain like Galicia, Cadiz, and Tarragona. It is also interesting to note that these last regions are typical touristic destinations for the people living in the Basque Country.
4. Conclusions
In the context of COVID-19, a methodology for the management of the beach carrying capacity by means of coastal videometry has been developed and applied to the coast of Gipuzkoa. It aimed at ensuring the necessary social distance recommended by authorities and resulted in providing real time beach occupation information through a web/mobile app to coastal managers and beach users.
To this end, a beach user detection algorithm based on a machine learning approach has been developed allowing to perform automatic assessment of beach attendance in real time at regional scale. The coastal videometry network of Gipuzkoa, based on KOSTASystem technology, covers 14 beaches, with 12 stations, along 50 km of coastline. For each beach, a simple classification of occupancy (low, medium, high, and full) was estimated as a function of (1) the beach user density (BUD) obtained in real time from the images, and (2) the maximum beach carrying capacity (BCC), defined based on the recommendations of social distancing in the COVID-19 context. This result was displayed in real time via the app, as well as the last image of the beach, and an hourly forecast of the available dry and wet beach areas for the day.
During summer 2020 (June 15 - September 15), beaches showed a medium-low occupancy in more than 70% of the days (survey time 08:00–18:00 UTC). Some beaches never reached the full occupancy level, and the most problematic beaches had a full occupancy levels between 5- to 10% of the time. From continuous interactions with the authorities, changes in the maximum beach carrying capacity have been tested in these beaches. It has been shown that the maximum beach capacity ratio of 8 m2/person established initially by the authorities, was a good balance between applying social distancing measures, without being too restrictive with the access to the beach, and that this ratio can be recommended in the future for similar situations.
The app showed a strong and favorable reception from beach users (more than 50.000 downloads), which is similar to the maximum daily beach attendance of the 14 beaches of Gipuzkoa altogether. In addition, the large number of consults performed in the nearby largest non-coastal cities allows to consider that the application contributed to the reduction of unwanted displacements and of beach crowding in a conscientious way.
A comparison of the results of 2020 with the pre-COVID-19 era have shown some remarkable patterns in beach users’ behaviour. Although the weather during the summer season was similar in 2019 and 2020, the level of beach attendance was 2–3 times higher in 2020. This reveals a high demand of beach activity by the population in the context of COVID-19 as local tourism has been promoted. Other recreational activities have been drastically reduced and beaches are seen by the users as safe spaces where social distancing can be applied.
Furthermore, changes in the spatial and temporal distribution have been observed. In contrast to previous years, in 2020, the subaerial beach was occupied in its full extension and, for similar attendance ratios, higher and more regular spacing between individuals was observed. Moreover, in 2020, the beach attendance was spread throughout the day, in contrast to the previous year that showed a peak of attendance late in the morning and, a stronger peak in the afternoon. This confirms that beach users have been concerned about keeping social distancing measures.
This work has shown that providing real time information of beach occupation to beach users and beach managers can help in the short-term/daily beach management. Unquestionably, monitoring in real time the affluence of each beach improves managers criteria to open/close the access to the beach. In addition, having this information available greatly facilitates communication between managers and users.
In the longer term, the analysis of this information provides the necessary data for beach carrying capacity management and can help the authorities in controlling and determining the maximum capacity of beaches for future situation. Moreover, if the COVID-19 distancing recommendations change in the future, the present method can easily be accommodated. Coastal videometry with a performant detection algorithm is a powerful tool to provide such information at regional scale and the method presented here is applicable to other sites with different morphodynamic characteristics and different tidal regimes.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Acknowledgments
This work has been supported by the Gipuzkoa Provincial Council, the Zarautz Council, and the Donostia-San Sebastian Council. The authors would like to acknowledge the technical assistance and data provided by the Bizkaia Provincial Council. Roland Garnier acknowledges funding from the Provincial Council of Gipuzkoa through the Fellows Gipuzkoa Programme (Ref: 2020-FELL-000007-01).
APPENDIX A. The hondartza detection algorithm
A.1. Algorithm formulation
To generate illumination robust descriptors, the filter bank defined by Leung and Malik (2001) was considered. The Leung-Malik features were designed for texture recognition and segmentation. They consist on the responses of the image patches to a set of 48 linear filters, among which there are 36 elongated filters at varying orientations, scales and phases, together with 8 center-surrounding difference of Gaussian filters, and 4 low-pass Gaussian filters.
Fig. A1.
Six of the filters in the Leung-Malik filter bank for texture characterization (Informe depara Dipu, 2019).
These filters (Fig. A1) are capable of mapping different textural and colour information from the image and, in fact, convolutional neural networks (Liu et al., 2019) automatically learn Leung and Malik similar filters on their low-level layers as image descriptors. To obtain the high-level description of the image each Leung and Malik filter is convolved over the three CIELab channels (Martin et al., 2004; Johannes et al., 2017) of the image.
After computing the features for every image in the training set, the following goal is to separate the feature space, finding boundaries that split it in two partitions that classify well unseen examples. Many well-established techniques for supervised learning exist in the literature, including logistic regression (Hastie et al., 2009), neural networks (Egmont-Petersen et al., 2002) or support vector machines (SVMs) (Vapnik, 1998). In this work our statistical classifier is trained by means of the Boosting methodology. Boosting, and AdaBoost in particular (Freund and Schapire, 1997), are a class of algorithms that combine a set of very simple (weak) classifiers, to build a stronger ensemble classifier. This algorithm acts on a training set …, (, where each is in the domain X and each is in the label set . At initialization stage, a simple linear classifier is assigned to each label, with equal weights, . In each iteration of the algorithm, the weights are modified so that the weight of misclassified examples are increased, leading the classifier to focus on the worst classified examples, increasing this way performance. Final classifier is found as a weighted sum of the best weak classifier found at each iteration, as:
| (A.1) |
After initialization, the structure of the algorithm is:
-
(1)
Finding the best weak classifier in this iteration, , when importance of examples is weighted by distribution .
-
(2)
For that best classifier, computing error rate as:
| (A.2) |
where, since the weak classifier is better than random, then.
-
(3)
Computing the corresponding weight with which will contribute to the final classifier , as:
| (A.3) |
Here, as , then . Also, the smallest is the error , the largest is the factor , assigning more importance to the weak classifier in .
-
(4)
Building a new weight distribution based on . For each example :
| (A.4) |
so the weight of misclassified examples is increased for the next iteration, in which the corresponding weak classifier will be selected as the one that better handles harder examples. Renormalizing the weight distribution, so that it sums up to 1.
At the end of the iterative procedure, the designed strong classifier can discard redundant features, and effectively classify each pixel as belonging to one class and the other in less than 1 s. The classifier output corresponds to a probabilistic map of values in the [0,1] range where the higher the value, the more posterior probability of the pixel of belonging to a occupied region and the closer to 0, more probability for belonging to an unoccupied beach region. These values are thresholded by a predefined value calculated over the training set to maximize the balanced accuracy. Results are depicted in Fig. A2.
Fig. A2.
(a) Detail of the segmentation performed by the Ada-boost classifier, (b) Detail of the final result of the segmentation after applying the level set based regularization (c) Detail of the initial level (coarse segmentation initialization) set function (d) Detail of the final level set function.
At the end of the iterative procedure, the designed strong classifier can discard redundant features, and effectively classify each pixel as belonging to one class and the other in a reasonable amount of time. The model is then passed on to the part of the software dedicated to prediction so that, based on the knowledge included in the model, it is possible to apply exactly the same calculation of statistical descriptors in a new image. Depending on the responses of the pixels in this image and comparing them with the responses of the training images, Hondartza software is capable of efficiently classifying the pixels as corresponding to person or beach. However, a reduced amount of information provided by a relatively small training set of images leads to the misclassification of some pixels.
However, the classifier segmentation produces coarse segmentation that reduces the overall accuracy of the system. Because of that, the initial probability map provided by the classifier is regularized by a level-set based active contour approach as described in: (Bereciartua et al., 2015, Bereciartua et al., 2016).
A.2. Algorithm performance
The system was trained on a first beach (Beach 1) and evaluated against four other beaches (Beach 2–4) to quantify performance metrics. Firstly, the performance of three different classification algorithms was evaluated: logistic regression (Hastie et al., 2009), support vector machines (SVMs) (Vapnik, 1998) or the proposed AdaBoost (Freund and Schapire, 1997).
Table A1.
Accuracy of our methodology on the test set for AdaBoost, SVM and Quadratic Regression initializations.
| Balanced accuracy | AdaBoost | SVM | Quad. Regression |
|---|---|---|---|
| Beach 1 | 94.869 | 93.359 | 92.331 |
| Beach 2 | 97.517 | 95.417 | 94.357 |
| Beach 3 | 96.429 | 94.455 | 87.607 |
| Beach 4 | 96.804 | 94.874 | 94.679 |
| Beach 5 | 89.835 | 88.088 | 83.043 |
From such a moderately sized training set, coarse segmentations could be generated, which the level set implementation of the active contours was able to refine to achieve good performance. A comparison of the performance (in terms of balanced accuracy, i. e, percentage of well classified pixels) of the proposed methodology, for AdaBoost and two other state-of-the-art classification methods is reported in Table A 1. AdaBoost outperforms SVM and quadratic regression as a tool for finding an initial coarse segmentation.
To analyse the effect of the level-set based regularization, the result of the level set segmentation shown in Fig. A 2 (a, b) is inspected. Therein, the initial segmentation, obtained with the supervised classification process is able to locate the areas of the image that contain people, but introduces noise, in the form of a complicated contour. The active contours refinement performed in the same image effectively removes this noisy output, by iteratively simplifying the contour of the segmentation, while attaching to the borders of the located structures. Moreover Fig. A 2 (c, d) shows how the ability of the level set implementation to change the topology of the implicit function that embeds the segmentation contributes to the removal of outliers and wrongly classified pixels. For a quantitative analysis, the performance of our system in a small set of images of beach scenes was checked. Images belonged to four other different beaches, and were taken at varying times, implying changes in illumination, and different occupancy rates. From such a moderately sized training set from beach 1 coarse segmentations could be generated, which the level set implementation of the active contours was able to refine to achieve better performance on different beaches not included on the training sets (Fig. A3).
Fig. A3.
Comparative results (balanced accuracy BAC). Blue) Proposed method with the level-set based regularization, red) Proposed method without level-set regularization.
References
- Balouin Y., Rey-Valette H., Picand P.A. Automatic assessment and analysis of beach attendance using video images at the Lido of Sète beach, France. Ocean Coast Manag. 2014;102:114–122. [Google Scholar]
- Bereciartua A., Picon A., Galdran A., Iriondo P. Automatic 3D model-based method for liver segmentation in MRI based on active contours and total variation minimization. Biomed. Signal Process Contr. 2015;20:71–77. [Google Scholar]
- Bereciartua A., Picon A., Galdran A., Iriondo P. 3D active surfaces for liver segmentation in multisequence MRI images. Comput. Methods Progr. Biomed. 2016;132:149–160. doi: 10.1016/j.cmpb.2016.04.028. [DOI] [PubMed] [Google Scholar]
- Caselles V., Catté F., Coll T., Dibos F. A geometric model for active contours in image processing. Numer. Math. 1993;66(1):1–31. [Google Scholar]
- Cisneros M.A.H., Sarmiento N.V.R., Delrieux C.A., Piccolo M.C., Perillo G.M. Beach carrying capacity assessment through image processing tools for coastal management. Ocean Coast Manag. 2016;130:138–147. [Google Scholar]
- Da Silva C.P. Beach carrying capacity assessment: how important is it? J. Coast Res. 2002;(36):190–197. [Google Scholar]
- Diputación Foral de Gipuzkoa . Gipuzkoako Foru Aldundia/Diputación Foral de Gipuzkoa; 2020. Memoria valorada para la adecuación de la playa de Zarautza en cuanto a movilidad y estancia con distanciamiento social por COVID-19. [Google Scholar]
- Dwight R.H., Brinks M., SharavanaKumar G., Semenza J. Beach attendance and bathing rates for Southern California beaches. Ocean Coast Manag. 2007;50:847–858. [Google Scholar]
- Egmont-Petersen M., de Ridder D., Handels H. Image processing with neural networks—a review. Pattern Recogn. 2002;35(10):2279–2301. [Google Scholar]
- Eusko Jaurlaritza/Gobierno Vasco . Eusko Jaurlaritza/Gobierno Vasco; 2020. Estrategia de Turismo Vasco 2030. Plan de Marketing del Turismo Vasco 2017-2020. [Google Scholar]
- Freund Y., Schapire R.E. A decision-theoretic generalization of on-line learning and an application to boosting. J. Comput. Syst. Sci. 1997;55(1):119–139. [Google Scholar]
- González M., Uriarte A., Fontán A., Mader J., Gyssels P. Marine dynamics. Oceanography and marine environment of the Basque Country. 2004;70:133–157. [Google Scholar]
- Guillén J., García-Olivares A., Ojeda E., Osorio A., Chic O., González R. Long-term quantification of beach users using video monitoring. J. Coast Res. 2008;246:1612–1619. [Google Scholar]
- Gulden F. Master Thesis Project. Shore Monitoring & Research; 2018. Automatic quantification of beach occupation using oversegmentation and machine learning. [Google Scholar]
- Hastie T., Tibshirani R., Friedman J. Springer Science & Business Media; 2009. The Elements of Statistical Learning: Data Mining, Inference, and Prediction. [Google Scholar]
- Holland K.T., Holman R.A., Lippmann T.C., Stanley J., Plant N. Practical use of video imagery in nearshore oceanographic field studies. IEEE J. Ocean. Eng. 1997;22(1):81–92. [Google Scholar]
- Hoonhout B.M., Radermacher M., Baart F., Van der Maaten L.J.P. An automated method for semantic classification of regions in coastal images. Coast Eng. 2015;105:1–12. [Google Scholar]
- Informe de AZTI para Diputación Foral de Gipuzkoa . 2019. Análisis mediante videometría de la ocupación de la playa de Antilla, durante la temporada estival de 2019. [Google Scholar]
- Jimenez J.A., Osorio A., Marino-Tapia I., Davidson M., Medina R., Kroon A., Archetti R., Ciavola P., Aarnikhof S.G.J. Beach recreation planning using video-derived coastal state indicators. Coast Eng. 2007;54:507–521. [Google Scholar]
- Johannes A., Picon A., Alvarez-Gila A., Echazarra J., Rodriguez-Vaamonde S., Navajas A.D., Ortiz-Barredo A. Automatic plant disease diagnosis using mobile capture devices, applied on a wheat use case. Comput. Electron. Agric. 2017;138:200–209. [Google Scholar]
- Kammler M., Schernewski G. Spatial and temporal analysis of beach tourism using webcam and aerial photographs. Coastline Reports. 2004;2:121–128. [Google Scholar]
- King P., McGregor A. Who's counting: an analysis of beach attendance estimates and methodologies in southern California. Ocean Coast Manag. 2012;58:17–25. [Google Scholar]
- Leung T., Malik J. Representing and recognizing the visual appearance of materials using three-dimensional textons. Int. J. Comput. Vis. 2001;43(1):29–44. [Google Scholar]
- Liu L., Chen J., Fieguth P., Zhao G., Chellappa R., Pietikäinen M. From BoW to CNN: two decades of texture representation for texture classification. Int. J. Comput. Vis. 2019;127(1):74–109. [Google Scholar]
- Manning R.E., Lawson S.R. Carrying capacity as “informed judgment”: the values of science and the science of values. Environ. Manag. 2002;30:157–168. doi: 10.1007/s00267-002-2772-x. [DOI] [PubMed] [Google Scholar]
- Martin D.R., Fowlkes C.C., Malik J. Learning to detect natural image boundaries using local brightness, color, and texture cues. IEEE Trans. Pattern Anal. Mach. Intell. 2004;26(5):530–549. doi: 10.1109/TPAMI.2004.1273918. [DOI] [PubMed] [Google Scholar]
- Nieto M.A., Garau B., Balle S., Simarro G., Zarruk G.A., Ortiz A., Tintoré J., Álvarez-Ellacuría A., Gómez-Pujol L., Orfila A. An open source, low cost video‐based coastal monitoring system. Earth Surf. Process. Landforms. 2010;35(14):1712–1719. [Google Scholar]
- Pak A., Adegboye O.A., Adekunle A.I., Rahman K.M., McBryde E.S., Eisen D.P. Economic consequences of the COVID-19 outbreak: the need for epidemic preparedness. Frontiers in public health. 2020;8:241. doi: 10.3389/fpubh.2020.00241. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Vapnik V.N. 1998. Statistical Learning Theory Wiley-Interscience. New York. [Google Scholar]


















