Military Robots

Siraj Raval · Beginner ·🛠️ AI Tools & Apps ·8y ago

Key Takeaways

The video discusses advancements in AI and their implications for military robotics, covering topics such as convolutional networks, neural networks, and reinforcement learning, and demonstrating tools like Proximal Policy Optimization (PPO) and Trust Region Policy Optimization (TRPO).

Full Transcript

Oh world it's Suraj and lo robots we're gonna learn a bit about how military robots work and then teach a simulated robot how to walk using a reinforcement learning technique called proximal policy optimization military warfare is as old as mankind and the better the technology the more likely the chance of winning is so it makes sense that militaries want the most advanced weaponry they can get their hands on by whatever means necessary ideally militaries can minimize deaths of their own soldiers while maximizing their effectiveness that means removing the human from the loop as much as possible which is where the field of military robotics comes in the first wheel advances their team from none other than electrical wizard Nikola Tesla in 1898 Tesla demoed a controlled motor boat to a government representative it laid the foundation for the first unmanned vehicles and weapons as World War 1 began Germany used radio-controlled motor boats to ram into enemy ships containing more than 300 pounds of explosives during both world wars inspired by Tesla's initial invention using radio waves as a communication signal was a revolutionary idea the Germans use it to deploy the first remotely piloted aerial drone called the fritz they dropped a device at a high altitude from a bomber then Bombardier would steer the fritz via a radio link using a joystick and it wasn't just the Germans getting in on the radio-controlled fun Americans dropped more than 450 radio remote-controlled glide bombs during World War two remote-controlled vehicles on land air and sea have improved in the decades since World War two as more than 40 countries have developed technological breakthroughs in that regard there are three important trends happening right now that are causing rapid advancement in military technology namely the plummeting costs and soaring performance of computer hardware the rise of cloud network robots and of course advances in machine learning put together these trends mean it's getting easier to create more powerful robots soldiers no longer need to aim at targets if they can just use a convolutional network to detect enemy's commnets our neural networks that can learn the features of any type of object its trained on be that a certain type of vehicle or a type of soldier using a pre trained network soldiers can Don a set of goggles that show a computed bounding box around our targets or even feed the computed coordinate to a weapon and have its position adjusted accordingly and fire automatically effectively using auto aim reinforcement learning has been an effective tool to get robots to learn how to navigate virtual environments some soldiers go through extensive simulated training before being deployed to the real world and an RL agent could prove useful as an unpredictable and adaptive enemy during combat simulation for a range of soldiers from fighter pilots to ground soldiers these agents could use techniques like q-learning or policy gradients or actor critic to learn how best to avoid enemy fire and even create effective strategies to confuse the enemy before attacking AI can also be used to change the medium with which soldiers control their weapons they can issue orders via voice command instead of having to use a keyboard in intense situations thanks to developments in natural language processing speech recognition is getting really good and recurrent networks helped make this possible if we have some labeled audio data set we can train a recurrent Network by slicing the audio up into small chunks feeding those chunks into the RNN sequentially and generating a prediction for the next chunk computing an error back propagated the error gradients and repeating that process lots of times since we're current networks are made for sequential data audio is a perfect use case after training they can recognize human speech with incredible accuracy and this essential for mission-critical applications governments have mountains of data from surveillance systems and satellites of all kinds finding disturbances using unsupervised learning techniques like anomaly detection via auto-encoders war doesn't just have to happen in real life it can happen online as well today the process of finding and countering bugs hacks and all sorts of cyber infection vectors is still effectively artisinal professional security experts search millions of lines of code to find and fix vulnerabilities that could be taken advantage of by users with ulterior motives all of this could be automated using deep learning to find the features of vulnerable code and learning to patch bugs by itself so rule-based intelligence can only do so much but by integrating learning algorithms machines can become far more capable when a human is in the loop they are able to make the final call the highest level decision that's the one that the human makes but as AI gets better its able to make more decisions for itself so how many decisions should we delegate to AI how much is too much take the idea of a swarm for example any aircraft manned or unmanned can be brought down by a single missile but a swarm can take multiple hits and keep going it's a collection of drones that can coordinate together as a single entity one could take out enemy systems while the other creates a distraction while the other picks up important cargo evolutionary techniques like particle swarm optimization can make this happen the US Department of Defense recently released a document called a human systems roadmap review that reveals a plan to use AI to create autonomous weapons using social media analytics to make decisions on lethal force with minimal human involvement it shows that while having a human in the loop is necessary for the near-term therefore turn vision is self-aware systems they define this as systems that have perception reasoning and intelligence allowing for entities to have existence intent relationships and understanding in the battle space relative to a mission that means drones that coordinate amongst themselves make decisions for themselves prioritize by themselves and of course decide who to kill and when to kill them by themselves that's kind of scary and reminiscent of the infamous Skynet system from the movie Terminator in the movie the military system becomes self-aware and decides to kill all humans and no one can shut it down we know of one system that can't be shut down and that's Bitcoin because the blockchain miners must verify transactions using the proof-of-work algorithm it would require more computing power than the 500 fastest supercomputers in the world combined to shut it down and no one has that much computing power an AI agent that lives on this kind of blockchain couldn't be shut down and if its objective was to say destroy humanity and it has access to weapons of mass destruction that's how Skynet happens IRL so how do we stop this we've got to spread awareness and educate ourselves on how AI works the more people that understand the power of AI the less likely it is that governments will abuse this power and the more likely it will be used for beneficial purposes more research into creating explainable AI systems that give us a detailed list of why an AI made a certain decision will help unravel the black box of deep learning and help fuel a debate for policy makers as they regulate this technology so to give an example of how a robot can learn to walk we can use a reinforcement learning technique called proximal policy optimization this is two randomly initialized neural networks and a teacher that rewards forward progress the policy gradient technique takes steps in the direction that improves the policy a similar technique is called trust region policy optimization or TRP Oh the idea is to take steps in the direction that improves the policy while simultaneously not straying too far from the old policy that's the difference making too big a change from the previous policy in high dimensional environments can lead to a dramatic decrease in performance a little forward lean can help running speed but too much causes a crash a naive solution is to take minuscule policy steps but the question then becomes how small a step TR Pio takes a principled approach to controlling the rate of policy change the algorithm places our constraint on the average KL divergence between the new and old policy after each update so proximal policy optimization is an implementation of TR Pio that adds the KL divergence term to training a loss function with this loss function in place we can train the policy with gradient descent like a typical neural network in our PPO algorithm we capture sequences of states actions and rewards from our environment and added to our data batch line 10 adds value estimates to each visited state from the rollouts with predicted state values in hand we calculate the advantages and add these to the data set in line 11 the advantage of a state action is how much better or worse an action performs than the expectation of present policy from the same state we update the policy in line 13 finally we update our value function to reflect our latest data in 114 we use the present data batch and the previous data batch to smooth changes in the value function for our policy update function we store the old policy and compute the KL divergence as we make policy gradient updates and after only 25,000 training episodes our humanoid will start learning how to walk it's pretty hilarious to watch the progress in the meantime all right so three ending points here militaries can use AI to create autonomous weapon systems and that means less and less of a need for humans in the loop a Skynet's like scenario can occur the public isn't made aware of AI dangers and governments go unchecked and proximal policy optimization uses two neural nets and the teacher to forward progress to train an AI to complete an objective this week's coding challenge is to use the PPO technique on a game of your choice details are in the readme poster github links in the comments section and winners will be announced next week please subscribe for more programming videos and for now I've got to go prevent Skynet so thanks for watching

Original Description

What do advancements in AI mean for the military? Military robotics has come a long way with advancements in machine learning, the soaring affordability of computing power, and the rise of cloud computing. I'll talk about how AI is used on the battlefield and how we can prevent a SkyNet scenario from occuring. Code for this video: https://github.com/llSourcell/proximal_policy_optimization More learning resources: https://www.robotictechnologyinc.com/images/upload/file/Presentation%20Military%20Memetics%20Tutorial%2013%20Dec%2011.pdf http://faculty.cse.tamu.edu/murphy/IROS2011Tutorial.htm https://insights.sei.cmu.edu/sei_blog/2017/06/army-robotics-in-the-military.html https://www.technologyreview.com/s/603795/the-us-military-wants-its-autonomous-machines-to-explain-themselves/ https://gcn.com/articles/2017/05/22/dod-ai-machine-learning.aspx https://www.engadget.com/2017/05/15/the-pentagon-is-hunting-isis-using-big-data-and-machine-learning/ Please Subscribe! And like. And comment. That's what keeps me going. Want more inspiration & education? Connect with me: Twitter: https://twitter.com/sirajraval Facebook: https://www.facebook.com/sirajology Join us in the Wizards Slack channel: http://wizards.herokuapp.com/ And please support me on Patreon: https://www.patreon.com/user?u=3191693 Instagram: https://www.instagram.com/sirajraval/ Instagram: https://www.instagram.com/sirajraval/ Signup for my newsletter for exciting updates in the field of AI: https://goo.gl/FZzJ5w Hit the Join button above to sign up to become a member of my channel for access to exclusive content! Join my AI community: http://chatgptschool.io/ Sign up for my AI Sports betting Bot, WagerGPT! (500 spots available): https://www.wagergpt.xyz
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Siraj Raval · Siraj Raval · 0 of 60

← Previous Next →
1 What is Bitcoin?
What is Bitcoin?
Siraj Raval
2 5 Ways to Use Bitcoin
5 Ways to Use Bitcoin
Siraj Raval
3 BTC Fever - Siraj [Music Video]
BTC Fever - Siraj [Music Video]
Siraj Raval
4 5 Reasons to Build Decentralized Apps
5 Reasons to Build Decentralized Apps
Siraj Raval
5 The Interplanetary File System
The Interplanetary File System
Siraj Raval
6 How to Build a Dapp in 3 min
How to Build a Dapp in 3 min
Siraj Raval
7 Life Before Smartphones
Life Before Smartphones
Siraj Raval
8 4 Ways to Use Smart Contracts
4 Ways to Use Smart Contracts
Siraj Raval
9 3 Dapps You HAVE to See
3 Dapps You HAVE to See
Siraj Raval
10 Char's Life as a BitTorrent Engineer
Char's Life as a BitTorrent Engineer
Siraj Raval
11 4 Reasons AlphaGo is a Huge Deal
4 Reasons AlphaGo is a Huge Deal
Siraj Raval
12 Build a Neural Net in 4 Minutes
Build a Neural Net in 4 Minutes
Siraj Raval
13 Sentiment Analysis in 4 Minutes
Sentiment Analysis in 4 Minutes
Siraj Raval
14 The Hackathon Life
The Hackathon Life
Siraj Raval
15 Your First ML App - Machine Learning for Hackers #1
Your First ML App - Machine Learning for Hackers #1
Siraj Raval
16 Build an AI Composer - Machine Learning for Hackers #2
Build an AI Composer - Machine Learning for Hackers #2
Siraj Raval
17 Build a Game AI - Machine Learning for Hackers #3
Build a Game AI - Machine Learning for Hackers #3
Siraj Raval
18 Build a Movie Recommender - Machine Learning for Hackers #4
Build a Movie Recommender - Machine Learning for Hackers #4
Siraj Raval
19 Build an AI Artist - Machine Learning for Hackers #5
Build an AI Artist - Machine Learning for Hackers #5
Siraj Raval
20 Build a Chatbot - ML for Hackers #6
Build a Chatbot - ML for Hackers #6
Siraj Raval
21 Build an AI Reader - Machine Learning for Hackers #7
Build an AI Reader - Machine Learning for Hackers #7
Siraj Raval
22 Build an AI Writer - Machine Learning for Hackers #8
Build an AI Writer - Machine Learning for Hackers #8
Siraj Raval
23 Build a Chatbot w/ an API - ML for Hackers #9
Build a Chatbot w/ an API - ML for Hackers #9
Siraj Raval
24 One-Shot Learning - Fresh Machine Learning #1
One-Shot Learning - Fresh Machine Learning #1
Siraj Raval
25 Generative Adversarial Nets - Fresh Machine Learning #2
Generative Adversarial Nets - Fresh Machine Learning #2
Siraj Raval
26 Tone Analysis - Fresh Machine Learning #3
Tone Analysis - Fresh Machine Learning #3
Siraj Raval
27 Generate Rap Lyrics - Fresh Machine Learning #4
Generate Rap Lyrics - Fresh Machine Learning #4
Siraj Raval
28 Build an Autoencoder in 5 Min - Fresh Machine Learning #5
Build an Autoencoder in 5 Min - Fresh Machine Learning #5
Siraj Raval
29 Build a Self Driving Car in 5 Min - Fresh Machine Learning #6
Build a Self Driving Car in 5 Min - Fresh Machine Learning #6
Siraj Raval
30 Build an Antivirus in 5 Min - Fresh Machine Learning #7
Build an Antivirus in 5 Min - Fresh Machine Learning #7
Siraj Raval
31 TensorFlow in 5 Minutes (tutorial)
TensorFlow in 5 Minutes (tutorial)
Siraj Raval
32 Build a Recurrent Neural Net in 5 Min
Build a Recurrent Neural Net in 5 Min
Siraj Raval
33 Build a Simulation in 5 Min
Build a Simulation in 5 Min
Siraj Raval
34 Build a TensorFlow Image Classifier in 5 Min
Build a TensorFlow Image Classifier in 5 Min
Siraj Raval
35 Tensorboard Explained in 5 Min
Tensorboard Explained in 5 Min
Siraj Raval
36 Generate Music in TensorFlow
Generate Music in TensorFlow
Siraj Raval
37 Build a Game Bot (LIVE)
Build a Game Bot (LIVE)
Siraj Raval
38 Deep Learning Frameworks Compared
Deep Learning Frameworks Compared
Siraj Raval
39 Introduction - Learn Python for Data Science #1
Introduction - Learn Python for Data Science #1
Siraj Raval
40 Build a Neural Network (LIVE)
Build a Neural Network (LIVE)
Siraj Raval
41 Twitter Sentiment Analysis - Learn Python for Data Science #2
Twitter Sentiment Analysis - Learn Python for Data Science #2
Siraj Raval
42 Recommendation Systems - Learn Python for Data Science #3
Recommendation Systems - Learn Python for Data Science #3
Siraj Raval
43 Predicting Stock Prices - Learn Python for Data Science #4
Predicting Stock Prices - Learn Python for Data Science #4
Siraj Raval
44 Pong Neural Network (LIVE)
Pong Neural Network (LIVE)
Siraj Raval
45 Deep Dream in TensorFlow - Learn Python for Data Science #5
Deep Dream in TensorFlow - Learn Python for Data Science #5
Siraj Raval
46 Visualizing Data with D3.js (LIVE)
Visualizing Data with D3.js (LIVE)
Siraj Raval
47 Genetic Algorithms - Learn Python for Data Science #6
Genetic Algorithms - Learn Python for Data Science #6
Siraj Raval
48 Enter Siraj [Music Video]
Enter Siraj [Music Video]
Siraj Raval
49 Build a Web Scraper (LIVE)
Build a Web Scraper (LIVE)
Siraj Raval
50 Why is P vs NP Important?
Why is P vs NP Important?
Siraj Raval
51 How to Make a Neural Network (LIVE)
How to Make a Neural Network (LIVE)
Siraj Raval
52 How to Make an Amazing Tensorflow Chatbot Easily
How to Make an Amazing Tensorflow Chatbot Easily
Siraj Raval
53 How to Make an Amazing Video Game Bot Easily
How to Make an Amazing Video Game Bot Easily
Siraj Raval
54 How to Make a Tensorflow Neural Network (LIVE)
How to Make a Tensorflow Neural Network (LIVE)
Siraj Raval
55 How to Make a Simple Tensorflow Speech Recognizer
How to Make a Simple Tensorflow Speech Recognizer
Siraj Raval
56 Joel Shor - Really Quick Questions with an Awesome Google Engineer
Joel Shor - Really Quick Questions with an Awesome Google Engineer
Siraj Raval
57 How to Make a Path Planning Algorithm Easily (LIVE)
How to Make a Path Planning Algorithm Easily (LIVE)
Siraj Raval
58 The Best Way to Prepare a Dataset Easily
The Best Way to Prepare a Dataset Easily
Siraj Raval
59 Catherine Olsson - Really Quick Questions with an OpenAI Engineer
Catherine Olsson - Really Quick Questions with an OpenAI Engineer
Siraj Raval
60 How to Make a Tic Tac Toe Neural Network Easily (LIVE)
How to Make a Tic Tac Toe Neural Network Easily (LIVE)
Siraj Raval

The video teaches viewers about the advancements in AI and their implications for military robotics, covering topics such as convolutional networks, neural networks, and reinforcement learning. It demonstrates tools like Proximal Policy Optimization (PPO) and Trust Region Policy Optimization (TRPO) and provides a comprehensive understanding of AI safety and autonomous systems. By watching this video, viewers can gain practical knowledge on how to utilize AI tools for military robotics and develo

Key Takeaways
  1. Train a humanoid robot to walk using PPO after 25,000 training episodes
  2. Use two neural networks and a teacher to forward progress to train an AI to complete an objective
  3. Implement PPO by adding a KL divergence term to the training loss function
  4. Place a constraint on the average KL divergence between the new and old policy after each update
  5. Update the policy with gradient descent like a typical neural network
  6. Utilize convolutional networks for enemy target detection
  7. Apply neural networks for object feature learning
  8. Implement auto-encoders for anomaly detection
  9. Use particle swarm optimization for drone coordination
💡 The video highlights the importance of AI safety and the need for governments and organizations to be transparent about their AI developments to prevent a Skynet-like scenario.

Related Reads

📰
ChatGPT for Photography: Take Better Photos with Any Camera
Use ChatGPT to improve your photography skills by understanding camera fundamentals and composition techniques, regardless of the camera you use
Dev.to AI
📰
ChatGPT for Event Planning: Host Memorable Gatherings Without the Stress
Use ChatGPT as a virtual event planner to organize and host memorable gatherings with less stress
Dev.to AI
📰
SciDraw Alternative: Paper Banana for Scientific Figures
Learn about Paper Banana, a SciDraw alternative for creating scientific figures using AI
Medium · AI
📰
AI-Powered Polish: Generating Client-Ready PDFs for Catering Proposals
Learn how to generate client-ready PDFs for catering proposals using AI-powered tools, streamlining your workflow and improving client satisfaction
Dev.to AI
Up next
What is OAuth 2 0 Explained with Examples
VLR Software Training
Watch →