Analysis of Statistical Texture Features for Automatic Lung Cancer Detection in PET/CT Images

Photo of author

By Jackson Taylor

Home » Examples » Project Done In 2015-16 » Analysis of Statistical Texture Features for Automatic Lung Cancer Detection in PET/CT Images

Lung cancer is often found on medical images before a person has clear symptoms. Radiologists look at the size, shape and brightness of a suspicious spot, but a lot of information in the image is hard to judge by eye. Statistical texture features turn the pattern of pixel values inside a lesion into numbers that a computer can compare, measure and classify. This article explains what these features are, how they are used with PET/CT images, and where the approach has limits.

The video below accompanies this topic as a visual introduction.

Why PET/CT is used for lung cancer imaging

PET/CT combines two scans in one examination. Each gives a different kind of information:

  • CT (computed tomography) shows anatomy in detail, such as the lungs, airways and the outline of a nodule or mass.
  • PET (positron emission tomography) shows metabolic activity. With the commonly used FDG tracer, areas that take up more glucose appear brighter, which often includes tumour tissue.

Putting the two together lets software locate a region on the CT and measure how active it is on the PET. That pairing is a good fit for automatic analysis, because the same region can be described by both its structure and its metabolism.

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video

What is image texture?

Texture describes how grey levels are arranged inside a region: smooth or rough, uniform or patchy, fine or coarse. Two tumours can have the same average brightness and still look very different inside. A tumour with uneven, varied tissue produces different texture values from a more uniform one. Because of this, texture is often described as a way to capture heterogeneity inside a lesion.

Main groups of statistical texture features

First-order statistics

These are calculated from the histogram of pixel values in the region, ignoring where each pixel sits. Typical examples are:

  • mean and median intensity
  • variance and standard deviation
  • skewness (how lopsided the distribution is)
  • kurtosis (how peaked or flat it is)
  • entropy (how random or varied the values are)
See also
POWER ELECTRONICS + EMBEDDED TOPICS

Second-order features (GLCM)

The grey-level co-occurrence matrix, or GLCM, counts how often pairs of pixel values appear next to each other at a given distance and direction. Haralick-style features calculated from it include contrast, correlation, energy, homogeneity and entropy. They describe how neighbouring pixels relate to one another, so they pick up local patterns that first-order statistics miss.

Higher-order features

Other matrices describe longer runs or larger zones of similar values:

  • GLRLM (grey-level run-length matrix): how long runs of the same grey level are.
  • GLSZM (grey-level size-zone matrix): the size of connected zones with the same grey level.
  • NGTDM (neighbourhood grey-tone difference matrix): how much each pixel differs from its surroundings.

A typical automatic detection workflow

  1. Image acquisition and preparation. PET and CT images are aligned and, where needed, resampled to a common grid. PET values are often converted to standardised uptake values (SUV) so that scans can be compared.
  2. Segmentation. The lung, nodule or tumour region is outlined, either by hand, semi-automatically or with an algorithm. The quality of this step affects everything after it.
  3. Grey-level quantisation. Intensities are grouped into a limited number of levels, because matrix-based features need a fixed number of grey levels.
  4. Feature extraction. First-order, GLCM and other texture values are calculated for the region, from the PET, the CT, or both.
  5. Feature selection. Many features are strongly correlated or add little. Selection methods keep the ones that help separate the classes and reduce the risk of overfitting.
  6. Classification. A model decides, for example, whether a region is malignant or benign, or whether it is lung tissue or tumour.
  7. Validation. Results are tested on data the model has not seen, using measures such as sensitivity, specificity and area under the ROC curve.

Classifiers commonly used

Texture features are usually passed to a standard classifier. Common choices include support vector machines, k-nearest neighbours, decision trees and random forests, and neural networks. There is no single best option. The right one depends on how much data is available, how many features remain after selection, and how important it is to explain the decision.

See also
AUTOMATIC VOLTAGE STABILIZER USING MSP430

The idea is similar to other image tasks, such as machine learning for object detection: the system learns from labelled examples which patterns belong to which class. The medical case is stricter, though, because errors have real consequences and the data is much harder to collect.

Calculating and analysing features in practice

Researchers usually compute texture features with scripting tools and dedicated radiomics libraries, then explore the results with general data analysis with Python or similar tools. Useful checks at this stage include looking at feature distributions, removing highly correlated features, and comparing feature values between the classes. Flagging unusual cases follows the same logic as anomaly detection in other fields, although here a trained clinician must review every outlier.

Limits and things to watch

  • Reproducibility. Texture values change with scanner model, reconstruction settings, image resolution and the number of grey levels used. Results from one centre may not carry over to another.
  • Segmentation dependence. Small changes to the region outline can change feature values.
  • Small datasets. Medical datasets are often small compared with the number of features, which makes overfitting a real risk.
  • Breathing motion. Lungs move during scanning, and PET and CT are not always perfectly aligned, which can blur small lesions.
  • Not a diagnosis. These methods are decision-support tools for research and clinical review. They do not replace a radiologist or a biopsy.

Frequently asked questions

What are statistical texture features in medical imaging?

They are numbers calculated from the distribution and arrangement of pixel values in a region of an image. They describe how smooth, uniform or varied the region is, which can be hard to judge by eye.

Why use both PET and CT for texture analysis?

CT describes structure and PET describes metabolic activity. Features from both can give a fuller description of a lesion than either scan alone, although they must be calculated carefully because the two images have different resolution and meaning.

See also
DISPLAYING AN IMAGE IN MATLAB

Which texture features matter most for lung cancer detection?

There is no fixed list that works everywhere. GLCM features such as contrast, homogeneity and entropy are widely studied, but the most useful features depend on the dataset, scanner settings and the question being asked. Feature selection on your own data is the usual way to decide.

Sustainable Tech

Keep Toxic E-Waste Out of Landfills

Don't throw away your failing laptop, phone, or car batteries. Learn how to recondition them at home in just a few hours. It's better for the planet—and your wallet.

Learn How It Works

Can texture analysis replace a radiologist?

No. It can support detection and classification by highlighting patterns, but clinical decisions still depend on medical expertise and confirmed test results.

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works