Hello everyone. Today, I would like to introduce an epoch-making invention that helps me to solve the case. It's a system that collects the conversations of suspects before the incident and predicts the criminal and the victim! I'm still not sure about AI, but there's nothing impossible for the Boy Detectives!
I will briefly explain the procedure for creating a system.
Data collection We collect data from Conan's books. It was difficult to pick up all the conversations until the incident, so I decided to use 10 balloons as learning data. In addition, all the person names have been converted to "Tanaka" so that the person names appearing in the conversation do not affect the judgment.
Morphological analysis The collected data will be written in Japanese, but it cannot be used as learning data as it is, so we will process the data. By separating sentences into words, it is possible to perform vectorization that will appear later. For example, "Sumomomo Momomo no Uchi" is separated by "Sumomo / Momo / Momo / Momo / Momo / no / Uchi".
Vectorization Convert sentences to vector data using doc2vec of janome. By expressing sentence data numerically, it can now be used as learning data.
Learning Label the completed vector data as "criminal / victim / general public" and learn.
The accuracy was close to 100% for the training data, but the accuracy for the new data was almost nonexistent.
As is often said, the hardest part of machine learning is collecting learning data. I want to do something like this! I think it is rare to get data immediately when I think about it, so I thought it was important to keep an antenna on the data on a regular basis.
It is the result of judging the lines of various characters. From left to right, it is the probability of [general victim victim criminal].
It almost depends on the probability of the general public or the victim. The probability of a criminal is as low as 6% at the highest, and maybe you are learning that flashy lines are not the criminal.
The highest probability of being a victim was Kira's "I will be the god of the new world!"
Light Yagami dies
Recommended Posts