1. Introduction
Millions of people worldwide choose to reside near or visit beaches to enjoy surfable waves. Coastal populations are increasing each year and infrastructure is being constructed closer to the beach or within the nearshore zone itself. Increased nearshore development coupled with rising sea levels has led to infrastructure and buildings at risk to erosion from large storm events. This has prompted responses from local councils to develop beach management strategies which can involve large-scale works such as sand replenishment and building of coastal structures. These works can maintain or improve surf amenity with careful design but can also diminish surf amenity. In the effort to assess surf amenity, one of the main challenges is quantitative and objective assessment. This paper presents a novel automated wave peel tracking (WPT) technique to quantitatively and objectively assess surf amenity using a shore-based camera.
Surf amenity has been under threat from coastal developments and natural processes in a number of famed surf breaks around the world. One such example is a point break in Bali which was “destroyed” due to a seawall constructed to protect a new high rise [
1]. Another famous example of a complex surf amenity issue was the effect of the Tweed River training walls on the Coolangatta beaches (Gold Coast, Australia). Longshore sediment transport was interrupted, leading to diminished surf amenity at the previously world-renowned Kirra point break. A carefully designed sand transfer system has since been implemented, which has restored and improved surf amenity to most of the Coolangatta point breaks. This highlights the importance of considering surf amenity in coastal management [
2]. Many other surfing breaks face the threat of degradation [
3]. The World Surfing Reserve was established to ensure that world class surfing destinations (including the Coolangatta point breaks) are protected in the future [
4]. A challenge moving forward is to continue to protect the coastlines from erosion and accommodate growing populations while preserving or creating surf amenity. To achieve this, surf breaks need to be better understood using a quantitative approach that allows objective comparison between other surf breaks and validation of numerical modelling for surf breaks.
While surf amenity can be assessed qualitatively by community response from surfers, quantitative assessment is much more insightful and objective. There have been several attempts to quantitively assess surf amenity using visual observations, numerical modelling and remote sensing approaches. From visual observations, the ‘peel angle’ can be extracted by finding the angle between the breakpoint position direction and the wave crest [
5]. The peel angle is considered one of the most important surf amenity parameters [
6] and has previously been effectively extracted manually from observations of the surf zone from images [
7,
8,
9]. Other important parameters such as the ‘section length’ have been manually analysed from rectified images of the surf zone [
10]. Numerical models have been used in New Zealand to define wave breaking envelopes at a surf break and assess how they are affected by morphological change [
11]. Numerical modelling has also been used at the Gold Coast, Australia, for providing insight into surf amenity with an approach similar to WPT [
12]. Numerical modelling is critical for the future design of effective surfing infrastructure, but requires comprehensive field data for validation, which is presently lacking.
Remote sensing techniques are commonly used for assessment of coastal environments and for validation of numerical models. Video timestacks have been used for many years in coastal research [
13] to measure or track breaking waves and wave runup [
14,
15,
16,
17]. Recent methods have involved the use of convolutional neural networks (CNN), for classifying beach states, wave breaker types and estimating wave height and wave period [
18,
19,
20,
21]. Wave crest tracking has been achieved through using a ‘Mixture of Gaussians’ approach and a spatial transformer network [
22,
23]. These remote sensing applications in coastal research show the effectiveness of using computer vision techniques to extract wave related data, particularly those involving machine learning. However, none of these applications can directly assess surf amenity.
To the authors’ knowledge, the only prior automated and quantitative approaches to assess surf amenity through remote sensing include identification of length and orientation of surfable sandbars, analysis of cumulative wave breaking regions, tracking of bores and the direct tracking of surfers [
24,
25,
26,
27]. Identification of length and orientation of surfable sandbars and analysis of heat maps of cumulative wave breaking provide good spatial information over a whole surf break, but neither method gives detailed wave-by-wave insight at the precision of individual wave peel regions. Tracking bores allows wave-by-wave insights but cannot provide precise, individual wave peel region data. Tracking surfers provides unique insight into a surfer’s assessment of surfed wave peel regions; however, this method cannot assess surf amenity where there are no surfers and is subject to the ability of the surfer, their style of surfing and crowding of the surf break. The WPT approach solves these issues by tracking the surfable wave peel regions on a wave-by-wave basis. The WPT methodology developed here has been fully tested and verified at a surfable reef and adjacent nearshore region, using video recordings and GPS surfer tracks obtained on the 13th January 2021 from a shore-based CCTV camera on a 12-storey building. WPT data were extracted, rectified and processed to quantify surfing metrics, including average ride duration, average ride length, average ride speed and ride rate, together with spatial maps of the WPTs and ride direction distributions. The WPT results also provide a unique way to analyse wave breaking activity in natural surf zones and has the potential to be used to verify or calibrate numerical models for surf break design.
The aim of this paper is to detail the WPT methodology and evaluate it through assessing surf amenity over a reef and nearshore region. This paper is organised as follows:
Section 2 presents the WPT methodology, including the definition of the wave peel region and description of the applied computer vision and machine learning techniques. A comprehensive description of the field site and the data collected is given in
Section 3. Quantitative results comparing derived surf metrics on the reef and adjacent surf zone are presented in
Section 4, together with comparisons from direct GPS tracking of surfers.
Section 5 provides a discussion of the WPT results, applications of the methodology and future research directions.
2. Methods
The quality of surf has long been informally assessed by surfers through visual observation of the peeling edge of a breaking wave, referred to in this work as a wave peel region. An important feature of quality surf is the presence of surfable, long-duration peeling waves, moving either left or right from a consistent location. Sand bars and hard structure point breaks often shape waves with such desirable wave peel regions. When a surfer is visually assessing the surf conditions, they are effectively ‘wave peel tracking’ to evaluate the potential ride length, ride duration, ride speed and the rate at which they can catch rides. This assessment approach has been used to similar effect manually by Scarfe [
9], to trace ‘breaking wave paths’ at key surfing sections for extracting peel angles and peel rates. The work in this paper builds on that approach through the WPT algorithm by providing a more detailed surf amenity assessment automatically at very high temporal and spatial resolution. This is achieved by combining machine learning with traditional computer vision methods, including background subtraction, blob detection, object tracking, convolution neural networks (CNNs) and homography. The required input is a video of the surf zone to be evaluated and the output is a list of geo-rectified WPTs. A wide range of metrics can then be derived from the WPTs, including average ride duration, average ride length, maximum ride length, average ride speed, ride rate and ride direction. This section details the WPT algorithm, broken up into the following subsections: definition of the wave peel region, motion detection, wave peel region classification, wave peel tracking, rectification and post processing. A video of the WPT process is available to watch, which provides a visual representation of what is described in the following sections (
https://youtu.be/vZj_1pZiaI4, accessed on 18 August 2021). All processed videos in this work are available through the YouTube playlist link in the
Supplementary Materials of this paper.
2.1. Definition of the Wave Peel Region
The wave peel region is defined for this work as illustrated in
Figure 1 a,b, with the
u,
v coordinates of the centre of the wave peel region being tracked. This is adapted from the conventional definition of the position of the ‘peel’ used for working out peel angles [
5]. The vertical centre (full yellow line) is defined as the intersection of the mean water level with the wave face. This position has been estimated to be either 1/5 or 1/3 of the wave face height [
15,
28]. The choice of either of these does not matter significantly for rectification given the field of view and the resolution of video generally used; however, a value of 1/5 has been chosen. The horizontal centre (full blue line) is defined to be halfway between the leading edge of whitewater (the lip of the wave) and the start of fully developed whitewater. This definition of the wave peel region is appropriate for both plunging and spilling type waves and is used in the verification process of the WPT software in
Section 4.1.
2.2. Motion Detection
Wave crests move with relatively constant celerity towards the shoreline (decelerating very slowly). As they break, wave peel regions propagate laterally along the wave crests. With the appropriate viewing angle, wave peel regions move approximately horizontally in the camera image. Therefore, background subtraction can be used as the first step to identify the wave peel regions in a video sequence. Background subtraction involves taking the difference in grayscale pixel intensities between two frames of a video (e.g., difference between (a) and (b) from
Figure 2). For this application, both grayscale frames were blurred with a 20 × 20 pixel kernel such that the breaking wave motion is detected, rather than glint and wind ripple on the surface of the water. A threshold of 3% pixel intensity difference was set to produce a binary difference image from the background subtraction. From the binary difference image, blob detection [
29] is used to find the centre of regions of motion with area greater than 19 pixels (optimal for this camera setup). This includes wave peel regions, breaking wave fronts and other moving objects. Large blobs are divided into smaller blobs using an iterative approach described in
Appendix A. The centres of all detected blobs become potential wave peel regions. In
Figure 2b shows the blob centres overlaid as black dots, derived from the difference between (a) and (b).
2.3. Wave Peel Region Classification
Each of the potential wave peel region centres (blob centres) is subsequently classified as a wave peel region or non-wave peel region. A CNN classifier [
30] is used to achieve this, where a snapshot of fixed size around each potential wave peel region centre is classified. The classifier was trained on over 1300 labelled images obtained from different surf zones and days with varying wave and light conditions. None of these labelled images were from the videos of the 13 January 2021, to ensure the CNN had minimal bias.
Figure 2 shows how one of the potential wave peel region centres in (b) was correctly classified as a wave peel region in (c). Further details of the CNN architecture and training and testing process are given in the
Appendix B.
2.4. Wave Peel Tracking
The classified wave peel regions are then sequenced to form WPTs. The tracking algorithm used is similar to other tracking algorithms, such as the SORT algorithm [
31], but was custom designed to leverage known properties of waves such as the typical wave period. A newly identified wave peel region (
object) is assigned to an historical track (
track) if it is within a certain distance (in
x and
y) and within a certain elapsed time (
t) of the historical track. In
Figure 2d illustrates how the wave peel region classified in (c) was assigned to the blue historical track instead of the brown historical track (from the preceding wave) due to being closer in distance and time.
The distance and elapsed time are represented by the cost function in Equation (1). The distance portion of the cost is a modified Euclidean distance, normalised by the diagonal length of the image. A length/width parameter
was added to scale the cost of horizontal and vertical distance in the image. For a low camera angle, small changes in vertical position result in a large spatial difference, and therefore
was set to 0.3. This setting also allows faster movement to be tracked laterally along the wave crest. The
coefficient is a simple way to change the influence of the distance cost on the overall cost and was set to 70. The time cost is the difference in time normalised by an expiry period (
). The expiry period was set to 60 frames or 6 s (approximately the lower end of
for surfable waves at the Gold Coast). The time cost is multiplied by the
coefficient, which was set to 0.5. The total cost threshold is kept to 1.
Each newly identified wave peel region is checked with every historical track and the wave peel region is assigned to the historical track that yields the lowest cost. If the cost is never less than 1, a new track is started, representing a new wave peel region. If no wave peel regions have been assigned to an historical track for the duration of the expiry period, that historical track is archived into the output csv file and removed from the historical tracks list. Algorithm 1 summarises the tracking process one frame at a time:
Algorithm 1. |
1: While video frames remain in the video: |
2: Detect motion regions (blobs) by comparing with an earlier frame |
3: Classify any wave peel regions at detected motion regions |
4: If wave peel regions were classified: |
5: For each classified wave peel region: |
6: Assign to an historical track or create a new one |
7: Expired historical tracks saved to the output csv file |
8: All remaining historical tracks saved to the output csv file |
2.5. Rectification
The transformation from WPT image coordinates to geospatial coordinates is performed using the well-known technique in coastal imagery of planar homography [
32]. Often, lens distortion correction is required beforehand. However, distortion was negligible for the high zoom used in this application. For wider-angle camera views, it is important to undistort the image. An invertible homography matrix,
H, transforms camera coordinates
u,
v to mean water level plane coordinates
x,
y (Equation (2)).
It must be noted that Equation (2) can be scaled; indeed, in projective geometry, vectors that are related through a scaling factor are deemed to be equivalent. For example, it is not guaranteed that the right hand will always end up with a 1 in the third component. However, so long as the third component is non-zero, the vector will represent a vector with third component 1 after appropriate scaling. When the third component is 0, this represents a ‘points at infinity’ relative to our setting, and does not have much relevance for our purposes. To determine the homography matrix values, at least 4 sets of corresponding
u,
v,
x,
y points must be determined [
33]. The values in matrix
H are found by an optimisation algorithm with
set to 1 (in-built to the OpenCV library). The surveyed
u,
v,
x,
y points were obtained at a very low tide of 0 m LAT (Southport predicted tide data) by simultaneous video recording and surveying of the field of view with an RTK GPS mounted on a kayak. The GPS was mounted on a pole, such that the bottom of the pole at the kayak waterline provided visual data at the low tide level, and the top of the GPS provided visual data at the tide level +1 m. On the 17th of September 2020, a total of 10 GPS points were collected over and around the reef and around the adjacent nearshore region. A further 3 GPS points were collected at the mean water level at the shoreline. This survey methodology enabled generation of homography matrices for different tide levels from a single survey. The homography matrix for any tide was approximated by using sets of
u,
v,
x,
y points, where the
v points were linearly interpolated or extrapolated, based on the 0 and 1 m LAT
v points, according to the tide level.
Figure 3 illustrates the effect of a homography matrix set for one tide level applied to every pixel in a camera image, overlaid on the map image.
Figure 4 illustrates a visual verification of homography for different tides, where surveyed 0 and 1 m LAT points are represented by the unfilled circles on the map (blue, (a)) and on the image (dark blue and light blue, respectively, (b)). The filled circles in the image are all placed using the homography matrices calculated for each tide level, where the 0 and 1 m homography matrices were calculated from surveyed points and the 2 m homography matrix was calculated from extrapolated points. The homography technique works well, with the 0 and 1 m filled points almost all coinciding with the unfilled surveyed points. In (b), The bottom left and far right regions show some difference between points, because the application of planar homography is prone to greater potential errors at wider angles. The extrapolated 2 m filled points plot as expected, above the 1 m filled points with similar spacing according to the distance from the camera (i.e., closer points to the camera will have greater spacing between tide levels due to the perspective geometry). The pixels in the image had a rectified footprint of approximately 0.38 m/pixel on the reef and 0.37 m/pixel in the nearshore region.
The homography matrices for different tides were independently verified on the 13th of January 2021, using data from the GPS surfing verification (
Section 4.1). GPS points from surfing rides were compared with rectified locations of the surfers at the still water level (1/5 of wave face) in the video. The root mean square error (RMSE) between all GPS points and image rectified points was 17 m. The accuracy of the GPS watches used by the surfers in absolute position was ≈5 m (see
Section 4.1 for details). Over the reef, the RMSE was 20 m and shoreward of the reef the RMSE was 13 m. This verification indicated a strong westerly bias (rectified points were further west than they should be), and therefore all rectified data in
Section 4 onwards were shifted 10 m east to correct for this bias. By comparing camera snapshots at the same tide level on the 17 September 2020 and 17 October 2020, it was found that the camera had shifted field of view slightly to the left and appears to have maintained that position since. Given the NE orientation of the camera, a slight shift to the left is likely the cause for most of the required easterly bias shift of 10 m. Following the bias correction, RMSE changed to 11 m over the reef and 9 m in the nearshore region, with 10 m overall. Most of this remaining inaccuracy is suspected to be from the inaccuracy of the GPS watches. By comparing tides on the rectification day and on the GPS watch verification day, it was found the predicted tide levels varied at most 40 cm (nonlinearly) with the historical tide levels at the Southport tide gauge. The camera line of sight had a depression angle of approximately 5°, and therefore the projection error could be up to 5 m, which also could account for some of the inaccuracy in rectification. Only predicted tides are available for real-time processing applications, which is what is being tested in this work, and therefore predicted tides were still used. Further accuracy gains could also be made by simply using more rectification points for the homography. However, for the purpose of this work, the rectification accuracy of 10 m RMSE was acceptable.
2.6. Post Processing
The final data in rectified MGA94 coordinates were then processed to extract surf amenity metrics. Each individual wave peel track was used as proxy for the maximum possible ride length and duration of a surfer in the wave peel region. Average ride duration, average ride length, maximum ride length, average ride speed, ride directions and the ride rate were chosen as metrics for analysis. Ride duration was calculated as the time difference between the first and last point of each wave peel track. The ride rate was defined as the number of WPTs within a selected area, per minute, averaged over the full video duration (each video was of 10 min duration to ensure a near constant water level). The ride length was calculated as the distance between the first and last point of a WPT, after Gaussian smoothing. The Gaussian smoothing operation was performed to remove any jitter from the data and generate smooth tracks in x,y space. The standard deviation of the Gaussian smoothing found to minimise jitter whilst not severely reducing ride length was 4. The ride speed was simply the ride length divided by the ride duration and the ride direction was the bearing from start point to finish point.
4. Results
This paper is concerned with the detailed analysis of the accuracy of the WPT method and how the results can be useful for surf amenity assessment, using data from one day (13 January 2021). Long-term WPT data gathered over several months from the CCTV camera will be the subject of a future analysis.
4.1. GPS Surfing Verification
The WPT data can be robustly verified and evaluated using tracks obtained from surfers equipped with GPS tracking devices. Data were collected from four different surfers—three using GPS wristwatches (Garmin Forerunner 235; Garmin Fenix 5X Sapphire; Garmin Fenix 5) and one with a bicycle GPS (Garmin Edge 500) inside a waterproof container, fixed to the tail pad of a surfboard. Only 10 of 17 GPS surfer tracks were used, with surfer tracks not in the wave peel region excluded (>3 m away based on visual inspection).
Figure 6 illustrates the GPS points used for verification. Data from all the GPS devices were sampled at 1 Hz. The watches proved to be more reliable, where the bike computer in the waterproof case overheated and provided corrupted tracks after approximately 30 min of use. The absolute accuracy of one of the GPS watches was tested by repeated sampling at a fixed point over several days. There was significant variance in recorded position within each sample and between different samples of recorded data. Overall, the GPS watches provided data within a radius of approximately 4 m, with maximum deviations from the fixed position of up to 7 m, so any instantaneous position is deemed accurate within ≈5 m.
GPS tracks in
Figure 6 included two from the 8–9 am session (purple and dark blue) and eight from the 12–2 pm session. GPS tracks were collected from both right-hand rides (north-westerly rides) and left-hand rides (south-westerly rides). Tracks are separated as either on/beyond the reef or in the nearshore region (in lee of the reef). The orange GPS track in
Figure 6 was from a rare break on the outer sand bar on this day, but most breaking waves in the nearshore region occurred over a nearshore bar. A detailed comparison of the reef WPTs and GPS surf tracks is illustrated in
Figure 7, with differences and errors quantified in
Table 1.
All GPS tracks on the reef were right-hand rides. Rideable left-hand waves only occur on the reef occasionally and were not measured in this sampling interval. The overall RMSE value of 7 m was found comparing the GPS track points with the equivalent time synchronised Gaussian-smoothed WPT points. Both the Gaussian-smoothed WPT and GPS track ride lengths were calculated by the Euclidean distance between the first and last point of a track. The Gaussian-smoothed WPT ride lengths on the reef were found on average to be 17% less than the GPS ride lengths, with RMSE of 20%. This overall smaller length for WPTs is mostly an artefact of the Gaussian smoothing of the points. Gaussian smoothing was not removed since it was still required to reduce jitter between wave peel region classifications. The green track had significant error at the start which was suspected to be due to GPS inaccuracy.
A similar analysis for the nearshore region is illustrated in
Figure 8, accompanied by
Table 2. GPS tracks in the nearshore region were a mix of rights and lefts. The overall RMSE was 11 m. The Gaussian-smoothed WPT ride lengths on the reef were found on average to be 12% less than the GPS ride lengths, excluding the aqua blue left track which had a greater WPT length than GPS length. Including the aqua blue track, the RMSE of the ride lengths was 19%. Similar to the reef results, Gaussian smoothing produced a slightly shorter WPT length, and therefore WPT ride lengths are considered a conservative measure overall.
For the reef and nearshore region, the RMSE of WPTs was 9 m, which is good given the ≈5 m accuracy of the GPS watches. The majority of WPT ride lengths were shorter than GPS tracks, with RMSE of 20% overall. Further decomposition of the possible sources of inaccuracy was performed through comparing GPS tracks with rectified manually extracted surfer tracks from the video (to estimate rectification accuracy), comparing rectified manually extracted surfer tracks from the video with rectified manually extracted WPTs (to estimate ability of surfer to stay in the wave peel region), and comparing rectified manually extracted WPTs with rectified algorithm extracted WPTs (to estimate the accuracy of the algorithm). Whilst not entirely summative, this suggests that approximately 50% of the differences between the WPT and GPS tracks was contributed by rectification procedures, 15% from surfers deviating from the wave peel region and 35% from inaccuracy of the algorithm. The timings of the WPTs (sampled at 10 Hz) and GPS points (sampled at 1 Hz) were well synchronised and the tracks generally aligned well in plan. Therefore, metrics for ride duration are deemed accurate to within approximately ±1 s. The resolution of the algorithm depends on the frame rate of the video and the rectified field of view of the camera. In this instance, the time resolution was 0.1 s (10 fps) and spatial resolution was within 1 m (according to
Section 2.5).
4.2. Metrics Obtained from Wave Peel Tracks
Some WPT metrics describing the surf amenity have been separated into hourly tidal ranges of high, mid and mid–low (8–9 am, 12–1 pm and 1–2 pm, respectively). The variation in tidal range during the falling tide for the 12–1 pm and 1–2 pm data sets was larger, at approximately 0.3 m, compared to the 0.03 m range for the 8–9 am results obtained at high tide. Significant wave height, peak period and wave direction remained relatively constant throughout the day.
Table 3 shows both the relevant weather data from the local wave buoy and predicted Southport tides, and associated metrics obtained from the WPTs.
The most notable trend in the data is that for all tides, the average ride duration and average ride length on the reef is greater than in the nearshore region. The average ride duration on the reef is approximately 1.5-fold greater than in the nearshore region and the average ride length is approximately 2-fold greater on the reef. These results agree with expectations, given that the reef has a long, fixed crest for waves to break along, providing longer rides than a natural sandy beach break. The average ride speed was often faster over the reef than in the nearshore region, likely due to waves breaking in slightly deeper water on average than the nearshore region. Maximum ride length generally increased with the falling tide (with the exception of the mid tide in the nearshore region) as the depth reduced to increase shoaling and breaking over the reef. No significant correlation between the maximum wave height at the wave buoy and maximum ride lengths was observed in these data (not shown), but variation of the maximum wave height over the observed period was less than 0.5 m.
One potential problem with the WPT approach in the nearshore region was the edges of the field of view causing some WPTs to be cut short. The smallest width of the nearshore region in the field of view was approximately 80 m in the cross-shore direction. The lengths of WPTs in this region in the cross-shore direction were typically much smaller than this length (most in the range of 7–36 m). To check the influence of the field of view cut off, the average metrics were found for the middle third of the nearshore width in the cross-shore direction, where WPTs that started outside this region were excluded and all WPTs up to the boundary of the reef were included. Average ride length, duration and speed only rose by 4%, 1% and 3%, respectively, which was a very small difference. If the maximum nearshore width in the cross-shore direction was significantly smaller, that may have led to problems but the chosen field of view was acceptable.
Figure 9 illustrates that ride rate was inversely proportional to the tide level over the reef. A small portion of the midday nearshore ride rates was due to choppier wind affected waves, causing more wave peel regions to be present; however, these winds were consistent across the midday time period. While these WPTs had lower duration and shorter length, this did not affect the data significantly.
Figure 10 illustrates the consistency of the long ride lengths over the reef, despite a lower ride rate at a higher tide level. This aligns with expectations, where only the larger waves break on the reef crest due to depth limited breaking. It was also expected that many more rides would ‘close out’ in the nearshore region compared to the reef. Average ride lengths increased in the nearshore region by approximately 4 m at lower tide, which was likely due to the addition of waves breaking on the outer bar just inside of the reef.
WPT directions provided additional insight into surf amenity. The proportions of ‘right’ and ‘left’ surfing rides at a surf break is important knowledge for surfers. In
Figure 11a illustrates the distribution of WPT directions in the nearshore region. The lefts were in the SW–S directions, rights in the W–NW directions and the normal of the shoreline was WSW. There was a higher proportion of rights which was likely due to the additional rights on the outer sand bank exposed at lower tide levels. This mix of left and right surfing rides was also observed during the GPS surfing verification exercise. The distribution of WPT directions was much more consistent over the reef (
Figure 11b), with high density near the direction of the reef crest. Most WPTs on the reef had direction E rather than ENE because they started breaking on the north side of the crest and finished breaking on the south side of the crest (see
Figure 12b).
One of the most insightful representations of the WPT data is a ride durations map, where WPTs are overlaid and colour coded according to ride duration. Additionally, a rectified time-exposure image of the processed 10 min video clip is overlaid on an aerial image. In
Figure 12a illustrates an example ride durations map for a short period of data from 8:30 am to 8:40 am at a tide level of 1.86 m LAT. It must be noted that the start of each WPT will not represent the initial breakpoint, but rather when either a right or a left wave peel region is fully formed. The time and length of a track from initial breakpoint to fully formed wave peel region are very small however (≈1 s, 3 m). The WPTs in the nearshore region of
Figure 12a reveal the position of a sand bar. The dark grey/black spots from the time-exposure image show the positioning of the surfers which is commonly at the breakpoint of the larger waves. There were only a few WPTs recorded on the reef, which shows good visual agreement with the location and orientation of the reef crest. In
Figure 12b shows the WPTs for a video clip from 12:10 pm to 12:20 pm at a lower tide level of 0.96 m. With shallower water over the reef and nearshore sand bars, many more rides occur, and the start of the tracks (fully formed wave peel region positions) shift further seaward. The outer sand bar shoreward of the reef became shallow enough for wave breaking, revealed by the appearance of WPTs in this region. There were also a small number of shorter WPTs directed SW over the reef. These small-length and -duration SW tracks near the breakpoint indicate a left ride. The small-length and -duration tracks near the middle and W side of the reef also represent left rides. The slightly longer rides on the N tip of the reef were wide breaking right rides.
Figure 13 shows a durations map for data from 1:40 pm to 1:50 pm, at an even lower tide level of 0.44 m. The WPTs show greater breaking activity, again shifted further seaward in the nearshore region, on the outer sand bar and on the reef. There are three short WPTs further landward than the well-defined nearshore sand bar. After reviewing the processed video, these were found to represent very small unsurfable WPTs near the swash zone and had negligible influence on average WPT metrics.
5. Discussion
The automated wave peel tracking methodology outlined here has proven effective for assessing the surf amenity of a reef and nearshore region. The ride metrics demonstrate that ride lengths were longer on the reef compared to the nearshore region for the same incident offshore wave conditions. The WPT data show ride rate inversely proportional to tide level over a fixed depth structure (reef), as expected from depth limited breaking. Plotting WPTs on a spatial map reveals how ride location and direction vary at different tide levels on the reef. These plots also reveal the positions of nearshore and outer sand bars. This work has shown that a standard CCTV camera can be used effectively for extracting WPT data. However, the WPT approach is not limited to fixed CCTV cameras and can be used with any high-resolution camera at a high elevation position [
36]. This flexibility, and the ability of the methodology to track WPTs both over well-defined fixed structures and over natural sandbars, enables the proposed WPT methodology to be used to provide a baseline evaluation of the amenity of a natural surf break before any coastal developments are implemented. Following construction, the WPT methodology can then be used at the same location for an objective and quantitative assessment of any changes to the surf amenity.
The resolution of the WPT algorithm is dependent on the frame rate of videos and rectified field of view of the camera, in this work 0.1 s and 1 m, respectively. Absolute position of the WPTs is less accurate, but acceptable. All rectified tracks required a 10 m bias offset before WPTs were processed to better align with GPS surfing tracks. This was likely due to a slight camera shift following rectification. For future applications it is suggested that the camera be setup with a land survey point in the field of view so that any slight camera shifts can be quantified. Remaining post bias offset rectification inaccuracy was likely from using predicted rather than historical tides for rectification. The GPS surfing watches (≈5 m accuracy) were also used to verify the WPT software to 9 m RMSE in terms of absolute position and ride lengths to 20% RMSE of GPS-measured ride lengths. Most WPT ride lengths were slightly shorter than GPS ride lengths. Most of the inaccuracies were likely from rectification (post bias offset) and the WPT algorithm accuracy, with only a small amount of error from the difference in surfer GPS tracks with the true wave peel region. Rectification accuracy could be improved through a greater number of rectification points. It could also be improved by using historical tide readings; however, one aim was to provide data in real time, so predicted tides must be used in that instance. The cross-shore width of the field of view was found to be wide enough such that cut off WPTs at the boundaries did not significantly influence the calculated average WPT surf amenity metrics. To ensure this does not become an issue for other applications, it is suggested that the cross-shore width of the field of view should be at least twice the cross-shore length of the larger WPTs expected.
Given the nature of wind and swell waves, and the complexity of different surf and weather conditions, the metrics and maps created from the WPT software require some care in interpretation. Firstly, the WPTs do not always start from the breakpoint, but rather start when right or left wave peel regions are fully formed. Windy conditions can increase the number of wave peel regions, but not all will be rideable. Some spilling breaker WPTs in the videos are not necessarily rideable (dependent on surfer skill). Additionally, WPTs can sometimes be identified very close to the shoreline from waves breaking at the swash zone, which again are not surfable. The classification accuracy of wave peel regions was found to be practically effective, with an accuracy of 87.5% from assessing against an external test set. However, some notable misclassifications were observed. Wakes of boats and jet skis can be tracked in error and some very strong glare can also lead to false tracks on a wave face. The video recordings processed for this paper were not affected by any of these issues apart from one boat wake (this was easily identified in the 8:40–8:50 am video, see
Supplementary Materials for video playlist). Some of these issues have been identified from running the WPT software on the same camera over 4 months. For a long-term application of the WPT approach for research purposes, it is suggested that video recordings be quality checked for possible misclassifications before using the WPT data, as done for this work. For real-time production, this is not possible, but given the relatively rare occurrences or predictability of these issues they do not negate the value of the methodology.
Future Improvements and Applications
Future improvements to the current WPT methodology will be focused on sensitivity analysis of the tracking cost function parameters and other parameters, improving spatial accuracy, and training a more robust CNN classifier against misclassifications. The tracking cost function (Equation (1)), motion detection, classification and post processing parameters give ample control of the WPT algorithm to suit different beach environments (see video playlist in
Supplementary Materials for examples); however, having a large number of parameters is not ideal. Sensitivity analysis can be performed in future work to investigate where simplifications in parameters could be made. The CNN model can be improved with regression localisation for more precise WPT centring, and the training dataset can be increased for robustness to misclassifications. Additionally, unsurfable wave peel region images can be added to the training dataset to prevent unsurfable WPTs being produced. A further aim is to develop a regression CNN trained for determining relative wave heights and wave crest angles from each wave peel region. This approach could complement existing methods to estimate surf zone wave heights from remotely sensed video [
15,
21,
37]. To further increase rectification accuracy, post processing can use actual historical tides, including coastal trapped waves and surges, instead of forecast tide predictions (in the scenario where real-time WPT data are not necessary).
New applications to coastal engineering research topics are possible with the existing methodology and with the noted future improvements. The WPT duration maps clearly reveal the potential for estimating water depths from the tracks (depth inversion). Further research will focus on using WPT to identify breakpoints, wave heights and wave crest angles, to be applied to the CERC equation [
38] for estimating longshore sediment transport rate. Finally, the WPT approach has been successfully applied to laboratory scale models of both natural bathymetry and an artificial surfing reef in a 3D wave basin. This is being compared to corresponding numerical model results to assist the design of a new artificial surfing reef. In this manner, the WPT approach and the present methodology can be used to validate wave breaking processes through the complete engineering design process of numerical modelling, physical modelling and field assessment.