← Latest papers
🔬 optics

A Comparative Evaluation of Sample Selection Algorithms for Multivariate Calibration in Near-Infrared Spectroscopic Analysis of Pharmaceutical Formulations

This study demonstrates that the Kennard-Stone algorithm, when applied to near-infrared spectral data of paracetamol tablets within a Gaussian process regression framework, yields superior multivariate calibration performance compared to Duplex, Honigs, and Naes methods, as validated by rigorous statistical analysis and high predictive accuracy metrics.

Original authors: Aminata Sow, Harouna Sangaré, Fadaba Danioko, Tidiane Diallo

Published 2026-06-23
📖 5 min read🧠 Deep dive

Original authors: Aminata Sow, Harouna Sangaré, Fadaba Danioko, Tidiane Diallo

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a chef trying to create the perfect recipe for a new type of medicine pill (paracetamol). You have a giant jar of 58 different pills from various batches, and you want to teach a computer to "taste" the light bouncing off these pills (using Near-Infrared spectroscopy) and guess exactly how much medicine is inside them.

The big problem isn't teaching the computer; it's how you pick which pills to show it first.

If you just grab a handful of pills at random to teach the computer, it might get lucky or unlucky. It might only see the "easy" pills and think it's a genius, only to fail miserably when it sees a new, slightly different pill later. This is like a student who memorizes the answers to five practice tests but fails the real exam because they didn't learn the underlying concepts.

This paper is a "cooking competition" to see which method is best at picking the right pills to teach the computer.

The Four Contestants (The Algorithms)

The researchers tested four different strategies (algorithms) for splitting the 58 pills into two groups: a Training Group (to teach the computer) and a Test Group (to see if the computer actually learned).

  1. Kennard–Stone: Think of this as a "Space Explorer." It looks at all the pills and picks the ones that are the most different from each other, ensuring the training group covers the entire "map" of possibilities. It makes sure no corner of the map is left empty.
  2. Honigs: This is the "Detective." It picks pills one by one, always choosing the next one that looks the most unique compared to the ones already picked. It's looking for the most distinct clues.
  3. Duplex: This is the "Balanced Team Builder." It tries to build the Training Team and the Test Team at the same time, making sure both teams are equally strong and diverse.
  4. Naes: This is the "Club Representative." It groups the pills into "clubs" (clusters) based on how similar they look, then picks one representative from each club to ensure every type of pill is represented.

(They also included a "Random" group, which is just picking pills by closing your eyes and pointing.)

The Results: Who Won?

The researchers used a smart computer model (called Gaussian Process Regression) to see how well each group of picked pills helped the computer predict the medicine content.

  • The Winners: Kennard–Stone and Honigs were the clear champions. They picked the best mix of pills, allowing the computer to predict the results with almost perfect accuracy (99.999% accuracy).
  • The Losers: Duplex and Naes did okay at teaching the computer, but when they tested it on new pills, the computer made more mistakes. It turns out, these methods picked training pills that were too similar to each other, so the computer got "overconfident" and couldn't handle new variations.
  • The Random Pick: As expected, just grabbing pills randomly was the worst method.

The Big Surprise: Even though Kennard–Stone and Honigs had slightly different numbers, a strict statistical test showed they were statistically tied. They are equally good at this job.

Two Important Rules Discovered

The paper also tested two other "knobs" on the machine:

  1. How many pills to use for training?
    They tried using anywhere from 60% to 90% of the pills for training. They found a simple rule: The more you teach, the better it learns. Using 90% of the pills for training gave the best results. However, they noticed that after a certain point, adding more pills didn't help much more (diminishing returns).

  2. How do we measure "difference"?
    To pick the best pills, the algorithms need to measure how different two pills are. They tested two rulers:

    • Euclidean Distance: A standard ruler (like measuring straight lines on a map).
    • Mahalanobis Distance: A "smart" ruler that understands that the light waves in the pills are connected (correlated).
    • The Finding: For the winning Kennard–Stone method, the "smart" ruler (Mahalanobis) worked better. It understood the complex relationships between the light waves better than the standard ruler.

The Takeaway

The main lesson from this paper is simple: Don't just pick your training data randomly.

If you want your computer to be a good doctor for your pills, you need to be smart about which examples you show it first. The Kennard–Stone method (using the "smart" ruler) is the most reliable way to do this, though Honigs is just as good.

The paper warns that if you only look at how well the computer did on the training data, you might be fooled. You must always test it on new, unseen data to make sure it's actually learned the lesson and isn't just memorizing the answers.

In short: To build a perfect prediction model, pick your training samples carefully using the "Space Explorer" (Kennard–Stone) strategy, and you'll get results that are almost perfect.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →