How to perform Supervised Image Classification & Accuracy Assessment in Google Earth Engine?

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 40

  • @IAKhan-km4ph
    @IAKhan-km4ph 3 роки тому +1

    You are a great teacher. All the best. GOD Bless you

    • @MuddasirShah
      @MuddasirShah  3 роки тому

      Thank you so much 😊 means a lot.

  • @MuhammadWaqas-kw8rz
    @MuhammadWaqas-kw8rz 2 роки тому +1

    Kindly make a video on how to do time series land use and land cover change detection using landsat

  • @jibrianusliunesi3955
    @jibrianusliunesi3955 Рік тому +1

    thanks for tutorial

  • @fathallahkader7630
    @fathallahkader7630 2 роки тому +1

    Thank u dude, very helpful

  • @francescolodato9663
    @francescolodato9663 2 роки тому +1

    Awesome. TY very much

  • @majidhafezi9638
    @majidhafezi9638 2 роки тому +1

    Hi.thank you so much for your great and well detailed video.i have a question about accuracy assessment.
    if i want to evaluate my classified image with another classified image as a reference to see how well my classes match on that classified reference image and give me a statistical output like these overal accuracy and like that how can i do that in envi or other softwares.
    thank you.

    • @MuddasirShah
      @MuddasirShah  2 роки тому

      That’s a really good question and honestly I don’t have answer for that. But from a data analyst perspective you would need to run some correlation test. It could be spatial correlation or simple linear correlation. The coefficient of determination will tell how close the data points are. But here’s the catch we do that in case of regression. Here we have classes not continuous data points (pixels) maybe if you could do something with zonal statistics of each class and compare the two.
      Eg compute the area, mean median mode of pixels and statistically compare them. Also I don’t know how you will comprehend comparing two classified maps from different resolution images. Obviously the results are going to be different and perhaps you would interpolate / resample higher res data to lower res. Just remember you never resample from low res to high res but the opposite

    • @MuddasirShah
      @MuddasirShah  2 роки тому

      Will discuss this with my teachers and let u know 🙂

    • @majidhafezi9638
      @majidhafezi9638 2 роки тому +1

      @@MuddasirShah
      thank you so much for your explanation.actually im a beginner in these subjects but i was heard about that zonal statistics i will try it thank you for your hint.and about the res difference as you mentioned my classified image is LC8 but the classified reference image is sen2.

    • @MuddasirShah
      @MuddasirShah  2 роки тому

      @@majidhafezi9638 yes there’s a difference of 20 meters. Sentinel 2 has more fine resolution 10 meters whereas Landsat has 30 meters. You might need to resample 10 meters sentinel image to 30 meters and then compare.

    • @MuddasirShah
      @MuddasirShah  2 роки тому

      I have an idea Majid. Why don’t you resample the 10 meters sentinel classified image to 30 meters. And then subtract the two maps using zonal statistics (class wise). That will tell the difference in terms of pixels which one has more or less. Make sure to do it class wise.
      Subtract forest class of S2 from forest of L8.
      There’s a tool in envi which helps you do that. You just have make sure both images have same resolution
      ua-cam.com/video/obC_KbO_MRE/v-deo.html

  • @s.w.cgbpuat7842
    @s.w.cgbpuat7842 Рік тому +1

    hi sir can u please tell me how to extract kappa coefficient from google earth engine

    • @MuddasirShah
      @MuddasirShah  Рік тому

      When the error matrix is generated using his method ConfusionMatrix.kappa() will return the value. It's displayed on console

  • @691015paco
    @691015paco Рік тому +1

    Awesome vido Bro,... congrat¡¡,.... I did something like this example but my training samples was polygons,... the training smples work well, but I've problmes whit de code about de Accuracy assesment,.. could you give some help, thanks on advance,...
    Best reggards
    Eduardo (e-mail friend)

  • @rumbidzaichivizhe5808
    @rumbidzaichivizhe5808 2 роки тому +1

    how do i know where the classification code comes in when performing damage assessment

    • @MuddasirShah
      @MuddasirShah  2 роки тому

      Image classification for damage assessment, you sure?
      I mean you can but there are other ways too

  • @deejayspeculo6543
    @deejayspeculo6543 2 роки тому +1

    Hello, can you upload the area calculation after supervised classification. I need to calculate the area of one particular land cover for example forest.

    • @MuddasirShah
      @MuddasirShah  2 роки тому

      Yes you can. Just ingest the raster and apply the image pixel area method.

    • @MuddasirShah
      @MuddasirShah  2 роки тому

      Is your image classified in Envi? If it’s a shapefile that will work also.
      Here’s the code for calculation area of vectors
      var study_area = ee.FeatureCollection(‘link of your ingested feature collection’);
      var area = study_area.geometry().area()
      var area_In_SqKM = ee.Number(area).divide(1e6).round()
      print(stateAreaSqKm)

    • @MuddasirShah
      @MuddasirShah  2 роки тому

      If the shape file has only one column in attribute table you might wanna go for filtering the particular landcover class value. The above method will give you area of entire shapefile / geometry.
      var water = study_area.filter(ee.Filter.eq(‘class_name’,’water’));
      Or if it’s a class value (integer) change the class name value from water to the value of class.

    • @deejayspeculo6543
      @deejayspeculo6543 2 роки тому +1

      OK, I have done supervised classification and now I have 4 classes, which are cropland, bareground, trees and water. I now want to calculate area covered by all cropland region. When I calculate it all I get is the area I used during training. Am I making sense? How can I share my code with you for further help?

    • @deejayspeculo6543
      @deejayspeculo6543 2 роки тому +1

      I also needed help when trying to display only one class I am interested in after the classification, let's say cropland region alone. Can you also help with that?

  • @nabilelkhatri7800
    @nabilelkhatri7800 Рік тому +1

    Thanks sir, but i can't access the code link. Please help me

    • @MuddasirShah
      @MuddasirShah  Рік тому

      Write an email ill share the link. Just with subject “classification script link” and I’ll respond
      muddasirshah@outlook.com

  • @FatimazahraEzziani-j2m
    @FatimazahraEzziani-j2m Рік тому +1

    I can't open the code

    • @MuddasirShah
      @MuddasirShah  Рік тому

      code.earthengine.google.com/4c774858b4774ab6fa454820f185a038

  • @vanshika6714
    @vanshika6714 2 роки тому +1

    I am getting zero for accuracy, error matrix and everything else. Don't know why when the code is the same

    • @MuddasirShah
      @MuddasirShah  2 роки тому

      Hi Vanshika,
      Please check your script thoroughly. Have you called the feature collection property name correctly? Have you made the feature colletions they way shown in tutorial?

  • @akrncemp
    @akrncemp 2 роки тому +1

    Super (the Code link is broken though)😊.

    • @MuddasirShah
      @MuddasirShah  2 роки тому

      Thank you, and it’s working fine. Please try opening the link with a proxy and let me know.

  • @khushalpinge5907
    @khushalpinge5907 2 роки тому +1

    plzz provide in python

    • @MuddasirShah
      @MuddasirShah  2 роки тому

      I don’t code in Python. There are tutorials of Sir Quishing Wu. I recommend his channel

  • @Mr.Tabassum-n1r
    @Mr.Tabassum-n1r Рік тому +1

    Hello dear Admin, Please can I get the code of producer and user accuracy assessment in GEE from you and can I add you at WhatsApp please, I need a little bit your kind help with image classification? Your kindness will be highly appriciated

    • @MuddasirShah
      @MuddasirShah  Рік тому

      Email me please muddasirshah@outlook.com