Brain Tumor Detection using CNN: Achieved 96% accuracy in tumor classification utilizing TensorFlow for model development and optimization.😎🔐
Experience the power of deep learning with our Kaggle repository! We present a comprehensive implem$
Start by importing necessary libraries for data manipulation, visualization, and model construction wi$
Define the dataset path and training/testing directories, and establish the categories for brain tumor$
Read images from each category in the training directory, create a DataFrame to store image data, and $
Display sample images for each tumor type in a grid of subplots.
Define image dimensions, batch size for training, and the number of training epochs.
Augment the training dataset to improve model generalization using techniques like rotation, shifting,$
Construct a CNN model with convolutional, max pooling, dense, and dropout layers. Compile the model us$
Train the model using the training generator, tracking accuracy and loss over epochs. Validate on the $
Plot training and validation accuracy/loss curves over epochs to monitor the model's learning progress.
Evaluate the model's performance on the test dataset, calculating test loss and accuracy.
Visualize a confusion matrix to analyze the model's classification performance for each class. Display$
Calculate precision, recall, and F1-score for each class from the confusion matrix.
Save the trained model to a file for future use or deployment.
Unlock the potential of CNNs for brain tumor detection through our meticulous implementation, demonstr$