A.I. Learns to HERD SHEEP

Поділитися
Вставка
  • Опубліковано 9 вер 2024
  • In this video, I build and train a neural network that can herd sheep. The simulated sheep use a boid algorithm to recreate the flocking behavior seen in nature. I encountered a lot of challenges along the way but in the end, it worked great. I learned a lot while doing this project and I hope you enjoyed the video!
    SmarterEveryDay Video:
    • I Didn't know Birds us...
    Sheep Flocking video:
    • Mesmerising Mass Sheep...
    Contact Me:
    michaelrechtinyt@gmail.com

КОМЕНТАРІ • 23

  • @t8rn8r
    @t8rn8r 2 роки тому +7

    As an actual shepherd, I can confirm that keeping sheep near the fence is the easiest way to herd them. It essentially limits the number of undesirable directions the sheep could choose.
    I was really impressed with how realistic this sheep model is given the simplicity of the model itself! It was really cool to see the dog perform the "cutting" behavior (when the dog isolates a few sheep away from the rest of the herd). Great job!

    • @michaelrechtin
      @michaelrechtin  2 роки тому +5

      Easily the coolest comment I've ever received. Thanks!

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

      @@michaelrechtin I stumbled across this video because I'm working on a farming simulator. I'd like to implement herding behavior, but it's a super tricky problem. I'm almost convinced that machine learning will be the easiest option.
      Any chance you'd be interested in a collab?

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

      Shoot me an email. There is an address on the about page

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

      @@michaelrechtin I love seeing cool things happening on the internet!

    • @unstablecoding
      @unstablecoding 3 місяці тому

      One problem with that doggie though is that it was shoving them into the fence quite forcefully which can lead to a broken fence but overall its really good!!

  • @samklare1088
    @samklare1088 3 роки тому +1

    Michael Rechtin Industries is about to take off and herd up the competition.

  • @adeldex
    @adeldex 3 роки тому +5

    Add a time score modifier so that it heards them diagonally.

  • @Aaku13
    @Aaku13 3 роки тому +2

    Nice work! Music at the end was super loud haha. Sim should probably be adjusted so the boids can also move randomly so the sheep dog doesn't just learn pre-programmed moves to get the highest score and can react to sheep being naughty. Should also penalize the sheepdog significantly if it loses any sheep in the flock.

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

    The missing factor for your three lost lambs is the man with the whistle... the element that has complete overview of task progress and success.

  • @omaraissani6255
    @omaraissani6255 3 роки тому +4

    Yeah, u just lost 3 sheep baad dog xD i suggest (and i am by no mean an expert) that you add a criterion about the number of sheep in the desired region.
    If you want advanced features ins this game. You can model rivers and "dangerous" regions (by negative numbers perhaps ?) The dog should first save the sheep who might be in danger then guide the rest of them.
    Nice simulation though you inspired me to do the same xD.

  • @benpayzant3623
    @benpayzant3623 3 роки тому +2

    When code bullet doesn't upload 😂

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

    Scotland and New Zealand (many Scottish early settlers) have sheep dog trials as a sport. Years ago the competitions were shown on TV. It's amazing that tens of thousands of "normal" people tuned in every week to watch a man with a stick and a dog be made to look like a total idiot by a few brainless four-legged fluffballs! :o)
    Perhaps it's time for a digital rerun?
    Great video, thanks.

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

    Huh. This is Neat!

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

    Maybe you could add a timer that'll give the position score a multiplier? And maybe disqualify unherd sheep scenarios. Nice.

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

    Great vid!

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

    Cool stuff!

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

    Well explained and fascinating. "So anyway, I just programmed up some artificial intelligence". What? Until now I was confident that I'm actually pretty smart. RN I feel dumb as bricks. Yeah, good job. Fucks sake...

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

    is it powwible to get the code yout writen?

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

    But it missed 3 sheeps. I want my money back >=(