Jump to content

Analyzing LU/LC changes using R, RF -


sn1kkkers

Recommended Posts

Hello Community,

this is my first post in this forum, i hope it will meet all the standarts which are necessary here :)

I'm currently working on a project for my university course in remote sensing of vegetation. I mainly want to use R-Script, as this is what we learned during the semester and it seems to be a very powerful tool to get these things done.
Well, let's get straight to the topic:
I want to analyze the LandUse/LandCover change in the Euphrat basin in Syria during the civil war. So i downloaded (and preprocessed) 4 different Landsat 7 sceneries (April 2009,2011,2014, 2015). Now i want to create a time series to show if the agricultural use in my scenes changed. To do so, i thought i'll do a classification using the RandomForest package for R.

My question is: how do i choose the right training pixels? Should i search in every single scene enough pixels via googleearth for each class, let RF do it's job and compare the results (like: "oh, there are much less "agricultural" pixels in the scene from 2015 then in 2009!")

or should i select only pixels for the classes from my 2009 scene, let RF do it's magic and then use the same trainingpixels for the 2015 scene and map the pixels which changed? (that would probably mean the preprocessing of the 2011/2014 scenes was quite senseless?)

 

What's the best approach to reach my goal? I'm thankful for any input! If there is any tutorial showing how to do this, i m glad for an url (although i searched quite long for something like this...)

Thanks!

Link to comment
Share on other sites

As far as I understand, you won't need GoogleEarth because you already have Landsat. If you want a trend of each LULC class for each year, you have to do them separately. For example, you have to take training samples of agriculture from each year to find the corresponding classification. 

 

As for R, you will need a separate raster with training samples. Try subsetting a small area/ pixel group from the image with training sample and let randomForest do the rest. 

 

Try this link

Link to comment
Share on other sites

  • 4 weeks later...

Use this R script to facilitate RandomForests for image classification.  Create training and validation samples in GIS of choice, field attributes relate to class type, and run script against associated layer stack.  There's no need to create a separate training raster dataset.  Instructions are in the same link.

 

https://bitbucket.org/rsbiodiv/randomforestclassification

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.

Disable-Adblock.png

 

If you enjoy our contents, support us by Disable ads Blocker or add GIS-area to your ads blocker whitelist