scieee AI-readable full text Open interactive document viewer

New approach for photogrammetric rock slope premonitory movements monitoring

Núñez Andrés, María Amparo,Prades Valls, Albert,Matas Casado, Gerard,Buill Pozuelo, Felipe,Lantada, Nieves

Abstract

An automated, fixed-location, continuous time-lapse camera system was developed to analyze the existence of rockfall precursory movements and quantify volume changes after detachments. It was implemented to monitor the basaltic formation on which Castellfollit de la Roca village is built. Due to the geometrical conditions of the area, the camera system consists of three digital cameras managed by a control unit that contains a Raspberry Pi 4 microprocessor. Images taken every day are sent to a server for processing. A workflow has been developed to work with a set of images with an irregular time interval to detect precursor movement. The first step consists of matching the images with a reference master image and filtering the vegetation to improve the process using a mask obtained by a green leaf index (GLI) index. Then, the adjusted images are used for a forward-backward correlation process carried out to detect movements. If movement is detected, a 3D model is built using structure from motion (SfM) to quantify the movements. The system has been working since September 2021. During this period, movements from 0.01 to 0.5 m and several rockfalls of a small volume have been detected

Full text

Citation: Núñez-Andrés, M.A.; Prades-Valls, A.; Matas, G.; Buill, F.; Lantada, N. New Approach for Photogrammetric Rock Slope Premonitory Movements Monitoring. Remote Sens. 2023,15, 293. https:// doi.org/10.3390/rs15020293 Academic Editor: Fumio Yamazaki Received: 18 November 2022 Revised: 22 December 2022 Accepted: 27 December 2022 Published: 4 January 2023 Copyright: © 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). remote sensing Article New Approach for Photogrammetric Rock Slope Premonitory Movements Monitoring MaAmparo Núñez-Andrés * , Albert Prades-Valls, Gerard Matas , Felipe Buill and Nieves Lantada Division of Geotechnical Engineering and Geosciences, Department of Civil and Environmental Engineering, Universitat Politècnica de Catalunya—UPC.BarcelonaTech, 08034 Barcelona, Spain *Correspondence: m.ampar[email protected]; Tel.: +34-934054019 Abstract: An automated, fixed-location, continuous time-lapse camera system was developed to analyze the existence of rockfall precursory movements and quantify volume changes after detachments. It was implemented to monitor the basaltic formation on which Castellfollit de la Roca village is built. Due to the geometrical conditions of the area, the camera system consists of three digital cameras managed by a control unit that contains a Raspberry Pi 4 microprocessor. Images taken every day are sent to a server for processing. A workflow has been developed to work with a set of images with an irregular time interval to detect precursor movement. The first step consists of matching the images with a reference master image and filtering the vegetation to improve the process using a mask obtained by a green leaf index (GLI) index. Then, the adjusted images are used for a forward-backward correlation process carried out to detect movements. If movement is detected, a 3D model is built using structure from motion (SfM) to quantify the movements. The system has been working since September 2021. During this period, movements from 0.01 to 0.5 m and several rockfalls of a small volume have been detected. Keywords: rockfall; time-lapse photogrammetry; monitoring; automation; Castellfollit de la Roca (Girona, Spain) 1. Introduction Rockfalls are predominant processes in mountainous areas. This term applies to blocks or rock masses that, after separation from a steep wall, experience free fall and subsequent impact against the ground, with the consequent rebound, possible rolling and/or sliding of rock fragments [ 1 , 2 ]. These phenomena have great destructive potential due to the high velocities, and thus high kinetic energy, that blocks may reach during their propagation [ 3 ]. Buildings, civil infrastructures and transportation networks are often threatened by rockfalls. A recent study showed they cause the greatest number of victims due to slope instability in Spain [ 4 ]. This study observed a reduction in fatalities due to rockfalls over time due to awareness and protection measures. However, since the dynamic coupling between global warming and mountain-slope instability has increased significantly [5,6], an increment in the number of events may be expected. Monitoring plays an important role in managing risk due to rockfalls in a wide spectrum of applications. To inventory events that occur, terrestrial or aerial laser scanning (TLS or ALS) and photogrammetry are frequently used to obtain surface models of the terrain, the position of the deposited block fragments, an estimation of the detachment volume, the fragment trajectories, etc. [ 7 , 8 ]. These techniques are used to quantify detached rock masses on rock slopes over time to estimate the expected magnitude frequency of rockfall [ 9 – 14 ], which is required to evaluate risk quantitatively [ 15 , 16 ]. For early warning purposes, ground-based radar interferometry [ 17 ], seismic signals [ 18 ] and acoustic signals [ 19 ] have proven useful in a variety of hazardous scenarios. For better understanding of the rockfall process, some authors have recently used videogrammetric techniques to Remote Sens. 2023,15, 293. https://doi.org/10.3390/rs15020293 https://www.mdpi.com/journal/remotesensing Remote Sens. 2023,15, 293 2 of 19 track blocks and fragments generated during breakage in controlled scenarios on real-scale tests [20,21] or laboratory tests [22,23] and seismic analysis techniques [24,25]. In rockfalls, premonitory movements tend to be very small, even in certain cases of the same order of magnitude as instrumental errors [ 26 , 27 ], and, in some scenarios, small detachments may be premonitory of a larger event [ 28 ]. These small movements, together with the need for high temporal continuity, led us to select terrestrial photomonitoring for this application. Satellite techniques were discarded due to the verticality of the rock slope. A continuous or semi-continuous approach was required for this application, but some of the leading techniques, like LiDAR or ground radar, were discarded due to their high cost. Some authors have already tested photomonitoring devices on rock slopes. For example, ref. [ 29 ] collected a workflow and a series of recommendations for the correct use of photogrammetry with time-lapse type cameras for dynamic geological studies, such as the detection of changes in slopes, monitoring of movements and changes in roughness. This type of photogrammetry costs less than other measurement techniques (such as TLS). The authors showed the importance of environmental conditions (lighting, etc.). (Westoby et al., 2012) [ 30 ] provided an example of a coastal cliff and how the SfM (structure from motion) technique is adequate from a technical and economic point of view and is efficient and flexible enough to capture complex topographies. In Blanch et al. [ 10 ], smoothed models and the application of basic statistics (of the median of a data set) were used. They calculated a digital terrain model (DTM) from the median of n low-resolution DTMs (low-cost system). However, the detection of premonitory movements using this photomonitoring still has room for improvement. The aim of this study was to evaluate the viability of detecting premonitory movements with a low-cost monitoring system in rock slopes with a continuous low-cost photomonitoring system using currently available open-source hardware and software for data capture. For image processing, we have implemented our own software. In this article, we describe the design and performance of a time-lapse fixed position system with three digital single-lens reflex (DSLR) cameras to monitor a basaltic cliff. The image process system can detect small precursor movements of around a centimeter. Although, this premonitory movements detection system is focused mainly on the existence of this displacement more than its magnitude. The analysis is based on a comparison of the three synchronized images at a specific time, t, with images of an initial time, t 0 . If any change greater than one pixel is detected, an alert is “sent”. Then, the Digital Surface Model (DSM) is generated automatically, with knowledge of some ground control points. Due to the fact that this system measures continuously, it allows the detection of all the fallen blocks, as well as their volume. This information allows updating the temporal evolution of the massif due to the changes in the annual probability. This information, which is often ignored, is useful for the dynamic analysis of the risk [31]. Castellfollit de la Roca was chosen for this study for several reasons. One reason is the social interest of the area, as the population center is situated on top of the basaltic formation, and therefore the evolution of the rock massif must be controlled due to the danger it could pose to the population. In relation to the previous point, this is an active area. This has been shown by various campaigns using TLS and photogrammetry from unmanned aerial vehicles (UAVs) that have been carried out by the Institut Geològic i Cartogràfic de Catalunya (ICGC) [ 32 ]. Therefore, the volume loss results can be compared. The previous campaigns have shown that rockfalls occur. However, due to the nature of the campaigns and the methodology used, it is difficult to quantify whether precursor movements happen. This can only be determined using a continuous system. To avoid the problems of the area’s geometry, which are similar to those of other areas, we only worked with images to detect movement. This is unlike the study by the other authors. Notably, the geometry of a camera shot influences the precision in the measurement of the points in the photogrammetric model that is generated. The device that is designed will work with three cameras to minimize and guarantee data redundancy. Remote Sens. 2023,15, 293 3 of 19 2. Methodology 2.1. Study Site The study area is in the village of Castellfollit de la Roca (Catalunya, Spain) at an altitude of 296 m. It is located at the top of a Quaternary basaltic north-facing cliff face that is longer than one kilometer. The place is of great height. The distance between the lower part on the banks of the Fluviàriver to the upper part of the town is about 40 m. There is abundant vegetation in the area, both on the wall, where the basaltic columns have shrub vegetation, and on both banks of the river, where there are a large number of tall trees. This basaltic formation was made by erosive action of the rivers Fluviàand Toronel on the volcanic remains resulting from the superposition of two lava flows, Figure 1. These lava flows are estimated to be 217,000 and 192,000 years old, respectively. On this cliff, prism-shaped disjunctions that are formed when the basalt cools slowly and at rest are present. Due to erosion from the cliff base, several columns have collapsed in recent centuries. There are two kinds of failure: toppling and vertical falling by gravity. Abellán et al. [ 33 , 34 ] carried out observation campaigns with TLS and detected in this area precursory deformation of the rockfall lower than 1.64 cm/year, followed by an apparently stationary stage. Remote Sens. 2023, 15, x FOR PEER REVIEW 3 of 21 cursor movements happen. This can only be determined using a continuous system. To avoid the problems of the area’s geometry, which are similar to those of other areas, we only worked with images to detect movement. This is unlike the study by the other authors. Notably, the geometry of a camera shot influences the precision in the measurement of the points in the photogrammetric model that is generated. The device that is designed will work with three cameras to minimize and guarantee data redundancy. 2. Methodology 2.1. Study Site The study area is in the village of Castellfollit de la Roca (Catalunya, Spain) at an altitude of 296 m. It is located at the top of a Quaternary basaltic north-facing cliff face that is longer than one kilometer. The place is of great height. The distance between the lower part on the banks of the Fluvià river to the upper part of the town is about 40 m. There is abundant vegetation in the area, both on the wall, where the basaltic columns have shrub vegetation, and on both banks of the river, where there are a large number of tall trees. This basaltic formation was made by erosive action of the rivers Fluvià and Toronel on the volcanic remains resulting from the superposition of two lava flows, Figure 1. These lava flows are estimated to be 217,000 and 192,000 years old, respectively. On this cliff, prism-shaped disjunctions that are formed when the basalt cools slowly and at rest are present. Due to erosion from the cliff base, several columns have collapsed in recent centuries. There are two kinds of failure: toppling and vertical falling by gravity. Abellán et al. [33,34] carried out observation campaigns with TLS and detected in this area precursory deformation of the rockfall lower than 1.64 cm/year, followed by an apparently stationary stage. Usually, the risk in rockfall is due to the fact that the exposed element that is at risk is under the cliff. In this particular case, it is on top of the cliff. The erosion of the massif on which the town is built can put at risk the buildings that are closer to the edge. This peculiarity is the reason why we chose this area, focusing on the closest part of the cliff to the buildings and the most active part of the cliff, according to previous monitoring campaigns. Figure 1. ( a ) Topographic map, ( b ) ortophotography and ( c ) geological map, the study area is highlighted with a red line in all of them. Usually, the risk in rockfall is due to the fact that the exposed element that is at risk is under the cliff. In this particular case, it is on top of the cliff. The erosion of the massif on which the town is built can put at risk the buildings that are closer to the edge. This peculiarity is the reason why we chose this area, focusing on the closest part of the cliff to the buildings and the most active part of the cliff, according to previous monitoring campaigns. Remote Sens. 2023,15, 293 4 of 19 2.2. System Design For the photogrammetric capture, a minimum set of photographic cameras (three cameras) was used. They were located at an approximate distance of 37 m between the camera in the center and those at the ends, with convergent image capture. All cameras were visible to the central zone of the model to control. With this configuration, the overlap between images was close to 90% among all of them. Figure 2shows the area covered by each camera: in red camera 1, in green camera 2 and in blue camera 3. Remote Sens. 2023, 15, x FOR PEER REVIEW 5 of 21 Figure 2. Ortophotography with the cameras’ positions and the wall area covered by each one. In red, green and blue: the areas covered by cameras C1, C2 and C3, respectively. 2.3. Error Analysis in 3D Photogrammetric Models We can estimate the errors in the measurement of the coordinates at a point in the photogrammetric model, considering only factors such as the geometry of the set cameras-object, the relationship between the photographic base (practically parallel to the wall), the distance to the object of the 1/5 type and, finally, the characteristics of the cameras. These errors can be determined from the scale ratios and parallax equations [39], as shown in Equations (1) and (2). 𝐸= 𝑌 𝑓 = 𝐵 𝑝 (1) where 𝐸 is the scale factor, 𝑌 the distance from reference to observed point, 𝐵 the photographic base, 𝑝 the parallax, dp = √2𝑑𝑥 and 𝑓 the focal length. 𝑋=𝑥· 𝐸 𝑌= 𝑓 ·𝐸=𝐵· 𝑓 𝑝 𝑍=𝑦 · 𝐸 (2) 𝑑𝑋=𝑑𝑥· 𝐸 𝑑𝑌= 𝑌 𝐵∙ 𝑓 𝑑𝑝 𝑑𝑍=𝑑𝑦· 𝐸 (3) where 𝑋,𝑌,𝑍 are the ground coordinates (GC), 𝑥,𝑦 the image coordinates, 𝑑𝑋,𝑑𝑌,𝑑𝑍 are the estimated error in GC and 𝑑𝑥,𝑑𝑦 the error image coordinates. All the variables are expressed in meters, although usually, the image coordinates and focal length are originally in mm. Applying Equation (3), we can calculate the terrain variation that we can observe from the image coordinates. Considering an appreciation in the identification of the point on a target to be measured of half a pixel (dx = dy = 1/2 px) and the least favorable case, i.e., working with only two contiguous cameras and, therefore, with a lower base-to-object ratio and a major value of E , we obtain values for the movements in terrain that we could appreciate, 𝑑𝑋,𝑑𝑌 and dZ . These would be 0.5 cm in X and Z and 3 cm in Figure 2. Ortophotography with the cameras’ positions and the wall area covered by each one. In red, green and blue: the areas covered by cameras C1, C2 and C3, respectively. One of the most important data capture factors that influence the results is the optical characteristics of the cameras [ 35 ]. Bearing in mind the geometric conditions of the area, different models were analyzed, selecting the Canon EOS 6D Mark II model, which has a CMOS-type sensor with a 3/2 ratio, a size of 35.9 × 24.0 mm, resolution of up to 6240 ×4160 pixels , and a 105 mm focal length. Fixed photographic conditions were used to take the photographs, such as sensitivity at ISO 100 and an aperture of f/8, to leave the calculation of the exposure time based on the fixed variables and the reading of the camera’s photometer. The black color of the basaltic cliff, the position and the vertical structure of the prisms cause different problems in taking the photographs and in the photogrammetric processing, such as unwanted brightness, homogeneity in the surfaces, cracks and damp surfaces, and rapid growth of seasonal vegetation that has to be filtered before any other process. Due to these conditions, especially the morphological ones, it was necessary to move a significant distance away to take the photographs to ensure that the inclination of the cameras and the difference in scale in the same photograph was minimal. Finally, it was decided to fix the photographic cameras in the industrial buildings near the riverbank at a distance of approximately 170 m, which is greater than in other studies [ 10 , 35 – 37 ]. As mentioned above, the cameras were fixed at a similar distance, in stable places, and in a line almost parallel to the projection of the cliff in the study area. The relationship between them and the photogrammetric model gave an average scale of 1/1700, with scale variations of less than ±10%. Remote Sens. 2023,15, 293 5 of 19 Once the cameras and their localization had been selected, the other important factor was solving the technical requirements to build a system that could remotely take pictures at regular intervals and send them to the office by internet connection [ 38 ]. Due to the option of connecting this system to the public electricity network, we avoided the need for solar panels and accumulation batteries. However, this connection was essential to control possible electrical spikes using an electrical transformer to filter them and a surge protection system to protect all components. All these components were enclosed in an IP67 cage to ensure water protection, and they constituted what we called the power management unit. The last component of the system is the control unit, whose mission is to send the order to take a photograph and then send the collected pictures over a 3G network to a server. The control unit functions with a Raspberry Pi 4 (RPi4) microcomputer, which is capable of interfacing through USB protocol with the cameras that are directly wired to it. Since the distance to the cameras was longer than 10 m, supported by the USB protocol, a USB extension through ethernet was required for cameras C1 and C3. Moreover, it had an Rj45 connector for internet connectivity. Finally, a relay board connected to the RPi4 controlled the camera power supply and thus when they were turned on or off. With this low-cost system, periodic photogrammetric coverage towards the front of the cliff was carried out. 2.3. Error Analysis in 3D Photogrammetric Models We can estimate the errors in the measurement of the coordinates at a point in the photogrammetric model, considering only factors such as the geometry of the set camerasobject, the relationship between the photographic base (practically parallel to the wall), the distance to the object of the 1/5 type and, finally, the characteristics of the cameras. These errors can be determined from the scale ratios and parallax equations [ 39 ], as shown in Equations (1) and (2). E=Y f=B p(1) where E is the scale factor, Y the distance from reference to observed point, B the photographic base, pthe parallax, dp =√2dx and fthe focal length. X=x·E Y =f·E=B·f pZ=y·E(2) dX =dx·E dY =Y2 B·fdp dZ =dy·E(3) where X , Y , Z are the ground coordinates (GC), x , y the image coordinates, dX , dY , dZ are the estimated error in GC and dx , dy the error image coordinates. All the variables are expressed in meters, although usually, the image coordinates and focal length are originally in mm. Applying Equation (3), we can calculate the terrain variation that we can observe from the image coordinates. Considering an appreciation in the identification of the point on a target to be measured of half a pixel (dx =dy = 1/2 px) and the least favorable case, i.e., working with only two contiguous cameras and, therefore, with a lower base-to-object ratio and a major value of E, we obtain values for the movements in terrain that we could appreciate, dX , dY and dZ. These would be 0.5 cm in Xand Zand 3 cm in depth (Y coordinate). In the case of identifying points on natural details, the appreciation would be one pixel, and the detectable displacements would be double. Moreover, the workplace is influenced by different natural circumstances that can modify the theoretical estimation, such as artificial or direct light on the camera lenses and excessive humidity in the area. Another difficulty is the unequivocal identification of tie points, whose coordinates were obtained by topography. These two factors incorporate a degree of uncertainty that is difficult to evaluate from theoretical expressions. Therefore, a test was carried out to check that the estimated errors were really those expected. In this Remote Sens. 2023,15, 293 6 of 19 test, two targets were displaced by a known amount. The objective was to check the real discrepancy between the theoretical values (imposed in the field) and those obtained in the photogrammetric process. A guide was designed to control the displacements of the targets. This consisted of a horizontal guide parallel to the coordinate system, and another guide perpendicular to it, as shown in Figure 3. This made it possible to measure displacements in the X-Z plane (H) and in-depth D (Y axis). Two targets were placed on these guides, which were first taken at the origin of the guide and then moved to 2 cm, 5 cm and 10 cm, and in the case of depth, also to 20 cm, as shown in Table 1. Moreover, fixed reference targets were used for checking. Remote Sens. 2023, 15, x FOR PEER REVIEW 6 of 21 depth ( Y coordinate). In the case of identifying points on natural details, the appreciation would be one pixel, and the detectable displacements would be double. Moreover, the workplace is influenced by different natural circumstances that can modify the theoretical estimation, such as artificial or direct light on the camera lenses and excessive humidity in the area. Another difficulty is the unequivocal identification of tie points, whose coordinates were obtained by topography. These two factors incorporate a degree of uncertainty that is difficult to evaluate from theoretical expressions. Therefore, a test was carried out to check that the estimated errors were really those expected. In this test, two targets were displaced by a known amount. The objective was to check the real discrepancy between the theoretical values (imposed in the field) and those obtained in the photogrammetric process. A guide was designed to control the displacements of the targets. This consisted of a horizontal guide parallel to the coordinate system, and another guide perpendicular to it, as shown in Figure 3. This made it possible to measure displacements in the X-Z plane (H) and in-depth D (Y axis). Two targets were placed on these guides, which were first taken at the origin of the guide and then moved to 2 cm, 5 cm and 10 cm, and in the case of depth, also to 20 cm, as shown in Table 1. Moreover, fixed reference targets were used for checking. Figure 3. Image of the targets and the device used to control the movements from their own place (left) and from the cameras (right). The software used for the photogrammetric adjustment to obtain the models and the coordinates of the points of interest was Agisoft Metashape Professional, Version 1.8.1 (Agisoft LLC., St. Petersburg, Russia). The block adjustment of all the photographs was carried out in packs of six images per position. Since the images were taken at short time intervals, the atmospheric and camera geometry conditions were considered to be the same. Therefore, the same calibration values were used for all of them. The average ground photographic resolution was 1 cm/px, and the reprojection error achieved in the photogrammetric process was less than 1 px. The discrepancies between the real displacements (from origins at 0, 2, 5, 10 and 20 cm) and those obtained from the photogrammetric model are shown in Table 1. The maximum discrepancy of 0.3 cm on the horizontal displacement occurs at a distance of 10 cm, while for lower values, expected for the movement of the columns, there was no discrepancy. As expected, in-depth, this discrepancy was larger, at about 0.4 mm on average, and occurred in all cases in a fairly uniform way, except for the value of 20 cm when the discrepancy rose to 1.3 cm. These values were consistent with the theoretical calculations since we were working in the most favorable case with the three cameras and, therefore, with a larger base. They show that the influence of the other parameters does not introduce greater error in the observation. Figure 3. Image of the targets and the device used to control the movements from their own place (left) and from the cameras (right). Table 1. Discrepancies between the real displacement and the displacement measured in the photogrammetric model in the X-Z plane (H) and in-depth (D). Units in cm. Real Displacement (H; D) cm Horizontal Displacement Measured (H) cm Discrepancies (H) cm Depth Displacement Measured (D) cm Discrepancies (D) cm 0; 0 0.0 0 0.5 0.5 2; 2 2.0 0 2.5 0.5 5; 5 5.0 0 5.3 0.3 10; 10 9.7 0.3 10.4 0.4 0; 20 — — 18.7 1.3 The software used for the photogrammetric adjustment to obtain the models and the coordinates of the points of interest was Agisoft Metashape Professional, Version 1.8.1 (Agisoft LLC., St. Petersburg, Russia). The block adjustment of all the photographs was carried out in packs of six images per position. Since the images were taken at short time intervals, the atmospheric and camera geometry conditions were considered to be the same. Therefore, the same calibration values were used for all of them. The average ground photographic resolution was 1 cm/px, and the reprojection error achieved in the photogrammetric process was less than 1 px. The discrepancies between the real displacements (from origins at 0, 2, 5, 10 and 20 cm) and those obtained from the photogrammetric model are shown in Table 1. The maximum discrepancy of 0.3 cm on the horizontal displacement occurs at a distance of 10 cm, while for lower values, expected for the movement of the columns, there was no discrepancy. As expected, in-depth, this discrepancy was larger, at about 0.4 mm on average, and occurred in all cases in a fairly uniform way, except for the value of 20 cm when the discrepancy Remote Sens. 2023,15, 293 7 of 19 rose to 1.3 cm. These values were consistent with the theoretical calculations since we were working in the most favorable case with the three cameras and, therefore, with a larger base. They show that the influence of the other parameters does not introduce greater error in the observation. 2.4. Processing Approach The objective of this work is to establish an automatic system that allows us to detect premonitory movements in an area with several bad environmental conditions. We focus mainly on the existence of this displacement more than its magnitude. Current and most commonly used photogrammetric systems allow us to create 3D point cloud models from several images automatically. We can establish the resolution of these models, but the point clouds generated with sets of images from two different times do not contain the same distribution of points. Therefore, interpolation is needed to compare multi-temporal point clouds. On the other hand, to monitor the movement of specific points, we have to measure in the photogrammetric model by selecting the point on the photograph. Accuracy in the creation of the models is conditioned by the geometry of the camera system position regarding the slope, as explained in Section 2.3. The characteristics of the area, an example is the Castellfollit case, condition not only the cameras’ location but also the number of cameras that can be installed. For these reasons, our approach is to work directly on individual images. Correlation methods on multi-temporal image sets allow us to detect movement. To automate the process, several programs have been implemented in Python and C++. As initially, these movements can be small, the analysis will be carried out for several time intervals. When working on the image, we calculate projected vectors for the displacement. Therefore, the final step consists in creating the 3D photogrammetric model to measure their magnitude and the estimated error by means of manual measurement at the control points. 2.5. Image Processing To avoid the double image (high contrast and shades in the images) produced by the protective glass of the housing, the images were captured early in the morning, 3 images per camera, and late in the evening, between 3 and 4 images per camera according to the season. After the capture, they were stored in the Raspberry and sent to the server for processing. Since the trigger and magnitude of these movements are unknown, and whether they are sudden movements or occur gradually over time, we created a protocol to compare images of different temporality. Each day’s images were compared with those of the previous day, a week ago, a fortnight ago, a month ago and two months ago. In this way, it was easier to detect small-magnitude movements. Therefore, once the day’s acquisition was finished, the system identified the day and searched for the stored images of previous dates, and selected those of higher quality. In winter, these images corresponded to the afternoon or the last image of the morning because there were a high number of foggy days due to the geographic location of the study area and its proximity to a river. The analysis carried out by [ 40 ] shows that the influence of the type of image (black/white, RGB, etc.) was negligible in this process, and the result was much more sensitive to the correlation window used. If the window used is much bigger than the object that we want to track its displacement, it could not be detected. For this reason, we worked with the original RGB images directly without performing any kind of stacking or color space change. Remote Sens. 2023,15, 293 8 of 19 An adjustment had to be made to correct possible camera movements before the time series comparison analysis. This process had to be performed once the images had been selected and for each of the cameras. After registering all the images for each camera, the next step was to compare the detection of possible movements. For this purpose, the cross-correlation method was used, Figure 4. If a movement or volume change was detected, the 3D model was created for quantification. This process was performed every day. Each of these phases is described in detail below. Remote Sens. 2023, 15, x FOR PEER REVIEW 8 of 21 was much more sensitive to the correlation window used. If the window used is much bigger than the object that we want to track its displacement, it could not be detected. For this reason, we worked with the original RGB images directly without performing any kind of stacking or color space change. An adjustment had to be made to correct possible camera movements before the time series comparison analysis. This process had to be performed once the images had been selected and for each of the cameras. After registering all the images for each camera, the next step was to compare the detection of possible movements. For this purpose, the cross-correlation method was used, Figure 4. If a movement or volume change was detected, the 3D model was created for quantification. This process was performed every day. Each of these phases is described in detail below. Figure 4. Flowchart of the process followed each day with the images. Figure 4. Flowchart of the process followed each day with the images. Remote Sens. 2023,15, 293 9 of 19 A. Image Adjustment Although the cameras were on fixed supports, they were affected by small movements that could be due to the action of the wind or changes in temperature that could cause expansion and contraction of the supports or facades where they were installed. These movements were transmitted into small changes in the perspective of the images. Consequently, to compare the time series and detect variations, this change in perspective had to be corrected. To achieve this correction, an image was selected as a pattern, and the rest was resampled through a two-dimensional transformation, with translation as the main component. If the movements were very small, an affine transformation was enough to transform the coordinates of the images to be registered to the coordinates of the pattern image. In the case of the study, due to changes in lighting and fog and after rain, which darkens the material, the scale-invariant feature transform (SIFT) method provided the best results. This method allows us to identify the image’s relevant features and match them among different images [ 41 ]. Due to the abundant, changing vegetation in the area, the search for significant points was carried out by applying a mask to avoid these areas and not consider the entire image. Vegetation masks are usually used in the final 3D models that are obtained prior to the comparison of the 3D models [ 37 ]. However, in this case, the presence of a large number of plant masses on the wall that undergoes considerable changes over time makes their use essential in this first phase (A). To obtain these masks, there are various indices based on the visible RGB channels [ 42 , 43 ]. Among them, the Green Leaf Index (GLI) was selected as it offers better results in such an abundant, varied vegetation area. With the use of these masks, the calculation of the adjustment process was improved in computation time, which was reduced by half, and in the reduction of the RMSE (root mean square error) obtained. Once the possible characteristic points had been identified, as a first step, those that were correct had to be filtered out using a brute-force matching algorithm [ 44 ]. Once this first set had been identified, an epipolarization filter had to be applied to guarantee the quality of the points to be used in the transformation. B. Movement detection Once all the images for each camera had been aligned, a comparison was made to detect possible movements. To achieve this, the cross-connection method [ 45 ] was used to compute the matrix correlation, Equation (4). It was applied in both directions to avoid erroneous results due to the presence of residual vegetation, despite using masks. As mentioned before, this process was carried out for different temporary sequences of images with the aim of detecting movement without ambiguities. ρ(j,k)=∑N x=1∑M y=1Ic(x,y)−IcIp(x,y)−Ip q∑N x=1∑N x=1Ic(x,y)−Icp2q∑N x=1∑N x=1Ip(x,y)−Ip2(4) where ρ is the correlation value, I c and I p are the radiometric levels of each area, Ic and Ip are the average of the radiometric level in the pattern and adjustment windows and (x, y) refers to each pixel of the matrix. In this process, it is essential to use an adequate sampling window, the size of which is conditioned by the dimensions of change to be detected. In the study, the objective was to detect movement of the basaltic columns, which we can consider homogeneous throughout the scene, so the window was established according to its dimension at image scale. The window sizes were set at 31 ×31 and 61 ×61 pixels. Based on the correlation, it was possible to determine the displacement vectors, which allow identification of the areas where there is movement of the basaltic columns, and to detect the areas where changes occurred, which in this case were equivalent to the fall of the block. The forward–backward cross-correlation process allows us to detect erroneous vectors. Since they are obtained from image A to image B and reciprocally, the system can check the Remote Sens. 2023,15, 293 16 of 19 movements or growth. Another option is to create a mask for each image and not for periods, as implemented, although this entails a longer processing time. Remote Sens. 2023, 15, x FOR PEER REVIEW 18 of 21 Figure 10. Volume change detection. In suspicious red pixels of change, their value of correlation is low. In blue, non-changed pixels with a high value of correlation. 4. Conclusions The aim of this study was to analyze the validity of a continuous monitoring system for premonitory rockfall detection based on the implementation of time-lapse fixed position systems with three DSLR cameras, using currently available open-source hardware and software for data capture. A workflow was developed in which, based on the time series of images obtained from each of the cameras, ground movements, in this case of the basaltic columns, can be detected using cross-correlation in a forward-backward process. Once detected, since it is a stereoscopic system, we can achieve 3D photogrammetric models to estimate the real movement. Working on a real case, the geometry of the image acquisition conditions obtaining the 3D models. In Castellfollit, the base–object ratio is within the advisable range between 5 and 10. Carrying out a test, we verified that the real errors using targets or artificial elements are within the theoretical estimated range due to the geometry and characteristics of the camera and despite the conditioning factors that are independent of them. As expected, the results that are obtained are slightly worse when working on natural points. For them, the unambiguous identification of points in the 3D model becomes more difficult since working on natural surfaces and not on pre-specified targets can lead to small errors, even if we work on the photogrammetric model and not on the point cloud. Other limitations are constraints due to the location. These are insurmountable when a certain area has to be monitored. In the study case, the constraints were the north orientation of the rock face, with the sun’s rays falling on the cameras for several hours, which made it infeasible to use the images obtained in those time slots. In addition, fog due to the river made some of the images useless, so the capture rate could not be lowered if daily monitoring was desired. However, the cross-correlation methods in non-regular time intervals allowed precursor movements of rockfalls of magnitude around a centimeter to be detected, which was the main objective. This leads us to consider that, at least for this type of formation, the system that was implemented can be used as a monitoring system for more detailed control. Figure 10. Volume change detection. In suspicious red pixels of change, their value of correlation is low. In blue, non-changed pixels with a high value of correlation. 4. Conclusions The aim of this study was to analyze the validity of a continuous monitoring system for premonitory rockfall detection based on the implementation of time-lapse fixed position systems with three DSLR cameras, using currently available open-source hardware and software for data capture. A workflow was developed in which, based on the time series of images obtained from each of the cameras, ground movements, in this case of the basaltic columns, can be detected using cross-correlation in a forward-backward process. Once detected, since it is a stereoscopic system, we can achieve 3D photogrammetric models to estimate the real movement. Working on a real case, the geometry of the image acquisition conditions obtaining the 3D models. In Castellfollit, the base–object ratio is within the advisable range between 5 and 10. Carrying out a test, we verified that the real errors using targets or artificial elements are within the theoretical estimated range due to the geometry and characteristics of the camera and despite the conditioning factors that are independent of them. As expected, the results that are obtained are slightly worse when working on natural points. For them, the unambiguous identification of points in the 3D model becomes more difficult since working on natural surfaces and not on pre-specified targets can lead to small errors, even if we work on the photogrammetric model and not on the point cloud. Other limitations are constraints due to the location. These are insurmountable when a certain area has to be monitored. In the study case, the constraints were the north orientation of the rock face, with the sun’s rays falling on the cameras for several hours, which made it infeasible to use the images obtained in those time slots. In addition, fog due to the river made some of the images useless, so the capture rate could not be lowered if daily monitoring was desired. However, the cross-correlation methods in non-regular time intervals allowed precursor movements of rockfalls of magnitude around a centimeter to be detected, which was the main objective. This leads us to consider that, at least for this type of formation, the system that was implemented can be used as a monitoring system for more detailed control. Remote Sens. 2023,15, 293 17 of 19 Moreover, this correlation method allows us to detect major changes on the images. In this way, fallen blocks can be identified. The area where a block is missing is highlighted by clusters of uncorrelated pixels, and we have to pay attention to false positives due to the vegetation growing out of the mask. In the comparison process, special attention must be paid to the correction of the images due to the change of perspective caused by the natural movement of the cameras. In addition, the use of masks to remove vegetation in the correlation process is essential, with a double objective: to reduce the computation time in uninteresting areas and to avoid erroneous data. Author Contributions: Conceptualization, all the co-authors; methodology, all the co-authors; software, G.M., M.A.N.-A., and A.P.-V.; validation, F.B., M.A.N.-A., and A.P.-V.; formal analysis, M.A.N.-A. ; investigation, all the co-authors.; resources, all the co-authors; data curation, G.M., M.A.N.-A., and A.P.-V.; writing—original draft preparation, all the co-authors; writing—review and editing, N.L., G.M., and M.A.N.-A.; visualization, M.A.N.-A.; supervision, M.A.N.-A.; project administration, N.L. and M.A.N.-A.; funding acquisition, N.L. and M.A.N.-A. All authors have read and agreed to the published version of the manuscript. Funding: This research was funded by project Georisk “Advances in rockfall quantitative risk analysis (QRA) incorporating developments in geomatics (GeoRisk)”, grant number PID2019-103974RB-I00 funded by MCIN/AEI/10.13039/501100011033, Ministerio de Ciencia e Innovación and Agencia Estatal de Investigación of Spain and the APC was funded by Remote Sensing. Data Availability Statement: Not applicable. Acknowledgments: We want to acknowledge the ICGC (Institut Cartogràfic i Geològic de Catalunya) team for their recommendations during the design of the system and during its implementation on the field. Moreover, to Vilarrasa S.L enterprise for allowing the placement of the cameras on its buildings. Finally, we appreciate all help provided by the Castellfollit and Montagut i Oix local councils. Conflicts of Interest: The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results. References 1. Cruden, D.M.; Varnes, D.J. Landslide Types and Processes. In Landslides—Investigation and Mitigation; Transportation Research Board Special Report, No.247; Turner, A.T., Schuster, R.L., Eds.; National Academy of Sciences: Washington, DC, USA, 1996. 2. Hungr, O.; Leroueil, S.; Picarelli, L. The Varnes Classification of Landslide Types, an Update. Landslides 2014 ,11, 167–194. [CrossRef] 3. Hoek, E. (Ed.) Analysis of Rockfall Hazards. In Practical Rock Engineering; RockScience: Toronto, ON, Canada, 2007; pp. 115–136. Available online: https://static.rocscience.cloud/assets/resources/learning/hoek/Practical-Rock-Engineering-Chapter-9- Analysis-of-Rockfall-Hazards.pdf (accessed on 17 November 2022). 4. Corominas, J. Los Desprendimientos Rocosos, Impacto y Análisis Cuantitativo Del Riesgo. In Proceedings of the X Simposio Nacional sobre Taludes y Laderas Inestables, Granada, Spain, 13–16 September 2022; Hürlimann, M., Pinyol, N.M., Eds.; pp. 35–67. 5. Coe, J.A. Bellwether Sites for Evaluating Changes in Landslide Frequency and Magnitude in Cryospheric Mountainous Terrain: A Call for Systematic, Long-Term Observations to Decipher the Impact of Climate Change. Landslides 2020 ,17, 2483–2501. [CrossRef] 6. Savi, S.; Comiti, F.; Strecker, M.R. Pronounced Increase in Slope Instability Linked to Global Warming: A Case Study from the Eastern European Alps. Earth Surf. Process. Landforms 2021,46, 1328–1347. [CrossRef] 7. Ruiz-Carulla, R.; Corominas, J.; Mavrouli, O. A Methodology to Obtain the Block Size Distribution of Fragmental Rockfall Deposits. Landslides 2015,12, 815–825. [CrossRef] 8. Albarelli, D.S.N.A.; Mavrouli, O.C.; Nyktas, P. Identification of Potential Rockfall Sources Using UAV-Derived Point Cloud. Bull. Eng. Geol. Environ. 2021,80, 6539–6561. [CrossRef] 9. Santana, D.; Corominas, J.; Mavrouli, O.; Garcia-Sellés, D. Magnitude-Frequency Relation for Rockfall Scars Using a Terrestrial Laser Scanner. Eng. Geol. 2012,144–145, 50–64. [CrossRef] 10. Blanch, X.; Eltner, A.; Guinau, M.; Abellan, A. Workflow for Enhanced Change Detection Using Time-Lapse Cameras. Remote Sens. 2021,13, 1460. [CrossRef] 11. Tonini, M.; Abellan, A. Rockfall Detection from Terrestrial Lidar Point Clouds: A Clustering Approach Using R. J. Spat. Inf. Sci. 2014,8, 95–110. [CrossRef] Remote Sens. 2023,15, 293 18 of 19 12. van Veen, M.; Hutchinson, D.J.; Kromer, R.; Lato, M.; Edwards, T. Effects of Sampling Interval on the Frequency—Magnitude Relationship of Rockfalls Detected from Terrestrial Laser Scanning Using Semi-Automated Methods. Landslides 2017 ,14, 1579–1592. [CrossRef] 13. Williams, J.G.; Rosser, N.J.; Hardy, R.J.; Brain, M.J.; Afana, A.A. Optimising 4-D Surface Change Detection: An Approach for Capturing Rockfall Magnitude-Frequency. Earth Surf. Dyn. 2018,6, 101–119. [CrossRef] 14. Guerin, A.; Stock, G.M.; Radue, M.J.; Jaboyedoff, M.; Collins, B.D.; Matasci, B.; Avdievitch, N.; Derron, M.H. Quantifying 40 years of Rockfall Activity in Yosemite Valley with Historical Structure-from-Motion Photogrammetry and Terrestrial Laser Scanning. Geomorphology 2020,356, 107069. [CrossRef] 15. Hantz, D. Quantitative Assessment of Diffuse Rock Fall Hazard along a Cliff Foot. Nat. Hazards Earth Syst. Sci. 2011 ,11, 1303–1309. [CrossRef] 16. Corominas, J.; Matas, G.; Ruiz, R. Quantitative Analysis of Risk from Fragmental Rockfalls. Landslides 2019 ,16, 5–21. [CrossRef] 17. Carlà, T.; Nolesini, T.; Solari, L.; Rivolta, C.; Dei Cas, L.; Casagli, N. Rockfall Forecasting and Risk Management along a Major Transportation Corridor in the Alps through Ground-Based Radar Interferometry. Landslides 2019,16, 1425–1435. [CrossRef] 18. Feng, L.; Intrieri, E.; Pazzi, V.; Gigli, G.; Tucci, G. A Framework for Temporal and Spatial Rockfall Early Warning Using Micro-Seismic Monitoring. Landslides 2021,18, 1059–1070. [CrossRef] 19. Ulivieri, G.; Vezzosi, S.; Farina, P.; Meier, L. On the Use of Acoustic Records for the Automatic Detection and Early Warning of Rockfalls. In Proceedings of the 2020 International Symposium on Slope Stability in Open Pit Mining and Civil Engineering, Perth, WA, Australia, 12–14 May 2020; pp. 1193–1202. [CrossRef] 20. Prades-Valls, A.; Corominas, J.; Lantada, N.; Matas, G.; Núñez-Andrés, M.A. Capturing Rockfall Kinematic and Fragmentation Parameters Using High-Speed Camera System. Eng. Geol. 2022,302, 106629. [CrossRef] 21. Noël, F.; Jaboyedoff, M.; Caviezel, A.; Hibert, C.; Bourrier, F.; Malet, J.-P. Rockfall Trajectory Reconstruction: A Flexible Method Utilizing Video Footage and High-Resolution Terrain Models. Earth Surf. Dyn. Discuss. 2022,10, 1141–1164. [CrossRef] 22. Matas, G.; Parras, E.; Lantada, N.; Gili, J.; Ruiz-Carulla, R.; Corominas, J.; Moya, J.; Prades, A.; Buill, F.; Nuñez-Andres, M.A.; et al. Laboratory Test to Study the Effect of Comminution in Rockfalls. In Proceedings of the XIII International Symposium on Landslides, Cartagena de Indias, Cartagena, Colombia, 22–26 February 2021; pp. 1–8. 23. Ettore, D.; Anna, G.; Klaus, G.; Stephen, T.; Olivier, F. On the Dynamic Fragmentation of Rock—Like Spheres: Insights into Fragment Distribution and Energy Partition. Rock Mech. Rock Eng. 2022. [CrossRef] 24. Dietze, M.; Mohadjer, S.; Turowski, J.; Ehlers, T.; Hovius, N. Validity, Precision and Limitations of Seismic Rockfall Monitoring. Earth Surf. Dynam. 2017,12, 1–23. [CrossRef] 25. Saló, L.; Corominas, J.; Lantada, N.; Matas, G.; Prades, A.; Ruiz-Carulla, R. Seismic Energy Analysis as Generated by Impact and Fragmentation of Single-Block Experimental Rockfalls. J. Geophys. Res. Earth Surf. 2018,123, 1450–1478. [CrossRef] 26. Janeras, M.; Jara, J.; Royan, M.; Vilaplana, J.M.; Aguasca, A.; Fabregas, F.; Gili, J.; Buxó, P. Multi-Technique Approach to Rockfall Monitoring in the Montserrat Massif (Catalonia, NE Spain). Eng. Geol. 2017,219, 4–20. [CrossRef] 27. Jaboyedoff, M.; Oppikofer, T.; Abellán, A.; Derron, M.H.; Loye, A.; Metzger, R.; Pedrazzini, A. Use of LIDAR in Landslide Investigations: A Review. Nat. Hazards 2012,61, 5–28. [CrossRef] 28. Royán, M.J.; Abellán, A.; Vilaplana, J.M. Progressive Failure Leading to the 3 December 2013 Rockfall at Puigcercós Scarp (Catalonia, Spain). Landslides 2015,12, 585–595. [CrossRef] 29. Eltner, A.; Kaiser, A.; Abellan, A.; Schindewolf, M. Time Lapse Structure-from-Motion Photogrammetry for Continuous Geomorphic Monitoring. Earth Surf. Process. Landforms 2017,42, 2240–2253. [CrossRef] 30. Westoby, M.J.; Brasington, J.; Glasser, N.F.; Hambrey, M.J.; Reynolds, J.M. “Structure-from-Motion” Photogrammetry: A Low-Cost, Effective Tool for Geoscience Applications. Geomorphology 2012,179, 300–314. [CrossRef] 31. Wang, X.; Frattini, P.; Stead, D.; Sun, J.; Liu, H.; Valagussa, A.; Li, L. Dynamic Rockfall Risk Analysis. Eng. Geol. 2020 ,272, 105622. [CrossRef] 32. Janeras, M.; Pedraza, O.; Lantada, N.; Núñez-Andrés, M.; Hantz, D.; Palau, J. TLS- and Inventory-Based Magnitude—Frequency Relationship for Rockfall in Montserrat and Castellfollit de La Roca. In Proceedings of the 5th RSS Rock Slope Stability Symposium, Chambéry, France, 13–15 November 2021; pp. 27–28. 33. Abellán, A.; Jaboyedoff, M.; Oppikofer, T.; Vilaplana, J.M. Detection of Millimetric Deformation Using a Terrestrial Laser Scanner: Experiment and Application to a Rockfall Event. Nat. Hazards Earth Syst. Sci. 2009,9, 365–372. [CrossRef] 34. Abellán, A.; Vilaplana, J.M.; Calvet, J.; García-Sellés, D.; Asensio, E. Rockfall Monitoring by Terrestrial Laser Scanning—Case Study of the Basaltic Rock Face at Castellfollit de La Roca (Catalonia, Spain). Nat. Hazards Earth Syst. Sci. 2011 ,11, 829–841. [CrossRef] 35. Gance, J.; Malet, J.P.; Dewez, T.; Travelletti, J. Target Detection and Tracking of Moving Objects for Characterizing Landslide Displacements from Time-Lapse Terrestrial Optical Images. Eng. Geol. 2014,172, 26–40. [CrossRef] 36. Giacomini, A.; Thoeni, K.; Santise, M.; Diotri, F.; Booth, S.; Fityus, S.; Roncella, R. Temporal-Spatial Frequency Rockfall Data from Open-Pit Highwalls Using a Low-Cost Monitoring System. Remote Sens. 2020,12, 2459. [CrossRef] 37. Kromer, R.; Walton, G.; Gray, B.; Lato, M.; Group, R. Development and Optimization of an Automated Fixed-Location Time Lapse Photogrammetric Rock Slope Monitoring System. Remote Sens. 2019,11, 1890. [CrossRef] Remote Sens. 2023,15, 293 19 of 19 38. Matas, G.; Prades-Valls, A.; Núñez-Andrés, M.A.; Buill, F.; Lantada, N. Implementation of a Fixed-Location Time Lapse Photogrammetric Rock Slope Monitoring System in Castellfollit de La Roca, Spain. In Proceedings of the 5th Joint International Symposium on Deformation Monitoring (JISDM), Valencia, Spain, 6–8 April 2022; p. 8. 39. Buill, F.; Núñez-Andrés, M.A.; Rodríguez Jordana, J.J. Fotogrametría Arquitectónica; Fotogrametría Arquitectónica: Barcelona, Spain, 2005; ISBN 9788498803419. 40. Desrues, M.; Malet, J.P.; Brenguier, O.; Point, J.; Stumpf, A.; Lorier, L. TSM-Tracing Surface Motion: A Generic Toolbox for Analyzing Ground-Based Image Time Series of Slope Deformation. Remote Sens. 2019,11, 2189. [CrossRef] 41. Lowe, D.G. Distinctive Image Features from Scale-Invariant Keypoints. Int. J. Comput. Vis. 2004,60, 91–110. [CrossRef] 42. Anders, N.; Valente, J.; Masselink, R.; Keesstra, S. Comparing Filtering Techniques for Removing Vegetation from Uav-Based Photogrammetric Point Clouds. Drones 2019,3, 61. [CrossRef] 43. Núñez-Andrés, M.; Prades-Valls, A.; Buill, F. Vegetation Filtering Using Colour for Monitoring Applications from Photogrammetric Data. In Proceedings of the 7th International Conference on Geographical Information Systems Theory, Applications and Management, Virtual, 23–25 April 2021. 44. Paar, C.; Pelzl, J.; Preneel, B. Understanding Cryptography: A Textbook for Students and Practitioners; Springer: Berlin/Heidelberg, Germany, 2012; ISBN 3-642-04100-0. 45. Lerma García, J. Fotogrametría Moderna: Analítica y Digital; Universitat Politècnica de València: Valencia, Spain, 2002; ISBN 8497052102. Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.