Dear Hamza,
There is a page online with Java alternative for Numpy: https://stackoverflow.com/questions/8375558/java-equivalent-for-the-numpy-multi-dimensional-object
Once you have chosen your library, it is possible to create Java actions that can be incorporated into a microflow. More information on creating and implementing java actions can be found here: https://docs.mendix.com/refguide/java-actions
Hope this will set you in the right direction.
Best regards,
Wouter