Photodynamic treatment of malignant melanoma with structured light: in silico Monte Carlo modeling

In this report, we propose a novel strategy for the photodynamic approach to the treatment of melanoma, aiming to mitigate the excessive absorption and consequent thermal effects. The cornerstone of this approach is an innovative structured illumination technique that optimizes light delivery to the tissue. The methodology of this in silico study involves the development of an optical model of human skin with the presence of melanoma and an accurate simulation technique of photon transport within the complex turbid scattering medium. To assess the effectiveness of our proposed strategy, we introduced a cost function reflecting the irradiated volume and optical radiation absorption within the target area/volume occupied by malformation. By utilizing the cost function, we refine the offset illumination parameters for a variety of target system parameters, ensuring increased efficiency of photodynamic therapy. Our computer simulation results introduce a promising new path towards improved photodynamic melanoma treatments, potentially leading to better therapeutic outcomes and reduced side effects. Further experimental validation is needed to confirm these theoretical advancements, which could contribute towards revolutionizing current melanoma photodynamic treatment methodologies.


Introduction
Melanoma is one of the most severe types of skin cancer, arising from the pigment-producing cells known as melanocytes.It is characterized by the uncontrolled growth of these cells, most commonly in the skin, but it can also develop in the eyes and, rarely, in internal organs.Melanoma is particularly dangerous due to its ability to spread to other parts of the body, a process known as metastasis, and it's often a challenging task to conventional cancer treatments [1].The danger of melanoma lies not only in its aggressive nature but also in its increasing incidence.Over the past few decades, melanoma rates have been rising steadily worldwide.Despite representing only a small percentage of skin cancer cases, melanoma accounts for the majority of skin cancer deaths due to its high potential for spreading and resistance to treatment [2].Australia and New Zealand, in particular, have the highest incidence rates of melanoma globally.This high incidence is likely due to the predominantly fair-skinned population, high levels of UV radiation, and outdoor lifestyle.Melanoma is the third most common cancer in Australia and the fourth most common in New Zealand.It represents a significant public health burden in these countries, both in terms of mortality and healthcare costs [3].In the United States, melanoma is also a significant health concern.While the overall incidence rate is lower than in Australia and New Zealand, certain states with high levels of sun exposure, such as Florida and California, have higher incidence rates [4].In 2023, it is estimated that 97,610 adults in the United States will be diagnosed with invasive melanoma of the skin, while in 2020, approximately 324,635 people worldwide were diagnosed with melanoma.In 2020, an estimated 57,043 people worldwide died from it [5].
The treatment landscape for melanoma has expanded significantly over the past decades, evolving from surgery and chemotherapy to more advanced therapies such as immunotherapy, targeted therapy, radiation therapy, and photodynamic therapy [6].Surgery is usually the first-line treatment for melanoma, especially in early-stage cases where the cancer has not spread beyond the skin.It involves the removal of the tumor along with some healthy tissue around it to ensure no cancer cells are left behind [6].Nevertheless, assessing surgical margins often remains a challenging task for surgeons.
Photodynamic Therapy (PDT) is another treatment modality that has gained considerable interest in recent years.The principle of PDT lies in the administration of a photosensitizing agent which, upon light activation, induces a series of chemical reactions leading to the generation of reactive oxygen species (ROS).These ROS can cause cell death, destroy blood vessels supplying the tumor, and stimulate an immune response against the cancer cells [7,8].PDT offers several advantages, including being a non-invasive procedure with fewer side effects.However, the effectiveness of PDT depends on various factors, such as the type and dose of the photosensitizing agent, the light source, and the tissue's properties with respect to its capacity to transmit enough light.Light absorption by melanin is considered as one of the most important limitations.Optimizing these factors is critical for improving PDT outcomes [9,10].Despite the potential of PDT, its adoption in routine melanoma treatment is still limited.More research is needed to fully understand its long-term efficacy and safety profile.However, as our understanding of melanoma and its treatment continues to grow, there is hope that we can improve the prognosis for patients diagnosed with this aggressive form of cancer.
In this report, we specifically explore one crucial aspect of PDT for melanoma treatment: the influence of absorption by the melanoma cells resulting in overheating and insufficient photodynamic action response.Overheating and limited photodynamic action can lead to necrosis, an uncontrolled form of cell death that can instigate inflammation, potentially promoting tumor recurrence and spread [11].When cells die from necrosis, their contents, including potentially harmful substances, are released into the surrounding tissue.This can trigger inflammation.In some cases, this inflammation can potentially promote tissue stimulated regeneration and, therefore, increase chances of tumor recurrence and spread/metastasis.The exact relationship between overheating, necrosis, inflammation, and cancer progression can be quite complex and can depend on a variety of factors, including the size, shape and depth of melanoma, the specific conditions illumination and many others.In order to provide the insight on those complexities, we investigate in silico the potential of so-called structured optical illumination on melanoma and the surrounding tissues.The term "structured light" by itself carries diverse interpretations across various fields, including optics, computer vision, and 3D scanning, where it may encompass differing concepts.Within the realm of Biomedical Optics, however, "structured light" assumes a distinct meaning, referring to the deliberate customization and manipulation of light across all its facets, including amplitude, phase, and polarization modulation [12].In our investigation, the light source is intentionally deviated from the target melanoma site, aiming to reduce excessive light incidence on it without missing illumination of all the surroundings to produce efficient necrosis (see Fig. 1).
In this study, we utilize our recently introduced, open-source, power efficient Monte Carlo (MC) method developed in house: Neu(t)ralMC [13].While the statistical nature of MC solutions introduces computational inefficiencies, it also enables efficient parallelization strategies [14][15][16].These advances have enhanced handling of complex light-tissue interactions, leading to developments in computational efficiency, accurate tissue models, and novel applications in biomedical optics, such as spectra analysis, polarization, coherence properties, angular momentum of light, etc. [17][18][19][20][21][22][23][24][25].Recently, the intersection of Biomedical Optics and Machine agent, the light source, and the tissue's properties with respect to its capacity to transmit enough light.Light absorption by melanin is considered as one of the most important limitations.
Optimizing these factors is critical for improving PDT outcomes [9,10].Despite the potential of PDT, its adoption in routine melanoma treatment is still limited.More research is needed to fully understand its long-term efficacy and safety profile.However, as our understanding of melanoma and its treatment continues to grow, there is hope that we can improve the prognosis for patients diagnosed with this aggressive form of cancer.In this report, we specifically explore one crucial aspect of PDT for melanoma treatment:

Melanoma
the influence of absorption by the melanoma cells resulting in overheating and insufficient photodynamic action response.Overheating and limited photodynamic action can lead to necrosis, an uncontrolled form of cell death that can instigate inflammation, potentially promoting tumor recurrence and spread [11].When cells die from necrosis, their contents, including potentially harmful substances, are released into the surrounding tissue.This can trigger Therapy for melanoma treatment is presented.We assess the light distribution as a ring incident on melanoma-affected tissue, focused towards a specific point within the scattering medium.Our investigation encompasses light deposition both within the melanoma and the surrounding tissue region of interest (ROI).
Learning (ML) has opened novel avenues for solving complex problems, enabling tasks like estimating chromophore concentrations from hyperspectral images, detecting cancerous tissues, and polarimetry [26,27].
We have developed further the mathematical representations of melanoma and surrounding tissue as distinct 3D volumetric regions with unique optical properties, thus capturing their differential interactions with the structured illumination.This approach enabled us to quantify and visualize the spatial distribution of light, especially within and around the malformation site.By introducing a tailored cost function, we are able to fine-tune the parameters of the offset illumination in order to cater for different target system parameters, effectively mitigating the tissue overheating for photodynamic therapy effectiveness.
The results from our MC simulations and subsequent analyses revealed that offset illumination could effectively deliver therapeutic light to surrounding tissues while limiting the exposure and potential thermal damage to the melanoma cells.The outcomes from these simulations provide an essential understanding of how to manipulate and optimize the offset illumination parameters to achieve the desired distribution of light, thereby improving the efficacy and safety of photodynamic therapy for melanoma.We believe that the insights derived from this numerical study have significant implications for the future development and optimization of targeted photo therapy strategies for melanoma treatment.

Light transport in melanoma-affected skin and offset illumination
In the framework of optical simulations, human skin is usually represented as a multi-layered (or multi-voxel) structure: the epidermis, the dermis, and the subcutaneous tissue.Briefly, each layer is characterized by specific values of absorption µ a (λ) and scattering µ s (λ) coefficients and anisotropy factor g(λ) [28][29][30].These parameters depend on the wavelength of the incident light and the specific composition of the skin layer.The outermost layer, the epidermis, contains melanocytes, which produce melanin, a pigment that absorbs and scatters ultraviolet and visible light.Greater melanin concentrations can lead to higher levels of light absorption and less transmission of light into deeper skin layers.Below the epidermis is the dermis, which contains structures such as collagen fibers, elastin, and blood vessels.Blood within the vessels contributes to the skin's optical properties through its absorption and scattering of light.The blood volume fraction, or the volume of blood relative to the total volume of the dermis, can influence the degree of light absorption.Additionally, the oxygen saturation level of the blood can alter the absorption spectrum, as oxygenated and deoxygenated hemoglobin have different absorption coefficients.Lastly, the subcutaneous layer, composed mostly of fat and connective tissue, also interacts with light in unique ways.The presence of blood vessels in this layer means that the blood volume fraction and oxygen saturation level can also affect the optical properties here.These variables play key roles in determining how light interacts with the skin, which is essential knowledge in fields such as dermatology, cosmetic science, phototherapy, and optical diagnostics with a number of models developed in the past accurately accounting for these complex variety of factors [18,29,[31][32][33][34].
Melanoma, which originates from melanocytes, exhibits distinctive optical properties, primarily due to the overproduction of melanin.These properties can be quantitatively expressed in terms of absorption and scattering coefficients, as well as the anisotropy factor.The exact optical properties of melanoma can vary dramatically, depending on tumor type, such as dark and opaque melanomas, and the actual dynamics of the disease with the actual research being limited on this topic.For instance, it has been reported that the absorption coefficient of melanoma in the visible spectrum (400-700 [nm]) can range from 1 to 10 [mm −1 ] [35], mainly due to the increased melanin content.In contrast, healthy skin typically has an absorption coefficient of approximately order of magnitude lower in the same spectral region.Typically, melanoma tissue exhibits a lower anisotropy factor compared to healthy skin, implying a less forward-peaked scattering phase function.In our simulation, we employed the Henyey-Greenstein (HG) phase function to model light transport within all layers.Specifically, at each scattering event, we determined the direction vector ⃗ ω ′ i using the Henyey-Greenstein phase function, which was originally introduced into MC simulations by Prahl [32], building upon the work by Henyey and Greenstein [36].More recently, an improvement of generation of accurate scattering phase functions using two terms has been proposed [37].The anisotropy factor of melanoma tissue varies around 0.8, in contrast to approximately 0.9 for normal skin tissue [38].The scattering coefficient of melanoma tissue also differs from that of normal skin, attributable to altered cellular and extracellular structures.Both lower and higher levels have been reported [35].Nevertheless, it is important to point out that these values can significantly vary among patients and even within a single lesion due to the heterogeneous nature of melanoma [39][40][41].
In this study, our aim is not to establish the accurate optical properties of melanoma, which require careful experimentation and capture, but rather to establish a methodology for numerical assessment towards improved PDT treatments.Therefore, in order to provide a baseline for our study of the offset illumination, we focus exclusively on "dark" inhomogeneous melanomas.For this task, we have integrated the optical properties of biological tissues into a single voxelized model, i.e., the model is divided into small volumetric elements, each representing a voxel with assigned optical properties based on the composition and characteristics of the medium.Our model contains both healthy skin regions such as the epidermis, dermis, as well as embedded melanoma structure (see Fig. 1).We utilize the numerical procedure developed earlier, which employs precise chromophore concentrations and analytical expressions for calculating the optical properties of biological tissues, as described in [28,29].These optical properties, essential for simulating light transport within melanoma-affected skin, are summarized in Table 1.
Our voxelized model incorporates essential parameters such as absorption, scattering, and anisotropy in order to to simulate the behavior of light within the tissue at various wavelengths.In order to study the influence of the offset illumination in silico the Radiative Transfer Equation (RTE) needs to be evaluated.The RTE can be challenging to solve, especially for complex Table 1.Optical properties and geometry of human skin with melanoma at selected wavelengths have been calculated using numerical procedure described in [28,29]: Anisotropy factors set to g = 0.9 for healthy tissues and g = 0.8 for melanoma regions.High volume fraction of melanin (C mel = 45%) has been set for melanoma region with the properties of the tissue-air interface defined as: µ a = 0.0001, µ s = 0.1, g = 1.0, and n = 1.4.A specific, structured illumination source function has been introduced to Neu(t)ralMC, is characterized by its unique light delivery pattern.In this approach, the photons do not originate from a singular point, but instead are launched from a defined shape, e.g. a ring pattern.This approach marks a significant departure from traditional optical treatment illumination techniques, where light is typically directed from a single source directly onto the treatment area.In our structured illumination setting, the amplitude control is exclusively considered with photons launching from various points along the ring, entering the scattering medium from multiple angles and positions.This multi-point and multi-angle approach inherently broadens the spatial distribution of light within the medium.Furthermore, photons are focused towards a specific point within the medium itself, enabling a targeted delivery of light while minimizing surface exposure.This is particularly advantageous in scenarios where the target lies deep within the tissue, as it reduces the likelihood of surface overheating and allows for a more concentrated treatment at the desired depth.In practice, for a photon packet its initial position p 0 (x 0 , y 0 , z 0 ) and directional cosines ω 0 (s x , s y , s z ) located at a boundary interface (z 0 = 0) are characterized by: where r 0 corresponds to the randomly chosen radius within a ring of inner radius r ring and thickness d ring , ξ 1,2 are the two uniformly distributed random numbers between [0, 1), f ring (x t , y t , z t ) is the target focal point located within a scattering medium.The procedure for a ring offset illumination focusing towards chosen point in the medium include two steps: assignment of a starting position within the ring and setting initial direction of each photon towards a specified point in the medium.Inner and outer radius define the radii of the ring, while target point represents the coordinates in the medium the photons are focused towards.The first random number is used to calculate the radius of the current photon within the ring.The √ ξ 1 ensures a uniform distribution of photons within the ring.The second random number is used to calculate the angle ϕ of the photon on the ring in the x-y plane.The photon's initial position is calculated by using the radius and angle.The starting z-coordinate of the photon is a constant and corresponds to medium interface plane.Finally, the directional vector from the photon's starting position to the target point is calculated and normalized.

Evaluation and discussion
In our MC simulations, a key output parameter is the radially-resolved fluence rate distribution, denoted as Φ(r, z).This distribution, which depends on both radial and depth coordinates, represents the power delivered per unit area.Commonly referred to as irradiance, it was one of the first quantities introduced in Biomedical Optics [32] and represents the amount of light power delivered within a specific area and is typically expressed in units of watts per square centimeter (W/cm 2 ).Nowadays, the fluence rate assumes particular significance in various applications, including photodynamic therapy and photoacoustic imaging, where the precise amount of light delivered to the target tissue plays a crucial role in determining the therapy's effectiveness.Comprehensive insights into the basis of MC simulations for calculation fluence rate distributions are provided in details in [44][45][46].Nevertheless, in PDT for melanoma the use of photosensitizing agents is involved, which are activated by light of a certain wavelength [47].This activation causes the photosensitizing agents to produce reactive oxygen species that can destroy cancer cells.The specific wavelength of light used in PDT depends on the photosensitizing agent being used.Most photosensitizers are activated by light in the red or near-infrared wavelengths because these wavelengths can penetrate tissue more deeply than light of shorter wavelengths.For instance, a common photosensitizing agent used in PDT is porfimer sodium (Photofrin), which is activated by light of approximately 630 [nm], in the red part of the spectrum.Another photosensitizer, aminolevulinic acid (ALA), leads to the production of protoporphyrin IX in the tissue, which is activated by light of around 635-640 [nm].In some experimental melanoma treatments, new photosensitizers are being explored, including ones that are activated by light in the near-infrared part of the spectrum (around 700-800 [nm]), which can penetrate even deeper into tissue.
We perform numerical simulations for selected wavelengths (630 and 800 [nm]) and define a multi-parametric cost function, denoted as J(mel, ROI), which aims to minimize the fluence Φ mel delivered to melanoma and maximize fluence Φ ROI within our pre-defined region of interest (ROI) in the tissues: In this equation, S(u) and S(v) correspond to the weighting functions that is used to prioritize parts of volume occupied by melanoma and our ROI, Φ baseline mel and Φ baseline ROI signify fluence rates delivered to melanoma and ROI using traditionally used uniform illumination approach.Our ROI targets the optimal treatment area aiming to encapsulate melanoma and is described using set notation as follows.
Firstly, we define S(u,v) to represent the set of points in the hemisphere of the tissue region with a radius of 2r mel : Secondly, S(u) denotes the set of points within the hemisphere of melanoma of radius r mel : Finally, the set of points representing the ROI is obtained by subtracting the melanoma region from the total tissue region, is: Our in house parallel computing-accelerated MC model can effectively deal with the problem of optimization and able to generate a large amount of data that represents the photon transport in the medium within minutes.We use use this data to compute the fluence within target regions and find the best possible configuration using Algorithm 1.We focus on three essential parameters by normalizing their ranges using the melanoma radius r mel for effective dimensionless representation.The first parameter, is the ring focus which fluctuates in a range of 2 − 10 of r mel .

Algorithm 1. Optimize light delivery using focused offset illumination
Algorithm 1 Optimize light delivery using focused offset illumination return _ 14: end procedure Finally, the set of points representing the ROI is obtained by subtracting the melanoma region from the total tissue region, is: Our in house parallel computing-accelerated MC model can effectively deal with the problem of optimization and able to generate a large amount of data that represents the photon transport in the medium within minutes.We use use this data to compute the fluence within target regions and find the best possible configuration using Algorithm 1.We focus on three essential parameters by normalizing their ranges using the melanoma radius   for effective dimensionless representation.The first parameter, is the ring focus which fluctuates in a range of 2 − 10 of   .
The inner ring radius, signifies the foundational structure of the ring, spanning a range of 1 − 5 of   .Augmenting this, the ring thickness establishes the expanse of the ring, inherently defining its external boundary.Also ranging from 1 − 5, this parameter enables adjustments to the ring's bulk and reach.The increments are performed in steps of 1/10   collectively creating a search space consisting of 136, 161 candidate configurations.Computer modeling has been performed for 10 6 of photon packets using using Apple M2 processors with each simulation completing nearly real-time, in a matter of just a few seconds (detailed performance considerations are presented in [13]).
The visualization of our MC-generated search space is presented in Figure 2. The target is to optimize the cost function (see Eq. 2), which involves adjusting the parameters of the light delivery system in a manner that the actual fluence rate aligns as closely as possible with the desired fluence rates throughout the target volumes.The presented cost function is a variant of the relative difference squared error function, weighted by the baseline (uniform) illumination simulations output.The best parameters are updated whenever a lower cost is found.Figure 3  The inner ring radius, signifies the foundational structure of the ring, spanning a range of 1 − 5 of r mel .Augmenting this, the ring thickness establishes the expanse of the ring, inherently defining its external boundary.Also ranging from 1 − 5, this parameter enables adjustments to the ring's bulk and reach.The increments are performed in steps of 1/10 r mel collectively creating a search space consisting of 136, 161 candidate configurations.Computer modeling has been performed for 10 6 of photon packets using Apple M2 processors with each simulation completing nearly real-time, in a matter of just a few seconds (detailed performance considerations are presented in [13]).
The visualization of our MC-generated search space is presented in Fig. 2. The target is to optimize the cost function (see Eq. ( 2)), which involves adjusting the parameters of the light delivery system in a manner that the actual fluence rate aligns as closely as possible with the desired fluence rates throughout the target volumes.The presented cost function is a variant of the relative difference squared error function, weighted by the baseline (uniform) illumination simulations output.The best parameters are updated whenever a lower cost is found.Figure 3 provides a visual representation of the computed cost functions for two specific, disparate wavelengths.In this figure, the ring focus, a central parameter in our model, is set to a designated value and normalized with respect to the melanoma radius (f ring = 3 × r mel ).For each chosen wavelength, the figure delineates the variations of the cost function in relation to adjustments in both the inner ring radius and ring thickness parameters.Following the objective to methodically optimize the configuration of the light delivery system, this computation aims to achieve a fluence rate distribution within the targeted volumes that adheres as closely as possible to the desired fluence.
Following the extensive computations performed in our study, we have successfully identified trends that guide us towards the optimal configuration of the light delivery system for photodynamic parameter relationships, which have been tailored based on the melanoma radius  mel .Specifically, the optimal  inner is found to be 1.2 mel ± 0.2 mel .This adjustment in the inner ring radius allows for precise targeting of melanoma-affected tissue, ensuring the effective delivery of light.Moreover, the ideal  ring is set at 1.5 mel ± 0.5 mel , a configuration that enables optimal fluence delivery to the melanoma surrounding area while minimizing the risk of overheating the melanoma itself.Additionally, for precise and effective light delivery, the optimal  ring should be set within the range of 3 mel to 5 mel .This range has been identified as effective for both the 600 [nm] and 800 [nm] wavelengths under investigation, highlighting its critical role in our model.Moreover, the use of an 800 [nm] wavelength was found to be more effective, showing approximately a 20% increase in terms of light delivery to the targeted ROI.This higher efficiency at 800 [nm] is likely attributable to the reduced scattering and absorption at this longer wavelength, which allows the light to penetrate deeper into the tissue.This significant finding paves the way for the potential trials of modern photosensitizer agents that are specifically activated by light at near-infrared.Utilizing such photosensitizers in conjunction with our optimized light delivery system could enable more effective and targeted photodynamic therapy treatments, offering promising prospects for improved patient outcomes.
Figure 4 provides a comparison between traditional, uniformly lit PDT and the proposed novel  therapy.For both 600 [nm] and 800 [nm] wavelengths, our results align with the following parameter relationships, which have been tailored based on the melanoma radius r mel .Specifically, the optimal r inner is found to be 1.2r mel ±0.2r mel .This adjustment in the inner ring radius allows for precise targeting of melanoma-affected tissue, ensuring the effective delivery of light.Moreover, the ideal d ring is set at 1.5r mel ± 0.5r mel , a configuration that enables optimal fluence delivery to the melanoma surrounding area while minimizing the risk of overheating the melanoma itself.
Additionally, for precise and effective light delivery, the optimal f ring should be set within the range of 3r mel to 5r mel .This range has been identified as effective for both the 600 [nm] and 800 [nm] wavelengths under investigation, highlighting its critical role in our model.Moreover, the use of an 800 [nm] wavelength was found to be more effective, showing approximately a 20% increase in terms of light delivery to the targeted ROI.This higher efficiency at 800 [nm] is likely attributable to the reduced scattering and absorption at this longer wavelength, which allows the light to penetrate deeper into the tissue.This significant finding paves the way for the potential trials of modern photosensitizer agents that are specifically activated by light at near-infrared.Utilizing such photosensitizers in conjunction with our optimized light delivery system could enable more effective and targeted photodynamic therapy treatments, offering promising prospects for improved patient outcomes.
Figure 4 provides a comparison between traditional, uniformly lit PDT and the proposed novel offset illumination strategy for two distinct wavelengths: 600 [nm] and 800 [nm].The parameters of the ring illumination system have been determined through our optimization scheme.This figure vividly illustrates the photon distribution within the tissue and underscores the evident advantages of the offset illumination approach.Notably, the offset strategy consistently yields a more focused and efficient light deposition to the melanoma-affected area.This targeted approach reduces the risk of melanoma overheating, which is a notable limitation of traditional uniformly lit PDT.Therefore, particularly when utilizing the 800 [nm], the offset illumination strategy emerges as a promising avenue for enhancing the effectiveness of PDT.The light distribution as it displayed in the first row of images in Fig. 4 allows identification of the necessary exposure time that will achieve an adequate light dose above the threshold for necrosis.This shell of necrotic region will isolate the melanoma.By restricting the necrotic region, it is possible to eliminate the tumor due to the lack of nutrients and/or by starvation.
Nevertheless, It is important to note that the work presented here is an in silico study exploring a novel modality of light delivery in PDT.As such, the findings, while promising, are theoretical in nature and are based on computational simulations.Rigorous experimental validation is essential to confirm the feasibility and effectiveness of this proposed offset illumination strategy.Future work should include in vitro and in vivo studies to capture the actual properties of melanomas, validate computational predictions made here, and to assess the practicality, safety, and efficacy of this new approach to light delivery in PDT applications.On the other hand, this study adopts a brute-force approach in its algorithm, wherein all possible configurations within the parameter space are exhaustively tested, a process that leaves room for further improvement.
For future, extensive parameter space searches such as different skin and skin cancer types, non-uniformly shaped melanomas, etc., employing a more efficient optimization strategy (e.g.ML-based) are warranted.One alternative could involve the iterative adjustment of the light delivery parameters, paired with corresponding evaluations of the cost function.In this context, numerical optimization techniques, such as gradient descent or genetic algorithms, could be employed to systematically identify the targeted and personalized light delivery strategy.This refined approach, as a part of our future work, would aim to achieve the optimal light delivery within the target volume more efficiently, thereby reducing both the computational load and the time necessary for computations.In the proposed offset illumination approach, evaluated at two distinct wavelengths, light delivery is optimized to minimize damage to the melanoma region while simultaneously enhancing the fluence rate/deposition within the target ROI.

Conclusions
In this study, we introduced a novel approach for photodynamic melanoma treatment, specifically designed to alleviate the problem of overheating in melanoma cells, often associated with traditional methods.This strategy is anchored on an innovative structured illumination technique, offering optimized light delivery to the tissue.Our approach entailed the creation of detailed numerical and optical models, enabling precise simulation of light transport in complex turbid scattering media.Notably, our model incorporated a detailed optical depiction of melanomaaffected skin, accounting for the differing optical properties of various skin layers and melanoma cells.To evaluate the efficiency of our strategy, we formulated a cost function reflecting the irradiated volume and absorption of optical radiation within the target area.This cost function, when optimized, facilitated the fine-tuning of offset illumination parameters, thereby ensuring a more efficient photodynamic therapy with minimized thermal production.
Our pilot results point towards a promising route for improving photodynamic melanoma treatments, potentially yielding enhanced therapeutic outcomes and reduced adverse effects.
However, these theoretical advancements require further experimental validation.As we move forward with our research, we plan to delve into optical experimentation methods and technologies for creating the desired illumination patterns.These techniques may involve the use of spatial light modulators (SLMs), diffractive optical elements (DOEs), beam shaping optics, and other tools for shaping the intensity of light beams [12].Looking ahead, we acknowledge that there is significant potential for further development and expansion of our technique.One natural progression involves exploring polarization, phase and other control as integral components of In the proposed offset illumination approach, evaluated at two distinct wavelengths, light delivery is optimized to minimize damage to the melanoma region while simultaneously enhancing the fluence rate/deposition within the target ROI.

Conclusions
In this study, we introduced a novel approach for photodynamic melanoma treatment, specifically designed to alleviate the problem of overheating in melanoma cells, often associated with traditional methods.This strategy is anchored on an innovative structured illumination technique, offering optimized light delivery to the tissue.Our approach entailed the creation of detailed numerical and optical models, enabling precise simulation of light transport in complex turbid scattering media.Notably, our model incorporated a detailed optical depiction of melanomaaffected skin, accounting for the differing optical properties of various skin layers and melanoma cells.To evaluate the efficiency of our strategy, we formulated a cost function reflecting the irradiated volume and absorption of optical radiation within the target area.This cost function, when optimized, facilitated the fine-tuning of offset illumination parameters, thereby ensuring a more efficient photodynamic therapy with minimized thermal production.Our pilot results point towards a promising route for improving photodynamic melanoma treatments, potentially yielding enhanced therapeutic outcomes and reduced adverse effects.However, these theoretical advancements require further experimental validation.As we move forward with our research, we plan to delve into optical experimentation methods and technologies for creating the desired illumination patterns.These techniques may involve the use of spatial light modulators (SLMs), diffractive optical elements (DOEs), beam shaping optics, and other tools for shaping the intensity of light beams [12].Looking ahead, we acknowledge that there is significant potential for further development and expansion of our technique.One natural progression involves exploring polarization, phase and other control as integral components of our approach.Building upon our previous contributions in this area [20], we plan to extend our methodology to incorporate these additional degrees of freedom in light manipulation for PDT.
Once confirmed, these findings could potentially revolutionize current methodologies in melanoma photodynamic treatment, paving the way for safer and more effective interventions.With a precise knowledge of a lesion, which can be obtained independently through several imaging modalities, a highly personalized treatment plan can be developed with a follow-up monitoring and treatment.

Fig. 1 .
Fig.1.Schematic representation of the structured illumination concept in Photodynamic Therapy for melanoma treatment is presented.We assess the light distribution as a ring incident on melanoma-affected tissue, focused towards a specific point within the scattering medium.Our investigation encompasses light deposition both within the melanoma and the surrounding tissue region of interest (ROI).

Fig. 1 .
Fig. 1.Schematic representation of the structured illumination concept in Photodynamic provides a visual representation of the computed cost functions for two specific, disparate wavelengths.In this figure, the ring focus, a central parameter in our model, is set to a designated value and normalized with respect to the melanoma radius (   = 3 ×   ).For each chosen wavelength, the figure delineates the variations of the cost function in relation to adjustments in both the inner ring radius and ring thickness parameters.Following the objective to methodically optimize the configuration of the light delivery system, this computation aims to achieve a fluence rate distribution within the targeted volumes that adheres as closely as possible to the desired fluence.

FluenceFig. 2 .
Fig. 2. Fluence rate distributions for two selected wavelengths, showcasing the parameters space, cross-sections and the influence of varying offset illumination parameters on Φ  and Φ  .Parameters are normalized with respect to the melanoma radius,   .The figure presents the effects of ring focus, inner ring radius, and ring thickness on light delivery within a target volume.

Fig. 2 .Fig. 3 .
Fig. 2. Fluence rate distributions for two selected wavelengths, showcasing the parameters space, cross-sections and the influence of varying offset illumination parameters on Φ ROI and Φ mel .Parameters are normalized with respect to the melanoma radius, r mel .The figure presents the effects of ring focus, inner ring radius, and ring thickness on light delivery within a target volume.

Fig. 3 .
Fig. 3. Example of calculated cost function, as defined in Eq. (2), evaluated for two distinct wavelengths.In this figure, the ring focus is set to a specific value (f ring = 3 × r ring ), which is a pivotal parameter in our model, normalized with respect to the melanoma radius r mel .

Fig. 4 .
Fig. 4. Comparison of traditional and offset illumination strategies in PDT applications.In the proposed offset illumination approach, evaluated at two distinct wavelengths, light delivery is optimized to minimize damage to the melanoma region while simultaneously enhancing the fluence rate/deposition within the target ROI.

Fig. 4 .
Fig. 4. Comparison of traditional and offset illumination strategies in PDT applications.
[30]43] properties change significantly.It has been previously demonstrated, that no general analytic solution exists for such tasks and stochastic MC methods have proved themselves as a gold standard, providing accurate solutions to RTE in complex, inhomogeneous media/geometry in the field of Biomedical Optical diagnostics.In the framework of this research we utilize our next generation online open-source power-efficient MC specifically created for the Apple M-family processors[42,43].Our model has been recently enhanced with ML capabilities and is fully compatible with the input/output data structures of MCXYZ.C program introduced by Biomedical Optics pioneer S. Jacques[30].