Convert.ai

Use-case:

  • Convert the modality from one to another. For example, generating nuclei from transmitted light channel (DIC, PhC, BF) or generating nuclei from one fluorescent channel to another fluorescent channel.

Advantages:

  • No need to acquire fluorescent image or acquire one fluorescent channel less.

  • No bleaching or less bleaching.

  • Very low light toxicity (by transmitted light only or higher wavelength fluorescent channel only).

  • Longer cell viability.

Convert.ai is trained using the NIS.ai > Train Convert.ai window and executed using the NIS.ai > Convert.ai window.

Training, Testing and Running the Convert.ai

Acquire sample with two channels – the source modality channel and destination modality channel. Train AI to convert the source modality channel into destination modality channel. Once the AI is trained, you no longer have to acquire the destination modality channel.

For example, it is possible to train AI to transform the transmitted light channel into the DAPI channel to detect nuclei or to transform the FITC channel into the DAPI channel.

To properly train Convert.ai, perform the following steps:

  1. Acquire sample with two channels – source modality channel and destination modality channel. Both channels should be acquired with sufficient light intensity and acquisition time to contain all relevant details and must contain image of the same scene. ND acquisition is the best solution (see the ND Acquisition of Lambda channel setup image below).

  2. The source modality channel can be a transmitted light channel (e.g. DIC) and should contain enough relevant information.

  3. The destination modality channel is usually a fluorescent channel (e.g. DAPI).

  4. Open the sample image having both channels (DIC, DAPI).

  5. Select Train Convert.ai in NIS.ai menu. In the Train Convert.ai dialog window you should:

  6. In the Training data section select file(s) from your hard drive used for training by clicking on ... or Add files.

  7. Move the DIC channel to the Convert from (source) field.

  8. Move the DAPI channel to the Convert to (ground truth) field.

  9. In Options specify:

    1. The number of neural training Iterations (use 1000 by default).

    2. Input the name (Name in Explorer) for your AI used in the NIS.ai Explorer (e.g. DIC-DAPI).

    3. Specify the Output (Save) where the AI will be stored.

    4. Check Save graph screenshot if you want to create a screenshot of the loss chart when the training is done.

  10. Click Train to begin the training. Or you can click Add to Queue to run this training using the NIS.ai > Explorer later.

  11. Wait for the training progress to automatically end when all iterations are done or wait until the curve seems to be constant and then click Finish (see the image Loss chart overview below).

  12. If the result is not satisfactory then try the following options:

    1. Retrain the AI with a training dataset adding more multi-points to increase the variability of the training dataset.

    2. Add more iterations in Continue training on.

Options

Continue training on

If you want to teach the existing AI further, check this function and Browse... to a *.cai AI file. See Continue Training for more information.

Loss curve (red) should be decreasing over time, faster in the beginning, slower in the end as it approaches zero. There may be a few bumps along the way which is correct. Training time depends on the difficulty of the sample and the use case. To improve the training results, it is best to use multi-point image with higher variability, however more training images require more training time.

To test the trained AI:

  1. Open the test image only with DIC channel (another but similar to the training dataset).

  2. Select Convert.ai in NIS.ai menu and run its execution dialog.

  3. Match the Document channels with the Source AI channels (e.g. DIC) by connecting them.

  4. Select the Trained AI with the network trained for the particular function from a file (From File) by clicking Browse... or pick it from the explorer (From Explorer).

  5. Click OK to run the process.

  6. After the progress is finished a new channel containing the result is created (see the resulting image below).

Nuclei were generated from trained AI, which converted DIC channel into the DAPI channel. No need to acquire DAPI channel, only DIC channel is needed.

To execute the trained AI, perform all steps from the testing trained AI: 
The created AI can be applied on an infinite number of similar images with acquired under the same conditions.