AI-Based Detection of Illegal Drug-Related Content on Social Media
The proposed project is an AI-based system for detecting and classifying social media content that may be related to illegal drugs. The system will analyze publicly available text and images from social media posts and classify them into categories such as Normal Content, Drug-Related Content and Suspected Illicit-Drug Promotion. The objective is to support automated screening of large volumes of online content and help identify potentially harmful or suspicious content for further human review.
The system will use Natural Language Processing for text analysis and Computer Vision for image analysis. A multimodal decision layer can combine textual and visual evidence to generate a risk score. Explainable AI techniques will be incorporated so that the system can provide an interpretable reason for its classification, such as important words/phrases, visual regions or combined evidence that contributed to the prediction. The system is intended as a screening and decision-support tool; its predictions will not be treated as proof that a person or account is involved in illegal activity.
Functional Requirements:
• FR1. User Authentication and Access Control: The system shall provide secure login for authorized users and restrict access to analysis and administrative functions.
• FR2. Content Input: The system shall allow an authorized user to upload or enter a social media post containing text, an image, or both for analysis.
• FR3. Text Preprocessing: The system shall clean and preprocess textual content, including tokenization, normalization, removal of irrelevant elements and handling of commonly used social-media expressions.
• FR4. NLP-Based Text Classification: The system shall analyze textual content and classify it as Normal Content, Drug-Related Content, or Suspected Illicit-Drug Promotion.
• FR5. Image Preprocessing: The system shall preprocess uploaded images by resizing, normalization and other required transformations before AI-based analysis.
• FR6. Computer Vision Analysis: The system shall analyze images for visual patterns associated with potentially drug-related content and generate an image-based classification.
• FR7. Multimodal Analysis: When both text and image are available, the system shall combine textual and visual predictions to produce an overall classification and risk score.
• FR8. Confidence/Risk Score: The system shall display the model's prediction confidence or risk score for the detected category.
• FR9. Explainable AI: The system shall provide an explanation for predictions, such as important words/phrases in the text and relevant image regions/features that influenced the classification.
• FR10. Human Review: The system shall allow an authorized reviewer to inspect flagged content and mark the AI prediction as confirmed, rejected, or requiring further review.
• FR11. Results Dashboard: The system shall provide a dashboard showing analyzed posts, classification results, confidence/risk scores, and review status.
• FR12. Search and Filtering: The system shall allow authorized users to filter analysis results by category, confidence/risk level, date, and review status.
• FR13. Report Generation: The system shall generate a summary report containing classification results, risk scores, explanations, and reviewer decisions.
• FR14. Feedback and Model Improvement: The system shall allow reviewers to provide feedback on predictions so that reviewed data can be used for future model evaluation and improvement.
-
Tools & Technologies
- Python; Jupyter Notebook / Google Colab; VS Code; PyTorch or TensorFlow; scikit-learn; Hugging
- Face Transformers; OpenCV; NLP libraries such as NLTK or spaCy; Pandas and NumPy;
- Matplotlib/Seaborn for evaluation and visualization; SHAP/LIME or other Explainable AI libraries;
- Flask/FastAPI or Streamlit for the application interface; SQLite/MySQL for data storage;
- Git/GitHub for version control.
Faisal Mehmood
Faisal Mehmood Expert in CS619 Final Year Projects and software development.
View all projects