| Fake Profile Detection | |
| # ๐จ Fake Instagram Profile Detection using Machine Learning | |
| This project is a real-time Instagram profile analyzer that predicts whether a given profile is **fake** or **real** using machine learning. It uses profile metrics like follower count, following count, post count, and verification status to make predictions. | |
| --- | |
| ## ๐ How It Works | |
| - You enter an Instagram **username**. | |
| - The application uses the **Apify API** to fetch public profile data. | |
| - It extracts key features such as: | |
| - Number of followers | |
| - Number of followings | |
| - Number of posts | |
| - Is the account private? | |
| - Is the account verified? | |
| - These features are passed into a pre-trained **machine learning model** (`classifier.pkl`) to predict whether the profile is real or fake. | |
| --- | |
| ## ๐ Technologies Used | |
| - **Python** | |
| - **Streamlit** โ for building the web app | |
| - **Joblib** โ for loading the ML model | |
| - **Apify API** โ to scrape Instagram data | |
| - **Scikit-learn** โ for training the ML model | |
| - **Pandas, NumPy** โ for data manipulation | |
| --- | |
| ## ๐ง ML Model | |
| The model is trained using a labeled dataset containing Instagram profile attributes. The classification is binary: | |
| - `0` โ Likely Fake | |
| - `1` โ Likely Real | |
| The training includes feature normalization and multiple algorithm trials like Logistic Regression, Decision Trees, and Random Forests. The final deployed model is chosen based on accuracy and generalization. | |
| --- | |
| ## ๐ฅ๏ธ Project UI | |
| - The app is built with **Streamlit** for a clean and interactive interface. | |
| - Users simply input a **username** and click **Predict**. | |
| - Output shows the profileโs stats and the prediction result with appropriate messaging (Success/Error). | |
| --- | |