The Gun Detector - Smarter Every Day 225

  • Published: 29 September 2019
  • We built a gun detector using machine learning that works with existing surveillance cameras.
    Get started with 8 free meals – that’s $80 off your first month of HelloFresh. Go to and enter smarter80
    Click here if you're interested in subscribing:
    ⇊ Click below for more links! ⇊

    There are many companies working on this type of technology at the moment. We made ours in 2018, and Chad visited my house in January 2019 to film most of this. We didn't post it for various reasons, but decided now might be a good time. The fidelity of the inference is a function of how you train it.... so obviously the more data points you provide, the better it will perform. This particular type of machine learning is known as object detection, with the computation being performed by a deep neural network "on the edge". The video stream is processed locally and no internet is needed to find the object in real time. If you're working on something similar or could use this technology in your systems and would like to collaborate.... (or would simply like to support what we're doing) please reach out by using this link:
    Tweet Ideas to me at:

    Smarter Every Day on Facebook

    Smarter Every Day on Patreon

    Smarter Every Day On Instagram

    Smarter Every Day SubReddit

    Ambiance, audio and musicy things by: Gordon McGladdery

    If you feel like this video was worth your time and added value to your life, please SHARE THE VIDEO!

    If you REALLY liked it, feel free to pitch a few dollars Smarter Every Day by becoming a Patron.

    Warm Regards,

  • Science and Technology Science and Technology

Comments • 10 289

  • SmarterEveryDay
    SmarterEveryDay   2 months back

    Do me a favor and PLEASE CONSIDER SHARING THIS VIDEO. I'm a bit worried it won't be distributed due to images in the video and the topic in general.... but I believe this is a positive thing and it's something people on both sides of the gun debate can get behind. I've been talking to people about this type of technology and in an upcoming video I will explain how this is simply one component in a much larger suite of tools which can be used.

    Are there flaws in this method? Absolutely. Is it possible to spoof a system like this? Yes... this could be easily tricked.... but would be perps would have to take the time to worry about it focus on tricking it. I personally think the main benefit is providing real time situational awareness. Another limitation is that it would identify toy guns as real guns and send a notification to authorities. The purpose of this video is to start the discussion because systems like this are frankly already here and in use. We don't claim to have all the answers, but we decided to use our engineering skills to try to make a positive step. We've found support amongst both sides of the gun debate, and in today's political climate that alone feels like a step in the right direction.

    If you'd like to reach out, we can be reached through a contact form here:

    • Old Curmudgeon
      Old Curmudgeon  1 weeks back

      Sharing, but not in a positive light. The possibility of this being misused is great enough for me to say it's development should stop.

    • Jane Doe
      Jane Doe  1 weeks back

      All of the images of people holding guns are white. That is a major and well known problem in AI!!! Please make your database more diverse, or it is basically useless!!!

    • MAGA
      MAGA  2 weeks back

      There is a video called “spinning t handle in zero G”. Very interesting. I would love to hear you explain why spinning it in one direction cause it to intermittently spin on a different axes

    • MWall711
      MWall711  2 weeks back

      @anthmichcara1 You're too late. I've moved on. Try and keep up next time.

    • anthmichcara1
      anthmichcara1  2 weeks back

      @MWall711 I just saw this so sorry for the late reply. If you really think that the Navy would obliterate an entire US community with cruise missiles or that the Army would roll tanks and armored vehicles down the streets in the US to destroy everything in their paths why would you ever surrender your rights to such an authoritarian force? When you purchase the ticket for that flight you accept a contract that states that you and whatever you have with you are subject to search. Whenever you enter into an amusement park, zoo, stadium, etc you accept the terms that go with admission to include being subject to being searched, to include any property you have with you. You waive your 4th Amendment rights when you accept the terms to fly on a plane. The 4th Amendment does not restrain private businesses and if it did, you still waive your rights when you accept the terms to enter their establishments. Only a fool believes that any part of the Bill of Rights is obsolete.

  • Luka
    Luka  1 days back

    I’m really glad I live in Norway and not America when it comes to the topic of gun violence

    • Link Games
      Link Games  2 days back

      Now we need the NRA to let schools use this

      • Dee dahl
        Dee dahl  3 days back

        YES that is possible, it's really simple programming. I know a retired "inventor" that has programmed his own robotic arm to detect saffron and harvest them. He showed me the programming - it looked alot like what you showed, with the red circles and alignment.

        • Máté Antal
          Máté Antal  4 days back

          uh oh, Youtube's got a few tricks up their sleeve

          • John Doe
            John Doe  5 days back

            Thank you for making this very important information available for us all

            • The Drey
              The Drey  5 days back

              Possible use for alerting would be the same way the fire alarms send a signal to the FD, however to alleviate false positives. Send the images in the school to a C2 node for first view, if it is indeed a gun determined by an actual person, they simply hit a button and off it goes to 911/police etc with all location information of where the feed was picked up and then now that you have initiated an active shooter, the whole system starts tracking and looking for that gun through the environment.While this tracking is happening it is live fed to the police or first responders to better asses the situation. This could be linked to an overall lock down procedure where when the signal is sent to the police other systems engage, such as sound disorienting in the area of the image being processed or strobe lights (depending on risk to epilepsy etc).

              The reason for the person to be in the loop is to prevent "cry wolf" scenarios, such as a comment below, students sticking a gun image to a backpack. This could prevent wasted resources.

              I know this isn't too new of a video, but as a gun owner and computer science major, the use of technology to combat gun violence while still protecting our rights is highly interesting to me.

              • Stivin
                Stivin  6 days back

                What if you had 3 cameras on entrances of a school ( one on a left wall, one on a right wall and one on the roof ) so that the programing has more angles therefore more of a chance to detect a gun from any angle. Making cameras that are being shown the bottom of a gun not a problem because you have 2 other cameras on different angles.

                • mossberg6024
                  mossberg6024  6 days back

                  Lucas up in there for that split second. If you know you know

                  • rawrisiloveuindinify
                    rawrisiloveuindinify  7 days back

                    The problem I could see with this is unconscious racial bias, most of the b roll I see here is lighter skin individuals, which makes sense if he’s using movie footage and gun store individuals. A lot of the times software developers don’t realize they haven’t used sufficient amount of darker skin tones, this is why hand motion detectors or facial recognition sometimes fails for darker people because the AI doesn’t have an equal ratio of information to learn from for darker tones.

                    • Hunter Hogan
                      Hunter Hogan  1 weeks back

                      Two ideas: User interface design & training the AI.

                      User interface: never contrast red and green because a very large percentage of the population is red-green color blind. Furthermore, because this particular distinction is extremely important, use multiple visual indicators to convey information. For example, in addition to the different color tags, use different geometric tags: maybe put a hexagon around a suspected gun and a rectangle around phones.

                      Training the AI: have users submit photos and videos. Provide instructions of the format requirements and how the user must tag the gun, phone, or other object. Most of the submissions should be mundane, especially in the beginning. Then challenge the users to submit videos that will create a false positive or a false negative. If a video creates an incorrect response, use it to improve the AI.

                      • 10kSubsNoVidsChallenge
                        10kSubsNoVidsChallenge  1 weeks back

                        other schools: gun finder to keep people safe
                        my school: cell phone finder to keep people in trouble and bored

                        SUB TO DO CHALLENGE

                        • Jarrett Linden
                          Jarrett Linden  1 weeks back

                          I am extremely pro gun and really appreciate how logical and fair you were in this video. I do think that technology like this is really risky. Especially in the hands of an all seeing controlling government. Take that as you will

                          • Nate Horst
                            Nate Horst  1 weeks back

                            Trigger discipline.......

                            • Mr Sparky
                              Mr Sparky  1 weeks back

                              Absolutely horrible trigger discipline from 6 minutes and 14 seconds to 6 minutes and 29 seconds. Remember finger off trigger unless intending to use

                              • Shannon Nelson
                                Shannon Nelson  1 weeks back

                                In Cleveland Ohio and in the school system the kids got to walk through a metal detector and there are security in the school so am I city of Cleveland we do not have school shootings hardly ever. And the schools you want to be able to see through the bags and the clothes

                                • Rahul Hossain
                                  Rahul Hossain  2 weeks back

                                  o dang i haven't seen this yet
                                  youtube didn't give me the notification

                                  • John Higgins
                                    John Higgins  2 weeks back

                                    It's quite simple... the public do not need to carry guns. Sure, be a member of a gun club and use the gun at that place and leave it at that place after use. But under no circumstances, do members of public need to have guns in public. If gun store owners are the only people allowed to purchase guns then the public can use them at the gun range. It's as simple as that. Guns cause violence. They give power to the weak minded. Take that power away from them.

                                    • CLICCME
                                      CLICCME  2 weeks back


                                      • Rubix_357
                                        Rubix_357  2 weeks back

                                        I mean giving school staff guns would also work.

                                        • The Last Schmuplet
                                          The Last Schmuplet  2 weeks back

                                          Props to you trying to normalize a bipartisan hot topic, but us lefties just don’t want people to own guns. Period. That is why I can say with certainty that we will never agree on this.

                                          • Ryan Cahill
                                            Ryan Cahill  2 weeks back

                                            Ok almost all mass shootings had assault rifles not handguns

                                            • MAGA
                                              MAGA  2 weeks back

                                              Hey DESTIN. There is a video called “spinning t handle in zero G”. Very interesting. I would love to hear you explain why spinning it in one direction cause it to intermittently spin on a different axes

                                              • Ari Weber
                                                Ari Weber  1 weeks back

                                                veritasium did that, and it was awesome. I would like a second perspective, tho

                                            • TheDanishShadow
                                              TheDanishShadow  2 weeks back

                                              hi Dustin, i would like to know if you have i SE ep. where you explain what xray does, and how it works :) p.s. nice series :D

                                              • Thomas Maudal
                                                Thomas Maudal  2 weeks back

                                                So this only covers pistols right? Next step would be revolvers, smg's assault rifles etc..?

                                                • serhan cinar
                                                  serhan cinar  2 weeks back

                                                  From engineering point, it is a very good subject and an entertaining video. Thank you.
                                                  But, the solution ultimately relies on solving the gun problem by putting more guns into the equation (i mean in the hands of the good guy against the bad guys). You can put an automated gun platform in every classroom with a detection system like this and it still will not solve it.
                                                  Good video though... Really enjoyed it

                                                  • Christopher Fitch
                                                    Christopher Fitch  2 weeks back

                                                    It looks like a majority of the pictures used to train the model are white people holding guns. So what if the shooter is black or wearing black gloves. Additionally security camera have a harder time with dark skin cause of the lack of dynamic range. Those two factor compound, trained with images of mostly white people and lack of dynamic range in imagery. Which is what’s caused the perception of racism in ML. So how does the system do if the person holding the gun isn’t white? (Granted most mass shooters are white but that’s not the point) How does this affect the models precision and recall? I’m thinking that the lack of contrast making it difficult to see a hand on the gun may be an issue.

                                                    • El topo Brujo
                                                      El topo Brujo  2 weeks back

                                                      So in the us you can have a gun under your clothes with no problem whatsoever but a bit of weed caught by a dog and you go to jail that marvelous

                                                      • adam macmeekin
                                                        adam macmeekin  2 weeks back

                                                        Save lives? limit the availability of guns, very simple really , most nations already do this!

                                                        • Lokiop
                                                          Lokiop  2 weeks back

                                                          You can have a bunch of pictures for people to look through to and decide if it is or isn’t a gun so people can help

                                                          • Lokiop
                                                            Lokiop  2 weeks back

                                                            What if you show it a glue gun?

                                                            • Srijana McMillen
                                                              Srijana McMillen  2 weeks back

                                                              Good topic with strategy!
                                                              I agree, that we need to have a gun for protection as it comes under the second amendment although, misusing the gun via illegal activity is not acceptable. Nevertheless, the problem of the gun isn’t as simple to be eradicated through a gun detector, while technology & engineering should not play an important part in things that can take a life. Therefore, I disagree with the software gun detector strategy which does invade the privacy.
                                                              For the sake of debate(not a debate fan), the first question arises is how are we slacking behind as a human to input the correct info into the public database? Does the police department have the info into mental health, drugs or criminal history? If they do all the information for an individual for the particular local region then how are the guns getting approved? The responsibility we are given in the community to the highly educated or skilled police officers isn’t only to have the name & tag on it but to be able to find the solution without depending on the technology & engineering.
                                                              At the end of the day, if an innocent person dies due to gun violence, not because of her mistake but the one who approved him/her gun after knowing the fact through the background check than who is liable? The gun business owner, police department, gun detector software or the criminal in lose? The more we stop emphasizing building or depending on the technology and start taking responsibility in the top management the lesser crime will take place.
                                                              I think we all know our rightful amendment but to follow through the safe way to protection while everyone should be accountable to their problems within them could lead to less gun violence stories. Aren’t we all are liable? Although, instead of debate we should consider the facts rather than the technologies protocol.

                                                              • BeRNii
                                                                BeRNii  2 weeks back

                                                                but why did you buy rifles for your children..

                                                                • batdana42
                                                                  batdana42  2 weeks back

                                                                  start adding ar-x models and maybe ak-x models

                                                                  • Danie van der Westhuizen

                                                                    Guns don't kill people. People kill people. By making stricter gun laws, you are only HELPING criminals and illegal gun users, because they could not care less about your laws. You are, however, taking guns out of responsible people's hands, that could have defended themselves, their families and your family.

                                                                    • I3G4CY
                                                                      I3G4CY  2 weeks back


                                                                      • Kronaz邪児
                                                                        Kronaz邪児  2 weeks back

                                                                        As someone who's a LEGAL owner, and LEGAL carryer, give me one good reason why I should support something like this. Reassure me that it won't be used where it shouldn't be. That it won't be used to target people like me. That it won't be used to SUPPRESS people like me.
                                                                        This is DANGEROUS.

                                                                        • Lozinsky Eric
                                                                          Lozinsky Eric  2 weeks back

                                                                          Honestly the technology they made is useless because all it says is there is a gun out. Should a situation like this exist it's probably already too late. It's an ai that can detect a gun but that doesn't mean anything unless guns were illegal or in a place they aren't legally allowed to be.

                                                                      • Daniel Murray
                                                                        Daniel Murray  2 weeks back

                                                                        Hotdog...not hotdog. 🌭

                                                                        • Portalmaster 9
                                                                          Portalmaster 9  2 weeks back

                                                                          Does it only work on pistols?

                                                                          • Samuel
                                                                            Samuel  2 weeks back

                                                                            Or just, you know, ban guns

                                                                          • Wandering Legobrick
                                                                            Wandering Legobrick  2 weeks back

                                                                            Another idea is that it could trigger actuated locks in classrooms so the shooter can't get in.

                                                                            • Aaron Rockwell
                                                                              Aaron Rockwell  2 weeks back

                                                                              In conjunction with an automated lockdown system, this could be quite useful. Not to lock down potential victims, but rather trap an active shooter allowing potential victims to escape.

                                                                              • Good Doggo
                                                                                Good Doggo  3 weeks back

                                                                                4:14 they stoped talking to us because they where working on microwave technology 😂

                                                                                • Ali Pardhan
                                                                                  Ali Pardhan  3 weeks back

                                                                                  any chances this will be open source, or will have engineerings notes?

                                                                                  I'm an ML student who plans on making my own/ improving a pre-existing one

                                                                                  • Lucius Kiirus
                                                                                    Lucius Kiirus  3 weeks back

                                                                                    Guns are only divisive to the nutjob Leftists. Let us remember how Guns save more lives in the civilized world than they take lives. We owe our lives to Guns and without the amazing gun/rifle, America would not exist. That is why the nutJob Leftists want to steal our Guns. We should go back to the Constitution and make the statement, "Shall not be infringed upon" mean exactly that. Everyone should have the right to keep and bear arms. Yep, no exceptions.

                                                                                    • Stuart Tanksley
                                                                                      Stuart Tanksley  3 weeks back

                                                                                      “God’s Eye” a little “Fast N Furious” reference. Unbelievable what you guys are doing, Destin!

                                                                                      • Tobias Eklund
                                                                                        Tobias Eklund  3 weeks back

                                                                                        I know this isn't the first time you hear it from a foreigner but omg just ban guns

                                                                                        • everything is infrared
                                                                                          everything is infrared  3 weeks back

                                                                                          if this technology will be used, people will get smarter every day and start to hide the gun or change the gun's shape...stop the easy acess to guns the first place...