<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Himanshu</title>
    <description>The latest articles on DEV Community by Himanshu (@bhaskar164).</description>
    <link>https://dev.to/bhaskar164</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F390602%2F2211b8d1-9a25-4be4-8a0b-1f137ddb8c3d.jpeg</url>
      <title>DEV Community: Himanshu</title>
      <link>https://dev.to/bhaskar164</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bhaskar164"/>
    <language>en</language>
    <item>
      <title>Automated Behaviour Prediction Using Graphology</title>
      <dc:creator>Himanshu</dc:creator>
      <pubDate>Wed, 20 May 2020 12:42:49 +0000</pubDate>
      <link>https://dev.to/bhaskar164/automated-behaviour-prediction-using-graphology-1gdl</link>
      <guid>https://dev.to/bhaskar164/automated-behaviour-prediction-using-graphology-1gdl</guid>
      <description>&lt;h4&gt;
  
  
  Hi! &lt;a href="https://www.linkedin.com/in/himanshubhaskar/"&gt;Himanshu Bhaskar&lt;/a&gt;this side. This is the project which I have done in my final year of graduation. Contributed along with my two friends &lt;a href="https://www.linkedin.com/in/addy2202/"&gt;Aditya Garg&lt;/a&gt; and &lt;a href="https://www.linkedin.com/in/paras-jain-04a84614b/"&gt;Paras Jain&lt;/a&gt;.
&lt;/h4&gt;

&lt;h1&gt;
  
  
  About
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Graphology&lt;/strong&gt; was the basis of this research project, which &lt;br&gt;
   claims to predict personality of a person through handwriting traits/features.&lt;/p&gt;

&lt;p&gt;We have tried to predict the personality traits(like optimistic, egostic, &lt;br&gt;
emotional, kind..etc) by finding handwriting traits(like pen pressure, slant of word, spacing between lines, spacing between words,etc,.) automatically by using machine learning.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  Methodology
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;Methodology that is used throughout the research, from collection of datasets to the predictions and accuracy of results is show in the diagram below.&lt;br&gt;
 &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tNyLevLt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/9ss8z3lfw0itoexg2c54.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tNyLevLt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/9ss8z3lfw0itoexg2c54.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  Data Collection
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;Data is collected by five different graphologists, we gave them handwriting samples and they predict personality for each sample. We wanted the unbiased data that is why we have taken the data from different graphologists.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  Feature Extraction
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;Features like Pen Pressure, Margin, Spacing between lines, Spacing between words, etc are calculated using opencv and our constructive algorithms.We have used techniques like Binarization of Image, Segmentation, Polygonization, Thresholding e.t.c. As shown in diagram below:-&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kYFA9aMB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/p9ht2desu0prr8x1ba2w.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kYFA9aMB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/p9ht2desu0prr8x1ba2w.jpeg" alt="Alt Text"&gt;&lt;/a&gt; &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  Building Machine Learning Model
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;Logistic regression model is used to estimate the behavioural characteristics of a person. A feature vector is created for every handwriting and it is mapped to the predicted labels given by the graphologist manually. For every feature, we build a logistic regression model and take a boolean value from each feature model, whether that particular feature is present or not in an individual’s handwriting.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  Results
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Result 1: 30 samples were taken for training and 10 for testing. Logistic 
Regression algorithm is used. Accuracy achieved 40.2%.&lt;/li&gt;
&lt;li&gt;Result 2: 60 samples were taken for training and 20 for testing. Logistic Regression algorithm is used. Accuracy achieved 50.6%.&lt;/li&gt;
&lt;li&gt;Result 3: 60 samples were taken for training and 20 for testing. SVM algorithm is used. Accuracy achieved 52.3%.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  Screenshots
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--d58H2dbM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/813jc03iu5200wlcqdsz.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--d58H2dbM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/813jc03iu5200wlcqdsz.JPG" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZuP_LUrf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5pygm565293jlpo97z0r.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZuP_LUrf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5pygm565293jlpo97z0r.JPG" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AlqZZbU0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/36xukczxbscsjh1dn3h3.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AlqZZbU0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/36xukczxbscsjh1dn3h3.JPG" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  For more details check out our published paper &lt;a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3562969"&gt;here&lt;/a&gt;
&lt;/h3&gt;

</description>
      <category>machinelearning</category>
      <category>python</category>
      <category>personality</category>
      <category>handwriting</category>
    </item>
  </channel>
</rss>
