Abstract: Number of techniques to identify falsified medications, including thin layer chromatography (TLC), analytical methods, eye examination, and the use of sophisticated labs with strong equipment and technical specialists. Such techniques take more time and call for sophisticated labs, specialized specialists in that field, and sample preparation. This research uses hyperspectral data to develop a spectral pattern for identifying falsified medications. Near infrared spectroscopic techniques are commonly used for this task because of their many advantages. For this research, we used the wide spectral range ASD Field Spec4 Spectroradiometer (350-2500 nm). We chose 43 solid pharmaceutical medicines from various brands for our task. The tablet powder has been altered by adding various amounts of calcium carbonate (CaCO3) to imitate falsified medicines. Then, we gather the spectral signature throughout all stages of contamination and use machine learning categorization methods to assess it. Partial least squares regression has a remarkable accuracy rate of 98.9% for hyperspectral data with NIR spectroscopy, while logistic regression, support vector machines, and random forests all provide accuracy of 75%. This hyperspectral data coupled with a database of pharmaceutical spectra creates a practical field-testing method to identify fake medications that is quick, simple to use, and requires no technological expertise.