Inform : Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi Vol. 11 No. January 2026. P-ISSN : 2502-3470. E-ISSN : 2581-0367 Integration of Google Maps with the YOLO Method for Urban Greening Monitoring Yennimar1. Christian Vieri2. Dandi Prasetyo3. Amanda Febriyani4 1,2,3,4 Informatics Department. Universitas Prima Indonesia. Medan. Indonesia yennimar@unprimdn. id (*) 2,3,4. hristianvieri22032001, dandiprasetyoo18, amandafebriyani2. @gmail. Received: 2025-01-18. Accepted: 2025-11-26. Published: 2026-01-05 AbstractAi The development of artificial intelligence (AI) and computer vision technology has opened up new opportunities in environmental monitoring, especially green open spaces (RTH) in urban areas. This study aims to develop an automatic tree-detection system for satellite imagery using the You Only Look Once version 8 (YOLOv. algorithm integrated with the Google Maps API. Therefore, the novelty of this study lies in integrating the YOLOv8 model with the Google Maps JavaScript API to produce an interactive spatial visualization of detection results, enabling real-time analysis of vegetation distribution to support sustainable urban policies. The methods used include collecting a 640 y 640-pixelresolution satellite image dataset from 21 sub-districts in Medan City, object labelling using the Roboflow platform, data augmentation to increase diversity, and model training on Google Colaboratory. The resulting YOLOv8 model achieved excellent performance, with a precision of 0. recall of 0. 788, and an mAP@0. 5 of 0. 938, indicating strong object detection capabilities. The detection results were then converted to geographic coordinates and visualized using the Google Maps JavaScript API to provide interactive spatial information on tree distribution in urban areas. This study not only demonstrates the technical feasibility of integrating the YOLOv8 algorithm with the Google Maps API but also provides a methodological framework for spatial AI coupling that can be replicated across other environmental monitoring domains. In addition, the study identifies several limitations, including dependence on image resolution, limited temporal coverage, and relatively lower mAP@0. 5Ae0. performance in dense vegetation, which will guide future model improvement. KeywordsAi Google Maps API. Green Open Space. Urban Greening Monitor. Tree Mapping. YOLOv8. Google Maps provides an effective solution by offering fast, accurate, and up-to-date access to spatial data . The Google Maps API enables the acquisition of high-resolution imagery for detailed vegetation analysis. Integrating these images with deep learningAebased detection methods creates opportunities for developing more efficient and automated monitoring systems . In the context of vegetation detection modelling, the use of YOLOv8 offers significant advantages as this algorithm is designed to address visual challenges such as variations in object size, lighting conditions, and complex backgrounds in satellite imagery . Applying data augmentation during model training also enhances detection robustness across diverse conditions. By integrating detection results into an interactive map using the Google Maps JavaScript API, spatial data on vegetation distribution can be visualized and used for policy analysis in urban environmental management. Previous studies have highlighted various strengths and limitations of different YOLO variants for urban greening YOLOv4-Lite . demonstrated efficiency with a lightweight architecture and high accuracy, yet it was less optimal for detecting densely vegetated areas and realtime, city-scale applications. YOLOv2 . offered fast performance . FPS) and high accuracy . , but its application was limited to campus areas and required computationally expensive 3D reconstruction. YOLOv5 . proved effective for detecting large-canopy trees and long-term monitoring. however, it tended to be less accurate for small trees, and its performance metrics were not INTRODUCTION The development of Artificial Intelligence (AI) and computer vision technologies has had a significant impact across various fields . , including urban environmental One of the most prominent approaches in object detection is the You Only Look Once (YOLO) algorithm, renowned for its ability to perform real-time detection with high accuracy . In recent years. YOLO has undergone continuous updates . , including the release of its latest version. YOLOv8, which offers improvements in inference speed and accuracy, making it well-suited for spatial analysis using satellite imagery . On the other hand, rapid urbanization has led to a significant reduction in green open spaces (GOS) in major cities, including those in Indonesia . Medan is one of the largest cities in Indonesia with a high level of urbanization, resulting in a decline in green open space due to accelerated The presence of GOS plays a vital role in maintaining air quality, reducing pollution, and enhancing public comfort and health . Therefore, monitoring vegetation in urban areas has become an urgent necessity, both to support spatial planning policies and to align with the Sustainable Development Goals (SDG. , which emphasize the importance of sustainable cities . Conventional methods for monitoring green open spaces (GOS), such as field surveys, often require substantial costs and extended time . To address these limitations, the use of satellite imagery and digital mapping platforms such as DOI : https://doi. org/10. 25139/inform. Inform : Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi Vol. xx No. xx July 2020. P-ISSN : 2502-3470. E-ISSN : 2581-0367 always reported in detail. Meanwhile. YOLO-SegNet, based on YOLOv8 . achieved very high accuracy (IoU 92%) and handled complex backgrounds effectively . , but its twostage architecture made real-time implementation challenging. This study adopts YOLOv8 because it offers high inference speed and improved accuracy compared to its predecessors, enabling the detection of small objects, such as trees, in highresolution satellite imagery. In addition. YOLOv8 features an anchor-free architecture and advanced augmentation techniques, which enhance robustness against variations in object size, lighting, and complex urban backgrounds. The integration of YOLOv8 with the Google Maps API further enables practical interactive spatial visualization for vegetation distribution analysis and data-driven decisionmaking. Despite numerous studies employing various YOLO versions for vegetation monitoring, most remain applicationoriented with minimal methodological innovation. Previous works have rarely addressed the challenge of transforming pixel-level detection results into coordinate-based spatial Therefore, this research fills that gap by proposing a coupling framework between YOLOv8 detection and Google Maps API to bridge image-level recognition and spatial decision-making, offering both algorithmic enhancement and applied value. This study provides several significant contributions to the field of object detection and spatial analysis. The YOLOv8based tree detection system developed in this research achieved an mAP@0. 5 of 0. 938, indicating a substantial improvement in accuracy over previous models. The detection results were then integrated into Google Maps by converting bounding boxes into geographic coordinates, enabling interactive map-based monitoring. This approach also supports the planning of green open spaces (GOS) by providing accurate data for evidence-based policy-making. Furthermore, this study presents a framework that can be further developed into a real-time vegetation monitoring dashboard to enhance the effectiveness of urban environmental The technical characteristics of YOLOv8, such as its anchor-free architecture and adaptive feature aggregation, have been widely discussed in prior works. The researchers . confirm its robustness for satellite imageryAebased object detection. Based on the background outlined above, this study aims to develop an automated tree-detection system for Google Maps satellite imagery using the YOLOv8 algorithm. Specifically, this research aims to train an object detection model to accurately identify the presence of trees and integrate the detection results into a digital map using geographic coordinates to support spatial analysis and the monitoring of green open spaces. This approach was chosen because YOLOv8 supports direct integration with spatial data, enabling its application for automated monitoring of green open spaces. Satellite Image Acquisition Use Google Maps API: Technical parameters: Zoom level 19, image size: 640 y 640 px, scale: 2 Images obtained from 21 districts in Medan City . ased on Image Preprocessing Auto-orientation adjustment and resizing to 640 y 640 pixels Object Annotation Use Roboflow to label objects as AutreeAy Bounding boxes manually assigned in YOLOv8 format . mages, labels/) Dataset Augmentation Increase data diversity and reduce Applications: A Rotation: -45A to 45A A Horizontal and vertical flips A Addition of noise up to 0. Total dataset: 1,304 images . % for validatio. YOLOv8 Model Training Use Google Colab. Training A 100 epochs, batch size: 16 A Optimizer: Stochastic Gradient Descent (SGD) Output: best model . Model Evaluation Inference and Visualization Evaluation methods: A Confusion matrix, precision, recall A mAP@0. 5, mAP@0. Results: A Precision A Recall: 0. A mAP@0. 5: 0. Analyze spatial distribution of Applications for: A Urban planning A Green space monitoring A Data-driven policy making Fig. Flow of the YOLOv8 Method The data acquisition process, the flow of how the YOLOv8 method works for Urban Greening Monitoring, is illustrated in Fig. This workflow outlines each critical step, from image pre-processing to model training, evaluation, detection, and finally, spatial visualization. The flow provides a systematic overview that supports understanding of how YOLOv8 is operationalized in this study to accurately identify tree objects II. RESEARCH METHODOLOGY This study adopts a quantitative, experimental deep learning approach to detect tree objects in Google Maps satellite DOI : https://doi. org/10. 25139/inform. Inform : Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi Vol. xx No. xx July 2020. P-ISSN : 2502-3470. E-ISSN : 2581-0367 and translate detection results into actionable geospatial data. The study was conducted in Medan City, the capital of North Sumatra Province. Indonesia, one of the largest metropolitan areas outside Java Island. Medan consists of 21 administrative districts with varying topography, land use, and vegetation density. These diverse characteristics make the city an ideal case study for analyzing urban greening. The research focused on detecting trees in this urban environment using satellite imagery from the Google Maps API. Images were acquired using specific technical parameters, including a zoom level of 19, resolution of 640 y 640 pixels, and a scale factor of 2, ensuring high spatial resolution suitable for deep learning-based object detection. Image acquisition was strategically conducted at selected coordinate points to ensure comprehensive spatial coverage across the entire study area. validation, as shown in Table I. Label Tree TABLE I DATASET SPLIT Total Training Images . %) Validation . %) Table I presents the dataset split used in this study, comprising 1,304 satellite images, each annotated with a single object class: "tree". This exclusive focus on tree objects aligns with the study's goal of monitoring urban greening by accurately detecting vegetative elements in urban satellite The dataset was divided into two subsets: 80% . ,043 image. for training and 20% . for validation. This ratio follows common best practices in deep learning, allocating most of the data to model training to maximize learning performance, while reserving a smaller portion for evaluating the model's generalization to unseen data. The labelling process ensured that each image reliably represents the presence of tree objects, enabling the YOLOv8 model to learn distinct spatial and textural features associated with The total number of labelled instances is considered sufficient for a one-class object detection task, particularly in satellite imagery, where vegetation patterns may vary across geographic locations and environmental Moreover, the size and distribution of this dataset help reduce the risk of overfitting and support robust model training and validation across diverse spatial scenarios found in Medan City. Dataset Collection The data collection process in this study used the Google Maps API to obtain satellite imagery of the Medan City area. Data acquisition focused on 21 districts representing geographic and vegetation diversity, including densely populated areas, suburban zones, and green open spaces (GOS) such as city parks, green corridors, and urban forests. The retrieved images had a resolution of 640 y 640 pixels to ensure object details were preserved for labelling and model In total, 1,304 images were successfully collected. example of the satellite imagery used in this study is presented in Fig. Image Annotation The image annotation stage was carried out after the dataset collection process was completed. Satellite images from Google Maps were annotated in the Roboflow platform to detect trees. Each tree in the image was assigned a bounding box and labelled as "tree. " This annotation process was performed manually to produce highly accurate labelled data, aligning with the research objective of mapping vegetation presence in urban areas. An example of the satellite imagery used in this stage is shown in Fig. Fig. Example of Satellite Imagery Fig. Example of an Annotated Satellite Image . Dataset Upload: The dataset was uploaded to the Roboflow platform before the annotation process. This step enabled resolution adjustment, file format configuration, and The collected dataset was then split into two main subsets: training and validation. This split was carried out proportionally, with 80% allocated for training and 20% for DOI : https://doi. org/10. 25139/inform. Inform : Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi Vol. xx No. xx July 2020. P-ISSN : 2502-3470. E-ISSN : 2581-0367 annotation setup, ensuring that dataset management was more structured and supported more efficient object detection. The resulting dataset consisted of 1,304 images, split into 80% for the training set and 20% for the validation set. increase data variability and reduce the risk of overfitting, an augmentation process was applied, including rotations ranging from -45A to 45A, horizontal and vertical flips, and the addition of noise up to 0. These augmentation techniques aimed to expand the visual variability of trees, thereby enhancing the model's robustness to different conditions. The model was trained on Google Colaboratory using a dataset formatted for the YOLOv8 architecture. The training configuration included 50 epochs, a batch size of 16, and an optimizer based on Stochastic Gradient Descent (SGD), chosen for its stability and smooth convergence during Upon completion of training, the system generated the best weight file . , representing the model with optimal performance. Model evaluation was conducted using a confusion matrix and evaluation metrics, including precision, recall, and mean Average Precision . AP) at IoU thresholds of 0. 5 and 0. 5Ae0. The evaluation results demonstrated excellent performance, with a precision score of 0. 864, a recall of 0. 788, and mAP@0. 5 reaching 0. After training, the model was used to perform inference on test images to detect trees. Each detection result was then converted into geographic coordinates . atitude and longitud. and visualized on an interactive map using the Google Maps JavaScript API. This visualization displays the distribution of trees as green markers, which can be utilized for spatial analysis, support urban spatial planning, and enable continuous monitoring of green open spaces. Dataset Class Creation: Object classes were created to facilitate the classification of a dataset annotated with bounding boxes. At this stage. Roboflow automatically grouped the data into predefined categories, ensuring a more systematic workflow for model training. Labelling Process: Each object in the image was annotated with a bounding box to indicate the tree's position. Once the bounding box was set, the Roboflow system displayed the category label according to the predefined class. This labelling process is illustrated in Fig. 4, which shows how bounding boxes were manually applied to maintain data Fig. Labelling Process Using Roboflow . Dataset Splitting: After labelling was completed, the dataset of 434 original images was split into two subsets: 80% for training . and 20% for validation . This process was performed automatically by Roboflow. To enhance data diversity and prevent overfitting, data augmentation was applied to the training set. The augmentation techniques used included horizontal and vertical flips, rotations between -45A and 45A, and the addition of 0. 1% noise. The purpose of augmentation was to enable the model to recognize trees under various visual conditions and orientations. Before augmentation was applied, all images underwent a preprocessing stage, which included auto-orientation adjustment and resizing to 640 y 640 pixels, in accordance with the YOLOv8 input format. This process is illustrated in Table II. RESULT AND DISCUSSION Training After pre-processing and augmentation, the dataset was exported in a format compatible with the YOLOv8 architecture for model training. The dataset was organized into a folder structure with train and valid directories, each containing subfolders for images and labels. The images folder stored the image files, while the labels folder contained text files with bounding box information and class labels. In addition, a yaml file served as the main configuration file, specifying the dataset paths, the number of classes, and the class names. This structure was designed to ensure compatibility with the model training process in Google Colaboratory (Google Cola. TABLE II PRE-PROCESSING DAN AUGMENTASI DATA Pre-processing Auto-Orient: Applied Resize: Stretch to 640x640 Augmentations Outputs per training example: 3 Flip: Horizontal, vertical Rotation: Between -45A and 45A Noise: Up to 0,1% of pixels . Exporting the Dataset from Roboflow: The annotated dataset was exported from Roboflow in YOLOv8 format, allowing it to be used directly in Google Colab. This process ensured that all files were organized correctly in accordance with the model architecture's requirements. Model Training in Google Colab: The model training was conducted on the Google Colaboratory platform using the exported dataset. The dataset files were uploaded manually and utilized to train the YOLOv8 model. The training configuration leveraged the previously structured dataset, which facilitated Before training, the acquired images underwent a preprocessing stage that included auto-orientation adjustment and resizing to 640 y 640 pixels to ensure uniformity of the model's Subsequently, an annotation process was carried out using the Roboflow platform, during which each tree was assigned a bounding box and labelled as "tree. " Annotation was performed manually to maintain high label accuracy. The dataset was then exported to the YOLOv8 format, including image and label directories. yaml configuration file. DOI : https://doi. org/10. 25139/inform. Inform : Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi Vol. xx No. xx July 2020. P-ISSN : 2502-3470. E-ISSN : 2581-0367 model implementation. A sample code snippet used for the training process is presented in Code 1. extension, named best. pt, which represents the model parameters with the best performance during training. This trained model was then used for inference on new images and for object detection testing in the subsequent evaluation stage. Code 1. Model Evaluation: The performance of the YOLOv8 model in detecting trees in Google Maps satellite imagery was evaluated using a confusion matrix and several evaluation metric curves (Fig. The confusion matrix was employed to compare the model's predictions against the ground truth across two classes: "tree" and "background. " Based on the analysis, the results were as follows: True Positives (TP) 15,963 tree objects correctly detected. False Positives (FP) 1,356 background objects incorrectly classified as trees. and False Negatives (FN) 1,945 tree objects not detected. These findings indicate that the model achieved approximately 92% precision and 89% recall, demonstrating strong detection performance. Although the false-positive rate was low, the 16% falsenegative rate suggests that further improvements are needed to ensure the model detects all tree instances. These results are visualized in a normalized confusion matrix, which shows that 84% of tree objects were correctly classified, while the background class was identified with near-perfect accuracy. from ultralytics import YOLO model = YOLO(Auyolov8n. "/content/drive/MyDrive/tree. yolov8/da epochs=50, imgsz=640, batch=16, name=Augreen_mapping_yoloAy, project=Autraining_resultsAy, exist_ok=True The training results indicate that the model achieved an accuracy of 93. This value was obtained after training with 80% of the data for training and 20% for validation. The training process proceeded stably without signs of overfitting, as evidenced by a consistent decrease in loss and an improvement in accuracy metrics. Upon completion of the training, the system generated a model weight file with a . Fig. Model Performance The F1-Confidence curve illustrates the relationship between the confidence threshold and the F1-score. Based on the analysis, the optimal F1-score of 0. 90 was achieved at a confidence threshold of 0. 335, indicating the best balance between precision and recall. Increasing the threshold beyond this point led to a significant decline in recall, as the model became overly selective, whereas lowering the threshold led to an increase in false positives. DOI : https://doi. org/10. 25139/inform. Inform : Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi Vol. xx No. xx July 2020. P-ISSN : 2502-3470. E-ISSN : 2581-0367 The PrecisionAeRecall curve shows that precision remained 85 even as recall exceeded 0. 7, indicating that the model maintained high accuracy despite broad detection The mAP@0. 5 score of 0. 938 demonstrates the model's ability to accurately detect the majority of tree objects at an IoU threshold of 50%, without compromising classification precision. The Precision-Confidence curve illustrates the relationship between confidence values and precision. Precision increases as the confidence threshold rises, reaching 100% at 0. However, this is accompanied by a sharp decline in recall, indicating that while the accepted results are highly accurate, the detection coverage becomes limited. Conversely, the RecallAeConfidence curve shows that the highest recall . was achieved at a threshold of 0. 0, but a high number of false positives accompanied it. Once the threshold surpassed 0. 6, recall dropped sharply, indicating a trade-off between detection coverage and accuracy. Based on all evaluation curves, the model's best performance occurred at low to medium thresholds, where a balance between precision and recall could be maintained. Overall, the YOLOv8 model demonstrated reliable detection performance, achieving a precision of 0. 864, a recall of 0. 788, mAP@0. 5 of 0. 938, and mAP@0. 5Ae0. 95 of 0. The training curves also exhibited positive trends, characterized by consistent decreases in box loss, classification loss . ls los. , and distribution focal loss . fl los. , along with steady improvements in both precision and recall. With 84% of tree objects correctly detected and a very low false-positive rate, the model is highly effective for tree detection, though further refinement is needed to reduce missed objects. Most bounding boxes are concentrated in the smaller size range, which aligns with the typical appearance of trees in satellite imagery. This condition supports the model's effectiveness in detecting small-sized objects with wide spatial Fig. Bounding Box Data Distribution Analysis of Data Distribution and Spatial Dispersion The analysis of data distribution and spatial dispersion was conducted to evaluate both the dataset's quality and the model's performance in detecting tree objects in satellite imagery. Fig. shows the distribution of bounding box centre points, evenly spread along the x and y axes within the normalized range 0 to This uniform dispersion indicates that the model does not exhibit bias toward any specific location when detecting In addition, the histogram of bounding box sizes shows that most objects are small, with sizes less than 0. 2 in the normalized scale, consistent with the visual characteristics of trees in high-resolution satellite imagery. The strong correlation between the width and height of bounding boxes also reflects the consistent shape of the trees recognized by the model, suggesting that the detection process is scale- and The distribution of the "tree" label in the dataset is visualized in Fig. 7, which presents a density map . The tree objects appear evenly distributed across the entire image, with no excessive concentration in any specific location, indicating that the dataset does not exhibit spatial bias. The total number of label instances exceeds 60,000, demonstrating that the dataset is both abundant and representative for training the Fig. Tree Label Density Map The model's training performance is illustrated in Fig. which shows the training and validation curves over 50 epochs. These curves clearly exhibit a consistent and positive trend throughout the training process. Specifically, all loss componentsAibox loss, classification loss . , and distribution focal loss . Aishowed a steady, simultaneous decrease across both the training and validation datasets. This simultaneous reduction indicates that the model was learning effectively without overfitting, as performance improved DOI : https://doi. org/10. 25139/inform. Inform : Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi Vol. xx No. xx July 2020. P-ISSN : 2502-3470. E-ISSN : 2581-0367 across both data subsets rather than just the training set. parallel with the decreasing loss, the model's evaluation metrics increased notably. Precision increased significantly from 60 in the early stages of training to 0. 90 by the final epochs, reflecting the model's improved ability to identify tree objects correctly. Similarly, recall rose from 0. 60 to 0. indicating a higher rate of correctly detected tree instances. Furthermore, the mean average precision at IoU threshold 0. AP@. improved markedly from 0. 60 to 0. 94, while the more stringent metric, mAP@50 95, increased from 0. 25 to These results collectively demonstrate substantial improvements in the model's detection accuracy and generalization throughout training. Fig. Model Training Performance Curves Fig. 8 presents the YOLOv8 model training curves over 50 epochs, illustrating changes in metric values and loss for both the training and validation datasets. The graph contains ten curves representing: . Box Loss (Trai. , . Classification Loss (Trai. , . Distribution Focal Loss (Trai. , . Box Loss (Validatio. , . Classification Loss (Validatio. , . DFL Loss (Validatio. , . Precision, . Recall, . mAP@0. 5, and . mAP@0. 5Ae0. The blue line on each curve indicates the actual values for each epoch, while the orange line represents the smoothed trend. The X-axis shows the number of epochs . , and the Y-axis shows the corresponding metric values. The training results of the YOLOv8 model, shown in Fig. demonstrate a consistent decrease in loss and improvement in performance metrics over the 50 training epochs. The box loss steadily decreased from approximately 1. 8 at the beginning to 4 at the end of training on both the training and validation sets, indicating increased accuracy in placing bounding boxes close to ground truth. Classification loss . ls los. also showed a significant reduction from around 1. 8 to 0. 6, reflecting the model's improved ability to classify objects into the "tree" class Distribution focal loss (DFL) decreased from 1. 3 to 14, suggesting stability in the model's bounding-box distribution predictions. From the perspective of detection performance, the precision curve rose from 0. 77 to nearly 0. 90, stabilizing after epoch 30, indicating a low false-positive rate. The recall curve also increased significantly from 0. 76 to nearly 0. 90, meaning that most tree objects were successfully detected. In terms of accuracy metrics, mAP@0. 5 reached 0. 94, indicating very high detection accuracy at an IoU threshold of 50%, while mAP@0. 5Ae0. 95 stabilized at 0. 56, demonstrating that the model maintained good performance even at stricter IoU Overall, these results suggest that the model's high precision . makes it reliable for monitoring applications by minimizing false detections, while its near-0. 90 recall ensures comprehensive tree detection. A high mAP@0. 5 value . confirms excellent detection accuracy, supporting spatial analysis based on Google Maps. These findings confirm that integrating the YOLOv8 algorithm with Google Maps imagery is highly effective for detecting and mapping trees in urban areas. The model demonstrated robustness even under challenging conditions, including variable lighting, varying vegetation density, and complex image backgrounds. The detection results can be used to accurately distribute green space analysis, which is critical for urban planning and environmental conservation. Additionally, this approach opens opportunities for further development, such as tree species classification or periodic vegetation monitoring to support data-driven environmental Testing Before conducting the analysis, the geographic coordinates of the target area were determined in Google Maps to ensure spatial accuracy and relevance. These coordinates served as the reference points for image retrieval, enabling precise alignment between the detection results and real-world locations. Based DOI : https://doi. org/10. 25139/inform. Inform : Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi Vol. xx No. xx July 2020. P-ISSN : 2502-3470. E-ISSN : 2581-0367 on predefined coordinates, map imagery was systematically retrieved via the Google Maps API, using specific technical settings to ensure data quality and usability. The selected configuration included a zoom level of 19, an image resolution of 640 y 640 pixels, and a scale factor of 2. This setup was deliberately chosen to obtain high-resolution images capable of capturing fine-grained visual details necessary for accurate object detection, particularly for identifying vegetation such as All retrieved images were stored in the designated directory/content/drive/MyDrive/test, serving as the image dataset for the subsequent analysis phase, which involved tree detection using the trained YOLOv8 model. The result of this image retrieval process, based on the geographic coordinates . 610622, 98. , is illustrated in Fig. 9, which presents a high-resolution visual representation of the test area that complies with the conFig. d parameters and supports the accuracy of spatial analysis in the study. This image also serves as a reference for evaluating the model's detection performance in real-world conditions. The clarity and scale of the imagery ensure that individual tree crowns can be identified, which is critical for validating detection outcomes. box, indicating the model's success in classifying the object as the target class. Fig. Example of Image Before and After Detection The real-time detection process using the trained model is illustrated below. This process demonstrates how the model operates, using the optimized training weights to generate object predictions for new images. Thus, this test confirms that the model can accurately detect trees in high-resolution satellite imagery obtained via the Google Maps API using Code 2. Code 2. YOLO(Au/content/drive/MyDrive/training_results/green_ mapping_yolo/weights/best. source=image_dir, # folder berisi gambar save=True, # simpan gambar hasil conf=0. # confidence threshold save_txt=True, # simpan hasil deteksi imgsz=640 # ukuran input YOLO print(AuDeteksi selesai. Hasil disimpan di Aoruns/detect/AoA. Integration with Google Maps The technical workflow for integrating object detection with spatial visualization involves several key stages. The first stage is object detection using the YOLOv8 model, which produces bounding boxes in the normalized format . _center, y_center, width, heigh. relative to the image dimensions. These detection results are stored in . txt files for each image, following the standard YOLO data storage format. The second stage involves converting the bounding boxes into geographic coordinates. Since the detection output is pixelbased, a transformation to geographic coordinate systems is required to map the results to real-world locations. This process uses the Web Mercator projection, which takes the image centre coordinates . enter_lat, center_lo. from the Google Maps API, the image dimensions . , 1280 y 1280 pixel. , and the map zoom level . , . The conversion formula used is Code Fig. Map Imagery Results Based on Coordinates After the map imagery was obtained, the next step involved detecting tree objects using the YOLO version 8 (YOLOv. This model used the best weight file . obtained during the previous training process. The detection process was conducted to identify the presence of trees in the image, based on the class defined during training. The detection results served as the basis for vegetation distribution analysis in the test area. An example of the detection results is shown in Fig. which compares the image before and after detection. In the detection output, each identified tree is marked with a bounding Code 3. lat = bounds[AonorthA. - . _px / img_. * lat_range DOI : https://doi. org/10. 25139/inform. Inform : Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi Vol. xx No. xx July 2020. P-ISSN : 2502-3470. E-ISSN : 2581-0367 lon = bounds[AowestA. _px / img_. * lon_range technical perspective, the mapping can be extended into a heatmap layer using the Google Maps API to provide a more intuitive visualization of vegetation density. While the conversion results are presented in a JSON array format, as illustrated in Code 4. Code 4. { AulatAy: 3. AulngAy: 98. 648552 }, { AulatAy: 3. AulngAy: 98. The third stage is visualizing the converted results on Google Maps using the Google Maps JavaScript API. Each converted coordinate is displayed as a marker on an interactive satellite map, as implemented in the core code shown below. Green markers indicate the positions of trees successfully detected by the model using Code 5. Code 5. const map = Map. getElementById(AumapA. , { zoom: 22, center: { lat: 3. 610622, lng: 98. 648552 }, mapTypeId: AosatelliteAo }). forEach. => { new google. Marker({ position: p, map: map, icon: { "https://maps. com/mapfiles/kml/pal2/icon12. scaledSize: new google. Size. , . }). }). Fig. Visualization of Tree Detection Results Converted to Geographic Coordinates Displayed on Google Maps The system also supports periodic monitoring of vegetation changes by detecting differences across time intervals, which is beneficial for tracking vegetation degradation or growth. Moreover, the detected coordinate data can be exported in GeoJSON or CSV format for further analysis using Geographic Information Systems (GIS) platforms such as QGIS or ArcGIS. Future development may focus on building an interactive dashboard with area- or distance-based filters, integrating realtime monitoring via automated data update pipelines, and conducting sustainability analysis by combining spatial data with environmental indicators to evaluate the contribution of green open spaces to achieving the Sustainable Development Goals (SDG. The results of this study, which show strong detection performance of the YOLOv8 model when applied to Google Maps satellite imagery, are consistent with, yet distinct from, findings in several related studies. For instance, a study on orchard-tree detection across multiple observation dates found that YOLOv3 performed poorly. At the same time. Mask RCNN and the Segment Anything Model (SAM) achieved higher precision, recall, and F1 scores. All models, including YOLO, struggled during early-season or hazy conditions, suggesting that standard YOLO architectures may be sensitive to seasonal and atmospheric variations, potentially leading to incomplete or noisy detection results when applied to real-world mapping . Similarly, research based on the VHRTrees dataset reported that model performance varied considerably across geographic regions due to differences in canopy heterogeneity and image resolution. A model trained in one area often failed The fourth stage involves enabling map interactivity, including zooming and panning, so users can enlarge the map view and navigate to different areas. The green markers play a key role in providing a clear visualization of tree distribution within the analyzed region. This integration offers several benefits for spatial analysis, including facilitating the identification of areas with low Green Open Space (GOS) coverage to support urban greening plans, enabling the incorporation of population density data to prioritize green space development, and providing a foundation for a real-time vegetation monitoring dashboard. The integration of tree detection results with the Google Maps JavaScript API produced an interactive map (Fig. that visualizes vegetation distribution in the Medan City area, with each green marker representing the geographic coordinates of trees detected by the YOLOv8 model. This visualization offers added value over image outputs with bounding boxes, as it enables coordinate-based spatial analysis to support urban spatial planning. In addition, the map facilitates the identification of areas with low tree density, allowing greening interventions to be prioritized. It can also be integrated with supplementary data such as population density or air pollution levels to support evidence-based policy-making. From a DOI : https://doi. org/10. 25139/inform. Inform : Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi Vol. xx No. xx July 2020. P-ISSN : 2502-3470. E-ISSN : 2581-0367 to generalize well to other regions without additional finetuning, indicating that although the YOLOv8 model performed effectively in Medan City, its transferability to other regions should be validated before large-scale deployment . In a comparative analysis, it was observed that YOLO-based counting models tend to overestimate object counts relative to other detection methods, leading to a higher false-positive rate, particularly when canopies are dense or backgrounds are This implies that, when integrated into Google Maps for tree-count visualization. YOLO-based detection could overrepresent the actual number of trees relative to ground truth . Further studies have emphasized that YOLO's baseline variants often struggle with small-object detection unless enhanced through techniques such as image tiling. SAHI (Slicing Aided Hyper Inferenc. , negative sampling, or model variants like BiFPN-YOLOv8m or YOLOv8-MFD. These improvements help mitigate background complexity and scale variation issues. Without such enhancements. YOLO's detection quality was found to be unsatisfactory, suggesting that the success of this study's YOLOv8 implementation may be partly due to pre-processing and model optimization strategies . Finally, comparative analyses between YOLOv8 and segmentation-based approaches, such as DeepForest, demonstrated that YOLOv8 was superior in speed and bounding-box localization but inferior in fine-grained crown delineation and attribute identification. Consequently, while this study's marker-based visualization on Google Maps helps map tree locations, it may not fully capture canopy boundaries or biophysical parameters that segmentation methods can . Overall, these findings highlight both the strengths and limitations of YOLO-based tree detection: its robustness for fast, large-scale spatial monitoring, but reduced accuracy under varying illumination, complex backgrounds, and fine-scale canopy differentiation. Future research should therefore explore hybrid approaches combining YOLO detection with segmentation or multispectral analysis to achieve more comprehensive environmental assessments. confirmed an even spread and a predominance of small objects, consistent with the typical characteristics of vegetation in satellite imagery. These findings highlight the model's effectiveness in detecting small tree objects under varying lighting conditions and vegetation densities. The testing phase conducted on new satellite images demonstrated the model's real-time detection capability with high accuracy. Detected tree locations were successfully converted to geographic coordinates . atitude and longitud. and visualized using the Google Maps JavaScript API. This interactive spatial analysis enables more precise interpretation of vegetation distribution throughout Medan City and offers valuable support for evidence-based decision-making in urban spatial planning and environmental management. REFERENCES