Parenteral artificial nutrition (PAN) is a lifesaving medical treatment for many patients worldwide. Administration of the wrong PAN drug can lead to severe consequences on patients’ health, including death in the worst cases. Thus, their correct identification, just before injection, is of crucial importance. Since most of these drugs appear as turbid liquids, they cannot be easily discriminated simply by means of basic optical analyses. To overcome this limitation, in this work, we demonstrate that the combination of speckle pattern (SP) imaging and artificial intelligence can provide precise classifications of commercial pharmaceutical suspensions for PAN. Towards this aim, we acquired SP images of each sample and extracted several statistical parameters from them. By training two machine learning algorithms (a Random Forest and a Multi-Layer Perceptron Network), we were able to identify the drugs with accurate performances. The novelty of this work lies in the smart combination of SP imaging and machine learning for realizing an optical sensing platform. For the first time, to our knowledge, this approach is exploited to identify PAN drugs.