Leveraging machine learning techniques for image classification and revealing social media insights into human engagement with urban wild spaces

Abstract In recent years, machine learning models have exhibited excellent performance and far-reaching impact across domains such as fraud detection in finance, recommendation systems in e-commerce, medical imaging in healthcare, agricultural forecasting, social engagement, image classification, se...

Full description

Saved in:
Bibliographic Details
Main Authors: Haider Khalid, Marcus J. Collier
Format: Article
Language:English
Published: Nature Portfolio 2025-07-01
Series:Scientific Reports
Subjects:
Online Access:https://doi.org/10.1038/s41598-025-06731-1
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1849766953747480576
author Haider Khalid
Marcus J. Collier
author_facet Haider Khalid
Marcus J. Collier
author_sort Haider Khalid
collection DOAJ
description Abstract In recent years, machine learning models have exhibited excellent performance and far-reaching impact across domains such as fraud detection in finance, recommendation systems in e-commerce, medical imaging in healthcare, agricultural forecasting, social engagement, image classification, sentiment analysis in social media network analysis. This research explores how advanced machine learning techniques, leveraging social media data for image classification, can be used to gain deeper insights into public engagement with urban wild spaces. The study follows a two-step methodology: first, scraping image data from Instagram, Facebook, and Flickr using hashtag-based techniques focused on urban wild spaces; second, developing an experimental pipeline using Convolutional Neural Networks (CNN), Density-Based Spatial Clustering of Applications with Noise (DBSCAN), and Convolutional Autoencoders (CAE) to classify and evaluate the scrapped social media data. Evaluation was based on precision, recall, F-measure, and accuracy metrics. Across all three platforms, CAE consistently outperformed CNN and DBSCAN, achieving peak accuracies of 74.8% on Flickr, 70.4% on Instagram, and 62.9% on Facebook, along with balanced F-measures and high recall. CNN showed the highest precision, reaching 98.4% on Flickr, while DBSCAN provided moderate results. These findings show that machine learning effectively filters noisy data and reveals how people engage with urban wild spaces, offering valuable insights for urban planning and ecology.
format Article
id doaj-art-78653f75ac5d407a99a795a93d3fc522
institution DOAJ
issn 2045-2322
language English
publishDate 2025-07-01
publisher Nature Portfolio
record_format Article
series Scientific Reports
spelling doaj-art-78653f75ac5d407a99a795a93d3fc5222025-08-20T03:04:25ZengNature PortfolioScientific Reports2045-23222025-07-0115111810.1038/s41598-025-06731-1Leveraging machine learning techniques for image classification and revealing social media insights into human engagement with urban wild spacesHaider Khalid0Marcus J. Collier1School of Computer Science and Statistics, ADAPT Research Centre, Trinity College DublinSchool of Natural Sciences, Trinity College DublinAbstract In recent years, machine learning models have exhibited excellent performance and far-reaching impact across domains such as fraud detection in finance, recommendation systems in e-commerce, medical imaging in healthcare, agricultural forecasting, social engagement, image classification, sentiment analysis in social media network analysis. This research explores how advanced machine learning techniques, leveraging social media data for image classification, can be used to gain deeper insights into public engagement with urban wild spaces. The study follows a two-step methodology: first, scraping image data from Instagram, Facebook, and Flickr using hashtag-based techniques focused on urban wild spaces; second, developing an experimental pipeline using Convolutional Neural Networks (CNN), Density-Based Spatial Clustering of Applications with Noise (DBSCAN), and Convolutional Autoencoders (CAE) to classify and evaluate the scrapped social media data. Evaluation was based on precision, recall, F-measure, and accuracy metrics. Across all three platforms, CAE consistently outperformed CNN and DBSCAN, achieving peak accuracies of 74.8% on Flickr, 70.4% on Instagram, and 62.9% on Facebook, along with balanced F-measures and high recall. CNN showed the highest precision, reaching 98.4% on Flickr, while DBSCAN provided moderate results. These findings show that machine learning effectively filters noisy data and reveals how people engage with urban wild spaces, offering valuable insights for urban planning and ecology.https://doi.org/10.1038/s41598-025-06731-1UrbanWildSpacesImage classificationHuman engagementSocial media analysisData scraping
spellingShingle Haider Khalid
Marcus J. Collier
Leveraging machine learning techniques for image classification and revealing social media insights into human engagement with urban wild spaces
Scientific Reports
UrbanWildSpaces
Image classification
Human engagement
Social media analysis
Data scraping
title Leveraging machine learning techniques for image classification and revealing social media insights into human engagement with urban wild spaces
title_full Leveraging machine learning techniques for image classification and revealing social media insights into human engagement with urban wild spaces
title_fullStr Leveraging machine learning techniques for image classification and revealing social media insights into human engagement with urban wild spaces
title_full_unstemmed Leveraging machine learning techniques for image classification and revealing social media insights into human engagement with urban wild spaces
title_short Leveraging machine learning techniques for image classification and revealing social media insights into human engagement with urban wild spaces
title_sort leveraging machine learning techniques for image classification and revealing social media insights into human engagement with urban wild spaces
topic UrbanWildSpaces
Image classification
Human engagement
Social media analysis
Data scraping
url https://doi.org/10.1038/s41598-025-06731-1
work_keys_str_mv AT haiderkhalid leveragingmachinelearningtechniquesforimageclassificationandrevealingsocialmediainsightsintohumanengagementwithurbanwildspaces
AT marcusjcollier leveragingmachinelearningtechniquesforimageclassificationandrevealingsocialmediainsightsintohumanengagementwithurbanwildspaces