Questions tagged [random-forest]

An ensemble classifier that consists of many decision trees and outputs the class that is the mode of the classes output by individual trees

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Land cover classification using Google Earth Engine, and involving SAVI and EVI indices

I'm trying to do a land cover classification using Landsat-8 OLI/TIRS. However, I want to involve indexes (SAVI, and EVI) in this classification process. I don't know how to solve this problem. Is ...
user avatar
0 votes
1 answer
21 views

How to add the bands value from CSV file to Image Collection for Classification

I am currently working with GEDI data and Random Forest Classification in Google Earth Engine. I have a csv file which contains 42 bands and about 3600 points. My aim is to import this csv into GEE ...
user avatar
0 votes
1 answer
51 views

Error in random forest regression (Output of image computation is too large (25 bands for 903440 pixels = 106.8 MiB > 80.0 MiB)

I am working with the GEDI dataset and Sentinel-2 spectral indices (about 20-40 bands). My aim is to use the Random Forest Regression to generate a map containing the information on Relative Height (...
user avatar
1 vote
0 answers
51 views

How to applying random forest regression model to time-series data?

I want to downscale time-series imagery data using temporal and static remote sensing products using Google Earth Engine (GEE) Random Forest Regression. Typically the code would be something like: // ...
user avatar
1 vote
0 answers
32 views

Generate topographical index from a digital surface model (DSM) to generate a flood susceptibility map [closed]

I'm performing a random forest model to generate a flood susceptibility map, I have LiDAR data from the study area where I generated Digital Surface Model (DSM) and Digital Terrain Model (DTM) raster ...
user avatar
  • 11
2 votes
0 answers
26 views

Using images from different Landsat missions and Sentinel-2 for machine learning

I am doing some image segmentation using random forests on satellite imagery. The events I am trying to detect are somewhat rare so my training sets are very limited if I want to use Sentinel-2 ...
user avatar
0 votes
0 answers
10 views

QGIS - Randomisation and multiplication of a polygon with CLC files

I am using QGIS 3.22 and the Corine CLC vector files for years 2006, 2012 and 2018. I Want to generate a polygon with a random shape, which would be exactly the same size of the polygon circled in red....
user avatar
  • 399
1 vote
1 answer
45 views

Problems putting transformed predictions from Random Forest back into raster format in R

The problem comes when I try to put the values back into raster format to plot. Here is the code: Rstack <- Rstack[[name]] # match names in raster stack to same order as model ...
user avatar
  • 23
0 votes
0 answers
66 views

Variable importance for Random Forest classification in GEE

I performed RF classification in GEE and calculated variable importance with two various scripts successfully. The first script is: var dict = classifier01.explain(); print('Explain 1:',dict); var ...
user avatar
  • 451
0 votes
0 answers
112 views

Random forest regression in Google Earth Engine

I want to predict continuous response variable using random forest regression in Google Earth Engine (GEE), but I can't find it, at least in docs. Are there any known sources (e.g., internal and ...
user avatar
  • 171
1 vote
1 answer
117 views

Error in random forest classification for the GEDI datasets in GEE

I am a beginner in GEE. I am trying to do the random forest classification for the GEDI datasets (rh13 and rh99) in Google Earth Engine. I want to do the classification of each point of the GEDI ...
user avatar
0 votes
0 answers
53 views

Iterating classifier over an Image collection in GEE

we are trying to run the random forest classifier for multiple images in an image collection. Please let us know how to do this. we have tried the following, but we are getting this error. var ...
user avatar
0 votes
0 answers
12 views

ModelMap error insists that my rasters are in different datums and projections but in ArcGIS Pro they are the same

I am using randomforest in the modelmap package to create a map output. I create a model with no issues, but when I use the model.mapmake() function, I get the following error message "predictor ...
user avatar
0 votes
1 answer
465 views

Cannot coerce class to a data.frame

I'm using R to run a random forest to predict the distribution of sediment classes in a study area. I have a .csv of the locations where sediment has been sampled, and rasters of all my predictor ...
user avatar
  • 3
2 votes
1 answer
116 views

Google Earth Engine Classification with high-res. NAIP-Orthofotos

i try to perform a supervised classification with Google Earth Engine based on NAIP: National Agriculture Imaginary Progamm orthofotos. These images have a resolution of 1m in 4 Bands (R,G,B,N). I am ...
user avatar
  • 25
1 vote
0 answers
26 views

Identifying missclassified pixels in random forest classifier python sklearn

I have a dataframe that contains 10 predictors (PCA from Landsat Data). The data is loaded as pandas dataframe and it contains in addition to predictors, also x_coor and y_coor information for every ...
user avatar
1 vote
0 answers
26 views

landsat C2L2 random forest classification

I want to apply random forest classification on landsat C2L2 data. I found code for Landsat Top of Atmosphere (TOA) collection but i think its better to use C2L2 colection (i will be so glad if any ...
user avatar
  • 97
2 votes
0 answers
103 views

Random forest for Landsat 8 in Google Earth Engine JavaScript API

I want to apply and examine random forest classification results on landsat 8 image collection in Google Earth Engine (as modified from the origin code in Earth Engine Tutorials) Accordingly I ...
user avatar
  • 97
0 votes
1 answer
20 views

Tracing back single class sample sizes of a random forest classification model (.pkl-file) [QGIS 3.16 - EnMAP Box - RFC]

A couple of weeks ago, I created some prediction models with the EnMAP Box Classification Workflow. In some of the models I reduced the sample size for some classes as shown in the image below. Here, ...
user avatar
  • 427
0 votes
1 answer
76 views

Export band value range of one landcover class after Random forest classification

I have classified my study area into six landcover classes (water, urban, barrenland,plantation, nonmangroves forests and mangroves) using Random Forest. I used six bands for classification (red, blue,...
user avatar
2 votes
1 answer
248 views

Using RandomForest for land use classification in Google Earth Engine: Training accuracy shows error

I am using RandomForest classification for my LULCC study. I have been successful in running the classification including getting the "validation accuracy" as 0.87. However, my "...
user avatar
0 votes
0 answers
23 views

Is there any way to use RF classifier used in one code into a new code in GEE?

I am using Random Forest to classify land use change across time. For this, I am using multiple sensors such as Landsat 8, Landsat 7 and Landsat 5. So far, I have classified my LULCC for 2020 using ...
user avatar
0 votes
0 answers
68 views

Evaluating Random Forest classification accuracy in Google Earth Engine

I am trying to check the efficiency of my RandomForest classification using the code below. The validation overall accuracy should be a percentage, but I am getting a value as 1. Would anyone help me ...
user avatar
2 votes
1 answer
106 views

How to add a randomColumn to a Feature Collection while maintaining strata in Google Earth Engine?

I am creating training and test data for a Random Forest model using Google Earth Engine (Python API). I have used stratifiedSample() to create a Feature Collection of sample points within my training ...
user avatar
  • 7,271
-1 votes
1 answer
48 views

How to perform Statified random sampling for supervised classification

I want to select my training points using stratified sampling. When I run the code, there is an error saying "unrecognized argument". Can someone look at my code and help me find the issue ...
user avatar
1 vote
0 answers
54 views

QGIS Semi-Automatic Classification Plugin Error

I loaded the SCP (Semi-Automatic Classification Plugin) in the QGIS. I want to perform Random Forest Classfication operation with using SCP. However, the following errors raising; I don't know how to ...
user avatar
  • 113
0 votes
0 answers
70 views

Utilize Earth Engine's SMILE Random Forest Algorithm locally

I am currently trying to train a Random Forest classifier on Collect Earth Online data to predict certain landcover classifications based on R, G, B, and NIR bands from Sentinel 2 (Google Earth Engine)...
user avatar
0 votes
1 answer
108 views

Adding property in random points using Google Earth Engine

I am trying to do Random Forest in Google Earth Engine. I generate landslide class and non-landslide class in a region var landslide = ee.FeatureCollection.randomPoints(Iburi, 500) var nonlandslide = ...
user avatar
0 votes
1 answer
72 views

Getting forest area (km2) of a region after the classification by RF considering the >10% tree cover and 0.5Ha?

I am trying to make a yearly image collection using Landsat images, then trying to make a classification using Random forest for the image of the years 1990, 1995, 2000, 2005, 2010, 2015 and 2020. I ...
user avatar
  • 11
0 votes
1 answer
46 views

Seeking Random Forest R Code for Temporal Datasets [closed]

I have images from 4 different years and field datasets that correspond for each year. Is there an R Code for Random Forest that will give me a classification map based on the 4 images and their ...
user avatar
  • 369
1 vote
0 answers
86 views

How to compare the results of the random forest algorithm with the other SDMs?

I'm using the random forests algorithm in species distribution context. I have presence-absence as a dependent variable, so I decided to work with classification. At this point, I recovered the ...
user avatar
1 vote
0 answers
212 views

"User memory limit exceeded" during Random Forest classification in GEE

I succeeded in an initial attempt at using Random Forest classification on my input image (an exported mosaic covering ~ 2,797 km2). I used 30 trees, classified based on 4 bands, and passed a training ...
user avatar
4 votes
2 answers
221 views

"User memory limit exceeded" using Random Forest classification

I am trying to classify using randomForest classification in GEE . However, I always get the error User memory limit exceeded, so I assume the number of the feature are too large. Nevertheless, I saw ...
user avatar
1 vote
0 answers
26 views

What Explained Variance is good to proceed with Predictive Soil Mapping?

I have 1851 soil samples data on pH covering a study area of 7482sq.km in northern Ghana and I am using 52 environmental long-term average variables (Relief, Climate, MODIS Reflectances and derived ...
user avatar
1 vote
0 answers
203 views

Training Random Forest using more than 5,000 samples

I'm estimating forest biomass using Random Forest regression at a large scale. I want to train the Random Forest model using as many samples as possible (~100,000 samples), but it seems the Google ...
user avatar
  • 11
0 votes
1 answer
482 views

Normalising image bands in google earth engine before classification [closed]

I have an image that has four bands. Three of them are derived from Sentinel-2 to give NDVI, NDBI and SAVI. The fourth band is derived from a Sentinel 1 SAR image collection. The Sentinel 2 bands have ...
user avatar
  • 225
0 votes
1 answer
156 views

Can we use "evaluate" function for other models not included in dismo package?

I'm using several models to predict species occurence probabilities. Some of them are not included in dismo library such as "MARS" and random forests. I want to know if I still can use "...
user avatar
2 votes
0 answers
186 views

Calculate and plot the feature importance of the input dataset of a random forest classification within Google Earth Engine (GEE)

I run a random forest classification for agricultural land use and other land cover classes (12 classes). My dataset for 2019 consists of a Sentinel 1 and Sentinel 2 monthly time series, statistical ...
user avatar
1 vote
0 answers
78 views

random forest image classfication on python

I am new to python, I would like to do a rf classification on an multispectral image which I applied the PCA. After applying acp on different bands including NDVI I got negative values, after that my ...
user avatar
1 vote
2 answers
217 views

Combining imagery, masking and sampling in Descartes Labs Platform

I am trying to sample data from Descartes Lab imagery to train a random forest classifier in the Descartes Plaform for an agricultural region. I have already written a script to prepare the imagery of ...
user avatar
0 votes
0 answers
76 views

Classified image using RF method in R displays less no. of classes than it was trained to

I am trying to classify crops using Sentinel-2 image including 10 classes, using randomForest classification in R. For that, I extracted 2000 random samples points from the training areas for 11 bands ...
user avatar
  • 9
4 votes
1 answer
936 views

SMILE classifiers/regressors in Earth Engine

I am working on a project intended for publication that leans heavily on Earth Engine for much of the workflow: assembling, compositing, and mosaicking lots of images from multiple data sources, ...
user avatar
  • 464
0 votes
1 answer
124 views

Raster image error when entering stack layers using Rstudio

I am a beginning user of Rstudio, and I want to run Random Forest by using a couple of "raster layers" which were stacked in ENVI. Before doing stacking I checked the cell size and the ...
user avatar
7 votes
1 answer
1k views

Results of Variable Importance of RF Classifier in GEE

I create a RF module in GEE like this: //Random Forest Result Function Module exports.getRfResults = function(image, title, bands, trainPoint, testPoint, area, label) { //Create Sample Points ...
user avatar
1 vote
0 answers
523 views

Memory allocation problem when running Random forest regression in python

I have image with 4 bands . I want to see if I can predict the first band using the 3 other bands. My problem is that I cannot fit the model because I get the following error message: MemoryError: ...
user avatar
  • 1,797
1 vote
2 answers
837 views

How does the randomColumn() function in Google Earth Engine work

Does the randomColumn() function assign an arbitrary random value as a collection element property or is it based on some aspect of the collection element? For instance, I have a script that calls ...
user avatar
3 votes
1 answer
180 views

Calculate new band for satellite image after predict values with RF

I have satellite image which contains 3 different bands. I'm using Python (jupyter notebook) in order to calculate new band by applying random forest regression. My problem is that after I have ...
user avatar
  • 1,797
2 votes
2 answers
776 views

Probability of variable importance calculation error in Google Earth Engine

I am trying to calculate the probability of variable importance each bands for classification. Basically, I have 3 class but when I try to implement the probability of variable importance, the error ...
user avatar
1 vote
1 answer
320 views

Random forest classifier

I set up a script for supervised following the model from the EE tutorial -- Only thing I changed was to substitute Landsat 5 with Sentinel 2. The classifier does not give me any result -- Any idea ...
user avatar
1 vote
1 answer
261 views

Google Earth Engine Hansen Forest Cover - annual loss

https://code.earthengine.google.com/b15af44386f0770df3ba21d38022c8d6 I am trying to get annual forest loss using the Hansen dataset in Google Earth to get a video. I have added the yearly loss image ...
user avatar
  • 13