Feature Extraction
Keras
tensorflow
deep-learning
dimensionality-reduction
clustering
computer-vision
fire-detection
fire-severity
Instructions to use AbdullahImran/Fire-Feature-Analysis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use AbdullahImran/Fire-Feature-Analysis with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://AbdullahImran/Fire-Feature-Analysis") - Notebooks
- Google Colab
- Kaggle
Add feature analysis model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: keras
|
| 3 |
+
tags:
|
| 4 |
+
- keras
|
| 5 |
+
- tensorflow
|
| 6 |
+
- deep-learning
|
| 7 |
+
- feature-extraction
|
| 8 |
+
- dimensionality-reduction
|
| 9 |
+
- clustering
|
| 10 |
+
- computer-vision
|
| 11 |
+
- fire-detection
|
| 12 |
+
- fire-severity
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Fire Feature Analysis
|
| 16 |
+
|
| 17 |
+
This repository contains trained models and generated artifacts from feature extraction, dimensionality reduction, representation learning, and clustering experiments performed as part of the fire detection and severity classification project.
|
| 18 |
+
|
| 19 |
+
## Contents
|
| 20 |
+
|
| 21 |
+
### Autoencoder
|
| 22 |
+
`autoencoder_model_dimention_reduction.keras` — a trained Keras autoencoder used in the dimensionality-reduction workflow.
|
| 23 |
+
|
| 24 |
+
### Autoencoder Latent Representations
|
| 25 |
+
`autoencoder_latent_representations_dimention_reduction.npy` — latent representations generated by the autoencoder.
|
| 26 |
+
|
| 27 |
+
### Autoencoder Losses
|
| 28 |
+
`autoencoder_losses_tri_classification_dimention_reduction.npy` — loss values generated during the autoencoder experiment.
|
| 29 |
+
|
| 30 |
+
### EfficientNet Feature Representations
|
| 31 |
+
`efficientnet_features_tri_classification_feature_extraction.npy` — feature representations extracted using EfficientNet.
|
| 32 |
+
|
| 33 |
+
### Fire Feature Representations
|
| 34 |
+
`fire_features_effnet_tri_classification_feature_extraction.npy` — fire-related feature representations generated during the feature-extraction workflow.
|
| 35 |
+
|
| 36 |
+
### SOM Clustering
|
| 37 |
+
`som_tri_classification_clustering.npy` — output of the Self-Organizing Map (SOM) clustering experiment.
|
| 38 |
+
|
| 39 |
+
## Loading the Autoencoder
|
| 40 |
+
|
| 41 |
+
```python
|
| 42 |
+
import tensorflow as tf
|
| 43 |
+
|
| 44 |
+
autoencoder = tf.keras.models.load_model(
|
| 45 |
+
"autoencoder_model_dimention_reduction.keras"
|
| 46 |
+
)
|
| 47 |
+
|
| 48 |
+
autoencoder.summary()
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
## Loading the NumPy Artifacts
|
| 52 |
+
|
| 53 |
+
```python
|
| 54 |
+
import numpy as np
|
| 55 |
+
|
| 56 |
+
latent_representations = np.load(
|
| 57 |
+
"autoencoder_latent_representations_dimention_reduction.npy"
|
| 58 |
+
)
|
| 59 |
+
|
| 60 |
+
losses = np.load(
|
| 61 |
+
"autoencoder_losses_tri_classification_dimention_reduction.npy"
|
| 62 |
+
)
|
| 63 |
+
|
| 64 |
+
som_results = np.load(
|
| 65 |
+
"som_tri_classification_clustering.npy"
|
| 66 |
+
)
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
## Analysis Workflow
|
| 70 |
+
|
| 71 |
+
The artifacts in this repository support experimentation involving:
|
| 72 |
+
|
| 73 |
+
1. Deep feature extraction
|
| 74 |
+
2. Representation learning
|
| 75 |
+
3. Dimensionality reduction
|
| 76 |
+
4. Latent-space analysis
|
| 77 |
+
5. Feature analysis
|
| 78 |
+
6. Clustering
|
| 79 |
+
|
| 80 |
+
## Project Context
|
| 81 |
+
|
| 82 |
+
This repository is part of a larger deep learning project containing:
|
| 83 |
+
|
| 84 |
+
- binary fire detection models
|
| 85 |
+
- fire severity classification models
|
| 86 |
+
- datasets
|
| 87 |
+
- notebooks
|
| 88 |
+
- feature extraction
|
| 89 |
+
- dimensionality reduction
|
| 90 |
+
- clustering
|
| 91 |
+
- recommendation generation
|
| 92 |
+
|
| 93 |
+
## Limitations
|
| 94 |
+
|
| 95 |
+
The generated NumPy artifacts are dependent on the original data preprocessing and model pipelines.
|
| 96 |
+
|
| 97 |
+
To correctly interpret these artifacts, the corresponding project code and preprocessing procedures should also be considered.
|
| 98 |
+
|
| 99 |
+
## License
|
| 100 |
+
|
| 101 |
+
No standardized open-source license has been specified for this repository.
|
| 102 |
+
|
| 103 |
+
Please refer to the original project and dataset terms before redistribution or commercial use.
|