-
-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GSoC 2021] Automatic Realization of AI-Based EM Models #294
Open
utsav-akhaury
wants to merge
54
commits into
gprMax:devel
Choose a base branch
from
utsav-akhaury:devel
base: devel
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[GSoC 2021] Automatic Realization of AI-Based EM Models
This pull request contains the work done by me during GSoC 2021. Throughout this project, I, along with my mentors, worked on integrating an automatic AI-based scheme into the gprMax environment that provides real-time FDTD solutions to the user.
The project was divided into two main sub-tasks:
Random Parameter Generation
feature in thedevel
branch).Random Parameter Generation
feature.Random Parameter Generation Mode
This new feature allows the generation of random parameters for a specific EM model. It allows the user to specify the probability distribution function (PDF) from which these parameters are randomly drawn. Subsequently, for every parameter inside a hash command, the user must enter two values (in pairs) that define the specified PDF's parameters.
All the randomly generated parameters are automatically saved to a pickle file in the same directory as the input file.
This feature can easily be used along with the
-n
command line argument. For every iteration, a new set of random parameters would be generated and a new row would be appended to the pickle file.We also introduced a new command line flag:
--no-h5
, which instructs gprMax to skip saving the output .h5 files.The detailed documentation can be found here.
Machine Learning-based Forward Solver
The implemented ML framework uses an innovative training method that combines a dimensionality reduction technique (such as PCA or SVD) and a large data set of modeled GPR responses from gprMax. The ML-based forward solver is parameterized for a specific GPR application, but the framework can be applied to many different classes of GPR problems.
Here is a summary of the performance of different ML algorithms on our sample test dataset (after compressing A-scans with PCA):
(
NMSE = Normalized Mean Squared Error
- Lower NMSE implies better performance)The ML folder inside the gprMax
devel
branch demonstrates the usage of the implemented ML-based solver.Further Scope & Usage
The ML-based solver can be trained on many different scenarios, depending on the user's needs. We have provided a sample Jupyter notebook along with some useful utility functions (inside the ML repository in the gprMax
devel
branch). Depending on the scenario being modelled, the user may need to change the hyper-parameters (or use a different ML model) to better fit the data.