├── .dvc ├── .gitignore └── config ├── .dvcignore ├── .github └── workflows │ ├── codeql.yml │ └── pylint.yml ├── .gitignore ├── Dataset.csv.dvc ├── Dockerfile ├── Facial emotion.ipynb ├── README.md ├── data ├── BERT_semantic_segmentation_model.ipynb ├── Dataset.csv ├── SNLI_Corpus │ ├── snli_1.0_dev.csv │ └── snli_1.0_test.csv ├── data.tar.gz └── normalized_dataset.csv ├── dataset_normalization.ipynb ├── haarcascade_frontalface_default.xml ├── requirements.txt ├── server.py ├── similarity.ipynb ├── static ├── Mainpage_Background.png ├── Mainpage_section1.png ├── Mainpage_section21.png ├── Mainpage_section22.png ├── Mainpage_section23.png ├── Mainpage_section31.png ├── Mainpage_section32.png ├── Mainpage_section33.png ├── Mainpage_section41.png ├── Mainpage_section42.png ├── Mainpage_section43.png ├── Mockvue_logo.png ├── css │ ├── Instructions.css │ ├── Main_page.css │ ├── Text_Test.css │ ├── Text_Test_Results.css │ ├── Video_Test.css │ └── Video_Test_Results.css ├── favicon.ico └── script │ ├── Instructions.js │ ├── Main_page.js │ ├── Text_Test.js │ ├── Text_Test_Results.js │ ├── Video_Test.js │ └── Video_Test_Results.js └── templates ├── Instructions_text.html ├── Instructions_video.html ├── Main_page.html ├── Text_Test.html ├── Text_Test_Results.html ├── Video_Test.html └── Video_Test_Results.html /.dvc/.gitignore: -------------------------------------------------------------------------------- 1 | /config.local 2 | /tmp 3 | /cache 4 | -------------------------------------------------------------------------------- /.dvc/config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadMillwala/MockVue-Mock-Job-Interview-System/f2e68d9f1cae60cfd39802c2b9ce24f653a4a4ab/.dvc/config -------------------------------------------------------------------------------- /.dvcignore: -------------------------------------------------------------------------------- 1 | # Add patterns of files dvc should ignore, which could improve 2 | # the performance. Learn more at 3 | # https://dvc.org/doc/user-guide/dvcignore 4 | -------------------------------------------------------------------------------- /.github/workflows/codeql.yml: -------------------------------------------------------------------------------- 1 | # For most projects, this workflow file will not need changing; you simply need 2 | # to commit it to your repository. 3 | # 4 | # You may wish to alter this file to override the set of languages analyzed, 5 | # or to provide custom queries or build logic. 6 | # 7 | # ******** NOTE ******** 8 | # We have attempted to detect the languages in your repository. Please check 9 | # the `language` matrix defined below to confirm you have the correct set of 10 | # supported CodeQL languages. 11 | # 12 | name: "CodeQL" 13 | 14 | on: 15 | push: 16 | branches: [ "main" ] 17 | pull_request: 18 | # The branches below must be a subset of the branches above 19 | branches: [ "main" ] 20 | schedule: 21 | - cron: '15 10 * * 3' 22 | 23 | jobs: 24 | analyze: 25 | name: Analyze 26 | runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} 27 | timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} 28 | permissions: 29 | actions: read 30 | contents: read 31 | security-events: write 32 | 33 | strategy: 34 | fail-fast: false 35 | matrix: 36 | language: [ 'javascript', 'python' ] 37 | # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ] 38 | # Use only 'java' to analyze code written in Java, Kotlin or both 39 | # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both 40 | # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support 41 | 42 | steps: 43 | - name: Checkout repository 44 | uses: actions/checkout@v3 45 | 46 | # Initializes the CodeQL tools for scanning. 47 | - name: Initialize CodeQL 48 | uses: github/codeql-action/init@v2 49 | with: 50 | languages: ${{ matrix.language }} 51 | # If you wish to specify custom queries, you can do so here or in a config file. 52 | # By default, queries listed here will override any specified in a config file. 53 | # Prefix the list here with "+" to use these queries and those in the config file. 54 | 55 | # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs 56 | # queries: security-extended,security-and-quality 57 | 58 | 59 | # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). 60 | # If this step fails, then you should remove it and run the build manually (see below) 61 | - name: Autobuild 62 | uses: github/codeql-action/autobuild@v2 63 | 64 | # ℹ️ Command-line programs to run using the OS shell. 65 | # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun 66 | 67 | # If the Autobuild fails above, remove it and uncomment the following three lines. 68 | # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. 69 | 70 | # - run: | 71 | # echo "Run, Build Application using script" 72 | # ./location_of_script_within_repo/buildscript.sh 73 | 74 | - name: Perform CodeQL Analysis 75 | uses: github/codeql-action/analyze@v2 76 | with: 77 | category: "/language:${{matrix.language}}" 78 | -------------------------------------------------------------------------------- /.github/workflows/pylint.yml: -------------------------------------------------------------------------------- 1 | name: Pylint 2 | 3 | on: [push] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | strategy: 9 | matrix: 10 | python-version: ["3.8", "3.9", "3.10"] 11 | steps: 12 | - uses: actions/checkout@v3 13 | - name: Set up Python ${{ matrix.python-version }} 14 | uses: actions/setup-python@v3 15 | with: 16 | python-version: ${{ matrix.python-version }} 17 | - name: Install dependencies 18 | run: | 19 | python -m pip install --upgrade pip 20 | pip install pylint 21 | pip install -r requirements.txt 22 | - name: Analysing the code with pylint 23 | run: | 24 | pylint --disable=all server.py 25 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /Dataset.csv 2 | -------------------------------------------------------------------------------- /Dataset.csv.dvc: -------------------------------------------------------------------------------- 1 | outs: 2 | - md5: 5e845d18ff327fc39a78cdfa4b1af212 3 | size: 35191 4 | path: Dataset.csv 5 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # Use the official Python base image 2 | FROM python:3.8-slim 3 | 4 | # Set the working directory in the container 5 | WORKDIR /app 6 | 7 | # Copy the requirements file 8 | COPY requirements.txt . 9 | 10 | # Install OpenGL libraries 11 | RUN apt-get update && \ 12 | apt-get install -y libgl1-mesa-glx 13 | 14 | 15 | # Install additional dependencies 16 | RUN apt-get update && \ 17 | apt-get install -y libglib2.0-0 18 | 19 | # Install the app dependencies 20 | RUN pip install --no-cache-dir -r requirements.txt 21 | 22 | # Install DVC dependencies 23 | RUN apt-get update && \ 24 | apt-get install -y git && \ 25 | pip install dvc 26 | 27 | # Install spaCy and download 'en_core_web_sm' model 28 | RUN pip install spacy && \ 29 | python -m spacy download en_core_web_sm 30 | 31 | # Copy the entire application to the container 32 | COPY . . 33 | 34 | # Set the environment variables 35 | ENV FLASK_APP=server.py 36 | ENV FLASK_RUN_HOST=0.0.0.0 37 | 38 | # Expose the port on which the app will run 39 | EXPOSE 5000 40 | 41 | # Run the app when the container starts 42 | CMD ["flask", "run"] -------------------------------------------------------------------------------- /Facial emotion.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 12, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import cv2\n", 10 | "import subprocess\n", 11 | "from deepface import DeepFace\n", 12 | "import speech_recognition as sr\n", 13 | "import unicodedata\n", 14 | "import string\n", 15 | "import re\n", 16 | "import os\n", 17 | "import time" 18 | ] 19 | }, 20 | { 21 | "cell_type": "code", 22 | "execution_count": 16, 23 | "metadata": {}, 24 | "outputs": [ 25 | { 26 | "name": "stderr", 27 | "output_type": "stream", 28 | "text": [ 29 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 11.56it/s]\n", 30 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 23.25it/s]\n", 31 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.34it/s]\n", 32 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.38it/s]\n", 33 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.67it/s]\n", 34 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.50it/s]\n", 35 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.05it/s]\n", 36 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.83it/s]\n", 37 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.24it/s]\n", 38 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.93it/s]\n", 39 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.38it/s]\n", 40 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.60it/s]\n", 41 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.79it/s]\n", 42 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.41it/s]\n", 43 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 19.23it/s]\n", 44 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.41it/s]\n", 45 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 22.72it/s]\n", 46 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.52it/s]\n", 47 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.19it/s]\n", 48 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.27it/s]\n", 49 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.50it/s]\n", 50 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.70it/s]\n", 51 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 23.66it/s]\n", 52 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.51it/s]\n", 53 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.60it/s]\n", 54 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 22.22it/s]\n", 55 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.74it/s]\n", 56 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.39it/s]\n", 57 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 22.72it/s]\n", 58 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.32it/s]\n", 59 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.50it/s]\n", 60 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 22.46it/s]\n", 61 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.53it/s]\n", 62 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.42it/s]\n", 63 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 23.26it/s]\n", 64 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 19.60it/s]\n", 65 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 8.06it/s]\n", 66 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 22.46it/s]\n", 67 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.74it/s]\n", 68 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 7.27it/s]\n", 69 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.33it/s]\n", 70 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.97it/s]\n", 71 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.15it/s]\n", 72 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.24it/s]\n", 73 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.33it/s]\n", 74 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 8.69it/s]\n", 75 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.68it/s]\n", 76 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.05it/s]\n", 77 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.34it/s]\n", 78 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.71it/s]\n", 79 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 22.98it/s]\n", 80 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 6.11it/s]\n", 81 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.19it/s]\n", 82 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 22.46it/s]\n", 83 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 7.22it/s]\n", 84 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.41it/s]\n", 85 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 11.43it/s]\n", 86 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.69it/s]\n", 87 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.34it/s]\n", 88 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.58it/s]\n", 89 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 19.23it/s]\n", 90 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 19.23it/s]\n", 91 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.58it/s]\n", 92 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 24.68it/s]\n", 93 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.95it/s]\n", 94 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.98it/s]\n", 95 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 23.81it/s]\n", 96 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.74it/s]\n", 97 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.81it/s]\n", 98 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 22.47it/s]\n", 99 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 19.04it/s]\n", 100 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 9.13it/s]\n", 101 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.27it/s]\n", 102 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.74it/s]\n", 103 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.38it/s]\n", 104 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 22.73it/s]\n", 105 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.20it/s]\n", 106 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.09it/s]\n", 107 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.61it/s]\n", 108 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.69it/s]\n", 109 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.79it/s]\n", 110 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 22.73it/s]\n", 111 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.20it/s]\n", 112 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 11.05it/s]\n", 113 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.74it/s]\n", 114 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 3.75it/s]\n", 115 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.50it/s]\n", 116 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.69it/s]\n", 117 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.71it/s]\n", 118 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.38it/s]\n", 119 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.41it/s]\n", 120 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 6.15it/s]\n", 121 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.70it/s]\n", 122 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 5.18it/s]\n", 123 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.32it/s]\n", 124 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.18it/s]\n", 125 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.15it/s]\n", 126 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.09it/s]\n", 127 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.17it/s]\n", 128 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.42it/s]\n", 129 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.79it/s]\n", 130 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.77it/s]\n", 131 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 4.37it/s]\n", 132 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.50it/s]\n", 133 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 3.29it/s]\n", 134 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 3.76it/s]\n", 135 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 5.60it/s]\n", 136 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 8.73it/s]\n", 137 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 5.19it/s]\n", 138 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.36it/s]\n", 139 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 5.05it/s]\n", 140 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 5.02it/s]\n", 141 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 7.84it/s]\n", 142 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 2.50it/s]\n", 143 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 9.05it/s]\n", 144 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 2.83it/s]\n", 145 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.05it/s]\n", 146 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 3.64it/s]\n", 147 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.81it/s]\n", 148 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 6.49it/s]\n", 149 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 11.90it/s]\n", 150 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 11.62it/s]\n", 151 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 5.78it/s]\n", 152 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.18it/s]\n", 153 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 8.58it/s]\n", 154 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 11.36it/s]\n", 155 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 9.48it/s]\n", 156 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.60it/s]\n", 157 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.08it/s]\n", 158 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.38it/s]\n", 159 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.86it/s]\n", 160 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.57it/s]\n", 161 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.15it/s]\n", 162 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 23.52it/s]\n", 163 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 4.54it/s]\n", 164 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.24it/s]\n", 165 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.79it/s]\n", 166 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.38it/s]\n", 167 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.15it/s]\n", 168 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.80it/s]\n", 169 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 8.44it/s]\n", 170 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 11.69it/s]\n", 171 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.00it/s]\n", 172 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 8.58it/s]\n", 173 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.68it/s]\n", 174 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.43it/s]\n", 175 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.01it/s]\n", 176 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.26it/s]\n", 177 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.60it/s]\n", 178 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 23.81it/s]\n", 179 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.24it/s]\n", 180 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.08it/s]\n", 181 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 19.04it/s]\n", 182 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 8.44it/s]\n", 183 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 8.58it/s]\n", 184 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.82it/s]\n", 185 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.61it/s]\n", 186 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.18it/s]\n", 187 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 9.66it/s]\n", 188 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.27it/s]\n", 189 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.13it/s]\n", 190 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 11.23it/s]\n", 191 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.68it/s]\n", 192 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.67it/s]\n", 193 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.38it/s]\n", 194 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.52it/s]\n", 195 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.74it/s]\n", 196 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.67it/s]\n", 197 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.12it/s]\n", 198 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.99it/s]\n", 199 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.13it/s]\n", 200 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.25it/s]\n", 201 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.15it/s]\n", 202 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.26it/s]\n", 203 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.42it/s]\n", 204 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.98it/s]\n", 205 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.50it/s]\n", 206 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.26it/s]\n", 207 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.74it/s]\n", 208 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.25it/s]\n", 209 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.14it/s]\n", 210 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.20it/s]\n", 211 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.62it/s]\n", 212 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.99it/s]\n", 213 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.97it/s]\n", 214 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.52it/s]\n", 215 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.80it/s]\n", 216 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.83it/s]\n", 217 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 7.38it/s]\n", 218 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.80it/s]\n", 219 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.38it/s]\n", 220 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.38it/s]\n", 221 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.34it/s]\n", 222 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 8.51it/s]\n", 223 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 22.22it/s]\n", 224 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.18it/s]\n", 225 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.39it/s]\n", 226 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.01it/s]\n", 227 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.51it/s]\n", 228 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.16it/s]\n", 229 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 19.04it/s]\n", 230 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.18it/s]\n", 231 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.24it/s]\n", 232 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.13it/s]\n", 233 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.34it/s]\n", 234 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.01it/s]\n", 235 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 19.04it/s]\n", 236 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.24it/s]\n", 237 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.89it/s]\n", 238 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 22.46it/s]\n", 239 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 8.92it/s]\n", 240 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.74it/s]\n", 241 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.74it/s]\n", 242 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 5.10it/s]\n", 243 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.07it/s]\n", 244 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.79it/s]\n", 245 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.73it/s]\n", 246 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.92it/s]\n", 247 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.49it/s]\n", 248 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.66it/s]\n", 249 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 5.03it/s]\n", 250 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.72it/s]\n", 251 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 11.30it/s]\n", 252 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.42it/s]\n", 253 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.57it/s]\n", 254 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 6.53it/s]\n", 255 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 6.33it/s]\n", 256 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 7.01it/s]\n", 257 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 5.24it/s]\n", 258 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.81it/s]\n", 259 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 5.95it/s]\n", 260 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.07it/s]\n", 261 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.25it/s]\n", 262 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 8.16it/s]\n", 263 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.34it/s]\n", 264 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.53it/s]\n", 265 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.27it/s]\n", 266 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 9.00it/s]\n", 267 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.99it/s]\n", 268 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.70it/s]\n", 269 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.59it/s]\n", 270 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.06it/s]\n", 271 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.54it/s]\n", 272 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.86it/s]\n", 273 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.18it/s]\n", 274 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.41it/s]\n", 275 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 7.66it/s]\n", 276 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.38it/s]\n", 277 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.49it/s]\n", 278 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.89it/s]\n", 279 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 14.28it/s]\n", 280 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 8.44it/s]\n", 281 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 1.92it/s]\n", 282 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 19.23it/s]\n", 283 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 19.61it/s]\n", 284 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 5.29it/s]\n", 285 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.26it/s]\n", 286 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.28it/s]\n", 287 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 12.42it/s]\n", 288 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.47it/s]\n", 289 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.27it/s]\n", 290 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.20it/s]\n", 291 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.33it/s]\n", 292 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 23.52it/s]\n", 293 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.69it/s]\n", 294 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.01it/s]\n", 295 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 22.22it/s]\n", 296 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.83it/s]\n", 297 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.83it/s]\n", 298 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 24.39it/s]\n", 299 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.09it/s]\n", 300 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.39it/s]\n", 301 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.54it/s]\n", 302 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.20it/s]\n", 303 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.24it/s]\n", 304 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 23.26it/s]\n", 305 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.52it/s]\n", 306 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.98it/s]\n", 307 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.80it/s]\n", 308 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 6.75it/s]\n", 309 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.87it/s]\n", 310 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.09it/s]\n", 311 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.79it/s]\n", 312 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 19.61it/s]\n", 313 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 8.43it/s]\n", 314 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.73it/s]\n", 315 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 25.64it/s]\n", 316 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.52it/s]\n", 317 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.62it/s]\n", 318 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 25.00it/s]\n", 319 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.13it/s]\n", 320 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 8.93it/s]\n", 321 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.00it/s]\n", 322 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.75it/s]\n", 323 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.83it/s]\n", 324 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 22.79it/s]\n", 325 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.50it/s]\n", 326 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 15.62it/s]\n", 327 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 18.51it/s]\n", 328 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 20.61it/s]\n", 329 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 11.17it/s]\n", 330 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 21.05it/s]\n", 331 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 19.61it/s]\n", 332 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.00it/s]\n", 333 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.54it/s]\n", 334 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 25.64it/s]\n", 335 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 17.54it/s]\n", 336 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.66it/s]\n", 337 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 9.30it/s]\n", 338 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 10.93it/s]\n", 339 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 16.95it/s]\n", 340 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 11.97it/s]\n", 341 | "Action: emotion: 100%|██████████| 1/1 [00:00<00:00, 13.79it/s]\n" 342 | ] 343 | } 344 | ], 345 | "source": [ 346 | "cap = cv2.VideoCapture('uploads/test.mp4')\n", 347 | "emotion_counts = {\n", 348 | " 'angry': 0,\n", 349 | " 'disgust': 0,\n", 350 | " 'fear': 0,\n", 351 | " 'happy': 0,\n", 352 | " 'sad': 0,\n", 353 | " 'surprise': 0,\n", 354 | " 'neutral': 0,\n", 355 | " 'no_face': 0,\n", 356 | "}\n", 357 | "faceCascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')\n", 358 | "\n", 359 | "while True:\n", 360 | " # read frame\n", 361 | " ret, frame = cap.read()\n", 362 | " if not ret:\n", 363 | " break\n", 364 | " else:\n", 365 | " # convert to grayscale\n", 366 | " gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)\n", 367 | "\n", 368 | " # detect faces in the image\n", 369 | " faces = faceCascade.detectMultiScale(\n", 370 | " gray,\n", 371 | " scaleFactor=1.3,\n", 372 | " minNeighbors=5,\n", 373 | " minSize=(30, 30),\n", 374 | " flags=cv2.CASCADE_SCALE_IMAGE\n", 375 | " )\n", 376 | "\n", 377 | " # loop over faces\n", 378 | " for (x, y, w, h) in faces:\n", 379 | " # extract face\n", 380 | " face = frame[y:y+h, x:x+w]\n", 381 | " # recognize emotion if a face is detected\n", 382 | " if len(face) > 0:\n", 383 | " try:\n", 384 | " result = DeepFace.analyze(face, actions=['emotion'], enforce_detection=True)\n", 385 | " if result[0]['dominant_emotion'] is not None:\n", 386 | " emotion_counts[result[0]['dominant_emotion']] += 1\n", 387 | " else:\n", 388 | " no_count['no_emotion'] += 1\n", 389 | " except ValueError as err:\n", 390 | " emotion_counts['no_face'] += 1\n", 391 | " # update the no_face count if no face is detected\n", 392 | " else:\n", 393 | " emotion_counts['no_face'] += 1\n", 394 | "\n", 395 | "emotion_counts['angry'] = emotion_counts['angry'] * 0.2\n", 396 | "emotion_counts['disgust'] = emotion_counts['disgust'] * 0.2\n", 397 | "emotion_counts['fear'] = emotion_counts['fear'] * 0.2\n", 398 | "emotion_counts['happy'] = emotion_counts['happy'] * 1.3\n", 399 | "emotion_counts['sad'] = emotion_counts['sad'] * 0.2\n", 400 | "emotion_counts['neutral'] = emotion_counts['neutral'] * 1\n", 401 | "emotion_counts['no_face'] = 0\n", 402 | "\n", 403 | "command = ['ffmpeg', '-i', 'uploads/test.mp4', '-vn', '-acodec', 'pcm_s16le', '-ar', '44100', '-ac', '2', 'uploads/audio.wav']\n", 404 | "subprocess.call(command)\n", 405 | "\n", 406 | "r = sr.Recognizer()\n", 407 | "audio_file = sr.AudioFile('uploads/audio.wav')\n", 408 | "with audio_file as source:\n", 409 | " audio = r.record(source)\n", 410 | " \n", 411 | "text = r.recognize_google(audio)\n", 412 | "\n", 413 | "\n", 414 | "text_list = text.split(\"for this question\")\n", 415 | "cleaned_list = []\n", 416 | "for text in text_list:\n", 417 | " text = text.translate(str.maketrans('', '', string.punctuation))\n", 418 | " text = re.sub(' +', ' ', text)\n", 419 | " cleaned_list.append(text)\n", 420 | "text_list = cleaned_list\n", 421 | "text_list = [text for text in text_list if text.strip()]\n", 422 | "normalized_list = [unicodedata.normalize('NFKD', text).encode('ASCII', 'ignore').decode('ASCII') for text in text_list]" 423 | ] 424 | }, 425 | { 426 | "cell_type": "code", 427 | "execution_count": null, 428 | "metadata": {}, 429 | "outputs": [ 430 | { 431 | "data": { 432 | "text/plain": [ 433 | "{'angry': 48.3,\n", 434 | " 'disgust': 0.2,\n", 435 | " 'fear': 23.0,\n", 436 | " 'happy': 20.4,\n", 437 | " 'sad': 30.099999999999998,\n", 438 | " 'surprise': 0,\n", 439 | " 'neutral': 45,\n", 440 | " 'no_face': 0}" 441 | ] 442 | }, 443 | "execution_count": 14, 444 | "metadata": {}, 445 | "output_type": "execute_result" 446 | } 447 | ], 448 | "source": [ 449 | "argmax(emotion_counts)" 450 | ] 451 | }, 452 | { 453 | "cell_type": "code", 454 | "execution_count": 15, 455 | "metadata": {}, 456 | "outputs": [ 457 | { 458 | "data": { 459 | "text/plain": [ 460 | "[' I am wearing a grey colored suit ', ' I am recording this on a laptop']" 461 | ] 462 | }, 463 | "execution_count": 15, 464 | "metadata": {}, 465 | "output_type": "execute_result" 466 | } 467 | ], 468 | "source": [ 469 | "normalized_list" 470 | ] 471 | }, 472 | { 473 | "cell_type": "code", 474 | "execution_count": 11, 475 | "metadata": {}, 476 | "outputs": [], 477 | "source": [ 478 | "cap.release()\n", 479 | "time.sleep(1) # Add a 1-second delay\n", 480 | "\n", 481 | "os.remove(\"uploads/test.mp4\")\n", 482 | "os.remove(\"uploads/audio.wav\")" 483 | ] 484 | }, 485 | { 486 | "cell_type": "code", 487 | "execution_count": null, 488 | "metadata": {}, 489 | "outputs": [], 490 | "source": [] 491 | } 492 | ], 493 | "metadata": { 494 | "kernelspec": { 495 | "display_name": "Python 3", 496 | "language": "python", 497 | "name": "python3" 498 | }, 499 | "language_info": { 500 | "codemirror_mode": { 501 | "name": "ipython", 502 | "version": 3 503 | }, 504 | "file_extension": ".py", 505 | "mimetype": "text/x-python", 506 | "name": "python", 507 | "nbconvert_exporter": "python", 508 | "pygments_lexer": "ipython3", 509 | "version": "3.10.5" 510 | }, 511 | "orig_nbformat": 4 512 | }, 513 | "nbformat": 4, 514 | "nbformat_minor": 2 515 | } 516 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MockVue 2 | 3 |  4 | 5 | 6 | MockVue is an AI-based mock job interview system aimed at helping job-seekers, especially fresh graduates, practice giving interviews in the field of Artificial Intelligence. The web application generates interview questions for the candidate, analyzes their competency to answer the questions, and assesses their behavior through facial expression, eye movement, and hand gesture analysis. A score is generated at the end, highlighting the candidate's strengths and weaknesses. 7 | 8 | ## Features 9 | 10 | - AI-generated interview questions specific to Artificial Intelligence. 11 | - Free to use for anyone interested in pursuing a career in AI. 12 | - Speech-to-text conversion for checking the correctness of dialogue spoken by the user. 13 | - Gesture and facial monitoring analysis to provide users with insight into real-world interviews in AI. 14 | - Candidate assessment score that shows the user's strengths and weaknesses. 15 | 16 |  17 | 18 | 19 | ## Scope 20 | 21 | - Question generation 22 | - Speech-to-text conversion 23 | - Object and gesture detection 24 | - Sentiment analysis 25 | - Candidate assessment score - their strengths and weaknesses 26 | 27 | ## Technology Stack 28 | 29 | - Python 30 | - Flask 31 | - TensorFlow 32 | - OpenCV 33 | 34 | ## Getting Started 35 | 36 | To run this application, you will need to have Python, Flask, TensorFlow, and OpenCV installed on your system. 37 | 38 | 1. Clone the repository: 39 | 40 | ``` 41 | git clone https://github.com/yourusername/MockVue.git 42 | ``` 43 | 44 | 2. Install the required packages: 45 | 46 | ``` 47 | pip install -r requirements.txt 48 | ``` 49 | 50 | 3. Start the Flask server: 51 | 52 | ``` 53 | python server.py 54 | ``` 55 | 56 | 4. Navigate to `localhost:5000` in your web browser. 57 | 58 | ## Contributing 59 | 60 | We welcome contributions from the community. To contribute, please fork the repository and submit a pull request. 61 | -------------------------------------------------------------------------------- /data/Dataset.csv: -------------------------------------------------------------------------------- 1 | Questions,Answers,, 2 | What is Artificial Intelligence?,Artificial Intelligence is an area of computer science that emphasizes the creation of intelligent machine that work and reacts like humans.,, 3 | What is an artificial intelligence Neural Networks?,"Artificial intelligence Neural Networks can model mathematically the way biological brain works, allowing the machine to think and learn the same way the humans do- making them capable of recognizing things like speech, objects and animals like we do.",, 4 | Give an explanation on the difference between strong AI and weak AI?,Strong AI makes strong claims that computers can be made to think on a level equal to humans while weak AI simply predicts that some features that are resembling to human intelligence can be incorporated to computer to make it more useful tools.,, 5 | Mention the difference between statistical AI and Classical AI ?,"Statistical AI is more concerned with “inductive” thought like given a set of pattern, induce the trend etc. While, classical AI, on the other hand, is more concerned with “ deductive” thought given as a set of constraints, deduce a conclusion etc.",, 6 | Which is the best way to go for Game playing problem?,"Heuristic approach is the best way to go for game playing problem, as it will use the technique based on intelligent guesswork. For example, Chess between humans and computers as it will use brute force computation, looking at hundreds of thousands of positions.",, 7 | How is Machine Learning related to Artificial Intelligence?,"Artificial Intelligence is a technique that enables machines to mimic human behavior. Whereas, Machine Learning is a subset of Artificial Intelligence. It is the science of getting computers to act by feeding them data and letting them learn a few tricks on their own, without being explicitly programmed to do so",, 8 | What is Q-Learning?,The Q-learning is a Reinforcement Learning algorithm in which an agent tries to learn the optimal policy from its past experiences with the environment. The past experiences of an agent are a sequence of state-action-rewards:,, 9 | What is Deep Learning?,Deep learning imitates the way our brain works i.e. it learns from experiences. It uses the concepts of neural networks to solve complex problems.,, 10 | What are Bayesian Networks?," Bayesian network is a statistical model that represents a set of variables and their conditional dependencies in the form of a directed acyclic graph. On the occurrence of an event, Bayesian Networks can be used to predict the likelihood that any one of several possible known causes was the contributing factor. For example, a Bayesian network could be used to study the relationship between diseases and symptoms. Given various symptoms, the Bayesian network is ideal for computing the probabilities of the presence of various diseases.",, 11 | Explain the assessment that is used to test the intelligence of a machine.,"In artificial intelligence (AI), a Turing Test is a method of inquiry for determining whether or not a computer is capable of thinking like a human being.",, 12 | Explain reward maximization in Reinforcement Learning.,"The RL agent works based on the theory of reward maximization. This is exactly why the RL agent must be trained in such a way that, he takes the best action so that the reward is maximum.",, 13 | What is exploitation and exploration trade-off?,"An important concept in reinforcement learning is the exploration and exploitation trade-off. Exploration, like the name suggests, is about exploring and capturing more information about an environment. On the other hand, exploitation is about using the already known exploited information to heighten the rewards.Consider the fox and tiger example, where the fox eats only the meat (small) chunks close to him but he doesn’t eat the bigger meat chunks at the top, even though the bigger meat chunks would get him more rewards. If the fox only focuses on the closest reward, he will never reach the big chunks of meat, this is called exploitation. But if the fox decides to explore a bit, it can find the bigger reward i.e. the big chunk of meat. This is exploration.",, 14 | What are hyperparameters in Deep Neural Networks?,"Hyperparameters are variables that define the structure of the network. For example, variables such as the learning rate, define how the network is trained. They are used to define the number of hidden layers that must be present in a network. More hidden units can increase the accuracy of the network, whereas a lesser number of units may cause underfitting.",, 15 | How does data overfitting occur,Overfitting occurs when a statistical model or machine learning algorithm captures the noise of the data. This causes an algorithm to show low bias but high variance in the outcome. ,, 16 | Mention a technique that helps to avoid overfitting in a neural network.,Dropout is a type of regularization technique used to avoid overfitting in a neural network. It is a technique where randomly selected neurons are dropped during training. The Dropout value of a network must be chosen wisely. A value too low will result in a minimal effect and a value too high results in under-learning by the network.,, 17 | " What is Data Science? 18 | ",,,"Data Science is a field of computer science that explicitly deals with turning data into information and extracting meaningful insights out of it. The reason why Data Science is so popular is that the kind of insights it allows us to draw from the available data has led to some major innovations in several products and companies. Using these insights, we are able to determine the taste of a particular customer, the likelihood of a product succeeding in a market." 19 | Differentiate between Data Analytics and Data Science,,,"Data Analytics is a subset of Data Science. The goal of data analytics is to illustrate the precise details of retrieved insights. It requires just basic programming languages. It 20 | order to make decisions. It focuses on just finding the solutions. Data Science is a broad technology that includes various subsets such as Data Analytics, Data Mining, Data Visualization, etc. The goal of data science is to discover meaningful insights from massive dataset s and derive the best possible solutions to 21 | resolve business issues. Requires knowledge in advanced programming languages. Data Science not only focuses on finding the solutions but also predicts the future with 22 | past patterns or insights. A data scientist’s job is to provide insightful data visualizations from raw data that are easily understandable." 23 | "What do you understand about linear regression? 24 | ",,,"Linear regression helps in understanding the linear relationship between the dependent and the independent variables. Linear regression is a supervised learning algorithm, which helps in finding the linear relationship between two variables. One is the predictor or the independent variable and the other is the response or the dependent variable. In Linear Regression, we try to understand how the dependent variable changes w.r.t the independent variable. If there is only one independent variable, then it is called simple linear regression, and if there is more than one independent variable then it is known as" 25 | What do you understand by logistic regression?,,," 26 | Logistic regression is a classification algorithm that can be used when the dependent variable is binary. Let’s take an example. Here, we are trying to determine whether it will rain or not based on temperature and humidity." 27 | What is Stemming & Lemmatization in NLP?,"Stemming algorithms work by cutting off the end or the beginning of the word, taking into account a list of common prefixes and suffixes that can be found in an inflected word. This indiscriminate cutting can be successful on some occasions, but not always. Lemmatization, on the other hand, takes into consideration the morphological analysis of the words. To do so, it is necessary to have detailed dictionaries which the algorithm can look through to link the form back to its lemma. 28 | 29 | ",, 30 | How is Computer Vision and AI related?,"Computer Vision is a field of Artificial Intelligence that is used to obtain information from images or multi-dimensional data. Machine Learning algorithms such as K-means is used for Image Segmentation, Support Vector Machine is used for Image Classification and so on. Therefore Computer Vision makes use of AI technologies to solve complex problems such as Object Detection, Image Processing, etc.",, 31 | Which is better for image classification? Supervised or unsupervised classification? Justify.,"In supervised classification, the images are manually fed and interpreted by the Machine Learning expert to create feature classes.",, 32 | ,"In unsupervised classification, the Machine Learning software creates feature classes based on image pixel values.",, 33 | ,,, 34 | ,"Therefore, it is better to choose supervised classification for image classification in terms of accuracy.",, 35 | "Finite difference filters in image processing are very susceptible to noise. To cope up with this, which method can you use so that there would be minimal distortions by noise?","Image Smoothing is one of the best methods used for reducing noise by forcing pixels to be more like their neighbors, this reduces any distortions caused by contrasts.",, 36 | How is Game theory and AI related?,"In the context of artificial intelligence(AI) and deep learning systems, game theory is essential to enable some of the key capabilities required in multi-agent environments in which different AI programs need to interact or compete in order to accomplish a goal.”",, 37 | What is “Generality” in AI?,Generality is the measure of ease with which the method can be adapted to different domains of application.,, 38 | What is a top-down parser?,A top-down parser begins by hypothesizing a sentence and successively predicting lower level constituents until individual pre-terminal symbols are written.,, 39 | Mention the difference between breadth first search and best first search in artificial intelligence?,"These are the two strategies which are quite similar. In best first search, we expand the nodes in accordance with the evaluation function. While, in breadth first search a node is expanded in accordance to the cost function of the parent node.",, 40 | What are frames and scripts in “Artificial Intelligence”?,"Frames are a variant of semantic networks which is one of the popular ways of presenting non-procedural knowledge in an expert system. A frame which is an artificial data structure is used to divide knowledge into substructure by representing “stereotyped situations’. Scripts are similar to frames, except the values that fill the slots must be ordered. Scripts are used in natural language understanding systems to organize a knowledge base in terms of the situation that the system should understand.",, 41 | What is FOPL stands for and explain its role in Artificial Intelligence?,"FOPL stands for First Order Predicate Logic, Predicate Logic provides A language to express assertions about certain “World”. An inference system to deductive apparatus whereby we may draw conclusions from such assertion. A semantic based on set theory.",, 42 | For online search in ‘Artificial Intelligence’ which search agent operates by interleaving computation and action?,"In online search, it will first take action and then observes the environment.",, 43 | Which search algorithm will use a limited amount of memory in online search?,RBFE and SMA* will solve any kind of problem that A* can’t by using a limited amount of memory.,, 44 | In ‘Artificial Intelligence’ where you can use the Bayes rule?,"In Artificial Intelligence to answer the probabilistic queries conditioned on one piece of evidence, Bayes rule can be used.",, 45 | For building a Bayes model how many terms are required?,"For building a Bayes model in AI, three terms are required; they are one conditional probability and two unconditional probability.",, 46 | What is the consequence between a node and its predecessors while creating bayesian network?,"While creating Bayesian Network, the consequence between a node and its predecessors is that a node can be conditionally independent of its predecessors.",, 47 | To answer any query how the Bayesian network can be used?,"If a Bayesian Network is a representative of the joint distribution, then by summing all the relevant joint entries, it can solve any query.",, 48 | What combines inductive methods with the power of first order representations?,Inductive logic programming combines inductive methods with the power of first order representations.,, 49 | In Inductive Logic Programming what needed to be satisfied?,The objective of an Inductive Logic Programming is to come up with a set of sentences for the hypothesis such that the entailment constraint is satisfied.,, 50 | Which algorithm inverts a complete resolution strategy?,"‘Inverse Resolution’ inverts a complete resolution, as it is a complete algorithm for learning first order theories.",, 51 | In speech recognition what kind of signal is used?,"In speech recognition, Acoustic signal is used to identify a sequence of words.",, 52 | In speech recognition which model gives the probability of each word following each word?,Biagram model gives the probability of each word following each other word in speech recognition.,, 53 | What is Hidden Markov Model (HMMs) is used?,Hidden Markov Models are a ubiquitous tool for modelling time series data or to model sequence behaviour. They are used in almost all current speech recognition systems.,, 54 | "In HMM, where does the additional variable is added?","While staying within the HMM network, the additional state variables can be added to a temporal model.",, 55 | " In Artificial Intelligence, what do semantic analyses used for?","In Artificial Intelligence, to extract the meaning from the group of sentences semantic analysis is used.",, 56 | What is meant by compositional semantics?,"The process of determining the meaning of P*Q from P,Q and* is known as Compositional Semantics.",, 57 | Which process makes different logical expression looks identical?,‘Unification’ process makes different logical expressions identical. Lifted inferences require finding substitute which can make a different expression looks identical. This process is called unification.,, 58 | Which is the most straight forward approach for planning algorithm?,State space search is the most straight forward approach for planning algorithm because it takes account of everything for finding a solution.,, 59 | What do you understand by Artificial Intelligence?,"Artificial intelligence is computer science technology that emphasizes creating intelligent machine that can mimic human behavior. Here Intelligent machines can be defined as the machine that can behave like a human, think like a human, and also capable of decision making. It is made up of two words, ""Artificial"" and ""Intelligence,"" which means the ""man-made thinking ability."" 60 | 61 | With artificial intelligence, we do not need to pre-program the machine to perform a task; instead, we can create a machine with the programmed algorithms, and it can work on its ow",, 62 | Why do we need Artificial Intelligence?,"The goal of Artificial intelligence is to create intelligent machines that can mimic human behavior. We need AI for today's world to solve complex problems, make our lives more smoothly by automating the routine work, saving the manpower, and to perform many more other tasks.",, 63 | What do you understand by the reward maximization?,"Reward maximization term is used in reinforcement learning, and which is a goal of the reinforcement learning agent. In RL, a reward is a positive feedback by taking action for a transition from one state to another. If the agent performs a good action by applying optimal policies, he gets a reward, and if he performs a bad action, one reward is subtracted. The goal of the agent is to maximize these rewards by applying optimal policies, which is termed as reward maximization.",, 64 | "What Are Intelligent Agents, and How Are They Used in AI?","Intelligent agents are autonomous entities that use sensors to know what is going on, and then use actuators to perform their tasks or goals. They can be simple or complex and can be programmed to learn to accomplish their jobs better. ",, 65 | "What Is Tensorflow, and What Is It Used For?","TensorFlowis an open-source software library initially developed by the Google Brain Team for use in machine learning and neural networks research. It is used for data-flow programming. TensorFlow makes it much easier to build certain AI features into applications, including natural language processing and speech recognition. ",, 66 | "What Is Machine Learning, and How Does It Relate to AI? ",Machine learning is a subset of AI. The idea is that machines will “learn” and get better at tasks over time rather than having humans continually having to input parameters. Machine learning is a practical application of AI. ,, 67 | "What Are Neural Networks, and How Do They Relate to AI? ","Neural networks are a class of machine learning algorithms. The neuron part of the neural is the computational component, and the network part is how the neurons are connected. Neural networks pass data among themselves, gathering more and more meaning as the data moves along. Because the networks are interconnected, more complex data can be processed more efficiently.",, 68 | Why Is Image Recognition a Key Function of AI?,"Humans are visual, and AI is designed to emulate human brains. Therefore, teaching machines to recognize and categorize images is a crucial part of AI. Image recognition also helps machines to learn (as in machine learning) because the more images that are processed, the better the software gets at recognizing and processing those images. ",, 69 | What Is Automatic Programming?,"Automatic programming is describing what a program should do, and then having the AI system “write” the program.",, 70 | What Are Constraint Satisfaction Problems?,"Constraint Satisfaction Problems (CSPs) are mathematical problems defined as a set of objects, the state of which must meet several constraints. CSPs are useful for AI because the regularity of their formulation offers commonality for analyzing and solving problems. ",, 71 | What Is Supervised Versus Unsupervised Learning?,"Supervised learning is a machine learning process in which outputs are fed back into a computer for the software to learn from, for more accurate results the next time. With supervised learning, the “machine” receives initial training to start. In contrast, unsupervised learning means a computer will learn without initial training to base its knowledge.",, 72 | What role does computer vision play in AI?,"Artificial intelligence (AI) is broken down into a number of subfields, one of which is known as computer vision. Computer vision is the process of teaching computers to understand and collect data from the visual environment, such as graphics. Therefore, AI technology is used by computer vision in order to address complicated challenges such as image analysis, object identification, and other similar issues.",, 73 | Where does Artificial Intelligence go from here?,"It is anticipated that artificial intelligence will continue to have a significant impact on a large number of people as well as almost every sector. Artificial intelligence has become the primary impetus behind the development of new technologies such as robots, the Internet of Things, and large data sets. AI is capable of making an ideal judgment in a split second, which is almost difficult for a person to do. Cancer treatment, cutting-edge global climate solutions, smart transportation, and space research are all being aided by AI. We don't expect it to renounce its position as the driving force behind computer innovation and progress any time soon. Artificial Intelligence will have a greater influence on the globe than any other technological advancement in human history.",, 74 | " What do you comprehend by the phrase ""reward maximization""?","Reinforcement learning uses the phrase ""reward maximization"" to describe the purpose of the agent, which is to maximize rewards. Real-world rewards are positive feedback for doing an action that results in a change in a state. A reward is given to the agent if he uses optimum policies to complete a good deed, and a reward is deducted if he fails to do so. Rewards are maximized by using the best rules possible, which is known as reward maximization.",, 75 | What is your comprehension of hyperparameters?,"The training process is controlled by hyperparameters. Model train performance is directly influenced by these factors, which may be changed to one's liking. They are made known in advance. Algorithm hyperparameters that have no influence on simulation results but can influence the efficiency and acquisition of skills are the other two categories of hyperparameters that may be inferred when accommodating the machine to the learning algorithm.",, 76 | What is a Chatbot?,"A chatbot is a computer program with artificial intelligence (AI) that can converse with humans using natural language processing. The communication may take place on a website, via an application, or through one of the several messaging applications. These chatbots, which are often referred to as digital assistants, are capable of interacting with people either via the exchange of text or by voice commands. The majority of companies now make extensive use of AI chatbots in order to provide round-the-clock, virtual customer service to their clientele.",, 77 | What is the future of Artificial Intelligence?,"Artificial Intelligence has affected many humans and almost every industry, and it is expected to continue to do so. Artificial Intelligence has been the main driver of emerging technologies like the Internet of Things, big data, and robotics. AI can harness the power of a massive amount of data and make an optimal decision in a fraction of seconds, which is almost impossible for a normal human. AI is leading areas that are important for mankind such as cancer research, cutting-edge climate change technologies, smart cars, and space exploration. It has taken the center stage of innovation and development of computing, and it is not ceding the stage in the foreseeable future. Artificial Intelligence is going to impact the world more than anything in the history of mankind.",, 78 | Explain cost function.," A cost function is a scalar function that helps identify how wrong an AI model is with regard to its ability to determine the relationship between X and Y. In other words, it tells us the neural network’s error factor. The neural network works better when the cost function is lower. For instance, it takes the output predicted by the neural network and the actual output and then computes how incorrect the model was in its prediction. So, the cost function will give a lower number if the predictions don’t differ too much from the actual values and vice-versa.",, 79 | Explain vanishing gradient.,"As more layers are added and the distance from the final layer increases, backpropagation is not as helpful in sending information to the lower layers. As a result, the information is sent back, and the gradients start disappearing and becoming small in relation to network weights.",, 80 | Mention the steps of the gradient descent algorithm.,"The gradient descent algorithm helps in optimization and in finding coefficients of parameters that help minimize the cost function. The steps that help achieve this are as follows: Step 1: Give weights (x,y) random values and then compute the error, also called SSE Step 2: Compute the gradient or the change in SSE when you change the value of the weights (x,y) by a small amount. This step helps us identify the direction in which we must move x and y to minimize SSE. Step 3: Adjust the weights with the gradients for achieving optimal values for the minimal SSE. Step 4: Change the weights for predicting and calculating the new error. Step 5: Repeat steps 2 and 3 till the time making more adjustments stops producing significant error reduction.",, 81 | "What is the difference between Artificial Intelligence, Machine Learning, and Deep Learning?","DL is a subset of ML, which is the subset of AI. Hence, AI is the all-encompassing concept that initially erupted in computer science. It was then followed by ML that thrived later, and lastly DL, that is now promising to escalate the advances of AI to another level.",, 82 | Name some popular programming languages in AI.,"R, python lisp, prolog, java",, 83 | Name some popular programming languages in AI.,An expert system is an Artificial Intelligence program that has an expert-level knowledge about a specific area of data and its utilisation to react appropriately. These systems tend to have the capability to substitute a human expert. ,, 84 | What is the Tower of Hanoi?,"Tower of Hanoi essentially is a mathematical puzzle that displays how recursion is utilised as a device in building up an algorithm to solve a specific problem. The Tower of Hanoi can be solved using a decision tree and a breadth-first search (BFS) algorithm in AI. With 3 disks, a puzzle can essentially be solved in 7 moves. However, the minimal number of moves required to solve a Tower of Hanoi puzzle is 2n − 1, where n is the number of disks.",, 85 | What is an A* Algorithm search method?,"A* is a computer algorithm in AI that is extensively used for the purpose of finding paths or traversing graphs – to obtain the most optimal route between nodes. It is widely used in solving pathfinding problems in video games. Considering its flexibility and versatility, it can be used in a wide range of contexts. A* is formulated with weighted graphs, which means it can find the best path involving the smallest cost in terms of distance and time. This makes A* an informed search algorithm for best-first search.",, 86 | What is a breadth-first search algorithm?,"BFS algorithm is used to search tree or graph data structures. It starts from the root node, proceeds through neighbouring nodes, and finally moves towards the next level of nodes. Till the arrangement is found and created, it produces one tree at any given moment. As this pursuit is capable of being executed by utilising the FIFO (first-in, first-out) data structure, this strategy gives the shortest path to the solution.",, 87 | What is a Depth-first Search Algorithm?,"Depth-first search (DFS) is an algorithm that is based on LIFO (last-in, first-out). Since recursion is implemented with LIFO stack data structure, the nodes are in a different order than in BFS. The path is stored in each iteration from root to leaf nodes in a linear fashion with space requirement.",, 88 | What is fuzzy logic?,Fuzzy logic is a subset of AI. It is a way of encoding human learning for artificial processing. It is represented as IF-THEN rules. ,, 89 | What is Ensemble Learning?,"Ensemble learning is a computational technique in which classifiers or experts are strategically formed and combined. It is used to improve classification, prediction, and function approximation of any model.",, 90 | Explain tree topology?,"As the name suggests, “Tree” topology has several connected elements arranged like the branches of a tree. The structure has at least three specific levels in the hierarchy. These are scalable and accessible while troubleshooting and are so preferred. A common drawback in this topology is the hindrance or malfunctioning of the primary node.",, 91 | Explain Karl Pearson’s coefficient of correlation?,Karl Pearson’s correlation coefficient is a measure of the strength of a linear association between two variables. It is denoted by r or rxy (where x and y are the two variables involved). This method of correlation draws a line of best fit through the data of two variables.,, 92 | How to select the best hyperparameters in a tree-based model?,Measure the performance over validation data.,, 93 | How would you describe ML to a non-technical person?,"ML is geared toward pattern recognition. A great example of this is your Facebook newsfeed and Netflix’s recommendation engine. In this scenario, ML algorithms observe patterns and learn from them. When you deploy an ML program, it will keep learning and improving with each attempt.",, 94 | What’s selection bias? What other types of biases could you encounter during sampling?,"When you’re dealing with a non-random sample, selection bias will occur due to flaws in the selection process. This happens when a subset of the data is consistently excluded because of a particular attribute. This exclusion will distort results and influence the statistical significance of the test. Other types of biases include survivorship bias and undercoverage bias. It’s important to always consider and reduce such biases because you’ll want your smart algorithms to make accurate predictions based on the data.",, 95 | What’s an eigenvalue? What about an eigenvector?,"The directions along which a particular linear transformation compresses, flips, or stretches is called eigenvalue. Eigenvectors are used to understand these linear transformations. For example, to make better sense of the covariance of the covariance matrix, the eigenvector will help identify the direction in which the covariances are going. The eigenvalues will express the importance of each feature. Eigenvalues and eigenvectors are both critical to computer vision and ML applications.",, 96 | "Would you use batch normalization? If so, can you explain why?","The idea here is to standardize the data before sending it to another layer. This approach helps reduce the impact of previous layers by keeping the mean and variance constant. It also makes the layers independent of each other to achieve rapid convergence. For example, when we normalize features from 0 to 1 or from 1 to 100, it helps accelerate the learning cycle.",, 97 | When is it necessary to update an algorithm?,You should update an algorithm when the underlying data source has been changed or whenever there’s a case of non-stationarity. The algorithm should also be updated when you want the model to evolve as data streams through the infrastructure.,, 98 | What would you do if data in a data set were missing or corrupted?,"Whenever data is missing or corrupted, you either replace it with another value or drop those rows and columns altogether. In Pandas, both isNull() and dropNA() are handy tools to find missing or corrupted data and drop those values. You can also use the fillna() method to fill the invalid values in a placeholder—for example, “0.”",, 99 | "What is transfer learning, and how does it compare to a neural architecture approach?","Transfer learning is a process wherein the learning from an already developed model is resued and built upon for a new task. Essentially, it is using pre-trained models and customizing them for your use case.",, 100 | How do you choose an algorithm for solving artificial intelligence and machine learning issues?,"Before choosing an algorithm for solving artificial intelligence and machine learning issues, I try to identify the issue completely. This helps me to understand the situation to a greater extent. It then allows me to determine the most suitable input and the algorithm. For solving the issue completely, it is necessary to choose an algorithm that is accurate, scalable and simple in nature. For me, it is important to finish the project within the time frame so I focus on analysing the data first and then choose the algorithm accordingly depending on training and build time.",, 101 | What is simulated annealing Algorithm?,"The process is of heating and cooling a metal to change its internal structure. Although, for modifying its physical properties is known as annealing. As soon as the metal cools, it forms a new structure. Also, metal is going to retain its newly obtained properties. Although, we have to keep the variable temperature in a simulated annealing process. First, we have to set high temperature. Then, left it to allow “cool” slowly with the proceeding algorithm. Further, if there is high temperature, algorithm accepts worse solutions with high frequency.",, 102 | What is Natural Language Processing?,We use English language to communicate between an intelligent system and N.L.P. Processing of Natural Language plays an important role in various systems.,, 103 | What is Fuzzy Logic Implementation?,"Basically, it can be implemented in systems with various sizes and capabilities. That should be range from mall micro-controllers to large. Also, it can be implemented in hardware, software, or a combination of both in AI.",, 104 | What are Expert Systems in AI?,"We can say these are computer applications. Also, with the help of this development, we can solve complex problems. It has level of human intelligence and expertise.",, 105 | Give a brief introduction to robotics?,"Basically, robots have their specific aim. As they manipulate the objects. For Example- by perceiving, picking, moving, modifying the physical properties of an object.",, 106 | How are artificial intelligence and machine learning different from one another?,"Machine learning and deep learning are the sub-sets of artificial intelligence. While AI is a smart operating system that uses the cognitiobn abilities of a human brain to solve complex problems, machine learning is a computer system that allows machines to learn from the data collected by surveys, among other things. Artificial intelligence processes are concerned with maximizing the chances of success. Meanwhile, machine learning’s main concern is accuracy and pattern, not success.",, 107 | What are some of the popular AI domains?,"The answer to this artificial intelligence interview question will include machine learning, neutral networks, robotics, expert systems, fuzzy logic systems, and natural language processing. These popular sub-sets or domains of artificial intelligence have gained prominence in the last decade.",, 108 | Which is better for image classification? Supervised or unsupervised classification? Justify.,"In supervised classification, the images are manually fed and interpreted by the Machine Learning expert to create feature classes. In unsupervised classification, the Machine Learning software creates feature classes based on image pixel values. Therefore, it is better to choose supervised classification for image classification in terms of accuracy.",, 109 | "inite difference filters in image processing are very susceptible to noise. To cope up with this, which method can you use so that there would be minimal distortions by noise?","Image Smoothing is one of the best methods used for reducing noise by forcing pixels to be more like their neighbors, this reduces any distortions caused by contrasts.",, 110 | What is a Confusion Matrix? How does it work?,"A confusion matrix is a specific table that is commonly used to measure the performance of an algorithm. It is mostly used in supervised learning; in unsupervised learning, it's called the matching matrix. It has two parameters actual and predicted.",, 111 | -------------------------------------------------------------------------------- /data/data.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadMillwala/MockVue-Mock-Job-Interview-System/f2e68d9f1cae60cfd39802c2b9ce24f653a4a4ab/data/data.tar.gz -------------------------------------------------------------------------------- /data/normalized_dataset.csv: -------------------------------------------------------------------------------- 1 | Questions,Answers 2 | what is artificial intelligence,artificial intelligence is an area of computer science that emphasizes the creation of intelligent machine that work and reacts like humans 3 | what is an artificial intelligence neural networks,artificial intelligence neural networks can model mathematically the way biological brain works allowing the machine to think and learn the same way the humans do making them capable of recognizing things like speech objects and animals like we do 4 | give an explanation on the difference between strong ai and weak ai,strong ai makes strong claims that computers can be made to think on a level equal to humans while weak ai simply predicts that some features that are resembling to human intelligence can be incorporated to computer to make it more useful tools 5 | mention the difference between statistical ai and classical ai,statistical ai is more concerned with inductive thought like given a set of pattern induce the trend etc while classical ai on the other hand is more concerned with deductive thought given as a set of constraints deduce a conclusion etc 6 | which is the best way to go for game playing problem,heuristic approach is the best way to go for game playing problem as it will use the technique based on intelligent guesswork for example chess between humans and computers as it will use brute force computation looking at hundreds of thousands of positions 7 | how is machine learning related to artificial intelligence,artificial intelligence is a technique that enables machines to mimic human behavior whereas machine learning is a subset of artificial intelligence it is the science of getting computers to act by feeding them data and letting them learn a few tricks on their own without being explicitly programmed to do so 8 | what is qlearning,the qlearning is a reinforcement learning algorithm in which an agent tries to learn the optimal policy from its past experiences with the environment the past experiences of an agent are a sequence of stateactionrewards 9 | what is deep learning,deep learning imitates the way our brain works ie it learns from experiences it uses the concepts of neural networks to solve complex problems 10 | what are bayesian networks,bayesian network is a statistical model that represents a set of variables and their conditional dependencies in the form of a directed acyclic graph on the occurrence of an event bayesian networks can be used to predict the likelihood that any one of several possible known causes was the contributing factor for example a bayesian network could be used to study the relationship between diseases and symptoms given various symptoms the bayesian network is ideal for computing the probabilities of the presence of various diseases 11 | explain the assessment that is used to test the intelligence of a machine,in artificial intelligence ai a turing test is a method of inquiry for determining whether or not a computer is capable of thinking like a human being 12 | explain reward maximization in reinforcement learning,the rl agent works based on the theory of reward maximization this is exactly why the rl agent must be trained in such a way that he takes the best action so that the reward is maximum 13 | what is exploitation and exploration tradeoff,an important concept in reinforcement learning is the exploration and exploitation tradeoff exploration like the name suggests is about exploring and capturing more information about an environment on the other hand exploitation is about using the already known exploited information to heighten the rewardsconsider the fox and tiger example where the fox eats only the meat small chunks close to him but he doesnt eat the bigger meat chunks at the top even though the bigger meat chunks would get him more rewards if the fox only focuses on the closest reward he will never reach the big chunks of meat this is called exploitation but if the fox decides to explore a bit it can find the bigger reward ie the big chunk of meat this is exploration 14 | what are hyperparameters in deep neural networks,hyperparameters are variables that define the structure of the network for example variables such as the learning rate define how the network is trained they are used to define the number of hidden layers that must be present in a network more hidden units can increase the accuracy of the network whereas a lesser number of units may cause underfitting 15 | how does data overfitting occur,overfitting occurs when a statistical model or machine learning algorithm captures the noise of the data this causes an algorithm to show low bias but high variance in the outcome 16 | mention a technique that helps to avoid overfitting in a neural network,dropout is a type of regularization technique used to avoid overfitting in a neural network it is a technique where randomly selected neurons are dropped during training the dropout value of a network must be chosen wisely a value too low will result in a minimal effect and a value too high results in underlearning by the network 17 | what is stemming lemmatization in nlp,stemming algorithms work by cutting off the end or the beginning of the word taking into account a list of common prefixes and suffixes that can be found in an inflected word this indiscriminate cutting can be successful on some occasions but not always lemmatization on the other hand takes into consideration the morphological analysis of the words to do so it is necessary to have detailed dictionaries which the algorithm can look through to link the form back to its lemma 18 | how is computer vision and ai related,computer vision is a field of artificial intelligence that is used to obtain information from images or multidimensional data machine learning algorithms such as kmeans is used for image segmentation support vector machine is used for image classification and so on therefore computer vision makes use of ai technologies to solve complex problems such as object detection image processing etc 19 | which is better for image classification supervised or unsupervised classification justify,in supervised classification the images are manually fed and interpreted by the machine learning expert to create feature classes 20 | finite difference filters in image processing are very susceptible to noise to cope up with this which method can you use so that there would be minimal distortions by noise,image smoothing is one of the best methods used for reducing noise by forcing pixels to be more like their neighbors this reduces any distortions caused by contrasts 21 | how is game theory and ai related,in the context of artificial intelligenceai and deep learning systems game theory is essential to enable some of the key capabilities required in multiagent environments in which different ai programs need to interact or compete in order to accomplish a goal 22 | what is generality in ai,generality is the measure of ease with which the method can be adapted to different domains of application 23 | what is a topdown parser,a topdown parser begins by hypothesizing a sentence and successively predicting lower level constituents until individual preterminal symbols are written 24 | mention the difference between breadth first search and best first search in artificial intelligence,these are the two strategies which are quite similar in best first search we expand the nodes in accordance with the evaluation function while in breadth first search a node is expanded in accordance to the cost function of the parent node 25 | what are frames and scripts in artificial intelligence,frames are a variant of semantic networks which is one of the popular ways of presenting nonprocedural knowledge in an expert system a frame which is an artificial data structure is used to divide knowledge into substructure by representing stereotyped situations scripts are similar to frames except the values that fill the slots must be ordered scripts are used in natural language understanding systems to organize a knowledge base in terms of the situation that the system should understand 26 | what is fopl stands for and explain its role in artificial intelligence,fopl stands for first order predicate logic predicate logic provides a language to express assertions about certain world an inference system to deductive apparatus whereby we may draw conclusions from such assertion a semantic based on set theory 27 | for online search in artificial intelligence which search agent operates by interleaving computation and action,in online search it will first take action and then observes the environment 28 | which search algorithm will use a limited amount of memory in online search,rbfe and sma will solve any kind of problem that a cant by using a limited amount of memory 29 | in artificial intelligence where you can use the bayes rule,in artificial intelligence to answer the probabilistic queries conditioned on one piece of evidence bayes rule can be used 30 | for building a bayes model how many terms are required,for building a bayes model in ai three terms are required they are one conditional probability and two unconditional probability 31 | what is the consequence between a node and its predecessors while creating bayesian network,while creating bayesian network the consequence between a node and its predecessors is that a node can be conditionally independent of its predecessors 32 | to answer any query how the bayesian network can be used,if a bayesian network is a representative of the joint distribution then by summing all the relevant joint entries it can solve any query 33 | what combines inductive methods with the power of first order representations,inductive logic programming combines inductive methods with the power of first order representations 34 | in inductive logic programming what needed to be satisfied,the objective of an inductive logic programming is to come up with a set of sentences for the hypothesis such that the entailment constraint is satisfied 35 | which algorithm inverts a complete resolution strategy,inverse resolution inverts a complete resolution as it is a complete algorithm for learning first order theories 36 | in speech recognition what kind of signal is used,in speech recognition acoustic signal is used to identify a sequence of words 37 | in speech recognition which model gives the probability of each word following each word,biagram model gives the probability of each word following each other word in speech recognition 38 | what is hidden markov model hmms is used,hidden markov models are a ubiquitous tool for modelling time series data or to model sequence behaviour they are used in almost all current speech recognition systems 39 | in hmm where does the additional variable is added,while staying within the hmm network the additional state variables can be added to a temporal model 40 | in artificial intelligence what do semantic analyses used for,in artificial intelligence to extract the meaning from the group of sentences semantic analysis is used 41 | what is meant by compositional semantics,the process of determining the meaning of pq from pq and is known as compositional semantics 42 | which process makes different logical expression looks identical,unification process makes different logical expressions identical lifted inferences require finding substitute which can make a different expression looks identical this process is called unification 43 | which is the most straight forward approach for planning algorithm,state space search is the most straight forward approach for planning algorithm because it takes account of everything for finding a solution 44 | what do you understand by artificial intelligence,artificial intelligence is computer science technology that emphasizes creating intelligent machine that can mimic human behavior here intelligent machines can be defined as the machine that can behave like a human think like a human and also capable of decision making it is made up of two words artificial and intelligence which means the manmade thinking ability with artificial intelligence we do not need to preprogram the machine to perform a task instead we can create a machine with the programmed algorithms and it can work on its ow 45 | why do we need artificial intelligence,the goal of artificial intelligence is to create intelligent machines that can mimic human behavior we need ai for todays world to solve complex problems make our lives more smoothly by automating the routine work saving the manpower and to perform many more other tasks 46 | what do you understand by the reward maximization,reward maximization term is used in reinforcement learning and which is a goal of the reinforcement learning agent in rl a reward is a positive feedback by taking action for a transition from one state to another if the agent performs a good action by applying optimal policies he gets a reward and if he performs a bad action one reward is subtracted the goal of the agent is to maximize these rewards by applying optimal policies which is termed as reward maximization 47 | what are intelligent agents and how are they used in ai,intelligent agents are autonomous entities that use sensors to know what is going on and then use actuators to perform their tasks or goals they can be simple or complex and can be programmed to learn to accomplish their jobs better 48 | what is tensorflow and what is it used for,tensorflowis an opensource software library initially developed by the google brain team for use in machine learning and neural networks research it is used for dataflow programming tensorflow makes it much easier to build certain ai features into applications including natural language processing and speech recognition 49 | what is machine learning and how does it relate to ai,machine learning is a subset of ai the idea is that machines will learn and get better at tasks over time rather than having humans continually having to input parameters machine learning is a practical application of ai 50 | what are neural networks and how do they relate to ai,neural networks are a class of machine learning algorithms the neuron part of the neural is the computational component and the network part is how the neurons are connected neural networks pass data among themselves gathering more and more meaning as the data moves along because the networks are interconnected more complex data can be processed more efficiently 51 | why is image recognition a key function of ai,humans are visual and ai is designed to emulate human brains therefore teaching machines to recognize and categorize images is a crucial part of ai image recognition also helps machines to learn as in machine learning because the more images that are processed the better the software gets at recognizing and processing those images 52 | what is automatic programming,automatic programming is describing what a program should do and then having the ai system write the program 53 | what are constraint satisfaction problems,constraint satisfaction problems csps are mathematical problems defined as a set of objects the state of which must meet several constraints csps are useful for ai because the regularity of their formulation offers commonality for analyzing and solving problems 54 | what is supervised versus unsupervised learning,supervised learning is a machine learning process in which outputs are fed back into a computer for the software to learn from for more accurate results the next time with supervised learning the machine receives initial training to start in contrast unsupervised learning means a computer will learn without initial training to base its knowledge 55 | what role does computer vision play in ai,artificial intelligence ai is broken down into a number of subfields one of which is known as computer vision computer vision is the process of teaching computers to understand and collect data from the visual environment such as graphics therefore ai technology is used by computer vision in order to address complicated challenges such as image analysis object identification and other similar issues 56 | where does artificial intelligence go from here,it is anticipated that artificial intelligence will continue to have a significant impact on a large number of people as well as almost every sector artificial intelligence has become the primary impetus behind the development of new technologies such as robots the internet of things and large data sets ai is capable of making an ideal judgment in a split second which is almost difficult for a person to do cancer treatment cuttingedge global climate solutions smart transportation and space research are all being aided by ai we dont expect it to renounce its position as the driving force behind computer innovation and progress any time soon artificial intelligence will have a greater influence on the globe than any other technological advancement in human history 57 | what do you comprehend by the phrase reward maximization,reinforcement learning uses the phrase reward maximization to describe the purpose of the agent which is to maximize rewards realworld rewards are positive feedback for doing an action that results in a change in a state a reward is given to the agent if he uses optimum policies to complete a good deed and a reward is deducted if he fails to do so rewards are maximized by using the best rules possible which is known as reward maximization 58 | what is your comprehension of hyperparameters,the training process is controlled by hyperparameters model train performance is directly influenced by these factors which may be changed to ones liking they are made known in advance algorithm hyperparameters that have no influence on simulation results but can influence the efficiency and acquisition of skills are the other two categories of hyperparameters that may be inferred when accommodating the machine to the learning algorithm 59 | what is a chatbot,a chatbot is a computer program with artificial intelligence ai that can converse with humans using natural language processing the communication may take place on a website via an application or through one of the several messaging applications these chatbots which are often referred to as digital assistants are capable of interacting with people either via the exchange of text or by voice commands the majority of companies now make extensive use of ai chatbots in order to provide roundtheclock virtual customer service to their clientele 60 | what is the future of artificial intelligence,artificial intelligence has affected many humans and almost every industry and it is expected to continue to do so artificial intelligence has been the main driver of emerging technologies like the internet of things big data and robotics ai can harness the power of a massive amount of data and make an optimal decision in a fraction of seconds which is almost impossible for a normal human ai is leading areas that are important for mankind such as cancer research cuttingedge climate change technologies smart cars and space exploration it has taken the center stage of innovation and development of computing and it is not ceding the stage in the foreseeable future artificial intelligence is going to impact the world more than anything in the history of mankind 61 | explain cost function,a cost function is a scalar function that helps identify how wrong an ai model is with regard to its ability to determine the relationship between x and y in other words it tells us the neural networks error factor the neural network works better when the cost function is lower for instance it takes the output predicted by the neural network and the actual output and then computes how incorrect the model was in its prediction so the cost function will give a lower number if the predictions dont differ too much from the actual values and viceversa 62 | explain vanishing gradient,as more layers are added and the distance from the final layer increases backpropagation is not as helpful in sending information to the lower layers as a result the information is sent back and the gradients start disappearing and becoming small in relation to network weights 63 | mention the steps of the gradient descent algorithm,the gradient descent algorithm helps in optimization and in finding coefficients of parameters that help minimize the cost function the steps that help achieve this are as follows step 1 give weights xy random values and then compute the error also called sse step 2 compute the gradient or the change in sse when you change the value of the weights xy by a small amount this step helps us identify the direction in which we must move x and y to minimize sse step 3 adjust the weights with the gradients for achieving optimal values for the minimal sse step 4 change the weights for predicting and calculating the new error step 5 repeat steps 2 and 3 till the time making more adjustments stops producing significant error reduction 64 | what is the difference between artificial intelligence machine learning and deep learning,dl is a subset of ml which is the subset of ai hence ai is the allencompassing concept that initially erupted in computer science it was then followed by ml that thrived later and lastly dl that is now promising to escalate the advances of ai to another level 65 | name some popular programming languages in ai,r python lisp prolog java 66 | name some popular programming languages in ai,an expert system is an artificial intelligence program that has an expertlevel knowledge about a specific area of data and its utilisation to react appropriately these systems tend to have the capability to substitute a human expert 67 | what is the tower of hanoi,tower of hanoi essentially is a mathematical puzzle that displays how recursion is utilised as a device in building up an algorithm to solve a specific problem the tower of hanoi can be solved using a decision tree and a breadthfirst search bfs algorithm in ai with 3 disks a puzzle can essentially be solved in 7 moves however the minimal number of moves required to solve a tower of hanoi puzzle is 2n 1 where n is the number of disks 68 | what is an a algorithm search method,a is a computer algorithm in ai that is extensively used for the purpose of finding paths or traversing graphs to obtain the most optimal route between nodes it is widely used in solving pathfinding problems in video games considering its flexibility and versatility it can be used in a wide range of contexts a is formulated with weighted graphs which means it can find the best path involving the smallest cost in terms of distance and time this makes a an informed search algorithm for bestfirst search 69 | what is a breadthfirst search algorithm,bfs algorithm is used to search tree or graph data structures it starts from the root node proceeds through neighbouring nodes and finally moves towards the next level of nodes till the arrangement is found and created it produces one tree at any given moment as this pursuit is capable of being executed by utilising the fifo firstin firstout data structure this strategy gives the shortest path to the solution 70 | what is a depthfirst search algorithm,depthfirst search dfs is an algorithm that is based on lifo lastin firstout since recursion is implemented with lifo stack data structure the nodes are in a different order than in bfs the path is stored in each iteration from root to leaf nodes in a linear fashion with space requirement 71 | what is fuzzy logic,fuzzy logic is a subset of ai it is a way of encoding human learning for artificial processing it is represented as ifthen rules 72 | what is ensemble learning,ensemble learning is a computational technique in which classifiers or experts are strategically formed and combined it is used to improve classification prediction and function approximation of any model 73 | explain tree topology,as the name suggests tree topology has several connected elements arranged like the branches of a tree the structure has at least three specific levels in the hierarchy these are scalable and accessible while troubleshooting and are so preferred a common drawback in this topology is the hindrance or malfunctioning of the primary node 74 | explain karl pearsons coefficient of correlation,karl pearsons correlation coefficient is a measure of the strength of a linear association between two variables it is denoted by r or rxy where x and y are the two variables involved this method of correlation draws a line of best fit through the data of two variables 75 | how to select the best hyperparameters in a treebased model,measure the performance over validation data 76 | how would you describe ml to a nontechnical person,ml is geared toward pattern recognition a great example of this is your facebook newsfeed and netflixs recommendation engine in this scenario ml algorithms observe patterns and learn from them when you deploy an ml program it will keep learning and improving with each attempt 77 | whats selection bias what other types of biases could you encounter during sampling,when youre dealing with a nonrandom sample selection bias will occur due to flaws in the selection process this happens when a subset of the data is consistently excluded because of a particular attribute this exclusion will distort results and influence the statistical significance of the test other types of biases include survivorship bias and undercoverage bias its important to always consider and reduce such biases because youll want your smart algorithms to make accurate predictions based on the data 78 | whats an eigenvalue what about an eigenvector,the directions along which a particular linear transformation compresses flips or stretches is called eigenvalue eigenvectors are used to understand these linear transformations for example to make better sense of the covariance of the covariance matrix the eigenvector will help identify the direction in which the covariances are going the eigenvalues will express the importance of each feature eigenvalues and eigenvectors are both critical to computer vision and ml applications 79 | would you use batch normalization if so can you explain why,the idea here is to standardize the data before sending it to another layer this approach helps reduce the impact of previous layers by keeping the mean and variance constant it also makes the layers independent of each other to achieve rapid convergence for example when we normalize features from 0 to 1 or from 1 to 100 it helps accelerate the learning cycle 80 | when is it necessary to update an algorithm,you should update an algorithm when the underlying data source has been changed or whenever theres a case of nonstationarity the algorithm should also be updated when you want the model to evolve as data streams through the infrastructure 81 | what would you do if data in a data set were missing or corrupted,whenever data is missing or corrupted you either replace it with another value or drop those rows and columns altogether in pandas both isnull and dropna are handy tools to find missing or corrupted data and drop those values you can also use the fillna method to fill the invalid values in a placeholderfor example 0 82 | what is transfer learning and how does it compare to a neural architecture approach,transfer learning is a process wherein the learning from an already developed model is resued and built upon for a new task essentially it is using pretrained models and customizing them for your use case 83 | how do you choose an algorithm for solving artificial intelligence and machine learning issues,before choosing an algorithm for solving artificial intelligence and machine learning issues i try to identify the issue completely this helps me to understand the situation to a greater extent it then allows me to determine the most suitable input and the algorithm for solving the issue completely it is necessary to choose an algorithm that is accurate scalable and simple in nature for me it is important to finish the project within the time frame so i focus on analysing the data first and then choose the algorithm accordingly depending on training and build time 84 | what is simulated annealing algorithm,the process is of heating and cooling a metal to change its internal structure although for modifying its physical properties is known as annealing as soon as the metal cools it forms a new structure also metal is going to retain its newly obtained properties although we have to keep the variable temperature in a simulated annealing process first we have to set high temperature then left it to allow cool slowly with the proceeding algorithm further if there is high temperature algorithm accepts worse solutions with high frequency 85 | what is natural language processing,we use english language to communicate between an intelligent system and nlp processing of natural language plays an important role in various systems 86 | what is fuzzy logic implementation,basically it can be implemented in systems with various sizes and capabilities that should be range from mall microcontrollers to large also it can be implemented in hardware software or a combination of both in ai 87 | what are expert systems in ai,we can say these are computer applications also with the help of this development we can solve complex problems it has level of human intelligence and expertise 88 | give a brief introduction to robotics,basically robots have their specific aim as they manipulate the objects for example by perceiving picking moving modifying the physical properties of an object 89 | how are artificial intelligence and machine learning different from one another,machine learning and deep learning are the subsets of artificial intelligence while ai is a smart operating system that uses the cognitiobn abilities of a human brain to solve complex problems machine learning is a computer system that allows machines to learn from the data collected by surveys among other things artificial intelligence processes are concerned with maximizing the chances of success meanwhile machine learnings main concern is accuracy and pattern not success 90 | what are some of the popular ai domains,the answer to this artificial intelligence interview question will include machine learning neutral networks robotics expert systems fuzzy logic systems and natural language processing these popular subsets or domains of artificial intelligence have gained prominence in the last decade 91 | which is better for image classification supervised or unsupervised classification justify,in supervised classification the images are manually fed and interpreted by the machine learning expert to create feature classes in unsupervised classification the machine learning software creates feature classes based on image pixel values therefore it is better to choose supervised classification for image classification in terms of accuracy 92 | inite difference filters in image processing are very susceptible to noise to cope up with this which method can you use so that there would be minimal distortions by noise,image smoothing is one of the best methods used for reducing noise by forcing pixels to be more like their neighbors this reduces any distortions caused by contrasts 93 | what is a confusion matrix how does it work,a confusion matrix is a specific table that is commonly used to measure the performance of an algorithm it is mostly used in supervised learning in unsupervised learning its called the matching matrix it has two parameters actual and predicted 94 | -------------------------------------------------------------------------------- /dataset_normalization.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import pandas as pd\n", 10 | "import string\n", 11 | "import re\n", 12 | "import numpy as np" 13 | ] 14 | }, 15 | { 16 | "cell_type": "code", 17 | "execution_count": 2, 18 | "metadata": {}, 19 | "outputs": [], 20 | "source": [ 21 | "df = pd.read_csv('data/Dataset.csv')" 22 | ] 23 | }, 24 | { 25 | "cell_type": "code", 26 | "execution_count": 3, 27 | "metadata": {}, 28 | "outputs": [], 29 | "source": [ 30 | "df = df.fillna(value=np.nan)" 31 | ] 32 | }, 33 | { 34 | "cell_type": "code", 35 | "execution_count": 4, 36 | "metadata": {}, 37 | "outputs": [ 38 | { 39 | "data": { 40 | "text/html": [ 41 | "
\n", 59 | " | Questions | \n", 60 | "Answers | \n", 61 | "Unnamed: 2 | \n", 62 | "Unnamed: 3 | \n", 63 | "
---|---|---|---|---|
0 | \n", 68 | "What is Artificial Intelligence? | \n", 69 | "Artificial Intelligence is an area of computer... | \n", 70 | "NaN | \n", 71 | "NaN | \n", 72 | "
1 | \n", 75 | "What is an artificial intelligence Neural Netw... | \n", 76 | "Artificial intelligence Neural Networks can mo... | \n", 77 | "NaN | \n", 78 | "NaN | \n", 79 | "
2 | \n", 82 | "Give an explanation on the difference between ... | \n", 83 | "Strong AI makes strong claims that computers c... | \n", 84 | "NaN | \n", 85 | "NaN | \n", 86 | "
3 | \n", 89 | "Mention the difference between statistical AI ... | \n", 90 | "Statistical AI is more concerned with “inducti... | \n", 91 | "NaN | \n", 92 | "NaN | \n", 93 | "
4 | \n", 96 | "Which is the best way to go for Game playing ... | \n", 97 | "Heuristic approach is the best way to go for g... | \n", 98 | "NaN | \n", 99 | "NaN | \n", 100 | "
... | \n", 103 | "... | \n", 104 | "... | \n", 105 | "... | \n", 106 | "... | \n", 107 | "
94 | \n", 110 | "How are artificial intelligence and machine le... | \n", 111 | "Machine learning and deep learning are the sub... | \n", 112 | "NaN | \n", 113 | "NaN | \n", 114 | "
95 | \n", 117 | "What are some of the popular AI domains? | \n", 118 | "The answer to this artificial intelligence int... | \n", 119 | "NaN | \n", 120 | "NaN | \n", 121 | "
96 | \n", 124 | "Which is better for image classification? Supe... | \n", 125 | "In supervised classification, the images are m... | \n", 126 | "NaN | \n", 127 | "NaN | \n", 128 | "
97 | \n", 131 | "inite difference filters in image processing a... | \n", 132 | "Image Smoothing is one of the best methods use... | \n", 133 | "NaN | \n", 134 | "NaN | \n", 135 | "
98 | \n", 138 | "What is a Confusion Matrix? How does it work? | \n", 139 | "A confusion matrix is a specific table that ... | \n", 140 | "NaN | \n", 141 | "NaN | \n", 142 | "
99 rows × 4 columns
\n", 146 | "\n", 241 | " | Questions | \n", 242 | "Answers | \n", 243 | "
---|---|---|
0 | \n", 248 | "What is Artificial Intelligence? | \n", 249 | "Artificial Intelligence is an area of computer... | \n", 250 | "
1 | \n", 253 | "What is an artificial intelligence Neural Netw... | \n", 254 | "Artificial intelligence Neural Networks can mo... | \n", 255 | "
2 | \n", 258 | "Give an explanation on the difference between ... | \n", 259 | "Strong AI makes strong claims that computers c... | \n", 260 | "
3 | \n", 263 | "Mention the difference between statistical AI ... | \n", 264 | "Statistical AI is more concerned with “inducti... | \n", 265 | "
4 | \n", 268 | "Which is the best way to go for Game playing ... | \n", 269 | "Heuristic approach is the best way to go for g... | \n", 270 | "
5 | \n", 273 | "How is Machine Learning related to Artificial ... | \n", 274 | "Artificial Intelligence is a technique that en... | \n", 275 | "
6 | \n", 278 | "What is Q-Learning? | \n", 279 | "The Q-learning is a Reinforcement Learning alg... | \n", 280 | "
7 | \n", 283 | "What is Deep Learning? | \n", 284 | "Deep learning imitates the way our brain works... | \n", 285 | "
8 | \n", 288 | "What are Bayesian Networks? | \n", 289 | "Bayesian network is a statistical model that ... | \n", 290 | "
9 | \n", 293 | "Explain the assessment that is used to test t... | \n", 294 | "In artificial intelligence (AI), a Turing Test... | \n", 295 | "
10 | \n", 298 | "Explain reward maximization in Reinforcement L... | \n", 299 | "The RL agent works based on the theory of rewa... | \n", 300 | "
11 | \n", 303 | "What is exploitation and exploration trade-off? | \n", 304 | "An important concept in reinforcement learning... | \n", 305 | "
12 | \n", 308 | "What are hyperparameters in Deep Neural Networks? | \n", 309 | "Hyperparameters are variables that define the ... | \n", 310 | "
13 | \n", 313 | "How does data overfitting occur | \n", 314 | "Overfitting occurs when a statistical model or... | \n", 315 | "
14 | \n", 318 | "Mention a technique that helps to avoid overfi... | \n", 319 | "Dropout is a type of regularization technique ... | \n", 320 | "
19 | \n", 323 | "What is Stemming & Lemmatization in NLP? | \n", 324 | "Stemming algorithms work by cutting off the en... | \n", 325 | "
20 | \n", 328 | "How is Computer Vision and AI related? | \n", 329 | "Computer Vision is a field of Artificial Intel... | \n", 330 | "
21 | \n", 333 | "Which is better for image classification? Supe... | \n", 334 | "In supervised classification, the images are m... | \n", 335 | "
25 | \n", 338 | "Finite difference filters in image processing ... | \n", 339 | "Image Smoothing is one of the best methods use... | \n", 340 | "
26 | \n", 343 | "How is Game theory and AI related? | \n", 344 | "In the context of artificial intelligence(AI) ... | \n", 345 | "
\n", 450 | " | Questions | \n", 451 | "Answers | \n", 452 | "
---|---|---|
0 | \n", 457 | "what is artificial intelligence | \n", 458 | "artificial intelligence is an area of computer... | \n", 459 | "
1 | \n", 462 | "what is an artificial intelligence neural netw... | \n", 463 | "artificial intelligence neural networks can mo... | \n", 464 | "
2 | \n", 467 | "give an explanation on the difference between ... | \n", 468 | "strong ai makes strong claims that computers c... | \n", 469 | "
3 | \n", 472 | "mention the difference between statistical ai ... | \n", 473 | "statistical ai is more concerned with inductiv... | \n", 474 | "
4 | \n", 477 | "which is the best way to go for game playing p... | \n", 478 | "heuristic approach is the best way to go for g... | \n", 479 | "
... | \n", 482 | "... | \n", 483 | "... | \n", 484 | "
94 | \n", 487 | "how are artificial intelligence and machine le... | \n", 488 | "machine learning and deep learning are the sub... | \n", 489 | "
95 | \n", 492 | "what are some of the popular ai domains | \n", 493 | "the answer to this artificial intelligence int... | \n", 494 | "
96 | \n", 497 | "which is better for image classification super... | \n", 498 | "in supervised classification the images are ma... | \n", 499 | "
97 | \n", 502 | "inite difference filters in image processing a... | \n", 503 | "image smoothing is one of the best methods use... | \n", 504 | "
98 | \n", 507 | "what is a confusion matrix how does it work | \n", 508 | "a confusion matrix is a specific table that is... | \n", 509 | "
92 rows × 2 columns
\n", 513 | "\n", 580 | " | Questions | \n", 581 | "Answers | \n", 582 | "
---|---|---|
0 | \n", 587 | "what is artificial intelligence | \n", 588 | "artificial intelligence is an area of computer... | \n", 589 | "
1 | \n", 592 | "what is an artificial intelligence neural netw... | \n", 593 | "artificial intelligence neural networks can mo... | \n", 594 | "
2 | \n", 597 | "give an explanation on the difference between ... | \n", 598 | "strong ai makes strong claims that computers c... | \n", 599 | "
3 | \n", 602 | "mention the difference between statistical ai ... | \n", 603 | "statistical ai is more concerned with inductiv... | \n", 604 | "
4 | \n", 607 | "which is the best way to go for game playing p... | \n", 608 | "heuristic approach is the best way to go for g... | \n", 609 | "
5 | \n", 612 | "how is machine learning related to artificial ... | \n", 613 | "artificial intelligence is a technique that en... | \n", 614 | "
6 | \n", 617 | "what is qlearning | \n", 618 | "the qlearning is a reinforcement learning algo... | \n", 619 | "
7 | \n", 622 | "what is deep learning | \n", 623 | "deep learning imitates the way our brain works... | \n", 624 | "
8 | \n", 627 | "what are bayesian networks | \n", 628 | "bayesian network is a statistical model that r... | \n", 629 | "
9 | \n", 632 | "explain the assessment that is used to test th... | \n", 633 | "in artificial intelligence ai a turing test is... | \n", 634 | "
10 | \n", 637 | "explain reward maximization in reinforcement l... | \n", 638 | "the rl agent works based on the theory of rewa... | \n", 639 | "
11 | \n", 642 | "what is exploitation and exploration tradeoff | \n", 643 | "an important concept in reinforcement learning... | \n", 644 | "
12 | \n", 647 | "what are hyperparameters in deep neural networks | \n", 648 | "hyperparameters are variables that define the ... | \n", 649 | "
13 | \n", 652 | "how does data overfitting occur | \n", 653 | "overfitting occurs when a statistical model or... | \n", 654 | "
14 | \n", 657 | "mention a technique that helps to avoid overfi... | \n", 658 | "dropout is a type of regularization technique ... | \n", 659 | "
19 | \n", 662 | "what is stemming lemmatization in nlp | \n", 663 | "stemming algorithms work by cutting off the en... | \n", 664 | "
20 | \n", 667 | "how is computer vision and ai related | \n", 668 | "computer vision is a field of artificial intel... | \n", 669 | "
21 | \n", 672 | "which is better for image classification super... | \n", 673 | "in supervised classification the images are ma... | \n", 674 | "
25 | \n", 677 | "finite difference filters in image processing ... | \n", 678 | "image smoothing is one of the best methods use... | \n", 679 | "
26 | \n", 682 | "how is game theory and ai related | \n", 683 | "in the context of artificial intelligenceai an... | \n", 684 | "
INSTRUCTIONS
25 |Read the question carefully before answering
26 |You will have a total of 10 questions
27 |For each question you will have one minute to answer
28 |Timer can be seen below the navbar. The brown bar represents the time remaining
29 |Failure to answer the question within the time limit will be marked as 0
30 |Answers should be to the point
31 |Pay special attention to the grammar
32 | PROCEED 33 |