Coder Social home page Coder Social logo

ameya1101 / ns-ann Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 3.3 MB

Inferring the Dense Matter Equation of State from Neutron Star Observations via Artificial Neural Networks

License: GNU General Public License v3.0

Python 100.00%
deep-neural-networks equation-of-state neutron-star

ns-ann's Introduction

Inferring the Dense Matter Equation of State from Neutron Star Observations via Artificial Neural Networks

arXiv

Ameya Thete, Kinjal Banerjee, and Tuhin Malik

Abstract: The difficulty in describing the equation of state (EoS) for nuclear matter at densities above the saturation density $(\rho_0)$ has led to the emergence of a multitude of models based on different assumptions and techniques. These EoSs, when used to describe a neutron star (NS), lead to differing values of observables. An outstanding goal in astrophysics is to constrain the dense matter EoS by exploiting astrophysical and gravitational wave measurements. Nuclear matter parameters appear as Taylor coefficients in the expansion of the EoS around the saturation density of symmetric and asymmetric nuclear matter, and provide a physically-motivated representation of the EoS. In this paper, we introduce a deep learning-based methodology to predict key neutron star observables such as the NS mass, NS radius, and tidal deformability from a set of nuclear matter parameters. Using generated mock data, we confirm that the neural network model is able to accurately capture the underlying physics of finite nuclei and replicate inter-correlations between the symmetry energy slope, its curvature and the tidal deformability arising from a set of physical constraints. We also perform a systematic Bayesian estimation of NMPs in light of recent observational data with the trained neural network and study the effects of correlations among these NMPs. We show that by not considering inter-correlations arising from finite nuclei constraints, an intrinsic uncertainty of upto 10-30% can be observed on higher order NMPs.

Requirements

  • Python>=3.7, NumPy>=1.20 , and TensorFlow>=2.5 .
  • Use the following command to install required packages.
    • pip install -r requirements.txt
    • We recommend the use of virtual environments to avoid disturbing preexisting package installations on your computer. Two popular virtual environments managers are Anaconda and Python's own venv module.

Dataset

We supply the dataset used to train the NS-ANN model in our paper. The dataset consists of seven key nuclear matter parameters that govern the equation of state and six target neutron star properties. The data path is ./data/NS-EOS-Data.csv.

We also supply the data points for both posterior distributions over the nuclear matter parameters following the Bayesian inference. These samples are used to generate the corner plot in Figure 5 from the paper. The data path is ./data/posterior/. The .json files are BILBY outputs, and the .dat files contain pure data samples read from the BILBY output.

Pre-trained Model

Along with the dataset, the pre-trained NS-ANN model is offered in ./pretrained/. For a given set of nuclear matter parameters, the model predicts the six aforementioned neutron star observables corresponding to a star described by the input equation of state. To test the pre-trained model, run:

python -m predict.py --input=<path-to-input-file> --output=<path-to-output-file> \
                     --model=<path-to-pretrained-model>

The input file must follow the same format as the same input file ./data/sample.csv. The utils/ directory contains pickle files for data scalers required in the prediction pipeline. Please ensure that it is located in the same working directory as the script.

Citation

If you find this work helpful, please cite our paper:

@article{thete2020nmp,
  title={Inferring the dense matter equation of state from neutron star observations via artificial neural networks},
  author={Thete, Ameya and Banerjee, Kinjal and Malik, Tuhin},
  archivePrefix = {arXiv},
  eprint = {2208.13163},
  primaryClass = {nucl-th},
  year={2022}
} 

ns-ann's People

Contributors

athete avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.