Skip to content

SPRITE (Smart Processes Integration Testbed Emulator) is an open-source suite of analytical and data-driven models for predicting the performance of renewable carbon feedstock processing units and system integration.

License

Notifications You must be signed in to change notification settings

idaholab/SPRITE

Repository files navigation

 ____    ____    ____    ___   _____   _____
/ ___|  |  _ \  |  _ \  |_ _| |_   _| | ____|
\___ \  | |_) | | |_) |  | |    | |   |  _|
 ___) | |  __/  |  _ <   | |    | |   | |___
|____/  |_|     |_| \_\ |___|   |_|   |_____|

Smart Processes Integration Testbed Emulator

© 2023, Battelle Energy Alliance, LLC ALL RIGHTS RESERVED

SPRITE (Smart Processes Integration Testbed Emulator) is an open-source suite of analytical and data-driven models for predicting the performance of renewable carbon feedstock processing units and system integration. The models being developed in this suite include Population Balance Model (PBM), Enhanced Deep Neural Operator (DNO+), and Physics-Informed DNO+ (PIDNO+).

About SPRITE

To achieve the desired material properties of granular biomass such as particle size distribution (PSD), the feed material must undergo a milling process during preprocessing. The PSD of biomass plays a critical role in subsequent biofuel manufacturing. It is imperative to accurately predict the PSD of the biomass in the design of preprocessing systems. The population balance model (PBM), upon empirical calibration and validation, can provide rapid prediction of post-milling PSD of granular biomass. However, the standard PSD does not include moisture content as an input parameter. To overcome these drawbacks, deep learning-based models are implemented in the code. Those models not only retain the capabilities of the PBM in handling complex mapping functions but also incorporate additional factors influencing the system. By considering various experimental conditions such as feed moisture content and discharge screen size, the trained deep learning-based models can effectively predict the PSD after milling. The use of this code that contains these models will assist in guiding the milling parameter selection to achieve the desired biomass PSD.

Citing SPRITE

Reference articles with results generated using SPRITE are listed below:

  • Lu, M., Xia, Y., Bhattacharjee, T., Klinger, J., & Li, Z. (2024). Predicting biomass comminution: Physical experiment, population balance model, and deep learning. Powder Technology, 441, 119830. https://doi.org/10.1016/j.powtec.2024.119830

Revision History

  • V2024

    • Included a symbolic regression (SR) based modeling capability.
    • Added calibrated models for brittle material with an example of milling of glass.
    • Moved the dependent large-size training data from GitHub to Box.
  • V2023

    • Initial release.

Installing SPRITE

Detailed instructions for installing the prerequisite software packages and SPRITE on the different operating systems, e.g., Windows, macOS and Linux Ubuntu LTS releases, are provided. Click the link(s) below to learn about the installation process based on your operating systems.

Data description

The original experimental data of corn stalk size reduction was obtained from two mills: a Wiley knife mill at the bench scale and a JRS knife mill at the pilot scale. The data contains the cumulative output particle size distributions (PSDs) under different conditions of processing parameters. Find the description here.

Running SPRITE

Windows

Open Powershell Prompt from Anaconda Navigator. Go to the SPRITE foler by copying and pasting the following text into the command line and click Enter key. Run SPRITE.

cd c:/Users/username/Downloads/SPRITE
python main.py

Linux and macOS

Open a Terminal session. Go to the SPRITE folder. Run SPRITE.

cd ~/Downloads/SPRITE
./RUN

Three models can be used to predict the milled biomass PSD with the given feed biomass PSD under certain milling condition.

  • PBM: A probabilistic based model, by data fitting and regression to find the input output relationship. It has mode 1 to show the data fitting performance, and has mode 2 for prediction. In prediction mode, you can use the model to predict exist data from the experiment, or make a new data for it to predict.
  • DNO+: A data driven based model, trained by 300 datasets, 100 test datasets. You can try the training process, or use the pre-trained model to make prediction. In prediction mode, you can use the model to predict exist data from the experiment, or make a new data for it to predict.
  • PIDNO+: A phyisics-informed and data driven based model, trained by 25 datasets, 5 datasets for testing. You can try the training process, or use the pre-trained model to make prediction.

Test model on new data

Create new data

First prepare the feed biomass particle PSD as the input data and the milled product biomass PSD as the output data. The data should include the sieve sizes and the cumulative PSD, in the form of .csv file below.

Example user-provided input file: /PBM/Dataset/extra_input.csv

Example reference output file: /PBM/Dataset/extra_output.csv

You can directly put your data into these two csv files, under the column name: 'FSieves' and 'Feedmass' in the input data file, and 'ExpSieves' and 'Expmass' in the output data file.

An example procedure is below.

  • Run SPRITE, and select Method 1 (PBM)
  • When it shows: 'Enter the No. data you want choose (choose between 1~10) or enter 0 for your own data.', press 0.
  • Then follow the instruction in the command line prompt.
    • Enter the milling frequency in Hz:
    • Enter the moisture content in %:
  • Select the optimization method.
  • Finish fitting process and get the results.

Troubleshooting

  • "PermissionError: [Errno 1] Operation not permitted"
    • Conditions: On Mac OS, try to use the model load with DNO+ or PIDNO+ methods under terminal or other python interface.
    • Solver: Open Mac system settings -- Privacy & Security -- Full Disk Access.
      • If your app is in the list: give the disk access to it directly.
      • If your app is not in the list: click on '+' button below, find your app, then give the disk access.

About

SPRITE (Smart Processes Integration Testbed Emulator) is an open-source suite of analytical and data-driven models for predicting the performance of renewable carbon feedstock processing units and system integration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •