Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

IBM Watson Can Predict Your Criminal Tendencies

DZone's Guide to

IBM Watson Can Predict Your Criminal Tendencies

A step by step guide into using IBM Watson's Personality Insights' REST API to draw conclusions about criminal behavior.

· Big Data Zone
Free Resource

Free O'Reilly eBook: Learn how to architect always-on apps that scale. Brought to you by Mesosphere DC/OS–the premier platform for containers and big data.

The recent shooting in South Carolina reminds us that criminals can and will continue to harm people.  They seem like random acts to most of us, but to a criminal, the reasons make sense to them;  no one can answer they question of "why" except the criminal. To peer inside a criminal’s mind would be next to impossible -- but what if a way to peer inside their minds existed? This could be used to try to identify patterns or personality traits that exist, and therefore prevent these horrible acts and better humanity.

So how would we do this? I work at IBM so the answer is obviously IBM Watson. We have all heard of Watson; IBM Watson beat Ken Jennings on Jeopardy, after all. However, there is so much more that Watson can do (check this out for all the cool things Watson can do). One of the really cool services that Watson now provides is something called Personality Insights. This service can analyze the personality of text in meer seconds via a REST API. One of the things IBM is trying to do now is make all these really cool technologies available to everyone and anyone. They are doing it through something called IBM Bluemix.  Bluemix is IBM’s platform as a service (PaaS), and it has a whole giant catalog of really cool technologies from IBM as well as lots of other third parties. You can sign up for a free 30 day account by going here.

So how does this fit back with peering inside of a criminal? Well, I hope you guessed the answer: We are going to use Personality Insights to analyze the personality of a couple criminal’s and look for some common traits.

Let’s take the most recent horrible attack, the South Carolina church shooting. Dylann Roof posted a manifesto online and we are going to use that as the basis to peer into his mind.

There are two ways to try this out for yourself. Let’s go through both of them.

  1. Sign up for a Bluemix account 
  2. Once you have validated your email and signed in, browse the Bluemix Catalog and select the Personality Insights app.
  3. Click the button deploy.  The button will automagically deploy the Personality Insights starter app that we are going to use.  If Deploy to Bluemixyou are interested in the code head over to Github.
  4. Once you app is finished deploying click “View your app”.  You will be taken to your app.

    NOTE: If you are lazy or don't want to sign up, you can just try a live demo of the Personality Insights app here.

  5. Next we need to get the text from Dylann Roof that we want to analyze.  It can be found here.  Open the link and copy all the text.
  6. Click on “Clear”.Image title
  7. Paste the text into the text box.Image title
  8. Click “Analyze”.Image title

Watson will return us Dylann Roof’s personality based on the manifesto in just a matter of seconds. 


You are unconventional, shrewd and can be perceived as critical.

You are unconcerned with art: you are less concerned with artistic or creative activities than most people who participated in our surveys. You are laid-back: you appreciate a relaxed pace in life. And you are intermittent: you have a hard time sticking with difficult tasks for a long period of time.

More than most people, your choices are driven by a desire for well-being.

You consider helping others to guide a large part of what you do: you think it is important to take care of the people around you. You are relatively unconcerned with tradition: you care more about making your own path than following what others have done.IBM Watson Analysis of Dylann Roof’s manifesto

Additionally Watson provides us a visualization as well.

personality

Let’s next take a look at Anders Behring Breivik, who was responsible for the 2011 attacks in Norway.  His manifesto is available here.  You will need to convert it to a .txt file. You can do this here. It will email you a copy of the manifesto in a .txt file.

Image title

So let’s repeat the same steps as above.

  1. Clear the text area.
  2. Paste the text.
  3. Click "Analyze".

NOTE: You will need to make sure you have deployed the Bluemix app yourself for this one, the text file is really big and the default app does not support really large files.


You are shrewd, skeptical and tranquil.

You are philosophical: you are open to and intrigued by new ideas and love to explore them. You are imaginative: you have a wild imagination. And you are independent: you have a strong desire to have time to yourself.

You are motivated to seek out experiences that provide a strong feeling of prestige.

You are relatively unconcerned with both taking pleasure in life and tradition. You prefer activities with a purpose greater than just personal enjoyment. And you care more about making your own path than following what others have done.IBM Watson Analysis of Anders Behring Breivik’s manifesto

personality-norwayOne last example.  I went to Virginia Tech and I was at the school when the massacre happened there. This one hits quite close to home to me.  I was supposed to be in a classroom that fellow students were massacred but I overslept.  Let’s take a look at Seung Hui Cho’s "Manifesto."  His manifesto is available here.  You will need to convert it to a .txtfile. You can do this here. It will email you a copy of the manifesto in a .txt file.

Image title


So let’s repeat the same steps as above.

  1. Clear the text area.
  2. Paste the text.
  3. Click "Analyze".

You are boisterous and somewhat shortsighted.

You are content: you are content with your level of accomplishment and do not feel the need to set ambitious goals. You are confident: you are hard to embarrass and are self-confident most of the time. And you are carefree: you do what you want, disregarding rules and obligations.

More than most people, your choices are driven by a desire for modernity.

You consider independence to guide a large part of what you do: you like to set your own goals to decide how to best achieve them. You are relatively unconcerned with tradition: you care more about making your own path than following what others have done.IBM Watson Analysis of Seung Hui Cho’s manifesto

personality-virginia-techLet’s do some analysis on all this data now.  It looks like all the shooter’s from these massacres have traits in common.

Conclusion

Going forward, if police or schools could analyze the text of suspected criminal beforehand, maybe these horrible massacre’s could have been prevented.  

Maybe for the Dylann Roof case, if the FBI examiner that reviewed Dylann Roof’s gun permit had access to a tool like this, it could have prevented the whole situation.  I know that is kinda Big Brother, but I really believe in somewhat of an invasion of privacy for the overall good of humanity.

This demo could easily be extended to use more automated methods as well.  Think of companies like Dropbox analyzing files or your ISP analyzing files.  I know this would be quite creepy, but it could honestly possibly save lives and prevent these horrible massacres.

I know this post is kind of controversial, but it is good to be talking about this and hopefully some good will come from this. Please leave me feedback below or tweet me @jsloyer.

Easily deploy & scale your data pipelines in clicks. Run Spark, Kafka, Cassandra + more on shared infrastructure and blow away your data silos. Learn how with Mesosphere DC/OS.

Topics:
cloud ,learning ,insights ,big data ,analytics ,visualization

Published at DZone with permission of Jeff Sloyer. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}