GithubHelp home page GithubHelp logo

ufuk-cakir / galaxy-morphology Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 45.14 MB

Repository of my Bachelor Thesis in Physics about Machine Learning Models For Galaxy Morphology

Home Page: https://www.cakir-ufuk.de/bachelor-thesis

Python 100.00%
bachelor-thesis galaxy-morphology machine-learning

galaxy-morphology's Introduction

Machine Learning Models For Galaxy Morphology

This is the GitHub repository for my bachelor thesis in physics at the Heidelberg University. Interactive visualizations and animations can be found on my personal Webpage

โš ๏ธ An updated version of this project can be found at: MEGS Repository and GAMMA Repository!

Introduction

State-of-the-art hydrodynamical simulations can reproduce the diversity of different galaxy morphological types, but fail to exactly recreate real, observed galaxies. In the last decade, machine learning (ML) had very promising results in image recognition and dimensionality reduction. The goal of my thesis is to investigate how ML can be used to create galaxy morphology models and encode the information contained in modern state-of-the-art simulations.

I used IllustrisTNG simulated galaxies to build a galaxy morphology model.

Pipeline Flowchart

A interactive flowchart build with plotly dash can be found on my Webpage

Principal Component Analysis

The main part is to investigate of how principal component analysis(PCA) can serve as a galaxy morphology model. The so called "Eigengalaxies" calculated from PCA are galaxy images which act as the basis vectors of the image space such that each galaxy in the dataset can be described through a linear combination of all eigengalaxies.

The calculated Eigengalaxies are:

Eigengalaxies 2D

Projecting galaxy images onto the space spanned by the eigengalaxies we get a low dimensional representation

screen-gif

We find that 99% of the images in our simple PCA morphology model have a reconstuction error less than 9%, as seen in the folowing Figure:

rec error

PCA in three dimension

I have further calculated PCA on three dimensional data to get the 3D eigengalaxies, which can be viewed interactively on my Webpage

Example of Eigengalaxy 10:

screen-gif

UMAP Projection

Calculating UMAP projection on the PCA scores to see if clusters of different galaxy types arise.

The resulting Figure can also viewed on my Webpage, where hovering over a point will show the galaxy image.

Umap

Generative Advesarial Neural Network

The StyleGAN2-ada from NVIDA was trained on the smoothed galaxy images. The pretrained network can be found here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.