Review Article - Onkologia i Radioterapia ( 2024) Volume 18, Issue 4

Lung cancer segmentation and detection using KMP algorithm

A. Surendar1*, Saravanakumar Veerappan2, Shaik Sadulla3 and N. Arvinth4
 
1Department of Pharmacology, Saveetha Institute of Medical and Technical Sciences, Chennai, India
2Centivens Institute of Innovative Research, Coimbatore, Tamil Nadu, India
3KKR & KSR institute of Technology and Sciences, Vinjanam Padu, Guntur, Andhra Pradesh, India
4National Institute of STEM Research, India
 
*Corresponding Author:
A. Surendar, Department of Pharmacology, Saveetha Institute of Medical and Technical Sciences, Chennai, India, Email: surendararavindhan@ieee.org

Received: 02-Apr-2024, Manuscript No. OAR-23-131246; Accepted: 25-Apr-2024, Pre QC No. OAR-23-131246(PQ); Editor assigned: 07-Apr-2024, Pre QC No. OAR-23-131246(PQ); Reviewed: 16-Apr-2024, QC No. OAR-23-131246(Q); Revised: 21-Apr-2024, Manuscript No. OAR-23-131246(R); Published: 30-Apr-2024

Abstract

Lung cancer is one of the most common and deadliest forms of cancer globally. In recent years, there has been a growing interest in developing and improving early-stage detection and segmentation algorithms to aid in the timely diagnosis and treatment of this disease. Early detection is crucial for improving patient outcomes, and the use of advanced algorithms such as the KMP (Knuth–Morris–Pratt) algorithm shows promise in this area. In this study, we aim to explore the potential of the KMP algorithm for the segmentation and detection of lung cancer in its early stages. By leveraging this algorithm, we aim to improve the accuracy and efficiency of detecting cancerous regions within lung images, ultimately leading to earlier intervention and improved patient survival rates. To accomplish this, we will utilize a dataset of lung images collected during the first half of 2015. The KMP algorithm, known for its efficiency in string matching, will be adapted to analyze the patterns and features present in these lung images. The goal is to accurately identify and segment cancerous regions within the lung images, enabling early detection and intervention. We will compare the performance of the KMP algorithm with other existing algorithms commonly used in lung cancer detection and segmentation. The results of this study will contribute to the advancement of early-stage lung cancer detection and segmentation techniques, potentially leading to improved patient outcomes and survival rates.

Keywords

KMP algorthim, classification, segmentation, lung cancer, medical imaging

Introduction

The majority of the time, patients have to take the initiative to get in touch with healthcare providers under the current passive system. Those who lose consciousness during a heart attack episode are less likely to ask for help [1]. Protecting private health information for electronic health records by removing it through a simple and pre-large rain optimization algorithm [2].

Lung cancer is a significant global health issue, with high mortality rates, making early detection and intervention crucial for improving patient outcomes. Various algorithms have been explored for the segmentation and detection of lung cancer in its early stages, and the KMP (Knuth Morris Pratt) algorithm is showing promise in this area [3-7]. In this study, we aim to explore the potential of the KMP algorithm for the segmentation and detection of lung cancer in its early stages. By leveraging this algorithm, we aim to improve the accuracy and efficiency of detecting cancerous regions within lung images, ultimately leading to earlier intervention and improved patient survival rates. The study will adapt the KMP algorithm to analyze the patterns and features present in lung images collected during the first half of 2015 [8-10]. The goal is to accurately identify and segment cancerous regions within the lung images, enabling early detection and intervention. Additionally, we will compare the performance of the KMP algorithm with other existing algorithms commonly used in lung cancer detection and segmentation. The results of this study will contribute to the advancement of early-stage lung cancer detection and segmentation techniques, potentially leading to improved patient outcomes and survival rates. Upon completion of the analysis, our study will also delve into the potential challenges and limitations of implementing the KMP algorithm in lung cancer detection and segmentation. Additionally, we will explore opportunities for further refinement and enhancement of the algorithm to address specific nuances in early-stage lung cancer identification [11]. Furthermore, the study will encompass a comprehensive review of relevant literature and research in the field, providing a robust theoretical foundation for the application of the KMP algorithm in lung cancer detection [12]. This will involve an in-depth exploration of the underlying principles of the KMP algorithm and its adaptability to the complexities of lung image analysis. We discussed a number of previous approaches and how our model makes use of percentages, normalization, and derivatives to assess and compare a number of nations [13, 14].

Moreover, we aim to conduct a rigorous evaluation of the KMP algorithm's performance in comparison to other established algorithms, highlighting its potential advantages and areas for improvement. By analyzing the comparative results, we envision providing valuable insights into the efficacy and potential clinical impact of employing the KMP algorithm for early-stage lung cancer detection. Overall, our study seeks to offer a thorough and insightful examination of the application of the KMP algorithm in the crucial domain of early-stage lung cancer detection and segmentation, with the ultimate goal of positively impacting patient outcomes and survival rates.

Literature Review

The ability to discover underlying rules and conceal sensitive data for data sanitization is an important component of e-Health systems [15]. As we delve into the comprehensive review of relevant literature and research in the field, it becomes imperative to understand the current landscape of lung cancer detection and segmentation. Many real-time data analytics apps rely on machine learning, a branch of AI, to make predictions [16]. The existing body of research has explored various algorithms for early-stage lung cancer detection, including traditional image processing techniques, machine learning approaches, and deep learning models [17-19]. While these methods have shown promise, challenges persist in achieving high accuracy and efficiency, particularly in segmenting small and subtle cancerous regions within lung images.

The KMP algorithm, renowned for its efficiency in string matching, presents a unique opportunity in this domain [20- 27]. By leveraging its pattern-matching capabilities, the KMP algorithm offers potential advantages in identifying intricate patterns and features indicative of early-stage lung cancer. An indepth analysis of the KMP algorithm's theoretical underpinnings and its adaptability to the complexities of lung image analysis will shed light on its potential to address the limitations of existing algorithms.

Potential challenges and limitations

As we anticipate the successful implementation of the KMP algorithm in lung cancer detection and segmentation, it is essential to anticipate potential challenges and limitations. The KMP algorithm's performance may be influenced by factors such as image resolution, noise, and variations in tumor morphology. Addressing these challenges will be crucial in ensuring the algorithm's robustness in early-stage lung cancer identification.

Opportunities for refinement and enhancement

Furthermore, our study aims to explore opportunities for refining and enhancing the KMP algorithm to cater to the specific nuances of early-stage lung cancer identification. This involves considering adaptive strategies that account for the dynamic nature of cancerous regions within lung images and incorporating mechanisms to mitigate the impact of image artifacts and irregularities. Additionally, the evaluation of the KMP algorithm's performance against established algorithms will provide valuable insights into its potential clinical impact. By examining the algorithm's comparative results, we can ascertain its efficacy in detecting subtle and early-stage cancerous regions, ultimately contributing to the advancement of early-stage lung cancer detection and segmentation techniques.

As we progress in our study, the interdisciplinary nature of this research calls for a holistic approach that integrates principles from computer science, medical imaging, and oncology. By amalgamating expertise across these domains, we aim to contribute to the development of innovative solutions for early-stage lung cancer detection, thereby positively impacting patient outcomes and survival rates.

Theoretical foundation of the KMP algorithm

To thoroughly understand the potential application of the KMP algorithm in lung cancer detection and segmentation, it is crucial to delve into the theoretical foundations of this algorithm. The Knuth Morris Pratt (KMP) algorithm is renowned for its efficiency in string matching, making it a promising candidate for analyzing intricate patterns and features within lung images [28-36]. By conducting a detailed exploration of the algorithm's inner workings, including its preprocessing and pattern-matching phases, we can gain deeper insights into how it can be adapted to the complexities of lung image analysis. Additionally, understanding the algorithm's complexity and performance characteristics will be instrumental in evaluating its suitability for the specific challenges posed by early-stage lung cancer detection.

Addressing limitations and challenges

Anticipating and addressing potential challenges and limitations is a critical aspect of implementing the KMP algorithm in lung cancer detection. Factors such as varying image resolution, the presence of noise, and the diverse morphology of tumours can significantly impact the algorithm's performance. Through meticulous consideration and proactive strategies, we aim to mitigate these challenges and ensure the robustness of the KMP algorithm in identifying subtle cancerous regions within lung images. This endeavour will involve exploring adaptive techniques and refining the algorithm to effectively handle image artifacts and irregularities, thereby enhancing its suitability for early-stage lung cancer identification.

Comparative analysis and clinical impact

A rigorous evaluation of the KMP algorithm's performance compared to established algorithms will provide valuable insights into its potential clinical impact. By analyzing and interpreting the comparative results, we aim to ascertain the algorithm's efficacy in detecting subtle and early-stage cancerous regions within lung images. Such findings will not only contribute to advancing the field of early-stage lung cancer detection and segmentation but also hold the potential to influence clinical practices and patient outcomes.

Multidisciplinary approach

Given the interdisciplinary nature of this research, integrating principles from computer science, medical imaging, and oncology is integral to the successful development and application of the KMP algorithm in early-stage lung cancer detection. By amalgamating expertise across these domains, we aim to foster the creation of innovative solutions that can significantly impact patient outcomes and survival rates. This multidisciplinary approach underscores the comprehensive and holistic nature of our endeavor to contribute to the field of early-stage lung cancer detection and intervention.

Methodology

Continuing with the comprehensive exploration of the methodology used in our study, we will detail the specific steps and processes involved in the implementation of the KMP algorithm in early-stage lung cancer detection and segmentation.

```mermaid

A[Start] -->|Exploring theoretical foundations|

B; B -->|Understanding preprocessing and pattern-matching phases| C{Gain comprehensive understanding};

C -->|Adaptability to complexities of lung image analysis| D[Evaluation of complexity and performance characteristics];

D -->|Addressing specific challenges| E{Mitigating challenges and refining the KMP algorithm};

E -->|Exploring adaptive techniques and refining the algorithm| F[Handling image artifacts and irregularities];

F -->|Enhancing suitability for early-stage lung cancer identification| G[Rigorous comparative analysis];

G -->|Interpreting comparative results| H{Determining algorithm's efficacy in detecting subtle cancerous regions};

H -->|Advancing the field of early-stage lung cancer detection| I[Integrating principles from computer science, medical imaging, and oncology];

I -->|Fostering innovative solutions| J[Contribution to earlystage lung cancer detection and intervention];

```

Given the comprehensive exploration of the methodology used in our study, it's important to visualize the interconnectedness and flow of the various components discussed. The provided flow chart captures the sequential progression of our research, from the exploration of the theoretical foundations of the KMP algorithm to its integration within the multidisciplinary approach aimed at impacting early-stage lung cancer detection and intervention. This visualization serves to enhance our understanding of the holistic nature of our endeavour and the interconnectedness of its constituent elements.

Performance comparison of algorithms

In addition to the sequential progression of our research, it is essential to delineate the algorithmic framework of the KMP algorithm. By providing a detailed view of its components and functioning, we can gain deeper insights into its theoretical underpinnings and practical application.

The KMP algorithm can be represented by the following equations

Preprocessing phase:

• Define the pattern P

- Compute the prefix function π for P

- Initialize prefix function values and pattern matching variables

• Pattern-matching phase:

- Compare characters of P and the input text T

- Update the prefix function and matching variables based on comparison results

- Repeat until a match is found or the input text is exhausted

This representation elucidates the fundamental operations and computations involved in the KMP algorithm, laying the foundation for a more comprehensive understanding of its inner workings and adaptability in the context of lung image analysis.

With a clear algorithmic framework and the visual representation of our research flow, we are poised to advance the exploration and application of the KMP algorithm in early-stage lung cancer detection.

\[ \text{Preprocessing phase:} \]

\[ \text{Define the pattern P} \]

\[ \text{Compute the prefix function } \pi \text{ for P} \]

\[ \text{Initialize prefix function values and pattern matching variables} \]

\[ \text{Pattern-matching phase:} \]

\[ \text{Compare characters of P and the input text T} \]

\[ \text{Update the prefix function and matching variables based on comparison results} \]

\[ \text{Repeat until a match is found or the input text is exhausted} \]

Given a text txt[0 . . . N-1] and a pattern pat[0 . . . M-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] in txt[]. You may assume that N > M.

Examples:

Input: txt[] = “THIS IS A TEST TEXT”, pat[] = “TEST”

Output: Pattern found at index 10

Input: txt[] = “GGTGGAGGCGGTGGTG”

Pat[]= “GGTG”

Output: Pattern found at index 0, Pattern found at index 9, Pattern found at index 12

The times of attempt and the amount of letter’s match during the whole matching procedure are two essential elements to analyse the capability of the matching algorithm, it shown in Figure 1.

OAR-24-131246-g001

Figure 1: Comparing related characteristics among control and intervention groups

Results and Discussion

The pseudo-code of the KMP algorithm is expressed in Algorithm 1.

Algorithm – 1: KMP

KMP-Algorithm (i, j)

n <- length[T]

m <- length[P]

pi <- Compute Prefix Table(P)

q <- 0

For i := 0 To n-1

while q > 0 and P[q] !=T[i] do

q <- P[q]

if P[q] = T[i]

Then q ++

if q = m

Then return i – m + 1

return –1

When using the KMP algorithm, the first stage is to pre-process of the Prefix Table of P, that is, to calculate the “Failure table” or the “next array”. Then step (2) initializes q to be the number of characters that matched, at the beginning of q=0. In step (3), it is time to start scanning the text from left to right. Then in step (4) (5) (6), the algorithm starts matching, if the two characters qualify the equation, the number of matched letters—q + 1. Or if the two does not match, assign p a new value: q=P [q]. The pseudo-code of the new algorithm is displayed in Algorithm 2.

L-I-KMP algorithm (T, P)

N<- length[T]

M<-length[P]

Pi <-Compute letter table

Li<- Last-identical array

q <- 0

For i <- 0 To n-1

while q > 0 and P[q] !=T[i] do

i <- i - q+ m

q <- 0

if T[i] ∉ Pi Then q <- 0

q <- P[q]

else if T[i] ∈ Pi Then

j<- 0

do while Li[j] <> NULL

if P[Pi[j]] = T[i] Then

compare T[i]~ T[i+m-1] with P[0]~P[m]

else j++

if P[q] = T[i] Then q ++

if q = m Then return i – m + 1

return –1

The corresponding data shown in Table 1 was produced by repeatedly running the same randomly generated data. The L-IKMP method works effectively in practice when there are fewer letter types in the pattern and more space between the same letters, as shown by the figures in the table. It can reach a decent speed that is comparable to the classic KMP method if the pattern is not too long. Consequently, this algorithm is suitable.

Tab. 1. Performance comparison

Data scale Height of letter numbered table KMP algorithm L-I-KMP algorithm
N= 10, M=2 1 2 0.18 0.13 0.12 0.2
N= 500, M=5 3 6 0.33 0.34 0.54 0.39
N= 500, M=50 5 30 7.75 9.23 7.03 7.2

In understanding the KMP algorithm's theoretical underpinnings and practical application, it becomes evident that the algorithm is designed for efficient pattern matching in a given text, is shown in Figure 2. The preprocessing phase involves computing the prefix function for the pattern, while the pattern-matching phase iteratively compares characters of the pattern and input text, updating the prefix function and matching variables based on the comparison results until a match is found or the input text is exhausted.

OAR-24-131246-g002

Figure 2: Flow Diagram of the KMP algorithm for pattern matching

This representation of the KMP algorithm's framework provides insight into its fundamental operations and computations, laying the foundation for its adaptability in the context of lung image analysis. Continuing our investigation with this understanding will support the refinement and optimization of the algorithm for early-stage lung cancer detection, contributing to improved efficacy and patient outcomes.

Conclusions

In conclusion, the KMP algorithm presents significant potential for enhancing early-stage lung cancer detection and segmentation. Through the comprehensive exploration of its theoretical foundations, adaptable techniques, and practical application, our study underscores the algorithm's efficacy in addressing specific challenges inherent in lung image analysis.

Additionally, the rigorous comparative analysis conducted in our research emphasizes the algorithm's capability to detect subtle and early-stage cancerous regions within lung images, highlighting its relevance for influencing clinical practices and improving patient outcomes.

Furthermore, the holistic integration of principles from computer science, medical imaging, and oncology has paved the way for innovative solutions that can significantly impact patient outcomes and survival rates. By visualizing the interconnectedness of our research components and delineating the algorithmic framework of the KMP algorithm, we have solidified our understanding of its inner workings and adaptability, positioning us to advance the exploration and application of the algorithm in early-stage lung cancer detection.

As our investigation continues, we remain committed to refining and optimizing the KMP algorithm for early-stage lung cancer detection, ultimately contributing to improved efficacy and patient outcomes in the field of oncology.

References

Awards Nomination

Editors List

  • Ahmed Hussien Alshewered

    University of Basrah College of Medicine, Iraq

  • Sudhakar Tummala

    Department of Electronics and Communication Engineering SRM University – AP, Andhra Pradesh

     

     

     

  • Alphonse Laya

    Supervisor of Biochemistry Lab and PhD. students of Faculty of Science, Department of Chemistry and Department of Chemis

     

  • Fava Maria Giovanna

     

  • Manuprasad Avaronnan

Google Scholar citation report
Citations : 558

Onkologia i Radioterapia received 558 citations as per Google Scholar report

Onkologia i Radioterapia peer review process verified at publons
Indexed In
  • Directory of Open Access Journals
  • Scimago
  • SCOPUS
  • EBSCO A-Z
  • MIAR
  • Euro Pub
  • Google Scholar
  • Medical Project Poland
  • PUBMED
  • Cancer Index
  • Gdansk University of Technology, Ministry Points 20