Introduction
Source:
Dataset, Drugs Categorization, Effect on Body
Problem:
The large number of consumers of legal psychotropic substances may be one of the causes of similar clustering results of the consumer profile of alcohol, caffeine, and nicotine. Thus, this project will explore the consumer profile of illegal substances such as benzodiazepines for the depressant group, cocaine for stimulants, and ecstasy for hallucinogens to explore consumer segmentation.
K-Means Clustering
Overall, the procedures and methods of consumers clustering are similar to the profiling of legal substances similar except for the features used for clustering. Click here to see a more complete explanation of the dataset and programming code.
Based on the cross-correlation of the features and drugs consumption, conscientiousness is more related to these illegal substances than extraversion.
corr = df_all.corr()
plt.figure(figsize=(10,8))
plt.title('Drugs Consumption')
sns.heatmap(corr.abs(), cmap="Greens",annot=True)

Thus, features used for clustering are age, education, openness, and conscientiousness.
feat_ben = df_ben.iloc[:,[1,3,8,10]] #Select age, ethnicity, openness, conscientiousness
label_ben = df_ben['benzodiazepine']
feat_coc = df_coc.iloc[:,[1,3,8,10]] #Select age, ethnicity, openness, conscientiousness
label_coc = df_coc['cocaine']
feat_ecs = df_ecs.iloc[:,[1,3,8,10]] #Select age, ethnicity, openness, conscientiousness
label_ecs = df_ecs['ecstasy']
Discussion and Conclusion
Profile of Benzodiazepine Consumers

Clustering of benzodiazepine consumers resulted in 3 clusters of profiles. One of the clusters shows that consumer with the highest educational background has higher openness and lower conscientiousness. While two others are contrasted in education and age groups but have a similar personalities.
Profile of Cocaine Consumers

Cocaine consumers are divided into five segments that when compared to benzodiazepine consumers and ecstasy cocaine consumers have the oldest age group. Based on personality, the level of openness and conscientiousness of the five consumer segments of cocaine was spread over a larger range with lower and higher scores.
Profile of Ecstasy Consumers

The profile of ecstasy consumers shows a similar pattern to a benzodiazepine in both demographics and personality.
