Method and system for capsule endoscopy imaging of a gastrointestinal tract

The method and system optimize image quality and power consumption in wireless capsule endoscopy by adjusting settings based on lesion detection, improving diagnostic accuracy and power efficiency.

WO2026245894A1PCT designated stage Publication Date: 2026-11-26NANYANG TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/SG2026/050326
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-22
Filing Date
2026-05-22
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing wireless capsule endoscopy systems face challenges in optimizing image quality, frame rate, and battery life due to limited transmission bandwidth and power resources, compromising diagnostic accuracy and device performance.

Method used

A method and system that dynamically adjust the field of view, pixel density, and frame rate of the capsule endoscope based on lesion detection, using AI models to enhance image quality and power consumption efficiency by prioritizing high settings for detected lesions and maintaining lower settings for healthy regions.

Benefits of technology

Enhances diagnostic accuracy with high-quality, high-frame-rate imaging for lesions while reducing power consumption, achieving a recall rate of 99.88% and optimizing power usage without compromising device performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure SG2026050326_26112026_PF_FP_ABST
    Figure SG2026050326_26112026_PF_FP_ABST
Patent Text Reader

Abstract

A method of capsule endoscopy imaging of a gastrointestinal tract includes: obtaining a first scene image of the gastrointestinal tract at a current field of view setting, a current pixel density setting and a current frame rate setting with a capsule endoscope; using a lesion detection Al model to detect the presence of a lesion; transmitting the first scene image to an external image processing system and determining a lesion region information; transmitting the lesion region information to the capsule endoscope and obtaining a series of lesion images; transmitting the series of lesion images to the external image processing system. Based on detecting the lesion in the first scene image, the current field of view setting is set to a second field of view setting, and at least one of the current pixel density setting and current frame rate setting is respectively set to a second pixel density and a second frame rate.
Need to check novelty before this filing date? Find Prior Art

Description

METHOD AND SYSTEM FOR CAPSULE ENDOSCOPY IMAGING OF A GASTROINTESTINAL TRACTCROSS-REFERENCE TO RELATED APPLICATION

[0001] This application claims the benefit of priority of Singapore Patent Application No.10202501331U filed on 22 May 2025, the content of which being hereby incorporated by reference in its entirety for all purposes.TECHNICAL FIELD

[0002] The present invention generally relates to a method of capsule endoscopy imaging of a gastrointestinal tract, as well as a system thereof, and more particularly, in relation to wireless capsule endoscopy (WCE).BACKGROUND

[0003] Wireless capsule endoscopy (WCE) has revolutionized gastrointestinal diagnostics by providing a non-invasive method to visualize the small intestine. Patients swallow a pillsized device (capsule endoscope) equipped with a miniature camera that captures images as it naturally moves through the gastrointestinal tract, greatly improving the detection and management of conditions such as obscure gastrointestinal bleeding, Crohn disease, ulcerative colitis, and small intestinal tumors. Recent advancements have focused on enhancing image quality and diagnostic accuracy through improvements in camera technology, data transmission, and image processing algorithms. However, inherent trade-offs persist between image quality, frame rate, and battery life due to the limited transmission bandwidth and power resources available within the capsule endoscope. Addressing these challenges necessitates unique approaches that optimize these parameters without compromising device performance.

[0004] Recent research has explored various solutions to address these challenges, including energy-efficient hardware designs, advanced image compression algorithms, and frame rate control mechanisms. Energy-efficient hardware, such as low-power CMOS image sensors, aims to reduce power consumption within the capsule endoscope; however, the tradeoff in processing capability makes it difficult to maintain the high frame rate required for accurate diagnostics. Advanced image compression algorithms help decrease the amount of data transmitted, conserving energy, but they can lead to a loss of image quality. Adaptive frame rate control adjusts the frame rate based on movement but lacks specificity in targeting lesions.These unresolved issues highlight the need for a solution that simultaneously optimizes diagnostic accuracy (image quality) and onboard (i.e., capsule endoscope) power consumption.

[0005] A need therefore exists to provide a method of capsule endoscopy imaging of a gastrointestinal tract, as well as a system thereof, that seek to overcome, or at least ameliorate, one or more deficiencies in conventional capsule endoscopy imaging methods and systems, and more particularly, that optimizes image quality and onboard (i.e., capsule endoscope) power consumption in an effective and practical manner, thereby enhancing diagnostic accuracy without compromising device performance and enhancing practical applications. It is against this background that the present invention has been developed.SUMMARY

[0006] According to a first aspect of the present invention, there is provided a method of capsule endoscopy imaging of a gastrointestinal tract. The method comprises:obtaining, using a capsule endoscope as the capsule endoscope moves through the gastrointestinal tract and from an image sensor of the capsule endoscope, a first scene image of the gastrointestinal tract, the first scene image being captured by the image sensor set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor;detecting, using a lesion detection Al model in the capsule endoscope, for a presence of a lesion in the first scene image; andbased on detecting a lesion in the first scene image:transmitting, by the capsule endoscope, the first scene image to an external image processing system;determining, using a lesion localization Al model in the external image processing system, lesion region information of the detected lesion in the first scene image;transmitting, by the external image processing system, the lesion region information of the detected lesion to the capsule endoscope;obtaining, from the image sensor, a series of lesion images of the gastrointestinal tract based on the lesion region information of the detected lesion, the series of lesion images being captured by the image sensor set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor;transmitting, by the capsule endoscope, the series of lesion images to the external image processing system; andgenerating, by the external image processing system, a series of frames for display based on the first scene image and the series of lesion images,wherein based on said detecting the lesion in the first scene image, the current field of view setting of the image sensor is set to a second field of view corresponding to a lesion region defined by the lesion region information and at least one of the current pixel density setting and the current frame rate setting of the image sensor is respectively set to a second pixel density and a second frame rate, the second pixel density being higher than a first pixel density associated with detecting no lesion the first scene image and the second frame rate being higher than a first frame rate associated with said detecting no lesion in the first scene image.

[0007] According to a second aspect of the present invention, there is provided a system for capsule endoscopy imaging of a gastrointestinal tract. The system comprises:a capsule endoscope comprising:an image sensor;at least one memory; andat least one processor communicatively coupled to the at least one memory and the image sensor, andan external image processing system comprising:at least one memory; andat least one processor communicatively coupled to the at least one memory, wherein the at least one processor of the capsule endoscope is configured to:obtain, as the capsule endoscope moves through the gastrointestinal tract and from the image sensor, a first scene image of the gastrointestinal tract, the first scene image being captured by the image sensor set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor;detect, using a lesion detection Al model, for a presence of a lesion in the first scene image; andbased on detecting a lesion in the first scene image, transmit, by the capsule endoscope, the first scene image to the external image processing system,wherein the at least one processor of the external image processing system is configured to, based on the capsule endoscope detecting the lesion in the first scene image:determine, using a lesion localization Al model, lesion region information of the detected lesion in the first scene image; andtransmit the lesion region information of the detected lesion to the capsule endoscope,wherein the at least one processor of the capsule endoscope is further configured to:obtain, from the image sensor, a series of lesion images of the gastrointestinal tract based on the lesion region information of the detected lesion, the series of lesion images being captured by the image sensor set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor; and transmit the series of lesion images to the external image processing system, wherein the at least one processor of the external image processing system is further configured to generate a series of frames for display based on the first scene image and the series of lesion images, andwherein based on said detecting the lesion in the first scene image, the current field of view setting of the image sensor is set to a second field of view corresponding to a lesion region defined by the lesion region information and at least one of the current pixel density setting and the current frame rate setting of the image sensor is respectively set to a second pixel density and a second frame rate, the second pixel density being higher than a first pixel density associated with detecting no lesion in the first scene image and the second frame rate being higher than a first frame rate associated with said detecting no lesion in the first scene image.

[0008] According to a third aspect of the present invention, there is provided the capsule endoscope of the system according to the above-mentioned second aspect of the present invention for capsule endoscopy imaging of a gastrointestinal tract.BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Embodiments of the present invention will be better understood and readily apparent to one of ordinary skill in the art from the following written description, by way of example only, and in conjunction with the drawings, in which:FIG. 1 depicts a schematic diagram of a method of capsule endoscopy imaging of a gastrointestinal tract, according to various embodiments of the present invention;FIG. 2 depicts a schematic block diagram of a system for capsule endoscopy imaging of a gastrointestinal tract, according to various embodiments of the present invention;FIG. 3A illustrates an imaging process of a human eye;FIG. 3B depicts a fovea-inspired closed-loop edge- Al (FICE) system, with example data flows, for capsule endoscopy imaging of a gastrointestinal tract, according to various example embodiments of the present invention;FIG. 3C illustrates an example low pixel density and an example high pixel density (with the example low pixel density as a background for contrast);FIG. 4 illustrates ROI-based feedback and visual integration, according to various example embodiments of the present invention;FIG. 5 illustrates example gated U-Net feature extraction with scene image preprocessing, according to various example embodiments of the present invention;FIG. 6A illustrates an example structure of a gated CNN block, according to various example embodiments of the present invention;FIG. 6B illustrates an example structure of a gated corner block, according to various example embodiments of the present invention;FIG. 7 shows a table presenting comparative analysis of the relative state-of-the-art capsule endoscope solutions;FIG. 8 shows lesion-detection recall and lesion-localization mean Intersection over Union (mloU) as a function of scene image resolution, evaluated on a public dataset (e.g., the Kvasir dataset), illustrating saturation of detection and localization performance beyond QVGA resolution, according to various example embodiments of the present invention;FIG. 9 shows the power consumption of an example high-resolution CMOS image sensor (e.g., OV5640) as a function of the number of pixels acquired per frame at approximately 1 fps, comparing baseline operation against duty-cycled operation via a power-down (PWDN) pin, according to various example embodiments of the present invention;FIG. 10 depicts a timing diagram of an in- frame reconfiguration of a data output window of an image sensor of a capsule endoscope, performed via a sensor control interface (e.g., SCCB) during a blanking interval between consecutive frame acquisitions of an image acquisition interface (e.g., DCMI), according to various example embodiments of the present invention;FIG. 11 shows an example hybrid BLE -Wi-Fi communication architecture for wireless capsule endocopy, enabling energy-efficient operation with lossless switching between low-frame-rate BLE transmission and high-frame-rate Wi-Fi image streaming, according to various example embodiments of the present invention;FIG. 12 illustrates an example bidirectional protocol switching between BLE and WiFi, with handovers using a frame-boundary - synchronized mechanism, ensuring lossless data transmission during protocol transitions, according to various example embodiments of the present invention.FIGs. 13A to 13F show comparisons of BLE and Wi-Fi transmission characteristics in air and at various water depths, whereby the BLE operates at a fixed TXP of 3 dBm or adaptively, while Wi-Fi uses dynamic TXP under four configurations: 2.4 GHz STA, 2.4 GHz AP, 5 GHz STA, and 5 GHz AP;FIG. 14 depicts time-aligned measurements of power consumption and frame rate during BLE^Wi-Fi and Wi-Fi^BLE switching, demonstrating that the frame-synchronized handover mechanism enables stable FPS and prevents data loss, according to various example embodiments of the present invention.FIG. 15 shows a table presenting standby power consumption under different operating modes and frequency bands; andFIG. 16 shows switching latency between Wi-Fi and BLE under different image sizes, whereby the measured delays include transitions from BLE^ Wi-Fi and from Wi-Fi^BLE for image sizes of 10 - 40 KB.DETAILED DESCRIPTION

[0010] Various embodiments of the present invention provide a method of capsule endoscopy imaging of a gastrointestinal tract, as well as a system thereof, and more particularly, in relation to wireless capsule endoscopy (WCE).

[0011] As described in the background, recent advancements on WCE have focused on enhancing image quality and diagnostic accuracy through improvements in camera technology, data transmission, and image processing algorithms. However, inherent trade-offs persist between image quality, frame rate, and battery life due to the limited transmission bandwidth and power resources available within the capsule endoscope. Addressing these challenges necessitates unique approaches that optimize these parameters without compromising device performance, and more particularly, that simultaneously optimize diagnostic accuracy (imagequality) and onboard (i.e., capsule endoscope) power consumption. In this regard, various embodiments of the present invention seek to a method of capsule endoscopy imaging of a gastrointestinal tract, as well as a system thereof, that seek to overcome, or at least ameliorate, one or more deficiencies in conventional capsule endoscopy imaging methods and systems, and more particularly, that optimizes image quality and onboard (i.e., capsule endoscope) power consumption in an effective and practical manner, thereby enhancing diagnostic accuracy without compromising device performance and enhancing practical applications. It is against this background that the present invention has been developed.

[0012] FIG. 1 depicts a schematic diagram of a method 100 of capsule endoscopy imaging of a gastrointestinal tract, according to various embodiments of the present invention, and more particularly, in relation to WCE. The method 100 comprises: obtaining (at 106), using a capsule endoscope (wireless capsule endoscope) as the capsule endoscope moves through the gastrointestinal tract and from an image sensor of the capsule endoscope, a first scene image of the gastrointestinal tract, the first scene image being captured by the image sensor set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor; detecting (at 108), using a lesion detection Al model in the capsule endoscope, for a presence of a lesion in the first scene image; and based on detecting a lesion in the first scene image: transmitting (at 110), by the capsule endoscope, the first scene image to an external image processing system; determining (at 112), using a lesion localization Al model in the external image processing system, lesion region information of the detected lesion in the first scene image; transmitting (at 114), by the external image processing system, the lesion region information of the detected lesion to the capsule endoscope; obtaining (at 116), from the image sensor, a series of lesion images of the gastrointestinal tract based on the lesion region information of the detected lesion, the series of lesion images being captured by the image sensor set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor; transmitting (at 118), by the capsule endoscope, the series of lesion images to the external image processing system; and generating (at 120), by the external image processing system, a series of frames for display based on the first scene image and the series of lesion images. In particular, based on the above-mentioned detecting the lesion in the first scene image, the current field of view setting of the image sensor is set to a second field of view corresponding to a lesion region defined by the lesion region information and at least one of the current pixel density setting and the current frame rate setting of the image sensor is respectively set to a second pixel density and a second frame rate. In this regard, thesecond pixel density is higher than a first pixel density associated with detecting no lesion in the first scene image and the second frame rate is higher than a first frame rate associated with said detecting no lesion in the first scene image.

[0013] It will be appreciated by a person skilled in the art that the present invention is not limited to any particular or specific amount which the second pixel density is higher than the first pixel density, which may be configured as desired or as appropriate, as long as the second pixel density is higher than the first pixel density for providing better image quality after lesion is detected in the first scene image compared to when no lesion is detected in the first scene image. Preferred or example first and second pixel densities will be described later below according to various embodiments or example embodiments of the present invention. Similarly, it will be appreciated by a person skilled in the art that the present invention is not limited to any particular or specific amount which the second image frame rate is higher than the first frame rate, which may be configured as desired or as appropriate.

[0014] In various embodiments, the method 100 further comprises, based on detecting no lesion in the first scene image, transmitting, by the capsule endoscope, the first scene image to the external image processing system for display. Furthermore, based on the above-mentioned detecting no lesion in the first scene image, the current field of view setting of the image sensor is maintained at or set to a first field of view. In this regard, the first field of view has a larger field of view (e.g., a wide field of view) than the second field of view (e.g., corresponding to a region of interest (RO I) including the detected lesion), and at least one of the current pixel density setting and the current frame rate setting of the image sensor is respectively maintained at or set to the first pixel density and the first frame rate.

[0015] In various embodiments, the method 100 further comprises: based on the above-mentioned detecting no lesion in the first scene image, maintaining or setting the current frame rate of the image sensor and a current image transmission rate of the capsule endoscope according to the first frame rate. On the other hand, based on the above-mentioned detecting the lesion in the first scene image, setting the current frame rate of the image sensor and the current image transmission rate of the capsule endoscope according to the second frame rate.

[0016] In various embodiments, the method 100 further comprises: based on the above-mentioned detecting no lesion in the first scene image, maintaining or setting a wireless communication mode of the capsule endoscope to a first wireless communication mode. On the other hand, based on the above-mentioned detecting the lesion in the first scene image, setting the wireless communication mode of the capsule endoscope to a second wirelesscommunication mode. In particular, the second wireless communication mode has a higher transmission bandwidth than the first wireless communication mode. Similarly, it will be appreciated by a person skilled in the art that the present invention is not limited to any particular or specific amount which the transmission bandwidth of the second wireless communication mode is higher than that of the first wireless communication mode, which may be configured as desired or as appropriate

[0017] In various embodiments, the first wireless communication mode is a Bluetooth Low Energy (BLE) mode, and the second wireless communication mode is a Wi-Fi communication mode.

[0018] In various embodiments, based on the above-mentioned detecting the lesion in the first scene image, the second frame rate of the image sensor and the second image transmission rate of the capsule endoscope are determined based on the lesion region information of the detected lesion and an image transmission bandwidth of the capsule endoscope.

[0019] In various embodiments, the lesion localization Al model has a U-Net architecture comprising gated CNN blocks. In various embodiments, a final block of an encoder of the U-Net architecture comprises a plurality of gated corner blocks, each gated corner block configured to predict corresponding comer position information for the lesion region information of the detected lesion.

[0020] In various embodiments, the lesion region defined by the lesion region information is a bounding box.

[0021] In various embodiments, the method 100 further comprises preprocessing, by the external image processing system, the first scene image for the lesion localization Al model to perform the above-mentioned determining the lesion region information of the detected lesion in the first scene image. In various embodiments, preprocessing the first scene image comprises: transforming the first scene image into a Lab color space, comprising extracting a luminance of the first scene image to obtain a luminance channel image for enhancing brightness and contrast variations; applying edge detection to the luminance channel image to obtain an edge-detected luminance channel image for enhancing edges and transitions; and concatenating the edge-detected luminance channel image, the luminance channel image and the first scene image to obtain a preprocessed first scene image.

[0022] In various embodiments, based on detecting the lesion in the first scene image, the above-mentioned obtaining (at 116) the series of lesion images of the gastrointestinal tract comprises, for each of one or more lesion images of the series of lesion images, obtaining, fromthe image sensor, the lesion image of the gastrointestinal tract based on the lesion region information of the detected lesion, the lesion image being captured by the image sensor set at the current field of view setting, the current pixel density setting and the current frame rate setting of the image sensor. In addition, the above-mentioned transmitting (at 118), by the capsule endoscope, the series of lesion images to the external image processing system comprises, for each of the one or more lesion images, transmitting the lesion image to the external image processing system. Furthermore, the method 100 further comprises: for each of the one or more lesion images, determining, by the external image processing system, whether a proportion of the detected lesion in the lesion image satisfies a predefined threshold condition (e.g., whether the proportion of the detected lesion in the lesion image is at least a predefined threshold amount); and based on determining that the proportion of the detected lesion in the lesion image satisfies the predefined threshold condition, transmitting, by the external image processing system, a lesion image obtaining instruction to the capsule endoscope for controlling the capsule endoscope to obtain, from the image sensor, a subsequent lesion image of the gastrointestinal tract of the series of lesion images based on the lesion region information of the detected lesion, the subsequent lesion image being captured by the image sensor set at the second field of view and at least one of the second pixel density and the second frame rate.

[0023] In various embodiments, the method 100 further comprises, based on determining that the proportion of the detected lesion in the lesion image does not satisfies the predefined threshold condition, transmitting, by the external image processing system, a scene image obtaining instruction to the capsule endoscope for controlling the capsule endoscope to set the current field of view setting of the image sensor to the first field of view and at least one of the current pixel density setting and the current frame rate setting of the image sensor respectively to the first pixel density and the first frame rate, and for controlling the capsule endoscope to obtain, from the image sensor, a second (e.g., subsequent or next) scene image of the gastrointestinal tract, the second scene image being captured by the image sensor set at the first field of view and at least one of the first pixel density and the first frame rate.

[0024] Accordingly, in various embodiments, as the capsule endoscope moves through the gastrointestinal tract, the above-mentioned operations (e.g., denoted by 106, 108, 110, 112, 114, 116, 118, 120) of the method 100 may be repeated or performed iteratively over time, whereby certain operations are performed based on detecting a lesion in the first or current scene image and certain other operations are performed based on detecting no lesion in the first or current scene image, as described above. For example, based on detecting the lesion in the first orcurrent scene image, the method 100 may continue to or iteratively obtain a subsequent lesion image as long as the proportion of the detected lesion in the first or current lesion image satisfies the predefined threshold condition, whereby the subsequent lesion image obtained then becomes the first or current lesion image for the next iteration to determine whether the proportion of the detected lesion therein satisfies the predefined threshold condition, so as to obtain the above-mentioned series of lesion images of the gastrointestinal tract based on the lesion region information of the detected lesion. Upon determining that the proportion of the detected lesion in the first or current lesion image does not satisfy the predefined threshold condition, the method 100 may then set the current field of view setting of the image sensor to the first field of view and at least one of the current pixel density setting and the current frame rate setting of the image sensor respectively to the first pixel density and the first frame rate, and then control the capsule endoscope to obtain, from the image sensor, a subsequent scene image of the gastrointestinal tract, the second scene image being captured by the image sensor set at the first field of view and at least one of the first pixel density and the first frame rate, and continue to capture a subsequent scene image according to the current frame rate setting of the image sensor over time, until the lesion detection Al model detects that the presence of a lesion in the subsequent scene image, and the method 100 then proceeds to perform the above-mentioned operations based on detecting a lesion in the first scene image (the subsequent scene image constitutes the first scene image at this stage or for these operations).

[0025] In various embodiments, the above-mentioned generating (at 120), by the external image processing system, a series of frames for display based on the first scene image and the series of lesion images comprises: obtaining a series of scene images comprising the first scene image, the second scene image, and a series of intermediate scene images between the first and second scene images, the series of intermediate scene images obtained based on interpolation based on the first and second scene images; and generating the series of frames for display based on the series of scene images and the series of lesion images.

[0026] In various embodiments, the method 100 further comprises enhancing a pixel density of the series of scene images based on a pixel density of the series of lesion images.

[0027] In various embodiments, an image resolution of the first scene image (and also of the second scene image) corresponds to a quarter video graphics array (QVGA) resolution or a resolution higher than the QVGA resolution.

[0028] In various embodiments, the image sensor of the capsule endoscope is a complementary metal-oxide-semiconductor (CMOS) image sensor having a native pixelresolution of at least 5 megapixels. In this regard, the method 100 further comprises, based on said detecting no lesion in the first scene image, duty-cycling, via a power control input of the image sensor, the image sensor between consecutive scene image acquisitions.

[0029] In various embodiments, based on the above-mentioned detecting the lesion in the first scene image, the current field of view setting of the image sensor is set to the second field of view based on reconfiguring, via a sensor control interface of the capsule endoscope, at least one windowing register of the image sensor during a blanking interval between consecutive frame acquisitions of the image sensor, the at least one windowing register defining a data output window of the image sensor.

[0030] FIG. 2 depicts a schematic block diagram of a system 200 for capsule endoscopy imaging of a gastrointestinal tract, according to various embodiments of the present invention, corresponding to the above-mentioned method 100 of capsule endoscopy imaging of a gastrointestinal tract as described hereinbefore with reference to FIG. 1 according to various embodiments of the present invention. The system 200 comprises: a capsule endoscope (wireless capsule endoscope) 210 comprising: an image sensor 211; at least one memory 212; and at least one processor 214 communicatively coupled to the at least one memory 212 and the image sensor 211, and an external image processing system 250 comprising: at least one memory 252; and at least one processor 254 communicatively coupled to the at least one memory 252. The at least one processor 214 of the capsule endoscope 210 is configured to: obtain, as the capsule endoscope 210 moves through the gastrointestinal tract and from the image sensor 211, a first scene image of the gastrointestinal tract, the first scene image being captured by the image sensor 211 set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor 211; detect, using a lesion detection Al model, for a presence of a lesion in the first scene image; and based on detecting a lesion in the first scene image, transmit, by the capsule endoscope 210, the first scene image to the external image processing system 250. The at least one processor 254 of the external image processing system 250 is configured to, based on the capsule endoscope detecting the lesion in the first scene image: determine, using a lesion localization Al model, lesion region information of the detected lesion in the first scene image; and transmit the lesion region information of the detected lesion to the capsule endoscope. The at least one processor 214 of the capsule endoscope 210 is further configured to: obtain, from the image sensor 211, a series of lesion images of the gastrointestinal tract based on the lesion region information of the detected lesion, the series of lesion images being captured by the image sensor 211 set at a current field of viewsetting, a current pixel density setting and a current frame rate setting of the image sensor 211; and transmit the series of lesion images to the external image processing system 250. The at least one processor 254 of the external image processing system 250 is further configured to generate a series of frames for display based on the first scene image and the series of lesion images. In particular, based on the above-mentioned detecting the lesion in the first scene image, the current field of view setting of the image sensor is set to a second field of view corresponding to a lesion region defined by the lesion region information and at least one of the current pixel density setting and the current frame rate setting of the image sensor 211 is respectively set to a second pixel density and a second frame rate. In this regard, the second pixel density is higher than a first pixel density associated with detecting no lesion in the first scene image and the second frame rate is higher than a first frame rate associated with said detecting no lesion in the first scene image.

[0031] It will be appreciated by a person skilled in the art that the at least one processor 214 of the capsule endoscope 210 and the at least one processor 254 of the external image processing system 250 may each be configured to perform various functions or operations through set(s) of instructions (e.g., software modules) executable by the at least one processor 214 and the at least one processor 254 to perform various functions or operations. Accordingly, as shown in FIG. 2, the capsule endoscope 210 may comprise: an image obtaining module (or an image obtaining circuit) 216 configured to obtain, as the capsule endoscope 210 moves through the gastrointestinal tract and from the image sensor 211 , a first scene image of the gastrointestinal tract, the first scene image being captured by the image sensor 211 set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor 211; a lesion detection module (or a lesion detection circuit) 218 configured to detect, using a lesion detection Al model, for a presence of a lesion in the first scene image; an image transmission module (or an image transmission circuit) 220 configured to, based on detecting a lesion in the first scene image, transmit (via a wireless data transmitter or transceiver of the capsule endoscope 210) the first scene image to the external image processing system 250. The external image processing system 250 may further comprise: a lesion region determining module (or a lesion region determining circuit circuit) 256 configured to: determine, using a lesion localization Al model, lesion region information of the detected lesion in the first scene image; and a lesion region transmission module (or a lesion region transmission circuit) 258 configured to transmit (via a wireless data transmitter or transceiver of the external image processing system 250) the lesion region information of the detected lesion to the capsule endoscope 210.The image obtaining module 216 is further configured to: obtain, from the image sensor 211, a series of lesion images of the gastrointestinal tract based on the lesion region information of the detected lesion, the series of lesion images being captured by the image sensor 211 set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor 211. The image transmission module 220 is further configured to transmit (via the wireless data transmitter or transceiver of the capsule endoscope 210) the series of lesion images to the external image processing system 250. The external image processing system 250 further comprises a frame generating module (or a frame generating circuit) 260 configured to generate a series of frames (a series of image or video frames) for display based on the first scene image and the series of lesion images.

[0032] It will be appreciated by a person skilled in the art that the above-mentioned modules of the capsule endoscope 210 are not necessarily separate modules. Similarly, the above-mentioned modules of the external image processing system 250 are not necessarily separate modules. In particular, two or more modules may be realized by or implemented as one functional module (e.g., a circuit or a software program) as desired or as appropriate without deviating from the scope of the present invention. For example, two or more of the image obtaining module 216, lesion detecting module 218 and image transmission 220 may be realized (e.g., compiled together) as one executable software program, which for example may be stored in the at least one memory 212 and executable by the at least one processor 214 to perform the corresponding functions or operations as described herein according to various embodiments of the present invention. Similarly, two or more of the lesion region determining module 256, the lesion region transmission module 258 and the frame generating module 260 may be realized (e.g., compiled together) as one executable software program, which for example may be stored in the at least one memory 252 and executable by the at least one processor 254 to perform the corresponding functions or operations as described herein according to various embodiments of the present invention.

[0033] In various embodiments, the system 200 for capsule endoscopy imaging of a gastrointestinal tract corresponds to the method 100 of capsule endoscopy imaging of a gastrointestinal tract as described hereinbefore with reference to FIG. 1, therefore, various operations, functions or steps configured to be performed by the at least one processor 214 and the at least one processor 254 may correspond to various operations, functions or steps of the method 100 of capsule endoscopy imaging of a gastrointestinal tract described hereinbefore according to various embodiments, and thus need not be repeated with respect to the system200 for capsule endoscopy imaging of a gastrointestinal tract for clarity and conciseness. In other words, various embodiments described herein in context of methods (e.g., the method 100 of capsule endoscopy imaging of a gastrointestinal tract) are analogously valid for the corresponding systems or devices (e.g., the system 200 for capsule endoscopy imaging of a gastrointestinal tract), and vice versa. For example, in various embodiments, the at least one memory 212 may have stored therein the image obtaining module 216, the lesion detection module 218 and / or the image transmission module 220, which respectively correspond to various operations, functions or steps of the method 100 of capsule endoscopy imaging as described hereinbefore according to various embodiments, which are executable by the at least one processor 214 to perform the corresponding operations, functions or steps as described herein. For example, in various embodiments, the at least one memory 252 may have stored therein the lesion region determining module 256, the lesion region transmission 258 and / or the frame generating module 260, which respectively correspond to various operations, functions or steps of the method 100 of capsule endoscopy imaging as described hereinbefore according to various embodiments, which are executable by the at least one processor 254 to perform the corresponding operations, functions or steps as described herein.

[0034] A computing system, a controller, a microcontroller or any other system providing a processing capability may be provided according to various embodiments in the present invention as desired or as appropriate. Such a system may be taken to include one or more processors and one or more computer-readable storage mediums. For example, the capsule endoscope 210 described hereinbefore includes at least one processor 214 and at least one computer-readable storage medium (or memory) 212 which are for example used in various processing carried out therein as described herein. For example, the external image processing system 250 described hereinbefore includes at least one processor 254 and at least one computer-readable storage medium (or memory) 252 which are for example used in various processing carried out therein as described herein. A memory or computer-readable storage medium used in various embodiments may be a volatile memory, for example a DRAM (Dynamic Random Access Memory) or a non-volatile memory, for example a PROM (Programmable Read Only Memory), an EPROM (Erasable PROM), EEPROM (Electrically Erasable PROM), or a flash memory, e.g., a floating gate memory, a charge trapping memory, an MRAM (Magnetoresistive Random Access Memory) or a PCRAM (Phase Change Random Access Memory).

[0035] In various embodiments, a “circuit” may be understood as any kind of a logic implementing entity, which may be special purpose circuitry or a processor executing software stored in a memory, firmware, or any combination thereof. Thus, in an embodiment, a “circuit” may be a hard-wired logic circuit or a programmable logic circuit such as a programmable processor, e.g., a microprocessor (e.g., a Complex Instruction Set Computer (CISC) processor or a Reduced Instruction Set Computer (RISC) processor). A “circuit” may also be a processor executing software, e.g., any kind of computer program, e.g., a computer program using a virtual machine code, e.g., Java. Any other kind of implementation of various functions or operations may also be understood as a “circuit” in accordance with various other embodiments. Similarly, a “module” may be a portion of a system according to various embodiments in the present invention and may encompass a “circuit” as above, or may be understood to be any kind of a logic-implementing entity therefrom.

[0036] Some portions of the present disclosure may be explicitly or implicitly presented in terms of algorithms and functional or symbolic representations of operations on data within a computer memory. These algorithmic descriptions and functional or symbolic representations are the means used by those skilled in the data processing arts to convey most effectively the substance of their work to others skilled in the art. An algorithm may be, and generally, conceived to be a self-consistent sequence of steps leading to a desired result.

[0037] The present specification also discloses a system (e.g., which may also be embodied as one or more devices or apparatuses), such as the system 200, for performing various operations, functions or steps of various methods described herein. Such a system may be specially constructed for the required purposes (e.g., the capsule endoscope 210) or may comprise a general purpose computer system (e.g., the external image procession system 250) selectively activated or reconfigured by a computer program stored in the computer system. In general, various algorithms that may be presented herein are not limited to being implemented or executed by any particular computer system. Alternatively, the construction of more specialized computer system to perform various operations, functions or steps of various methods described herein may be provided as desired or as appropriate without going beyond the scope of the present invention.

[0038] In addition, the present specification also at least implicitly discloses computer program(s) or software / functional module(s), in that it would be apparent to a person skilled in the art that various operations, functions or steps of various methods described herein may be put into effect by computer code. The computer program(s) is not intended to be limited to anyparticular programming language and implementation thereof, and it will be appreciated by a person skilled in the art that a variety of programming languages and coding thereof may be used to implement the computer program(s). Moreover, the computer program(s) is not intended to be limited to any particular control flow as there are a variety of programming languages which can use different control flows. It will be appreciated by a person skilled in the art that a computer program may be stored on any computer-readable storage medium (non-transitory computer-readable storage medium), such as but not limited to, a magnetic disk, an optical disk or a memory chip. For example, a computer program stored on a computer-readable storage medium may be loaded and executed on a computer system to implement various operations, functions or steps of various methods described herein according to various embodiments of the present invention.

[0039] Accordingly, in various embodiments, there is provided a computer program product, embodied in one or more computer-readable storage mediums (non-transitory computer-readable storage medium), comprising instructions (e.g., the image obtaining module 216, the lesion detection module 218 and / or the image transmission module 220) executable by one or more computer processors, and / or one or more computer-readable storage mediums (non-transitory computer-readable storage medium), comprising instructions (e.g., the lesion region determining module 256, the lesion region transmission 258 and / or the frame generating module 260) executable by one or more computer processors, to perform the method 100 of capsule endoscopy imaging of a gastrointestinal tract as described hereinbefore with reference to FIG. 1 according to various embodiments of the present invention. Accordingly, various computer programs or software modules described herein may be stored in a computer program product receivable by one or more systems therein, such as the external image processing system 250 as shown in FIG. 2, for execution by at least one processor to perform various operations, functions or steps of various methods described herein according to various embodiments of the present invention.

[0040] It will be appreciated by a person skilled in the art that various modules described herein (e.g., the image obtaining module 216, the lesion detection module 218 and / or the image transmission module 220 of the capsule endoscope 210 and the lesion region determining module 256, the lesion region transmission 258 and / or the frame generating module 260 of the external image processing system 250) may be software module(s) realized by computer program(s) or set(s) of instructions executable by a computer processor to perform various functions or operations. For example, various modules described herein (e.g., the imageobtaining module 216, the lesion detection module 218 and / or the image transmission module 220 of the capsule endoscope 210), together with the at least one processor 214 and the at least one memory 212, may also be implemented as hardware module(s) being functional hardware unit(s) designed to perform various functions or operations. Similarly, various modules described herein (e.g., the lesion region determining module 256, the lesion region transmission 258 and / or the frame generating module 260 of the external image processing system 250), together with the at least one processor 254 and the at least one memory 252, may also be implemented as hardware module(s) being functional hardware unit(s) designed to perform various functions or operations. More particularly, in the hardware sense, a module is a functional hardware unit designed for use with other components or modules. For example, a module may be implemented using discrete electronic components, or it can form a portion of an entire electronic circuit such as an Application Specific Integrated Circuit (ASIC) or a Field Programmable Gate Array (FPGA). Numerous other possibilities exist. It will also be appreciated by a person skilled in the art that a combination of hardware and software modules may be implemented. Furthermore, various operations, functions or steps of various methods described herein may be performed in parallel rather than sequentially as desired or as appropriate (e.g., as long as it does not render the method(s) inoperable or unsatisfactory for its intended purpose).

[0041] It will be appreciated by a person skilled in the art that the terminology used herein is for the purpose of describing various embodiments only and is not intended to be limiting of the present invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and / or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0042] Any reference to an element or a feature herein using a designation such as “first”, “second” and so forth does not limit the quantity or order of such elements or features, unless stated or the context requires otherwise. For example, such designations may be used herein as a convenient way of distinguishing between two or more elements or instances of an element. Thus, a reference to first and second elements does not necessarily mean that only two elements can be employed, or that the first element must precede the second element, unless stated or thecontext requires otherwise. In addition, a phrase referring to “at least one of’ a list of items refers to any single item therein or any combination of two or more items therein.

[0043] In order that the present invention may be readily understood and put into practical effect, various example embodiments of the present invention will be described hereinafter by way of examples only and not limitations. It will be appreciated by a person skilled in the art that the present invention may, however, be embodied in various different forms or configurations and should not be construed as limited to the example embodiments set forth hereinafter. Rather, these example embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the present invention to those skilled in the art.

[0044] The human eye is one of the most efficient imaging systems, featuring a unique characteristic: only a small area called the fovea is perceived in high pixel density and vivid color. This mechanism cooperated with visual integration and saccade optimizes visual perception while reducing overall energy consumption. In this regard, various example embodiments provide a WCE system by integrating, for example, a high-resolution image sensor (e.g., 5 MP pixels CMOS sensor) that is, for example, 40 folds higher than the conventional PillCam (Medtronic). In this regard, in various example embodiments, a fovea-inspired closed-loop edge-AI (FICE) system is provided for enhanced capsule endoscopy imaging that performs lesion detection within the capsule endoscope (which herein may simply be referred to as “capsule”) using edge computing. When potential abnormalities are detected, compressed images are transmitted to an external processor (an external image processing system), where a specially designed Al algorithm combined with image processing, (lesion localization Al model, e.g., Gated Corner Proposal Network), determines the precise location of the target area (e.g., target region of interest (ROI) including the detected lesion, which may be referred to as the lesion region). The external processor then generates a series of frames (e.g., image or video frames, each being a foveated composite frame) based on (e.g., spatially combining (e.g., fusing or overlaying)) high-pixel density images of the detected lesion (based on the determined ROI or lesion region, and may thus be referred to as a lesion image) with a series of scene images for display. This approach enables high-quality, high-frame-rate transmission from the capsule to the external processor for critical areas to achieve accurate diagnosis while reducing the frame rate and power consumption for healthy regions. Validation using the HyperKvasir Dataset demonstrates that an example system for capsule endoscopy imaging according to various example embodiments achieves an onboard diagnostic recall of99.88% and a Region of Interest (ROI) detection mean Intersection over Union (mIOU) of 0.804, while achieving 9.58 fps with 320 pixel density under a maximum data transmission rate of 1248 KBps. This unique approach simultaneously optimizes image quality, frame rate, and power consumption, addressing longstanding trade-offs in capsule endoscopy and enhancing diagnostic accuracy without compromising device performance.FOVEA-INSPIRED CLOSED-LOOP EDGE-AI (FICE) SYSTEM 300A. FICE Architecture Overview

[0045] Without limitation, an imaging process of a human eye is illustrated in FIG. 3A, where the fovea is a small central region of the retina densely packed with photoreceptor cells, allowing it to capture images in high pixel density and vivid color. While the fovea processes detailed information in the center of the visual field, the surrounding regions provide lower-pixel density input, which the brain integrates into a coherent image with a sharp central focus and less-detailed periphery.

[0046] In this regard, various example embodiments provide an example FICE system 300, with example data flows, as illustrated in FIG. 3B. As shown in FIG. 3B, at the capsule 310, after the image sensor 311 captures an initial image (a scene image, which may also be referred herein to as an FOV image), the FOV image may undergo JPEG compression and is processed by an onboard edge artificial intelligence (Al) module to determine the presence of potential lesion(s) in the FOV image. If no lesion is detected, the capsule 311 may be configured to transmit the FOV image at a lower frame rate to conserve energy. On the other hand, if a lesion is detected / identified in the FOV image, the compressed image may be further downsampled and transmitted to an external image processing system 350 (e.g., an external processor or computer) for Region of Interest (ROI) detection in relation to the detected lesion in the FOV image.

[0047] Accordingly, in various example embodiments, the capsule 310 initially captures a scene image (wide FOV image) of the gastrointestinal tract. In this regard, as the capsule 310 moves through the gastrointestinal tract, a scene image of the gastrointestinal tract may be obtained from the image sensor 311 of the capsule 310. In this regard, the scene image is captured by the image sensor 311 set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor 311. The scene image provides broad contextual information and may be captured at a relatively low pixel density and / or low frame rate to reduce image acquisition power, wireless transmission bandwidth, and overall capsuleenergy consumption. The capsule 310, using the onboard edge artificial intelligence (Al) module, may then detect for a presence of lesion(s) in the current scene image. Based on detecting a lesion in the current scene image, the current scene image may be wirelessly transmitted to the external image processing system (e.g., image processing server) 350.

[0048] In various example embodiments, the external image processing system 350 determines, using a lesion localization Al model, lesion region information of the detected lesion in the current scene image obtained from the capsule 310; and then transmits the lesion region information of the detected lesion to the capsule 310. In various example embodiments, the external image processing system 350 may utilize the lesion localization Al model, for example, a Gated U-Net to extract key point features, followed by, for example, a Gated Corner Block, to predict the top-left and bottom-right corners of the detected lesion, thereby defining a bounding box for the ROI. This bounding box may then serve as feedback to the image sensor 311 of the capsule 310, directing it to capture a high-pixel density image of the identified ROI.

[0049] Based on the lesion region information of the detected lesion; the capsule 310 may obtain, from the image sensor 311 , a series of lesion images of the gastrointestinal tract captured (one lesion image per round or iteration) by the image sensor 311 set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor 311. Furthermore, the capsule 310 may transmit the series of lesion images (one lesion image per round or iteration) to the external image processing system 350. Thereafter, the external image processing system may generate a series of frames for display based on the current scene image and the series of lesion images. For example, a high-pixel density ROI image (which may herein be referred to as the lesion image) may be transmitted and seamlessly integrated with a corresponding scene image (or FOV image) on the external image processing system 350 to generate a foveated composite image. In this regard, as will be described later below, a series of intermediate scene images between two consecutive scene images may be generated based on interpolation using the two consecutive scene images. The series of frames for display may then be generated based on the series of scene images and the series of lesion images.

[0050] In particular, in various example embodiments, based on detecting the lesion in the current scene image, the current field of view setting of the image sensor is set to a second field of view corresponding to a lesion region defined by the lesion region information and at least one of the current pixel density setting and the current frame rate setting of the image sensor is respectively set to a second pixel density and a second frame rate. In this regard, the second pixel density (e.g., high pixel density) is higher than a first pixel density (e.g., low pixel density)associated with detecting no lesion in the current scene image and the second frame rate is higher than a first frame rate associated with detecting no lesion in the current scene image. For illustration purpose, FIG. 3C illustrates an example low pixel density and an example high pixel density (with the example low pixel density as a background for contrast). Accordingly, this synthesized output prioritizes high-pixel density details in important or critical regions (lesion regions) while maintaining lower pixel density in less important regions, thereby achieving an optimal balance between diagnostic accuracy, energy efficiency, and transmission frame rate.

[0051] Accordingly, in various example embodiments, at the external image processing system 350, a lesion region determining module (lesion localization Al model) may determine lesion region information (e.g., ROI information or an ROI bounding box) of the detected lesion in the scene. The external image processing system 350 may then transmit the ROI information back to the capsule 310. Based on the received ROI information, the capsule 310 may reconfigure the image sensor 311 (e.g., CMOS image sensor) to capture a series of ROI images (or a series of lesion images) (one ROI / lesion image each round or iteration) corresponding to the determined lesion region. The series of ROI images may be captured at a higher pixel density and / or a higher frame rate than the current scene image, so that the detected lesion region can be captured with higher diagnostic detail. The series of ROI images (one ROI image each round or iteration) may be transmitted back to the external image processing system 350.

[0052] On the other hand, in various example embodiments, based on detecting no lesion in the current scene image, the capsule 310 may transmit the current scene image to the external image processing system 350 for display. Furthermore, based on detecting no lesion in the current scene image, the current field of view setting of the image sensor 311 is maintained at or set to a first field of view. In this regard, the first field of view has a larger field of view (e.g., a wide field of view) than the second field of view (e.g., corresponding to a region of interest (ROI) including the detected lesion), and at least one of the current pixel density setting and the current frame rate setting of the image sensor is respectively maintained at or set to the first pixel density and the first frame rate.

[0053] In various example embodiments, based on detecting no lesion in the current scene image, the current frame rate of the image sensor 311 and a current image transmission rate of the capsule 310 is maintained or set according to the first frame rate. On the other hand, based on the detecting the lesion in the current scene image, the current frame rate of the image sensor 311 and the current image transmission rate of the capsule 310 is set according to the second frame rate.

[0054] In various example embodiments, based on detecting no lesion in the current scene image, the capsule 310 maintains or sets a wireless communication mode of the capsule 310 to a first wireless communication mode. On the other hand, based on detecting the lesion in the current scene image, the wireless communication mode of the capsule 310 to a second wireless communication mode. In particular, the second wireless communication mode (e.g., Wi-Fi communication mode) has a higher transmission bandwidth than the first wireless communication mode (e.g., Bluetooth Low Energy (BLE) mode).B. Lightweight Edge Al for Lesion Detection

[0055] Onboard edge Al for lesion detection is important in the FICE system 300 for minimizing data transmission, optimizing power consumption, and enabling real-time adaptation. However, conventional Al algorithms, with their extensive parameters and computational demands, are not well-suited for this application. To address this, various example embodiments adopt a lightweight transformer-based algorithm (e.g., PoolFormer), which has shown significant success in prior edge Al implementations, tailoring it to meet the specific requirements of this system. For example, a 6-layer ParaPoolF ormer may be adapted with only 45KB parameters and achieved 99.88% lesion detection recall on HyperKvasir dataset. By processing images locally, the need to transmit large volumes of data and conserving energy is significantly reduces.

[0056] As shown in FIG. 3B, the onboard lesion detection model not only identifies the presence of lesion(s) in the current scene image, but may also dynamically trigger the adjustment of the camera’s frame rate and activates the off-board localization model in the external image processing system 350. When no lesion is detected in the current scene image, the image sensor 311 (e.g., OV5640 camera) captures a scene image (e.g., full or wide FOV image) at a low resolution of, for example, 500x500, which is then wirelessly transmitted to the external image processing system 350. Simultaneously, the frame rate is reduced to below, for example, 1 fps. In this regard, the peristaltic frequency of the gastrointestinal tract ranges from 0.03 to 0.2 contractions per second, making a frame rate of 1 fps sufficient to capture relevant motion. If a lesion is detected in the low-pixel density scene image (FOV image), the onboard Al lesion detection model triggers the off-board localization model in the external image processing system 350 to generate the ROI information (e.g., ROI coordinates) in relation to the detected lesion. Simultaneously, the image sensor 311 is configured to, for example, its native 5MP resolution and captures an image of the ROI (i.e., a ROI image) based on the ROIinformation received from the external image processing system 350. In various example embodiments, the capsule 310 may be configured to calculate the number of pixels in the ROI, estimates the image size, and set the frame rate of the image sensor 311 according to the maximum bandwidth available from the wireless communication module (wireless data transmitter or transceiver). Accordingly, in various example embodiments, based on detecting the lesion in the current scene image, the second frame rate of the image sensor 311 and the second image transmission rate of the capsule 310 may be determined based on the lesion region information of the detected lesion and an image transmission bandwidth of the capsule 310.C. Visual Integration and Saccades by ROI Feedback

[0057] Building on the fovea mechanism, the brain visual integration capability continuously overlays and combines high-pixel density images captured by the fovea with surrounding background information, stitching together successive high-pixel density focal points into a complete visual scene. In the absence of targets in the ROI, the brain initiates saccades, rapid eye movements, to scan the environment, bringing new ROI into the visual field to acquire more information.

[0058] In this regard, in various example embodiments, a unique ROI-based feedback technique is provided. In this regard, for each ROI image received, the external image processing system 350 may be configured to determine whether a proportion of the detected lesion in the ROI (or lesion) image satisfies a predefined threshold condition (e.g., a proportion of at least 50%). In this regard, based on determining that the proportion of the detected lesion in the lesion image satisfies the predefined threshold condition, the external image processing system 350 transmits a lesion image obtaining instruction to the capsule 310 for controlling the capsule 310 to obtain, from the image sensor 311, a subsequent lesion image of the gastrointestinal tract based on the lesion region information of the detected lesion. In this regard, the subsequent lesion image is captured by the image sensor 311 set at the second field of view and at least one of the second pixel density and the second frame rate. On the other hand, the external image processing system 350 may be configured to, based on determining that the proportion of the detected lesion in the lesion image does not satisfies the predefined threshold condition, transmit a scene image obtaining instruction to the capsule 310 for controlling the capsule 310 to set the current field of view setting of the image sensor 311 to the first field of view and at least one of the current pixel density setting and the current frame rate setting of the image sensor respectively to the first pixel density and the first frame rate, and forcontrolling the capsule 310 to obtain, from the image sensor 311 , a second (subsequent or next) scene image of the gastrointestinal tract. In this regard, the second scene image being captured by the image sensor set at the first field of view and at least one of the first pixel density and the first frame rate.

[0059] As mentioned above, during ROI imaging, gastrointestinal peristalsis and capsule movement may cause the lesion region to move relative to the ROI bounding box. As a result, the lesion region may gradually move out of the field of view of the ROI image, and the ROI image may no longer sufficiently cover the suspected lesion region (i.e., the proportion of the detected lesion in the lesion image does not satisfy a predefined threshold condition). In various example embodiments, if the image processing system 350 (e.g., image processing server) determines that the lesion region is no longer sufficiently covered by the ROI image, the image processing system 350 may instruct the capsule 310 to switch from ROI imaging back to FOV imaging (for capturing scene images). For example, this may occur when more than a predetermined proportion of the lesion region is outside the ROI bounding box. In one example, the predetermined proportion may be 50%, although it will be appreciated by a person skilled in the art that other threshold values may also be used. The capsule 310 may then capture a new scene image with a wider field of view compared to the ROI image. The capsule 310 may continue to capture new scene images over time as the capsule 310 moves through the gastrointestinal tract until the onboard lesion detection Al model detects the presence of a lesion in the current scene images. Based on detecting a lesion in the current scene image, the current scene image may be transmitted to the image processing system 350 and the lesion region determining module of the image processing system 350 may re-determine the lesion region based on the newly received current scene image and generate updated ROI information. The lesion region transmission module may then transmit the updated ROI information to the capsule 310, and the capsule 310 may reconfigure the CMOS image sensor 311 again to continue ROI image acquisition.

[0060] As an illustrative example shown in FIG. 4, in various example embodiments, the initial interpolated frame generated by the external image processing system 350, or the initial ROI image, may serve as the baseline ROI for feedback. Due to the natural movement of the capsule endoscope within the gastrointestinal tract, driven by peristalsis, the same ROI area set by the image sensor 311 captures different image details over time. As the image sensor 311 continues to collect new ROI images, each subsequent new ROI image may be used to generate a corresponding subsequent interpolated frame. The subsequent new ROI image or thecorresponding subsequent interpolated frame may be compared to the baseline. In various example embodiments, by comparing the newly acquired ROI data (the subsequent new ROI image or the corresponding subsequent interpolated frame) with the baseline ROI, the external image processing system 350 is able to perform visual integration, stitching together the ROI regions to form a more comprehensive image over time.

[0061] In various example embodiments, the above process continues until the overlap between the newly captured ROI and the baseline ROI falls below a predefined threshold, for example, may be set at 0.5. At this point, the external image processing system 350 provides feedback to the image sensor 311, prompting it to switch back to scene image (wide or full view image) capture to continue detecting for lesion areas, for example, mimicking the saccadic movement of the human eye to rapidly scan new regions of the visual field and refocus on areas of interest, thereby closing the loop.

[0062] This dynamic feedback mechanism leverages ROI-based feedback and visual integration to continuously update and incorporate high-pixel density information while adapting to changes in the capsule position and environment. By dynamically stitching high-pixel density ROI data (e.g., stitching a series of frames obtained by combining a series of scene images and a series of ROI images) and making adjustments only when necessary, the external image processing system 350 eliminates the need for frequent reconfiguration of the image sensor 311. This approach ensures efficient adaptation to capsule movement while maintaining high-quality imaging for accurate and reliable diagnosis.

[0063] In various example embodiments, based on detecting the lesion in the current scene image, the above-mentioned obtaining the series of lesion images of the gastrointestinal tract comprises, for each of one or more lesion images of the series of lesion images (or the series of ROI images), obtaining, from the image sensor 311, the lesion image of the gastrointestinal tract based on the lesion region information (or ROI information) of the detected lesion. In this regard, the lesion image is captured by the image sensor 311 set at the current field of view setting, the current pixel density setting and the current frame rate setting of the image sensor 311. In addition, the above-mentioned transmitting, by the capsule 310, the series of lesion images to the external image processing system 350 comprises, for each of the one or more lesion images, transmitting the lesion image to the external image processing system 350. Furthermore, as described above according to various example embodiments, for each ROI image received, the external image processing system 350 may be configured to determine whether a proportion of the detected lesion in the ROI (or lesion) image satisfies a predefinedl ’ lthreshold condition (e.g., a proportion of at least 50%). In this regard, based on determining that the proportion of the detected lesion in the lesion image satisfies the predefined threshold condition, the external image processing system 350 transmits a lesion image obtaining instruction to the capsule 310 for controlling the capsule 310 to obtain, from the image sensor 311, a subsequent lesion image of the gastrointestinal tract based on the lesion region information of the detected lesion. In this regard, the subsequent lesion image is captured by the image sensor 311 set at the second field of view and at least one of the second pixel density and the second frame rate. On the other hand, the external image processing system 350 may be configured to, based on determining that the proportion of the detected lesion in the lesion image does not satisfies the predefined threshold condition, transmit a scene image obtaining instruction to the capsule 310 for controlling the capsule 310 to set the current field of view setting of the image sensor 311 to the first field of view and at least one of the current pixel density setting and the current frame rate setting of the image sensor respectively to the first pixel density and the first frame rate, and for controlling the capsule 310 to obtain, from the image sensor 311, a second (subsequent or next) scene image of the gastrointestinal tract. In this regard, the second scene image being captured by the image sensor set at the first field of view and at least one of the first pixel density and the first frame rate.GATED CORNER PROPOSAL NETWORK

[0064] In various example embodiments, only bounding box detection is needed, and most existing object detection algorithms, such as YOLO, are overly computationally intensive. Therefore, various example embodiments adopt a strategy inspired by the ComerNet architecture, dividing the process into feature extraction and corner proposal as illustrated in FIG. 5.A. Conventional Image Preprocessing

[0065] RGB images combine both color and brightness information, making it challenging for algorithms to isolate critical structural details like texture, edges, and shading necessary for lesion identification. This often reduces sensitivity to subtle variations in brightness and contrast, which are key indicators of abnormalities in medical imaging.

[0066] To address this challenge, in various example embodiments, once the capsule 310 transmits compressed images of suspected lesions, the external image processing system 350 undergoes several preprocessing steps to enhance ROI detection. In this regard, the externalimage processing system 350 may preprocess the current scene image for the lesion localization Al model to perform the above-mentioned determining the lesion region information (ROI information) of the detected lesion in the current scene image. This preprocessing may comprise: transforming the current scene image into a Lab color space, comprising extracting a luminance of the current scene image to obtain a luminance channel image for enhancing brightness and contrast variations; applying edge detection to the luminance channel image to obtain an edge-detected luminance channel image for enhancing edges and transitions; and concatenating the edge-detected luminance channel image, the luminance channel image and the current scene image to obtain a preprocessed current scene image. For example, the current scene image may first be transformed into the Lab color space, where the luminance, L channel, is extracted to focus specifically on brightness and contrast variations, which are often more indicative of structural abnormalities. Sobel edge detection may then be applied to the L channel to highlight significant edges and transitions, such as lesion boundaries or structural changes in the gastrointestinal tract, providing valuable spatial cues for accurate ROI localization. Finally, as shown in FIG. 5, the edge-detected L channel is concatenated with the original RGB and L images to form the input for the neural network, effectively integrating high-level contextual information with low-level structural details for improved accuracy and robustness in ROI detection.B. Gated U-Net Feature Extraction

[0067] Compared to the Hourglass module used in ComerNet, in various example embodiments, a U-Net architecture, an example of which is illustrated in FIG. 5, is employed for feature extraction due to its skip connections between the encoder and decoder layers. These skip connections facilitate the transfer of detailed spatial information to the upsampling path, preserving fine-grained details and enhancing localization accuracy. Moreover, U-Net effectively captures features at multiple scales, making it well-suited for both localization and segmentation tasks, which leads to more precise bounding box detection in medical imaging.

[0068] In various example embodiments, further improvement is achieved by replacing the standard U-Net blocks with GatedCNN blocks shown in FIG. 6A. GatedCNN blocks introduce learnable gating mechanisms that adaptively allow relevant features to pass through while filtering out unnecessary information. Accordingly, in various example embodiments, the lesion localization Al model has a U-Net architecture comprising gated CNN blocks. For example, the mathematical formulation is described as follows:g, i> c — split^FC^BN^x)))(Equation 1) y — ReLU g') Q cat(.,conv(c )(Equation 2) z = x + FC2(y)(Equation 3) where x is the input features, z is the output features and g, i, c are gate features, non-convolutional features, and convolutional features, respectively. BN -) is the batch normalization layer, FC(-) is the fully-connected layer, conv(-) is the convolutional layer and ReLU -) is the activation layer. split( ) and cat(-) are the split and concatenate operations.

[0069] This enhances the network ability to focus on lesion areas, improving the accuracy of bounding box detection. Moreover, GatedCNN blocks reduce noise and irrelevant background features, which is particularly important in medical imaging where images often contain artifacts or non-informative regions, resulting in a cleaner and more reliable feature representation.C. Gated Corner Block

[0070] In various example embodiments, a final block of an encoder of the U-Net architecture comprises a plurality of gated corner blocks, each gated corner block configured to predict corresponding comer position information for the lesion region information of the detected lesion. For example, the corner block incorporates the concept of corner pooling, which captures contextual information by pooling features along horizontal and vertical directions to emphasize the edges of objects. As illustrated in FIG. 6B, in various example embodiments, this structure is implemented as the gated comer block.

[0071] To efficiently determine corner positions, various example embodiments modify the output heatmap to generate only a number of components, namely, a heatmap for the top-left comer, offsets in the x and y directions, and similarly for the bottom-right comer. This results in a total of six output channels for the heatmap, optimized for precise and rapid corner localization. In various example embodiments, to efficiently localize the comer positions, the prediction head may generate a compact set of corner-related output channels. In one example, an input image of 500 x 500 pixels is processed to produce a 25 x 25 corner heatmap. Each heatmap location corresponds to a 20 x 20 region in the original image, and the value at each heatmap location represents the likelihood that the corresponding region contains a targetcomer. Since the heatmap provides a coarse spatial location, offset channels are further generated to refine the comer coordinate. Specifically, the x-offset and y-offset represent the horizontal and vertical displacements of the actual corner position relative to the corresponding heatmap location, thereby recovering a more precise corner coordinate in the original image. For each corner, three output channels are generated: a heatmap channel, an x-offset channel, and a y-offset channel. Because the target region is defined by a top-left comer and a bottomright corner, the prediction head generates six output channels in total, including three channels for the top-left corner and three channels for the bottom-right corner. This coarse-to-fine design reduces the computational cost of dense pixel-level prediction while maintaining accurate comer localization.

[0072] Various example embodiments note that the scene images and the ROI images may have different pixel density and frame rate. For example, the scene images may have a wider field of view but lower pixel density and / or lower frame rate, while the ROI images may have higher pixel density and / or higher frame rate for preserving lesion details. In addition, multiple ROI images may be captured between two temporally adjacent scene images. Therefore, before the scene images and ROI images are combined to generate a foveated image or foveated video, the external image processing system 350, for example, by an image enhancement module therein, may perform temporal enhancement and spatial enhancement on the scene images. In this regard, in various example embodiments, the above-mentioned generating, by the external image processing system 350, a series of frames for display based on the current scene image and the series of ROI images (or lesion images) comprises: obtaining a series of scene images comprising the current or first scene image, the subsequent or second scene image (whereby the first and second scene images are consecutive scene images), and a series of intermediate scene images between the first and second scene images. In this regard, the series of intermediate scene images is obtained based on interpolation based on the first and second scene images; and the series of frames for display may be generated based on the series of scene images and the series of ROI images.

[0073] In various example embodiments, for temporal enhancement, the external image processing system 350, for example, by the image enhancement module, may perform frame interpolation between two temporally consecutive scene images to generate one or more intermediate scene images. In various example embodiments, the generated intermediate scene images may correspond in number and / or temporal position to the ROI images captured between the two scene images. By generating the intermediate scene images, the scene imagesand ROI images may have matching or substantially matching pixel density, frame count, or temporal sampling positions. This allows the scene image sequence and ROI image sequence to be combined into a smoother foveated video sequence.

[0074] In various example embodiments, for spatial enhancement, the image enhancement module may perform pixel density enhancing (e.g., super-resolution) processing on the scene images, including the interpolated intermediate scene images. The pixel density enhancing processing enhances the spatial resolution or pixel density of the scene images. As a result, the enhanced scene images may have a pixel density or spatial resolution level closer to, or substantially matching, that of the ROI images. This reduces the spatial-resolution mismatch between the peripheral / background region and the lesion / detail region before image combination.

[0075] In various example embodiments, for foveated frame generation, after the frame rate and pixel density of the scene images and ROI images have been matched or substantially matched, an enhanced scene image may be combined with a corresponding ROI image to generate a foveated image. For example, the image combining module may stitch, insert, overlay, blend, or replace a corresponding region of the enhanced scene image with the ROI image. In the generated foveated image, the peripheral or background region may be provided by the enhanced scene image, while the lesion or detail region may be provided by the ROI image captured by the capsule 310. Preferably, the lesion region in the final foveated image is based on the original high-pixel-density ROI image acquired by the capsule, for example, rather than an Al-generated lesion image. Therefore, the image enhancement module may enhance the scene image for background and temporal continuity, while the diagnostic lesion details are preserved from the actual ROI image captured by the capsule 310. Accordingly, in various example embodiments, a pixel density of the series of scene images may be enhanced based on a pixel density of the series of ROI images (or lesion images).

[0076] The external image processing system pipeline may thus generate a high-pixel density and high-frame-rate foveated video stream for display for physician review. For example, the final output may provide a viewing experience similar to a 4K@30fps video stream, while the capsule 310 itself only needs to transmit lower-bandwidth scene images and selected high-quality ROI images.SIMULATION RESULTS AND DISCUSSION

[0077] Various example embodiments developed a prototype PCB for a wireless capsule endoscope to verify the functionality and dimensions of the present capsule system 310. The maximum diameter of the entire capsule system is 10 mm, requiring all components on the PCB to fit within this constraint. The capsule system comprises four key components: a high-pixel density camera (OV5640), a Bluetooth BLE wireless communication module (NRF52840), a high-performance MCU (STM32H743 series), and a wireless power reception coil.

[0078] The 5MP OV5640 is chosen as an example only to provide a higher pixel density under the same field of view (FOV) and viewing distance. This allows us to leverage the retinalike ROI algorithm according to various example embodiments of the present invention to enhance the pixel densityof the lesion areas without increasing the demand for wireless bandwidth. The STM32H743 is selected for the MCU as an example only and without limitation. The MCU is equipped with, for example, an 8-bit JPEG codec module, enabling real-time compression of images captured by the OV5640 camera to reduce bandwidth requirements. Additionally, it features 1MB of on-chip cache, providing sufficient resources for running the retina-like ROI algorithm and a lightweight lesion detection model. The NRF52840 module is a low-power Bluetooth communication module with a compact package size of just 4 x 4 mm. Based on our simulation validation, it can achieve a maximum data transmission rate of 1248 KBps for both image and control signals. All simulations were conducted based on the aforementioned hardware resources.

[0079] In various example embodiments, the neural network training was conducted using two specified models, leveraging an Intel 13600KF CPU and an RTX 3060Ti GDDR6X GPU with the PyTorch framework, by way of examples only. For the lesion classification model, the primary focus was on recall, as correctly identifying positive cases is critical in medical imaging applications. The edge detection model achieved a recall of 99.88%, demonstrating its effectiveness in accurately identifying potential lesions. For the ROI detection model, the evaluation emphasized the overlap ratio between the predicted and ground truth regions. The overall mean Intersection over Union (mIOU) for the system reached 0.804, further validating its robustness and accuracy in both lesion detection and ROI localization tasks.

[0080] To benchmark the present capsule system 310, its simulation performance was compared against state-of-the-art capsule endoscope solutions, as shown in FIG. 7. As depicted in the figure, our algorithm and onboard lesion detection model require only 0.54 MB of memory, which is 83.125% smaller than the system in Sahafi, et al. (“Edge artificial intelligencewireless video capsule endoscopy,” Sci. Rep., vol. 12, no. 1, Art. no. 13723, 2022, doi: 10.1038 / s41598-022-17502-7, herein referred to as the Sahafi reference). This allows the entire capsule system 310 to operate based on near-memory computing, eliminating the need for DRAM access and, consequently, reducing both system latency and power consumption. Furthermore, with the integration of a high-resolution CMOS sensor, the present capsule system's pixel density is approximately three times greater than that of the systems in the Sahafi reference and Zhou et al., (“An ingestible near-infrared fluorescence capsule endoscopy for specific gastrointestinal diagnoses,” Biosens. Bioelectron., vol. 257, Art. no. 116209, Aug.2024, doi: 10.1016 / j .bios.2024.116209, herein referred to as the Zhou reference), providing significantly clearer visuals. The enhanced pixel density of the lesion areas will greatly improve diagnostic efficiency and accuracy for healthcare professionals. By utilizing the closed-loop ROI algorithm according to various example embodiments, imaging and data transmission of the lesion regions can be prioritized with higher pixel density. Under the assumption that the lesion region is confined within a 500 x 500 pixel box, the present capsule system 310 can achieve 9.58 fps, leveraging the maximum achievable data rate of the NRF52840.

[0081] Accordingly, the Fovea-Inspired Closed-Loop Edge-AI (FICE) system according to various example embodiments of the present invention address longstanding challenges in wireless capsule endoscopy by significantly improving image quality, frame rate, and power efficiency. Validated through the HyperKvasir dataset, the system achieved a diagnostic recall of 99.88% with edge-AI and a mean Intersection over Union (mIOU) of 0.804, demonstrating its effectiveness in optimizing diagnostic precision. Compared to prior solutions, which often compromise image quality or frame rate to conserve energy, the FICE system leverages lightweight edge-AI and Gated Corner Proposal Networks to deliver superior lesion localization and energy efficiency. This advancement enhances the effectiveness of non-invasive gastrointestinal diagnostics and surgeries, while also paving the way for more advanced medical solutions.

[0082] Accordingly, various example embodiments advantageously introduced a FICE system 300 that leverages lightweight transformer-based onboard lesion detection along with a Gated Corner Proposal Network for precise bounding-box localization. The FICE system 300 has a number of technical advantageously including capturing and transmitting high-pixel density data selectively when a lesion is detected, significantly reducing energy consumption while preserving diagnostic accuracy. Experimental results on the HyperKvasir dataset demonstrate a 99.88% recall in lesion detection and an mIOU of 0.804 for ROI localization,while achieving 9.58 fps with 320 pixel density under a maximum data transmission rate of 1248 KBps, underscoring the FICE system’s reliability and efficiency in balancing image pixel density, power usage, and transmission rate. Beyond improving clinical decision-making by ensuring targeted imaging, the FICE system 300 also sets the stage for more advanced, closed-loop WCE solutions that incorporate adaptable Al-driven feedback. In various example embodiments, various or more advanced wireless modules may be included in the FICE system 300 as desired or as appropriate.

[0083] Design considerations and validation of the FICE system 300 will now be discussed according to various example embodiments of the present invention.Minimum scene image resolution for on-board lesion detection and off-board lesion localization

[0084] In various example embodiments, the minimum scene image resolution required for reliable on-board lesion detection (e.g., by the lesion detection Al model in the capsule 310) and off-board lesion localization (e.g., by the lesion localization Al model in the external image processing system 350) was evaluated using a public dataset (e.g., the Kvasir dataset). Lesiondetection recall and lesion-localization mean Intersection over Union (mloU) were measured as a function of the scene image resolution, with the scene image resolution ranging from QQVGA to XGA. As shown in FIG. 8, increasing the scene image resolution beyond QVGA yields negligible improvement in lesion-detection recall or lesion-localization mloU. Accordingly, in various example embodiments, an image resolution of the scene image (i.e., scene image resolution) may be set to QVGA resolution or to a resolution higher than QVGA resolution without compromising the reliability of the on-board lesion detection or the off-board lesion localization.

[0085] By setting the scene image resolution to QVGA or higher, the capsule 310 can substantially reduce per-frame pixel readout, wireless transmission load, and overall energy consumption during the scene-image monitoring mode (i.e., when no lesion is detected in the current scene image), while preserving the closed-loop foveated imaging behavior in which a higher second pixel density image mentioned hereinbefore is used for the series of lesion images when a lesion is detected. In this regard, the saturating behavior shown in FIG. 8 supports the technical effect that the closed-loop architecture according to various example embodiments achieves diagnostic-grade lesion imaging without continuous high-resolution acquisition or transmission.Power feasibility of a high-resolution CMOS image sensor in the capsule endoscope

[0086] In various example embodiments, to support pixel density imaging of the series of lesion region (or ROI images), the image sensor 311 of the capsule 310 may be a high-resolution complementary metal-oxide-semiconductor (CMOS) image sensor (for example and without limitation, a CMOS image sensor having a native pixel resolution of 5 megapixels or more, including 2K-class and 4K-class image sensors). One practical consideration of such high-resolution CMOS image sensors is that they may incur a higher per-frame power consumption than ultra-low-resolution image sensors, which may be a constraint in view of the volume and battery budget of a wireless capsule endoscope.

[0087] In various example embodiments, the above-mentioned constraint may be mitigated by duty-cycling the image sensor 311 between consecutive scene image acquisitions. For example, using a commercially available 5-megapixel CMOS image sensor (e.g., OV5640) as a non-limiting illustrative example, the image sensor 311 may be configured to operate at a higher clock frequency to rapidly acquire a single scene image, and may then be placed into a low-power standby state via a power control input of the image sensor (e.g., a power-down (PWDN) pin or any equivalent power control input) for the remainder of the scene-image frame period. In one example implementation, the image sensor 311 consumes approximately 60 uW in the standby state. The duty-cycling is particularly effective at lower pixel density scene image, because the per-frame readout time generally scales with the captured pixel count, such that the image sensor 311 spends a larger fraction of each scene-image frame period in the low-power standby state.

[0088] Accordingly, in various example embodiments, the image sensor 311 of the capsule 310 be a CMOS image sensor having a native pixel resolution of at least 5 megapixels. In this regard, based on detecting no lesion in the current scene image, duty-cycling, via a power control input of the image sensor 311, the image sensor 311 may be performed between consecutive scene image acquisitions.

[0089] As shown in FIG. 9, the duty-cycling strategy enables a high-resolution CMOS image sensor (e.g., the OV5640) operating in the scene-image monitoring mode at QVGA resolution and approximately 1 fps to consume on the order of approximately 50 mW. While this power consumption is higher than that of certain ultra-low-resolution image sensors, the result provides concrete evidence that high-resolution CMOS integration is feasible within the volume and battery budget of a wireless capsule endoscope, while retaining the option to switchto high-pixel density lesion-image acquisition when a lesion is detected. It will be appreciated by a person skilled in the art that further reductions in static and dynamic power consumption may be achieved through application-specific integrated circuit (ASIC) level co-design and the adoption of advanced CMOS process technologies, thereby further increasing the operational margin of the present capsule system 310.In-frame reconfiguration of the image sensor for foveated acquisition

[0090] In various example embodiments, the transition of the image sensor 311 of the capsule 310 from the first field of view setting mentioned hereinbefore (associated with sceneimage acquisition) to the second field of view setting mentioned hereinbefore (associated with lesion-image acquisition) may be performed by windowed-readout reconfiguration of the image sensor 311 between consecutive frame acquisitions. Continuing with the OV5640 as a nonlimiting illustrative example, a data output window of the image sensor 311 may be defined and reconfigured via a small set of windowing registers of the image sensor 311 (e.g., registers 0x3800-0x380B, which collectively span 16 bytes) accessible via a Serial Camera Control Bus (SCCB) of the image sensor 311 or any equivalent sensor control interface. Reconfiguring the data output window relocates and / or resizes a region of the pixel array of the image sensor 311 that is read out as a frame, thereby implementing a change from the first field of view setting (e.g., a full-frame readout for scene-image acquisition) to the second field of view setting (e.g., a lesion-region windowed readout for lesion-image acquisition), without altering the underlying pixel array of the image sensor.

[0091] Importantly, as illustrated in FIG. 10, an image acquisition interface of the capsule 310 (e.g., a Digital Camera Interface (DCMI), or any equivalent parallel or serial image data interface) introduces a deterministic blanking interval between consecutive frame acquisitions of the image sensor. In various example embodiments, the blanking interval is utilized by the capsule 310 to update one or more windowing registers of the image sensor 311 (e.g., via an SCCB transaction), thereby reconfiguring the data output window between consecutive frame acquisitions with minimal impact on the timing of the subsequent frame capture. This in-frame reconfiguration mechanism enables the capsule 311 to support low-latency switching between the scene-image acquisition mode and the lesion-image acquisition mode, supports sustained acquisition of the series of lesion images at a high frame rate during the lesion-image acquisition mode, and supports dynamic relocation of the lesion-image readout window within the pixel array in response to subsequent lesion region information received from the external imageprocessing system 350, thereby supporting lesion tracking as the capsule 311 moves through the gastrointestinal tract.

[0092] Accordingly, in various example embodiments, based on the detecting the lesion in the current scene image, the current field of view setting of the image sensor 311 is set to the second field of view based on reconfiguring, via a sensor control interface of the capsule 310, at least one windowing register of the image sensor during a blanking interval between consecutive frame acquisitions of the image sensor 311, the at least one windowing register defining a data output window of the image sensor 311.

[0093] A hybrid BLE-Wi-Fi communication architecture for adaptive imaging in wireless capsule endoscopy will now be described according to various example embodiments of the present invention.

[0094] As described hereinbefore, WCE is fundamentally constrained by limited wireless bandwidth, resulting in low imaging resolution or pixel density and frame rate that can lead to motion blur and missed lesions. Although adaptive frame-rate schemes have been explored to accommodate transient gastrointestinal (GI) motility, these approaches typically require sacrificing image resolution or pixel density. The use of higher-frequency communication bands has also been limited by increased tissue attenuation. To address these challenges, various example embodiments provide a hybrid Bluetooth Low Energy (BLE)-Wi-Fi communication architecture that combines the low-power operation of BLE with the high data throughput of Wi-Fi. Various example embodiments of the present invention systematically evaluate the performance of BLE and Wi-Fi under tissue-mimicking conditions by measuring throughput, received signal strength indicator (RS SI), and power consumption. The results demonstrate that amplified BLE employing an adaptive transmission power (TXP) control strategy can provide a stable frame rate with low power consumption, while 2.4-GHz Wi-Fi operating in station mode emerges as the most suitable high-throughput communication configuration for WCE. Compared with Wi-Fi, BLE reduces power consumption by approximately 10x, whereas WiFi achieves up to 10x higher throughput. To reconcile these complementary trade-offs, various example embodiments further introduce a hybrid system using frame-boundary-synchronized switching mechanism to ensure lossless data transmission during BLE-Wi-Fi transitions. Furthermore, it is observed that the image payload size significantly affects switching efficiency between communication modes. Experimental results show that the BLE— >Wi-Fi switching latency is approximately 92.66 ms, which is longer than the Wi-Fi— >BLE switching latency of 15.49 ms when transmitting 10 KB image payloads. Overall, the present hybrid BLE-Wi-Fisystem according to various example embodiments of the present invention enables robust, lossless, and energy-efficient mode switching, supports adaptive imaging, and advances the development of next-generation autonomous WCE platforms.

[0095] WCE remains the only truly non- invasive modality for direct visualization of the gastrointestinal (GI) tract. Since its clinical introduction in 2001, however, improvements in imaging quality and frame rate have been limited. Current commercial systems typically provide resolutions below 500 x 500 pixels and frame rates of less than 5 frames per second (FPS), which can result in motion blur and an increased risk of missed lesions.

[0096] Although adaptive frame-rate strategies have been introduced to temporarily increase FPS under rapid capsule motion, such approaches generally require sacrificing image quality. These limitations are primarily imposed by the restricted wireless communication bandwidth available to ingestible devices.

[0097] Most existing WCE systems operate in sub-GHz frequency bands to mitigate electromagnetic attenuation in biological tissues. While this choice improves signal penetration, it inherently limits achievable data throughput. For example, the SI4455 transceiver supports data rates up to 500 kbps, and the ZL70103 operating at 402 MHz achieves a maximum of 600 kbps. One exception is the CC1310, which nominally advertises support for a 4M PHY. Under throughput constraints, practical WCE systems cannot reliably capture transient pathological features during rapid capsule transit.

[0098] In contrast, Bluetooth Low Energy (BLE) and Wi-Fi are widely adopted wireless protocols offering larger bandwidth with complementary performance characteristics. BLE is designed for low-power operation and can support data rates of up to 1.3 Mbps, enabling higher frame rates than sub-GHz. Although signal attenuation at 2.4 GHz is more pronounced in tissue, this limitation can be mitigated using front-end modules (FEM), and adaptive transmission power (TXP) control to preserve energy efficiency. Wi-Fi provides substantially higher throughput than BLE (up to several gigabits per second) enabling high-frame-rate imaging and reducing the likelihood of missed lesions. However, this capability comes at the cost of significantly increased power consumption, with reported Wi-Fi modules exceeding 1 W, making continuous operation impractical for battery-powered capsules.

[0099] These observations reveal a fundamental trade-off in WCE communication design: low-power protocols such as BLE struggle to sustain high-frame-rate imaging, whereas high-throughput solutions such as Wi-Fi are prohibitively energy intensive for continuous use.Importantly, the frame-rate requirement in WCE is highly dynamic, depending on capsule transit speed and the presence of suspicious lesions.

[0100] To address this challenge, various example embodiments provide a hybrid BLE -Wi-Fi communication architecture for WCE that dynamically adapts transmission modes according to imaging demands, as illustrated in FIG. 11. The capsule 1110 operates in BLE mode during routine traversal or low motility to minimize energy consumption, and seamlessly switches to Wi-Fi transmission when rapid motion or suspected lesions are encountered, enabling high-frame-rate image streaming for reliable clinical interpretation. To ensure robust operation, various example embodiments further introduce a frame-boundary - synchronized switching mechanism that enables reliable and lossless transitions between communication protocols while maintaining data integrity and throughput stability.

[0101] The hybrid BLE-Wi-Fi communication architecture for adaptive imaging in wireless capsule endoscopy according to various example embodiments of the present invention makes the following contributions. First, various example embodiments systematically investigate the transmission characteristics of BLE and Wi-Fi, examining Wi-Fi performance under both access point (AP) and station (STA) modes in the 2.4 GHz and 5 GHz frequency bands. Second, various example embodiments design a hybrid BLE - Wi-Fi communication system and systematically study the dynamic switching process, characterizing the behavior of power consumption and FPS across switching phases. Furthermore, various example embodiments analyze the switching latency under different image sizes to quantify the impact of frame size on handover performance. The present hybrid system according to various example embodiments provide practical design guidelines and valuable insights for the development of next-generation WCE systems.METHODOLOGYA. Transmission characteristics of BLE and Wi-Fi in simulated tissue

[0102] BLE and Wi-Fi are two widely adopted communication protocols in the Internet of Things (loT). However, a systematic and quantitative comparison between these two protocols remains limited in the existing literature. In various example embodiments, an extensive evaluation of BLE and Wi-Fi is conducted in terms of received signal strength indicator (RSSI), throughput (FPS), and transmitter power consumption under different propagation conditions. Through this comparison, various example embodiments seek to determine whether integrating both Wi-Fi and BLE into the WCE system is necessary. In the following experiments, thenRF7002 development kit was used, which integrates an nRF5340 SoC and an nRF7002 Wi-Fi companion chip.

[0103] For the BLE experiments, the nRF5340 was powered by a Power Profiler Kit II (PPK) at 3.3 V, which sampled the supply current at 100,000 samples / s to capture instantaneous current consumption. The nRF7002 Wi-Fi chip was not powered and remained inactive. To ensure a stable communication link throughout the evaluation, the transmitter first operated at its maximum TXP of 3 dBm. The receiver was not implemented on a conventional computer, as computer-based receivers do not provide direct, reliable access to accurate RS SI measurements. Instead, the nRF21540 DK platform was employed to enable direct acquisition of real-time RSSI. To further enhance the achievable TXP while reducing the energy cost, an nRF21540 FEM was integrated to the nRF7002 DK, enabling a maximum BLE TXP of up to 20 dBm. In addition, an adaptive TXP control algorithm was employed with a target throughput of 800 kbps.

[0104] In the Wi-Fi experiments, two PPK modules were used to independently supply 3.3 V to the nRF5340 and the nRF7002, respectively, while simultaneously recording their current consumption. This configuration was necessary because the nRF7002 operates as a Wi-Fi companion chip and relies on the nRF5340 for system control and data processing. Consequently, the total system power consumption was calculated as the sum of the power consumption of both chips. The Transmission Control Protocol (TCP) was selected to prevent image loss and data corruption during transmission. The nRF7002 supports a maximum TXP of 20 dBm. However, due to constraints imposed by the Wi-Fi protocol stack, the TXP could not be fixed and was instead dynamically adjusted according to instantaneous channel conditions. On the receiver side, a laptop equipped with an Intel 9560 network interface controller was configured with Linux and set to Wi-Fi monitor mode. Wireshark was used to capture packets and extract the RSSI relative to the transmitter. Four experimental configurations were tested: (1) the transmitter operated as STA connected to the laptop’s hotspot at 2.4 GHz, (2) the transmitter operated as a STA at 5 GHz, (3) the transmitter acted as an AP with the laptop connected to its hotspot at 2.4 GHz, and (4) the transmitter acted as an AP at 5 GHz.

[0105] To approximate electromagnetic attenuation in human tissue, a rectangular water tank measuring 40 X 30 X 25 cm was filled with water. During the experiment, the transmitter was placed at the center of the water tank and positioned at different depths to emulate varying tissue attenuation conditions. At the same time, the receiver was located in the air, 1 m fromthe water tank. Seven sets of depth were measured: in air and at 0, 2, 4, 6, 8, and 10 cm immersion depth in water. During the experiment, the transmitter continuously sends a 40 KB image stored in its flash memory, while the receiver reconstructs the received image, calculates the throughput, and logs the real-time RSSI values.B. Reliable data transmission during protocol switching

[0106] When the required FPS exceeds the range of the currently active protocol, a protocol switch becomes necessary. During protocol switching, if the switching sequence is not properly constrained, data loss or image corruption may occur. For example, when BLE is transmitting a video frame and a Wi-Fi transmission request is initiated midway through the frame, forcibly terminating the BLE transmission to switch to Wi-Fi will result in the loss of the partially transmitted frame. On the receiver side, this interruption can result in missing image data or visual artifacts. Such behavior is unacceptable for medical applications such as capsule endoscopy, where each switching event may cause the loss of clinically relevant information and potentially degrade diagnostic accuracy.

[0107] To address this issue, in various example embodiments, a dedicated mechanism is provided that supports image streaming over both Wi-Fi and BLE and enables automatic handover between the two links while preserving frame integrity. As shown in FIG. 12, the core design principle is that protocol switching is permitted only at image frame boundaries, rather than during ongoing data transmission.

[0108] When a request to initiate streaming on one protocol is issued while the other protocol is currently active, the hybrid system does not immediately perform the switch. Instead, the request is registered as a pending handover. The active link continues transmitting the current image frame at full throughput without interruption. The handover is executed only after the entire frame has been delivered, ensuring that each frame is transmitted exclusively over a single wireless protocol.

[0109] To validate the proposed switching mechanism, a complete switching experiment was conducted consisting of a BLE^ Wi-Fi handover followed by a Wi-Fi-” BLE handover. In this experiment, the system switches directly from the maximum achievable BLE frame rate (approximately 3 FPS for a 40 KB image) to the maximum Wi-Fi frame rate (approximately 25 FPS for the same image size). In this experiment, the original nRF7002 DK without an external FEM was used. Two PPK units were employed to simultaneously measure the powerconsumption of the nRF5340 SoC and the nRF7002 companion chip. In parallel, the receiver’s FPS and the timestamps of issued switching commands are recorded synchronously.C. The relationship between image size and switching latency

[0110] Currently, several image size specifications are commonly adopted in capsule endoscopy systems. For example, PillCam ESO2 employs an image resolution of 256 X 256, MicroCam uses 320 X 320, and OMOM adopts a higher resolution of 640 X 480. Various example embodiments seek to investigate the effectiveness of the present hybrid communication approach under different representative image sizes. In particular, various example embodiments examine how image size influences the switching latency and efficiency during protocol handover between BLE and Wi-Fi.

[0111] Four image sizes (10, 20, 30, and 40 KB) were selected and stored in the flash memory of the nRF7002 DK for transmission. For each image size, multiple switching events were performed, including transitions from Wi-Fi to BLE and from BLE to Wi-Fi. The switching latency for transitions was recorded and analyzed to quantify the impact of image size on switching performance.RESULTS AND DISCUSSIONA. Transmission characteristics of BLE and Wi-Fi in simulated tissue

[0112] As shown in FIG. 13 A, for BLE communication operating at a fixed TXP of 3 dBm, the throughput decreases monotonically with increasing water depth, which can be attributed to the attenuation of electromagnetic waves in water. At shallow depths, the achievable throughput can reach approximately 1000 kbps; however, at 10 cm of water depth, it degrades significantly, dropping to only 16 kbps. A similar trend is observed for the RSSI, which decreases approximately linearly with increasing water depth, with a measured attenuation slope of -1.89 dB / cm. The measured power consumption of the BLE chip also shows a decreasing trend with increasing water depth. This counterintuitive trend arises because reduced throughput is accompanied by lower energy consumption. Under poor channel conditions, packet loss increases; packets that fail CRC checks must be retransmitted during the next connection event, introducing idle intervals and reducing radio activity. Consequently, prolonged idle time results in a lower average power consumption when throughput is severely degraded.

[0113] To mitigate such performance degradation, an FEM may be integrated to extend the maximum TXP of the nRF5340 to 20 dBm. However, operating continuously at the maximum TXP is unnecessary and leads to excessive power consumption when only a predefined target throughput is required. Therefore, various example embodiments adopt an adaptive TXP control mechanism, yielding the results shown in FIG. 13B. The throughput is maintained around 800 kbps with noticeable fluctuations, which arise from the inherent trade-off associated with dynamic TXP adjustment. In terms of RSSI, the signal level is regulated within a narrow range around -55 dBm, with an attenuation slope of -0.51 dB / cm. This behavior demonstrates that, under a given environment, a specific RSSI operating range corresponds to a stable target throughput. Regarding power consumption, the introduction of the FEM leads to an increase in the average power consumption as water depth increases. Compared with operation at a fixed TXP of 3 dBm at a water depth of 6 cm, the power consumption is approximately doubled. Nevertheless, the overall power consumption remains about 90% lower than that of Wi-Fi, while still sustaining a throughput on the order of one-tenth of Wi-Fi.

[0114] For Wi-Fi transmission, a frequency-dep endent comparison is conducted by examining FIG. 13C versus FIG. 13D and FIG. 13E versus 13F. The results reveal distinctly different trends between the 2.4 GHz and 5 GHz bands. At shallow water depths, the throughput at 2.4 GHz can reach approximately 8 Mbps, comparable to that at 5 GHz. However, as water depth increases, the lower frequency of the 2.4 GHz band results in lower attenuation, leading to higher throughput than the 5 GHz band at greater depths. The RSSI measurements further corroborate this attenuation behavior. Specifically, the RSSI attenuation slope for 2.4 GHz is approximately -2.8 dB / cm, whereas the slope at 5 GHz is around -4.1 dB / cm, indicating that signal attenuation at 5 GHz is roughly 1.5 times that at 2.4 GHz. In addition, power consumption measurements show that beyond a water depth of 8 cm, the increase in power consumption at 5 GHz is significantly greater than that observed at 2.4 GHz, further highlighting the disadvantages of high-frequency operation in deeper tissue -mimicking environments. The reason why Wi-Fi power has increased is that Wi-Fi employs Transmit Power Control (TPC) to compensate for signal attenuation.

[0115] By comparing the AP and STA operating modes across the two frequency bands, which can be observed from FIGs. 13C and 13E, as well as FIGs. 13D and 13F, that both modes exhibit similar trends in throughput, RSSI, and power variation. However, as summarized in the Table shown in FIG. 15, a significant difference in power consumption is observed under the standby condition, where the system remains fully initialized and ready to initiate imagestreaming immediately. When the transmitter is in the standby state, the STA mode consumes approximately 24 mW, whereas the AP mode requires up to 220 mW, indicating a clear advantage of the STA mode in standby power efficiency. Based on these experimental results, the STA mode operating at 2.4 GHz was selected for system design, as this configuration consistently achieved the highest and most stable throughput across all tested scenarios while maintaining the lowest overall power consumption.

[0116] At an image size of 40 KB, BLE can reliably support low-frame-rate transmission on the order of 0 - 3 FPS, whereas Wi-Fi can handle a significantly higher range up to 25 FPS. These complementary characteristics underscore the technical advantages associated with the hybrid communication system according to various example embodiments of the present invention that combines the high-throughput, high-power capabilities of Wi-Fi with the low-power, low-throughput capabilities of BLE, thereby enabling efficient and reliable communication in dynamic operating environments.B. Reliable data transmission during protocol switching

[0117] The preceding results characterize the transmission properties of BLE and Wi-Fi when operating independently, demonstrating their respective advantages for WCE applications. However, when the required FPS exceeds the range of the currently active protocol, a protocol switch becomes necessary. Under such conditions, the system enters a critical switching state, where maintaining stable data flow and ensuring data integrity are essential. FIG. 14 illustrates a complete switching sequence, including a transition from BLE -” Wi-Fi followed by a subsequent transition from Wi-Fi-” BLE.

[0118] FIG. 14 (including portions labelled with (a), (b), and (c)) show the time-aligned evolution of the nRF5340 power consumption, the nRF7002 power consumption, and the receiver FPS during the switching process, respectively. All three traces share a common absolute time axis. The latency from the issuance of the BLE^ Wi-Fi switching command to the completion of the handover was recorded, as well as the latency from the Wi-Fi^BLE command to successful switching. In this experiment, the BLE^ Wi-Fi switching latency is approximately 370.35ms, whereas the Wi-Fi-” BLE switching latency is about 39.45ms. It can be observed that switching from BLE^ Wi-Fi requires a longer latency, whereas switching from Wi-Fi-” BLE is significantly faster. This asymmetry arises from the substantially higher throughput of Wi-Fi compared to BLE, which is consistent with the transmission characteristicsshown in FIGs. 13A to 13F. For a given amount of remaining data in a frame, the Wi-Fi^BLE transition can complete much more rapidly than the BLE^ Wi-Fi transition, as the residual data can be drained quickly over the Wi-Fi link before handover.

[0119] Another observation is that the power transitions of the nRF5340 and the nRF7002 occur synchronously at the successful handover instant, indicating that once the proposed mechanism authorizes a BLE - Wi-Fi transition, both protocol stacks are switched concurrently. In addition, the power consumption of the nRF5340 exhibits only minor variation between BLE streaming and Wi-Fi streaming. During BLE streaming, the dominant power consumption is from BLE data transmission, whereas during Wi-Fi streaming, the primary contributor is the high-speed operation of the QSPI interface. In contrast, the nRF7002 maintains a very low standby power consumption during BLE streaming, on the order of 3.3 + 0.37 mW, highlighting its energy efficiency when Wi-Fi transmission is inactive.

[0120] With respect to the FPS, for point 1, the FPS is calculated after the BLE Wi-Fi handover completes. Specifically, the portion of data preceding this “BLE^ Wi-Fi Success” is transmitted using BLE, while the portion following the “BLE Wi-Fi Success” line is transmitted using Wi-Fi. As a result, the computed FPS at point 1 lies between the steady-state FPS of BLE and that of Wi-Fi. Similarly, for point 2, the FPS is evaluated after the successful Wi-Fi^BLE handover, yielding an FPS that again falls between the steady-state FPSs of the two protocols. Throughout the experiment, the receiver did not observe any incomplete frames or image artifacts, and a stable frame rate was maintained during switching. This method enables synchronized protocol switching with guaranteed data integrity, ensuring stable and lossless data transmission during handover.C. The relationship between image size and switching latency

[0121] The relationship between image size and switching latency, obtained from multiple measurements, is illustrated in FIG. 16. As shown in the figure, the switching latency increases monotonically with image size for both switching directions. The frame-boundary - based switching mechanism can explain this behavior.

[0122] As shown in FIG. 12, for a given image frame with a small image size, when a switching decision is made at an arbitrary time instant, the remaining portion of the frame to be transmitted is relatively small. Consequently, regardless of whether BLE or Wi-Fi is used, the residual data can be transmitted quickly, resulting in a short switching latency. In contrast, forlarger image sizes, a substantial amount of data may remain to be transmitted when a switching pending is issued. Since the system must wait until the entire frame is fully delivered before completing the handover, the switching latency increases accordingly with image size.

[0123] Furthermore, by comparing the two switching directions, the growth rate of switching latency with increasing image size differs markedly between them. The measured slope for BLE^ Wi-Fi switching is 9.29 ms / KB, whereas that for Wi-Fi^BLE switching is only 0.91 ms / KB. This order-of-magnitude difference quantitatively reflects the fact that the effective throughput of Wi-Fi is around ten times higher than that of BLE.

[0124] It is worth noting that the switching latency closely approximates the time required to transmit a complete image frame. For example, at an image size of 40 KB, the time required to transmit a single frame using BLE is approximately 320 ms, whereas the measured BLE^ Wi-Fi switching latency is 370.35 + 22.15 ms. Similarly, transmitting a full 40 KB frame over Wi-Fi takes approximately 40 ms, while the Wi-Fi^BLE switching latency is measured to be 41.45 + 7.55 ms. In both cases, the observed switching latency is slightly longer than the pure frame transmission time. This additional delay is likely attributable to the overhead introduced by the frame-boundary - synchronized logic, as well as the extra computational cost associated with switching.

[0125] Accordingly, various example embodiments provide a hybrid BLE - Wi-Fi communication system for WCE that enables adaptive switching between low-frame-rate and high-frame-rate transmission modes to reduce energy consumption. A comprehensive experimental evaluation under tissue-mimicking conditions quantitatively characterizes the complementary transmission behaviors of BLE and Wi-Fi in terms of throughput, RSSI, and power consumption, thereby demonstrating the necessity of integrating both technologies.

[0126] To support practical hybrid operation, a frame-boundary-synchronized switching mechanism is provided according to various example embodiments of the present invention to ensure reliable and lossless handover between heterogeneous communication protocols. Experimental results confirm that the proposed mechanism achieves stable FPS and prevents image data loss during BLE«->Wi-Fi transitions. In addition, the impact of image size on switching latency is systematically analyzed, demonstrating that switching delay is closely related to frame transmission time and increases with image size. Overall, the present hybrid BLE - Wi-Fi architecture according to various example embodiments of the present invention provide an effective and energy-efficient communication solution for WCE systems operatingunder dynamic conditions. By leveraging the complementary advantages of BLE and Wi-Fi, this work offers practical design guidelines for next-generation capsule endoscopy platforms.

[0127] Accordingly, various example embodiments disclose a closed-loop imaging method and system for wireless capsule endoscopy, designed to overcome the fundamental limitations of conventional capsule endoscopes in terms of power consumption, wireless bandwidth, and imaging pixel density. Existing systems typically acquire and transmit images at uniform pixel density and frame rate using frame-based compression methods such as JPEG, resulting in inefficient use of limited battery energy and communication resources and an increased risk of missed or poorly characterized lesions.

[0128] In the system for capsule endoscopy imaging according to various example embodiments, image acquisition, compression, lesion detection, localization, sensor control, and wireless transmission are jointly optimized within a closed-loop, perception-driven architecture. The capsule primarily operates in a wide field-of-view (FOV) monitoring mode, in which low-pixel density images are captured at a low frame rate for continuous gastrointestinal surveillance. Lightweight, real-time lesion detection and localization are performed within the capsule to assess the presence and spatial location of clinically relevant abnormalities while minimizing sensing, computation, and transmission overhead.

[0129] In various example embodiments, rather than treating image compression as an isolated module, the system integrates compression, perception, and control into a unified framework. Lesion-aware encoding and selective data transmission are employed to preferentially preserve diagnostically relevant information while aggressively reducing redundancy in non-critical regions. This approach departs from conventional uniform JPEG compression and enables perception-driven allocation of bandwidth and energy resources. Related detector-guided and hybrid-pixel density imaging strategies have demonstrated substantial gains in bandwidth efficiency and perceptual quality in medical imaging systems, supporting the technical rationale of the present approach.

[0130] In various example embodiments, when a potential lesion is detected, the system dynamically transitions from the FOV monitoring mode into a region-of-interest (ROI) imaging mode. In this mode, the image sensor is reconfigured to acquire images at substantially higher pixel density and higher frame rate, effectively implementing a programmable fovea within the sensor. ROI coordinates generated by the detection and localization logic are fed back to the image sensor in real time, enabling adaptive sensor readout and continuous lesion tracking as the capsule moves through the gastrointestinal tract. This closed-loop interaction betweenperception and sensor control extends prior fovea-inspired capsule imaging concepts into a fully adaptive, real-time imaging system.

[0131] The transition between FOV and ROI imaging modes inherently leads to a significant change in instantaneous data rate and bandwidth demand. During FOV monitoring, the low-pixel density, low-frame-rate image stream imposes only modest bandwidth requirements, whereas ROI imaging with high pixel density and frame rate requires substantially higher throughput to preserve diagnostic fidelity. To address this challenge without compromising battery life, various example embodiments of the present invention employ an adaptive dual-mode wireless communication strategy that is tightly coupled to the imaging state of the capsule.

[0132] Specifically, in various example embodiments, during the FOV monitoring mode, image data are transmitted over a low-power wireless link (BLE) that prioritizes energy efficiency and long operational lifetime. When the system transitions into the ROI imaging mode and the image sensor is reconfigured for high-pixel density, high-frame-rate acquisition, a high-throughput wireless link (WIFI) is selectively activated to support the increased bandwidth demand. This selective activation ensures that high-bandwidth communication is used only when clinically necessary, while low-power transmission is preserved during routine monitoring.

[0133] Importantly, in various example embodiments, switching between low-power and high-throughput wireless links is coordinated with the imaging pipeline to ensure lossless and low-latency operation. A frame-boundary-synchronized switching mechanism is employed such that transitions between communication modes occur without interrupting ongoing image transmission, thereby preventing frame loss or corruption and maintaining a stable effective frame rate during mode transitions. Hybrid BLE-Wi-Fi communication architectures with synchronized switching have been experimentally shown to enable rapid, reliable, and energyefficient adaptation to dynamic bandwidth requirements in wireless capsule endoscopy systems, supporting the feasibility and robustness of the present approach according to various example embodiments of the present invention.

[0134] While embodiments of the invention have been particularly shown and described with reference to specific embodiments, it should be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the scope of the invention as defined by the appended claims. The scope of the invention is thus indicatedby the appended claims and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced.

Claims

CLAIMS1. A method of capsule endoscopy imaging of a gastrointestinal tract, the method comprising:obtaining, using a capsule endoscope as the capsule endoscope moves through the gastrointestinal tract and from an image sensor of the capsule endoscope, a first scene image of the gastrointestinal tract, the first scene image being captured by the image sensor set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor;detecting, using a lesion detection artificial intelligence (Al) model in the capsule endoscope, for a presence of a lesion in the first scene image; andbased on detecting a lesion in the first scene image:transmitting, by the capsule endoscope, the first scene image to an external image processing system;determining, using a lesion localization Al model in the external image processing system, lesion region information of the detected lesion in the first scene image;transmitting, by the external image processing system, the lesion region information of the detected lesion to the capsule endoscope;obtaining, from the image sensor, a series of lesion images of the gastrointestinal tract based on the lesion region information of the detected lesion, the series of lesion images being captured by the image sensor set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor;transmitting, by the capsule endoscope, the series of lesion images to the external image processing system; andgenerating, by the external image processing system, a series of frames for display based on the first scene image and the series of lesion images,wherein based on said detecting the lesion in the first scene image, the current field of view setting of the image sensor is set to a second field of view corresponding to a lesion region defined by the lesion region information and at least one of the current pixel density setting and the current frame rate setting of the image sensor is respectively set to a second pixel density and a second frame rate, the second pixel density being higher than a first pixel density associated with detecting no lesion in the first sceneimage and the second frame rate being higher than a first frame rate associated with said detecting no lesion in the first scene image.

2. The method according to claim 1, further comprising, based on detecting no lesion in the first scene image, transmitting, by the capsule endoscope, the first scene image to the external image processing system for display, wherein based on said detecting no lesion in the first scene image, the current field of view setting of the image sensor is maintained at or set to a first field of view, the first field of view having a larger field of view than the second field of view, and at least one of the current pixel density setting and the current frame rate setting of the image sensor is respectively maintained at or set to the first pixel density and the first frame rate.

3. The method according to claim 2, further comprising:based on said detecting no lesion in the first scene image, maintaining or setting the current frame rate of the image sensor and a current image transmission rate of the capsule endoscope according to the first frame rate; andbased on said detecting the lesion in the first scene image, setting the current frame rate of the image sensor and the current image transmission rate of the capsule endoscope according to the second frame rate.

4. The method according to claim 3, further comprising:based on said detecting no lesion in the first scene image, maintaining or setting a wireless communication mode of the capsule endoscope to a first wireless communication mode; andbased on said detecting the lesion in the first scene image, setting the wireless communication mode of the capsule endoscope to a second wireless communication mode, wherein the second wireless communication mode has a higher transmission bandwidth than the first wireless communication mode.

5. The method according to claim 4, wherein the first wireless communication mode is a Bluetooth Low Energy (BLE) mode, and the second wireless communication mode is a Wi-Fi communication mode.

6. The method according to any one of claims 3 to 5, wherein, based on said detecting the lesion in the first scene image, the second frame rate of the image sensor and the second image transmission rate of the capsule endoscope are determined based on the lesion region information of the detected lesion and an image transmission bandwidth of the capsule endoscope.

7. The method according to any one of claims 1 to 6, wherein the lesion localization Al model has a U-Net architecture comprising gated CNN blocks.

8. The method according to claim 7, wherein a final block of an encoder of the U-Net architecture comprises a plurality of gated corner blocks, each gated corner block configured to predict corresponding comer position information for the lesion region information of the detected lesion.

9. The method according to any one of claims 1 to 8, wherein the lesion region defined by the lesion region information is a bounding box.

10. The method according to any one of claims 1 to 9, further comprising preprocessing, by the external image processing system, the first scene image for the lesion localization Al model to perform said determining the lesion region information of the detected lesion in the first scene image, wherein said preprocessing the first scene image comprises:transforming the first scene image into a Lab color space, comprising extracting a luminance of the first scene image to obtain a luminance channel image for enhancing brightness and contrast variations;applying edge detection to the luminance channel image to obtain an edge-detected luminance channel image for enhancing edges and transitions; andconcatenating the edge-detected luminance channel image, the luminance channel image and the first scene image to obtain a preprocessed first scene image.

11. The method according to any one of claims 1 to 10, wherein based on detecting the lesion in the first scene image,said obtaining the series of lesion images of the gastrointestinal tract comprises, for each of one or more lesion images of the series of lesion images, obtaining, from the image sensor,the lesion image of the gastrointestinal tract based on the lesion region information of the detected lesion, the lesion image being captured by the image sensor set at the current field of view setting, the current pixel density setting and the current frame rate setting of the image sensor;said transmitting, by the capsule endoscope, the series of lesion images to the external image processing system comprises, for each of the one or more lesion images, transmitting the lesion image to the external image processing system; andthe method further comprises:for each of the one or more lesion images, determining, by the external image processing system, whether a proportion of the detected lesion in the lesion image satisfies a predefined threshold condition; andbased on determining that the proportion of the detected lesion in the lesion image satisfies the predefined threshold condition, transmitting, by the external image processing system, a lesion image obtaining instruction to the capsule endoscope for controlling the capsule endoscope to obtain, from the image sensor, a subsequent lesion image of the gastrointestinal tract of the series of lesion images based on the lesion region information of the detected lesion, the subsequent lesion image being captured by the image sensor set at the second field of view and at least one of the second pixel density and the second frame rate.

12. The method according to claim 11, wherein the method further comprises, based on determining that the proportion of the detected lesion in the lesion image does not satisfies the predefined threshold condition, transmitting, by the external image processing system, a scene image obtaining instruction to the capsule endoscope for controlling the capsule endoscope to set the current field of view setting of the image sensor to the first field of view and at least one of the current pixel density setting and the current frame rate setting of the image sensor respectively to the first pixel density and the first frame rate, and for controlling the capsule endoscope to obtain, from the image sensor, a second scene image of the gastrointestinal tract, the second scene image being captured by the image sensor set at the first field of view and at least one of the first pixel density and the first frame rate.

13. The method according to claim 12, wherein said generating, by the external image processing system, a series of frames for display based on the first scene image and the series of lesion images comprises:obtaining a series of scene images comprising the first scene image, the second scene image, and a series of intermediate scene images between the first and second scene images, the series of intermediate scene images obtained based on interpolation based on the first and second scene images; andgenerating the series of frames for display based on the series of scene images and the series of lesion images.

14. The method according to claim 13, further comprising enhancing a pixel density of the series of scene images based on a pixel density of the series of lesion images.

15. The method according to any one of claims 1 to 14, wherein an image resolution of the first scene image corresponds to a quarter video graphics array (QVGA) resolution or a resolution higher than the QVGA resolution.

16. The method according to any one of claims 1 to 15, whereinthe image sensor of the capsule endoscope is a complementary metal-oxide-semiconductor (CMOS) image sensor having a native pixel resolution of at least 5 megapixels, andthe method further comprises, based on said detecting no lesion in the first scene image, duty-cycling, via a power control input of the image sensor, the image sensor between consecutive scene image acquisitions.

17. The method according to any one of claims 1 to 16, wherein based on said detecting the lesion in the first scene image, the current field of view setting of the image sensor is set to the second field of view based on reconfiguring, via a sensor control interface of the capsule endoscope, at least one windowing register of the image sensor during a blanking interval between consecutive frame acquisitions of the image sensor, the at least one windowing register defining a data output window of the image sensor.

18. A system for capsule endoscopy imaging of a gastrointestinal tract, the system comprising:a capsule endoscope comprising:an image sensor;at least one memory; andat least one processor communicatively coupled to the at least one memory and the image sensor, andan external image processing system comprising:at least one memory; andat least one processor communicatively coupled to the at least one memory, wherein the at least one processor of the capsule endoscope is configured to:obtain, as the capsule endoscope moves through the gastrointestinal tract and from the image sensor, a first scene image of the gastrointestinal tract, the first scene image being captured by the image sensor set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor;detect, using a lesion detection artificial intelligence (Al) model, for a presence of a lesion in the first scene image; andbased on detecting a lesion in the first scene image, transmit, by the capsule endoscope, the first scene image to the external image processing system, wherein the at least one processor of the external image processing system is configured to, based on the capsule endoscope detecting the lesion in the first scene image:determine, using a lesion localization Al model, lesion region information of the detected lesion in the first scene image; andtransmit the lesion region information of the detected lesion to the capsule endoscope,wherein the at least one processor of the capsule endoscope is further configured to:obtain, from the image sensor, a series of lesion images of the gastrointestinal tract based on the lesion region information of the detected lesion, the series of lesion images being captured by the image sensor set at a current field of view setting, a current pixel density setting and a current frame rate setting of the image sensor; and transmit the series of lesion images to the external image processing system,wherein the at least one processor of the external image processing system is further configured to generate a series of frames for display based on the first scene image and the series of lesion images, andwherein based on said detecting the lesion in the first scene image, the current field of view setting of the image sensor is set to a second field of view corresponding to a lesion region defined by the lesion region information and at least one of the current pixel density setting and the current frame rate setting of the image sensor is respectively set to a second pixel density and a second frame rate, the second pixel density being higher than a first pixel density associated with detecting no lesion in the first scene image and the second frame rate being higher than a first frame rate associated with said detecting no lesion in the first scene image.

19. The system according to claim 18, wherein the at least one processor of the capsule endoscope is further configured to, based on detecting no lesion in the first scene image, transmit the first scene image to the external image processing system for display, wherein based on said detecting no lesion in the first scene image, the current field of view setting of the image sensor is maintained at or set to a first field of view, the first field of view having a larger field of view than the second field of view, and at least one of the current pixel density setting and the current frame rate setting of the image sensor is respectively maintained at or set to the first pixel density and the first frame rate.

20. The system according to claim 19, wherein the at least one processor of the capsule endoscope is further configured to:based on said detecting no lesion in the first scene image, maintain or set the current frame rate of the image sensor and a current image transmission rate of the capsule endoscope according to the first frame rate; andbased on said detecting the lesion in the first scene image, set the current frame rate of the image sensor and the current image transmission rate of the capsule endoscope according to the second frame rate.

21. The system according to claim 20, wherein the at least one processor of the capsule endoscope is further configured to:based on said detecting no lesion in the first scene image, maintain or set a wireless communication mode of the capsule endoscope to a first wireless communication mode; and based on said detecting the lesion in the first scene image, set the wireless communication mode of the capsule endoscope to a second wireless communication mode, wherein the second wireless communication mode has a higher transmission bandwidth than the first wireless communication mode.

22. The system according to claim 21, wherein the first wireless communication mode is a Bluetooth Low Energy (BLE) mode, and the second wireless communication mode is a Wi-Fi communication mode.

23. The system according to any one of claims 20 to 22, wherein, based on said detecting the lesion in the first scene image, the second frame rate of the image sensor and the second image transmission rate of the capsule endoscope are determined based on the lesion region information of the detected lesion and an image transmission bandwidth of the capsule endoscope.

24. The system according to any one of claims 18 to 23, wherein the lesion localization Al model has a U-Net architecture comprising gated CNN blocks.

25. The system according to claim 24, wherein a final block of an encoder of the U-Net architecture comprises a plurality of gated corner blocks, each gated corner block configured to predict corresponding comer position information for the lesion region information of the detected lesion.

26. The system according to any one of claims 18 to 25, wherein the lesion region defined by the lesion region information is a bounding box.

27. The system according to any one of claims 18 to 26, wherein the at least one processor of the external image processing system is further configured to preprocess the first scene image for the lesion localization Al model to perform said determine the lesion region information of the detected lesion in the first scene image, wherein said preprocess the first scene image comprises:transforming the first scene image into a Lab color space, comprising extracting a luminance of the first scene image to obtain a luminance channel image for enhancing brightness and contrast variations;applying edge detection to the luminance channel image to obtain an edge-detected luminance channel image for enhancing edges and transitions; andconcatenating the edge-detected luminance channel image, the luminance channel image and the first scene image to obtain a preprocessed first scene image.

28. The system according to any one of claims 18 to 27, wherein based on detecting the lesion in the first scene image,said obtain the series of lesion images of the gastrointestinal tract comprises, for each of one or more lesion images of the series of lesion images, obtaining, from the image sensor, the lesion image of the gastrointestinal tract based on the lesion region information of the detected lesion, the lesion image being captured by the image sensor set at the current field of view setting, the current pixel density setting and the current frame rate setting of the image sensor;said transmit, by the capsule endoscope, the series of lesion images to the external image processing system comprises, for each of the one or more lesion images, transmitting the lesion image to the external image processing system; andthe at least one processor of the external image processing system is further configured to:for each of the one or more lesion images, determine whether a proportion of the detected lesion in the lesion image satisfies a predefined threshold condition; and based on determining that the proportion of the detected lesion in the lesion image satisfies the predefined threshold condition, transmit a lesion image obtaining instruction to the capsule endoscope for controlling the capsule endoscope to obtain, from the image sensor, a subsequent lesion image of the gastrointestinal tract of the series of lesion images based on the lesion region information of the detected lesion, the subsequent lesion image being captured by the image sensor set at the second field of view and at least one of the second pixel density and the second frame rate.

29. The system according to claim 28, wherein the at least one processor of the external image processing system is further configured to, based on determining that the proportion ofthe detected lesion in the lesion image does not satisfies the predefined threshold condition, transmit a scene image obtaining instruction to the capsule endoscope for controlling the capsule endoscope to set the current field of view setting of the image sensor to the first field of view and at least one of the current pixel density setting and the current frame rate setting of the image sensor respectively to the first pixel density and the first frame rate, and for controlling the capsule endoscope to obtain, from the image sensor, a second scene image of the gastrointestinal tract, the second scene image being captured by the image sensor set at the first field of view and at least one of the first pixel density and the first frame rate.

30. The system according to claim 29, wherein said generate, by the external image processing system, a series of frames for display based on the first scene image and the series of lesion images comprises:obtaining a series of scene images comprising the first scene image, the second scene image, and a series of intermediate scene images between the first and second scene images, the series of intermediate scene images obtained based on interpolation based on the first and second scene images; andgenerating the series of frames for display based on the series of scene images and the series of lesion images.

31. The system according to claim 30, wherein the at least one processor of the external image processing system is further configured to enhance a pixel density of the series of scene images based on a pixel density of the series of lesion images.

32. The system according to any one of claims 18 to 31 , wherein an image resolution of the first scene image corresponds to a quarter video graphics array (QVGA) resolution or a resolution higher than the QVGA resolution.

33. The system according to any one of claims 18 to 32, whereinthe image sensor of the capsule endoscope is a complementary metal-oxide-semiconductor (CMOS) image sensor having a native pixel resolution of at least 5 megapixels, andthe at least one processor of the capsule endoscope is further configured to, based on said detecting no lesion in the first scene image, duty-cycling, via a power control input of the image sensor, the image sensor between consecutive scene image acquisitions.

34. The system according to any one of claims 18 to 33, wherein based on said detecting the lesion in the first scene image, the current field of view setting of the image sensor is set to the second field of view based on reconfiguring, via a sensor control interface of the capsule endoscope, at least one windowing register of the image sensor during a blanking interval between consecutive frame acquisitions of the image sensor, the at least one windowing register defining a data output window of the image sensor.