Implementation of Multilayer Feed-Forward Neural Network (MLP) on Wine Quality Dataset using Keras
Experiment
Implementation of Multilayer Feed-Forward Neural Network (MLP) on Wine Quality Dataset using Keras
🎯 Objective
- To implement a MLP using Keras
- To train and evaluate the model on the Wine Quality dataset
-
To understand:
- Forward propagation
- Backpropagation
- Model evaluation
Theory
🔹 1. Multilayer Feed-Forward Network (MLP)
- A type of artificial neural network
-
Consists of:
- Input layer
- One or more hidden layers
- Output layer
👉 Data flows only in one direction (no cycles)
🔹 2. Wine Quality Dataset
-
Contains chemical properties of wine:
- acidity, sugar, pH, alcohol, etc.
-
Output:
- Wine quality score (0–10)
👉 Can be treated as:
- Classification problem (recommended for lab)
🔹 3. Forward Propagation
🔹 4. Backpropagation
- Computes gradients using chain rule
- Updates weights to minimize loss
🔹 5. Activation Functions
-
Hidden layers →
ReLU -
Output layer →
Softmax
🔹 6. Loss Function
- Categorical Crossentropy
🔹 7. Optimizer
- Adam (adaptive gradient method)
💻 Program (Keras Implementation)
📌 Step 1: Import Libraries
📌 Step 2: Load Dataset
📌 Step 3: Preprocessing
📌 Step 4: Build MLP Model
📌 Step 5: Compile Model
📌 Step 6: Train Model
📌 Step 7: Evaluate Model
📈 Loss and Accuracy Visualization
🔍 Observations
- Training loss decreases over epochs
- Validation accuracy stabilizes
- Model learns meaningful patterns
Result
- MLP successfully classifies wine quality
- Achieves reasonable accuracy depending on training


Comments
Post a Comment