Efficient Net
Efficient Net
EfficientNetB0
SARKESAN S
ROHITH A
ABSTRACT
objects accurately while also assessing the certainty level of its outputs. This capability is vital in
modern astrophysics, where precise identification of transient phenomena can significantly influence
scientific conclusions. It effectively classifies a wide range of astronomical events occurring in space
(Ex: supernovas, gamma-ray bursts, neutron stars, and black hole),producing both the predicted label
and a confidence score. Leveraging transfer learning with the EfficientNetB0 architecture,
UncertaintyNet can learn from limited and imbalanced datasets. To address class imbalance, it
employs focal loss, which emphasizes harder-to- classify examples. A key feature is its confidence
ambiguous cases receive further expert review. Using 5-fold cross-validation, an ensemble of models
achieved over 90% accuracy, demonstrating strong robustness and generalization. Scalable and
adaptable, UncertaintyNet can be extended to handle additional object categories and integrate with
future astronomical datasets, making it a valuable tool for reliable, automated analysis in
astrophysical research.
[Type here]
2
INTRODUCTION:
The rapid growth of astronomical imaging data from modern telescopes and platforms like NASA’s
database, manually classifying celestial objects has become increasingly impractical. Although
identifying various astronomical phenomena is crucial for scientific research, the process is often time-
consuming and requires specialized expertise. Deep learning provides a promising solution to automate
One major challenge is data imbalance, as some astronomical events are much rarer than others. This
can bias models and reduce their ability to generalize. Another important issue is the lack of reliable
uncertainty estimation—traditional deep learning models often make predictions without indicating
how confident they are, which is critical in scientific applications where false positives can have
To tackle these challenges, we propose UncertaintyNet, a framework that integrates transfer learning,
uncertainty modeling, and ensemble techniques. The key contributions of this work include:
metrics.
This framework aims to provide a more robust, reliable, and scientifically meaningful way to classify
astronomical data.
[Type here]
3
LITERATURE REVIEW:
Deep learning is becoming an important tool in astronomy, helping scientists automatically classify
many different types of events that occur in space. Instead of focusing only on specific tasks like
identifying galaxies or detecting supernovas, modern deep learning methods are now being used to
study a wide variety of space phenomena. This makes them very useful for analyzing the huge
amount of data collected from telescopes and space missions. Still, most existing methods mainly
analysis due to the limited availability of labeled datasets. Ackermann et al.【4】 showed that
ImageNet-pretrained models can be effectively adapted for galaxy morphology classification, while
to stellar classification tasks. These studies confirm the benefits of leveraging pre-trained models to
Uncertainty estimation in deep learning is an active research area. Methods such as Monte
Carlo dropout【6】 and ensemble learning【7】 have been shown to provide useful confidence
measures. However, their adoption in astronomical classification has been relatively limited. In
particular, few works have addressed the challenge of identifying truly “unknown” objects, which is
[Type here]
4
Our dataset consists of astronomical images representing a wide range of events occurring
in space. These images were collected from publicly available astronomical datasets and organized
according to their respective object classes. The dataset reflects the natural imbalance in the
occurrence rates of different astronomical phenomena, as some events are far more common than
others..
architecture.
trained weights.
To improve model robustness and address class imbalance, particularly important for
[Type here]
5
2. Methodology
excellent balance between computational efficiency and its ability to capture complex patterns in
2. Fine-Tuning Phase:
• After the classification head stabilizes, the last 20 layers of EfficientNetB0 are unfrozen.
astronomical images.
[Type here]
6
In this formula, pₜ represents the predicted probability of the true class, αt is a weighting
factor that addresses uneven distribution of categories, and γ is a focusing parameter that reduces the
loss contribution from well-classified examples and emphasizes harder, misclassified ones.
[Type here]
7
• The dataset suffers from class imbalance, with some astronomical events being rare.
• Traditional loss functions (e.g., cross-entropy) tend to bias the model toward majority
classes.
• Enhances the model’s robustness, generalization, and accuracy across all categories.
Our approach introduces a confidence threshold mechanism that evaluates each prediction as
follows:
2. Compare this confidence value against an optimal threshold determined during validation.
By adopting this approach, the model avoids overconfident errors by flagging uncertain cases
[Type here]
8
This ensemble approach reduces variance and improves overall prediction reliability.
5. Generate final predictions by averaging probabilities across fold models and applying the
confidence threshold.
Early stopping stops training once the model stops improving, avoiding unnecessary
[Link] rate reduction gradually decreases the step size, helping the model learn more
All training was conducted using TensorFlow on GPU-enabled hardware. For final
evaluation, the dataset was split into 85% training and 15% testing, with stratification to preserve
class distribution.
• Learning Rate: 1×10⁻³ during Phase 1 (feature extraction) and 1×10⁻⁵ during Phase 2 (fine-
tuning).
[Type here]
9
The model performed strongly across all categories, with particularly high accuracy for
supernovas and black holes. Performance metrics for each class are shown in Table 1.
classification accuracy with the rejection rate. Through systematic validation experiments, we
[Type here]
10
Figure 1 provides a visual example of this analysis, illustrating the effect of varying
confidence thresholds on accuracy and F1-score. The plot clearly shows the trade-off between
rejection rate and classification performance, with the optimal threshold marked at 0.70.
This ensemble method reduces variance and improves prediction stability. Compared to individual
models, it achieved about a 3% accuracy improvement and produced more consistent confidence
[Type here]
11
4. Discussion
• This prevents blindly trusting incorrect outputs and reduces the risk of errors.
• In astronomy, this is crucial since wrong classifications can waste telescope time,
resources, or mislead research.
• Confidence signals allow scientists to prioritize uncertain cases for expert review.
• This leads to more reliable results and better use of observational resources.
4.2 Limitations
telescopes or instruments may be limited if the training set does not include sufficient
3. Handling extremely rare events – Phenomena that are exceptionally rare may still be
[Type here]
12
Result:
[Type here]
13
categories—Supernovas, Gamma Ray Bursts, Neutron Stars, and Black Holes—it currently lacks
the ability to identify detailed subtypes. Future development will focus on enhancing model to
[Link] Supernovas:
modeling.
• Classify core-collapse types (II-P, II-L, Ib, Ic) based on stellar evolution.
[Type here]
14
While these are only illustrative examples, our broader goal is to build a framework that can
adapt to all kinds of astronomical events. To achieve this, the model will need larger, well-annotated
[Type here]
15
Bayesian Neural Networks – In future work, we plan to explore Bayesian neural networks,
as they can capture uncertainty in a more reliable and mathematically sound way.
Active Learning – We also intend to use active learning, which helps the model focus on the
most useful and confusing samples, making the training process more efficient.
that give more weight to models performing better during validation, leading to more
dependable predictions.
can first learn from large amounts of unlabeled astronomical data and then fine-tune on
CONCLUSION:
In this work, we introduced UncertaintyNet, a deep learning framework that not only
performs accurate classification of astronomical objects but also quantifies the confidence of its
predictions. This combination of accuracy and uncertainty awareness makes the system particularly
well-suited for modern astrophysical research, where the consequences of misclassification can be
significant. By flagging uncertain cases as “unknown”, the model enables astronomers to focus expert
attention on ambiguous events while relying on automated classification for the majority of cases.
EfficientNetB0, focal loss for handling class imbalance, and ensemble learning for improved
stability—while adding a crucial layer of transparency through its confidence thresholding mechanism.
[Type here]
16
consistently achieves over 90% accuracy while providing interpretable confidence metrics.
The principles demonstrated here are not limited to astronomy. The same framework can
be adapted to other fields where both high accuracy and trustworthy decision-making are required,
such as medical diagnostics, remote sensing, and high-stakes industrial applications. Looking ahead,
future work will focus on expanding the model’s capabilities to include subtype classification,
integrating more advanced uncertainty estimation methods, and exploring self-supervised learning to
REFERENCES
1. Dieleman, S., Willett, K. W., & Dambre, J. (2015). Rotation-invariant convolutional neural
networks for galaxy morphology prediction. Monthly Notices of the Royal Astronomical
2. Cabrera-Vives, G., Reyes, I., Förster, F., Estévez, P. A., & Maureira, J. C. (2017). Deep-
HiTS: Rotation invariant convolutional neural network for transient detection. The
3. Gieseke, F., Bloem-Reddy, B., Altaf-Ul-Amin, M., Kanaya, S., & Ster, C. (2017). Fast
4. Ackermann, S., Schawinski, K., Zhang, C., Weigel, A. K., & Turp, M. D. (2018). Using
transfer learning to detect galaxy mergers. Monthly Notices of the Royal Astronomical
[Type here]