# Fortran frameworks/Libraries for Robotics/Artificial Intelligence

**URL:** <https://fortran-lang.discourse.group/t/fortran-frameworks-libraries-for-robotics-artificial-intelligence/333>\
**Category:** Help\
**Created:** [October 6, 2020, 4:09pm UTC](https://fortran-lang.discourse.group/t/fortran-frameworks-libraries-for-robotics-artificial-intelligence/333 "2020-10-06T16:09:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Believe](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@Believe](https://fortran-lang.discourse.group/u/Believe)\
**Post date:** [October 6, 2020, 4:09pm UTC](https://fortran-lang.discourse.group/t/fortran-frameworks-libraries-for-robotics-artificial-intelligence/333/1 "2020-10-06T16:09:10Z")

</div>

Are there libraries/frameworks available for Robotics/Artificial Intelligence in Fortran? I’ve searched Google for over two weeks and I couldn’t find suitable answers. All related answers I saw were about Fortran number crunching prowess.  
N.B: The question is strictly Fortran and I don’t need suggestions for other better languages for Robotics/AI…

Thank you.

---

<div class="post-metadata">

**Author:** ![certik](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/certik/32/4_2.png) [@certik](https://fortran-lang.discourse.group/u/certik)\
**Post date:** [October 6, 2020, 4:16pm UTC](https://fortran-lang.discourse.group/t/fortran-frameworks-libraries-for-robotics-artificial-intelligence/333/2 "2020-10-06T16:16:50Z")

</div>

Thanks for the question @Believe and welcome!

I am aware of this library:

- [https://github.com/modern-fortran/neural-fortran](https://github.com/modern-fortran/neural-fortran)

There might be more.

Can be more specific what features you would like to see from an AI library in Fortran?

---

<div class="post-metadata">

**Author:** ![Believe](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@Believe](https://fortran-lang.discourse.group/u/Believe)\
**Post date:** [October 6, 2020, 4:46pm UTC](https://fortran-lang.discourse.group/t/fortran-frameworks-libraries-for-robotics-artificial-intelligence/333/5 "2020-10-06T16:46:59Z")

</div>

Deep Learning and Machine Learning

---

<div class="post-metadata">

**Author:** ![ivanpribec](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ivanpribec/32/3290_2.png) [@ivanpribec](https://fortran-lang.discourse.group/u/ivanpribec)\
**Post date:** [October 7, 2020, 9:46am UTC](https://fortran-lang.discourse.group/t/fortran-frameworks-libraries-for-robotics-artificial-intelligence/333/6 "2020-10-07T09:46:11Z")

</div>

I am aware of a few more:

- FANN (Fast Artificial Neural Network Library; written in C but has a user-contributed Fortran binding): [http://leenissen.dk/fann/wp/language-bindings/](http://leenissen.dk/fann/wp/language-bindings/)

- Fortran90 MLP Backprop Code (this one seems to be older and written as part of a doctoral project; documentation is poor): [neural network software](http://www.philbrierley.com/main.html?code/fortran.html&code/codeleft.html)

- FortNN: [GitHub - ketetefid/FortNN: Neural Networks using Fortran](https://github.com/ketetefid/FortNN)

- SAGRAD - a Fortran 77 program for computing neural networks: [https://www.nist.gov/publications/sagrad-program-neural-network-training-simulated-annealing-and-conjugate-gradient](https://www.nist.gov/publications/sagrad-program-neural-network-training-simulated-annealing-and-conjugate-gradient)  
The code can be found [here](https://math.nist.gov/~JBernal/JBernal_Sft.html) and replaces an earlier code known as [NEURBT](https://www.nist.gov/publications/neurbt-program-computing-neural-networks-classification-using-batch-learning)

- [profnet\_\*](http://manpages.ubuntu.com/manpages/groovy/man1/profphd_net.1.html#options) - neural network implementations in Fortran:

If you would like to deploy a NN trained in Python (Keras), there is the [Fortran Keras Bridge](https://github.com/scientific-computing/FKB) which works together with the [neural-fortran](https://github.com/modern-fortran/neural-fortran) code mentioned by @certik.

---

<div class="post-metadata">

**Author:** ![Believe](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@Believe](https://fortran-lang.discourse.group/u/Believe)\
**Post date:** [October 7, 2020, 3:19pm UTC](https://fortran-lang.discourse.group/t/fortran-frameworks-libraries-for-robotics-artificial-intelligence/333/7 "2020-10-07T15:19:51Z")

</div>

Thanks you very much.
