Implementing neural network approach to create carbon-based optical nanosensor of heavy metal ions in liquid media.