1. Introduction
W Ursae Majoris (W UMa) contact binary systems consist of two main-sequence components, typically of F to K spectral types. The components of these systems possess a common convective envelope and have their Roche lobes filled [
1]. The primary and secondary eclipses exhibit approximately similar minimum depths, indicating that the temperature difference between the stars is slight [
2,
3]. The stars in contact binary systems transfer mass and energy to one another [
4], leading to potential variations in their orbital periods. These systems are classified into two subtypes: in the A-subtype, the more massive component exhibits a higher effective temperature, whereas in the W-subtype, the less massive component is hotter [
5]. Determining the mass ratios of some contact systems spectroscopically is challenging due to the broadening and blending of spectral lines. Photometric analysis is an effective method for studying systems in which one of the stars has a small mass and radius, as estimating the mass ratio from spectroscopic data may be challenging [
6,
7,
8]. However, in systems with total eclipses, photometric analysis yields more accurate mass ratios than in systems with partial eclipses [
9,
10].
In recent decades, different programs and codes have been developed to analyze the light curves of binary systems, and a variety of methods have been applied to estimate the fundamental parameters of the stars. Currently, most light curve analyses are conducted using the Wilson–Devinney [
11] and the PHysics Of Eclipsing BinariEs (PHOEBE, [
12]) programs, which offer the capability to implement Monte Carlo (MC) simulations and the Markov Chain Monte Carlo (MCMC) method, respectively. MC simulations and the MCMC method are valuable tools for light curve analysis, providing reliable uncertainty estimates. However, the application of these methods can be time-consuming. On regular computers, the search process can take several days. Furthermore, if there is a mistake in the distribution determination or if the final result is unsatisfactory, the entire process needs to be repeated. As a result, light curve analysis can be time-consuming, and with the growing volume of data from space telescopes, there is a need to propose efficient solutions.
Recent studies, such as [
13,
14], have attempted to accelerate the MCMC process in the PHOEBE code by incorporating neural network (NN) models. These studies achieved significant improvements in the speed of the MCMC process, enabling the automated generation of light curve solutions for a large number of contact binary systems. The use of NNs to generate models that significantly accelerate the light curve solution process has also been explored in other studies (e.g., [
15]). Although the use of methods such as neural networks (NNs) is highly valuable, these approaches still encounter significant challenges, as discussed in the study by [
16].
We developed the BSN application under the Binary Systems of South and North (BSN) project. The application was evaluated using over 80 previously studied contact binary systems with available data, and the results were compared with those obtained using PHOEBE. To further demonstrate the capabilities of the BSN application and assess its performance, we also applied it to perform the first light curve analyses of four contact binary systems. The general characteristics of target systems are listed in
Table 1 from the Gaia DR3 (
https://gea.esac.esa.int/archive/, (accessed on 22 June 2025)), the All-Sky Automated Survey for Supernovae (ASAS-SN; [
17]), and TESS Input Catalog (TIC; [
18]) v8.2 databases. The target contact binary systems have orbital periods ranging from 0.4 to 0.5 days, with apparent magnitudes between
and
based on the ASAS-SN catalog. In this study, we used the Transiting Exoplanet Survey Satellite (TESS) data for light curve analysis. The data are publicly available from the Mikulski Archive for Space Telescopes (MAST
http://archive.stsci.edu/tess/all_products.html, (accessed on 22 June 2025)). The TESS sector and exposure length used for each system are listed in
Table 1.
2. Light Curve Solutions
2.1. BSN Application
The BSN application is a desktop tool developed using the .NET 8 platform. It features a graphical user interface (GUI) designed to streamline user interaction throughout the modeling process. Scientific-based and performance details for this application are provided as follows.
(A) Phase Calculation Methodology: Although the BSN application performs all calculations in time, representing results in orbital phase is often more practical for interpreting eclipsing binary behavior. Phases are mapped to the (, ) interval, and changes in orbital period over time are accounted for in the time-to-phase conversion. A phase shift parameter helps align synthetic and observed curves but does not affect the phasing of observations.
(B) Three-dimensional modeling: [
19] projected the stellar surface onto the sky plane, treating the depth along the line of sight as an unknown to be resolved separately. Subsequently, [
11] implemented a spherical coordinate system, while [
20] opted for cylindrical coordinates to describe the geometry. PHOEBE incorporates a simplified spot model based on the [
11] method.
A three-dimensional image of the system is displayed on the main screen of the BSN application, with the option to adjust the relative positions of the stars during different phases. The geometric shapes of the stars in the BSN application were computed using the method proposed by [
21].
(C) Effective surface temperature: In the BSN application, local effective temperatures across a star’s surface are primarily influenced by tidal and rotational distortions and are modeled using a power-law gravity-darkening approach. The local temperature in each region is derived from the polar effective temperature, which is itself calculated from the global mean effective temperature, weighted by surface area and local gravity. In contact binaries, the stellar surfaces are divided using a boundary plane at the neck, with surface areas assigned to each component based on their location relative to this boundary. Temperature discontinuities can arise at the neck if the components have different polar temperatures, making this method best suited for systems in or near thermal equilibrium. Additionally, the BSN application includes a basic spot model, where localized surface temperature variations are introduced via circular regions defined by angular coordinates and a temperature scaling factor.
(D) Bolometric albedo and gravity darkening: The bolometric albedo and gravity-darkening coefficients are considered in this application. The user can apply the values assumed in the application based on the studies [
22,
23] or enter other values.
(E) Limb darkening: Limb-darkening coefficients play a crucial role in the modeling of contact binary stars, where both components share a common envelope and exhibit significant geometric distortion due to mutual gravitational interaction [
24,
25]. The limb-darkening effect, which causes the stellar intensity to decrease from the center to the edge of the disk, is typically described using analytical laws—such as linear, quadratic, square-root, or logarithmic formulations—with coefficients dependent on local effective temperature, surface gravity, and wavelength. In the BSN application version 1.0, we employed linear and logarithmic limb-darkening formulations, using coefficients taken from the tabulations provided by [
25]. Accurate treatment of limb darkening is essential, as it directly influences the determination of key system parameters, including inclination, temperature ratio, and component radii, thereby affecting the reliability of the derived physical and evolutionary characteristics of the binary system.
It is worth noting that the method introduced by [
26] for modeling the reflection effect in binary star systems required effective wavelength-dependent limb-darkening coefficients, as well as bolometric coefficients, which were incorporated into bolometric analogues of the relevant equations. Accordingly, the bolometric coefficients calculated by [
25] are used for modeling the reflection effect in binary systems within the BSN application.
(F) Stellar atmosphere modeling: Local emergent intensity depends on a range of intrinsic stellar properties—such as temperature, surface gravity, chemical composition, and rotation. While a simplified approach treats stars as blackbodies based solely on temperature, accurate modeling requires assigning appropriate model atmospheres based on stellar type and application.
The BSN application models the stellar atmosphere using the method of [
27]. The most comprehensive atmospheric model currently available—and the one used in PHOEBE—is presented by [
27]. Since the BSN application employs the method of [
27] for modeling stellar atmospheres, the lower temperature limit of 3500 K is imposed by this method. The upper limit in the BSN application is 8500 K, which is suitable for the temperature range of most contact binary systems.
(G) Passband: The BSN application is capable of performing light curve analysis using the standard Johnson
filters [
28] and the TESS passband. Therefore, the application allows users to model each dataset separately, using its corresponding filter.
In stellar photometric modeling, the emergent intensity within a specific passband is derived by integrating the Spectral Energy Distribution (SED), perpendicular to the stellar surface, weighted by the passband transmission function. Specifically, this intensity is obtained by multiplying the SED by the transmission function and integrating over wavelength. Direct integration for every combination of stellar parameters—such as effective temperature, surface gravity, and metallicity—is computationally intensive. To mitigate this, precomputed intensity values based on a broad grid of model atmospheres [
27] are stored in advance. Interpolation over this grid in
,
, and [M/H] allows for efficient and accurate estimates. Although microturbulent velocity (
) generally influences spectral line formation, its effect on passband-integrated intensities is negligible and can be omitted. This is because increasing
broadens and shallows spectral lines without significantly altering their equivalent widths, thereby leaving the integral essentially unchanged. Any residual effects near the edges of the passband are minimal due to the gradual decline in transmission efficiency.
Since observational data are rarely provided in absolute intensity units, passband luminosity is used to rescale model intensities for comparison with observations. This involves integrating the emergent intensities across the stellar surface using a limb-darkening model to convert from intensity to flux, yielding the total luminosity within the passband. This computed luminosity is then used to normalize the intensities.
(H) Reflection effect: Among the various challenges in computing theoretical light curves for contact binary stars is the need to account for mutual irradiation between the components, commonly referred to as the reflection effect. The BSN application incorporates the reflection effect into light curve modeling using the method proposed by [
26]. However, because this effect is minimal in most contact binary systems, it may be disregarded to improve computational performance without significantly impacting accuracy.
(J) MCMC: The BSN application offers a high-speed MCMC process that operates efficiently even on personal computers with standard CPUs. The MCMC process in the BSN application operates on five main parameters: i, q, f, , and .
We employed the affine-invariant ensemble sampler, known as the single stretch move algorithm, for MCMC, which underlies the widely used
emcee package and was originally introduced by [
29]. This algorithm significantly outperforms standard Metropolis–Hastings (M–H) methods by producing independent samples with much shorter autocorrelation times [
30].
2.2. Light Curve Solution of Four Target Systems
The first light curve modeling of four target systems was conducted in contact mode, based on the TESS-observed light curve shapes, catalog classifications, and the systems’ short orbital periods. The gravity-darkening coefficient (), the bolometric albedo (), the stellar atmosphere model, and limb-darkening coefficients were applied according to the assumptions of the BSN application.
The initial effective temperature (T) used in the analysis was taken from the Gaia DR3 database. Based on the depth of the minima in the light curves, the hotter component was identified, and the Gaia DR3 temperature was adopted for this star. The initial effective temperature of the cooler star was estimated from the depth difference between the primary and secondary minima in the light curves.
The analysis indicates that TIC 406453269 and TIC 71743300 exhibit noticeable asymmetries in the maxima of their light curves. This phenomenon, commonly known as the O’Connell effect [
31,
32], is typically attributed to magnetic activity on the stellar surfaces that leads to the formation of starspots. To account for these asymmetries, a cold starspot was introduced on one of the components. Although the initial modeling considered a starspot on the secondary component, placing it on the primary component resulted in a significantly improved fit. It is worth noting that the secondary stars have significantly smaller radii. Since such asymmetries may also result from transient phenomena such as flares, the full span of the TESS sector data was examined; however, no evidence of such events was found. Furthermore, in the absence of spectroscopic data and indicators of chromospheric activity, the starspot model was employed purely to enhance the photometric fit. The parameters used for the starspot model—including colatitude (Col.°), longitude (Long.°), angular radius (Radius°), and temperature ratio (
)—are provided in
Table 2.
Photometric data, along with initial parameter values, were utilized to achieve a satisfactory theoretical fit. The optimization tool within the BSN application was also employed to improve the light curve solutions. The optimization process was carried out for five primary parameters (, , q, f, i) and four starspot characteristics.
The MCMC method was then applied to refine the five estimated parameters (
i,
q,
f,
, and
) using the TESS data for each system, and the corresponding uncertainty values were determined. We employed 24 walkers and 1000 iterations for each walker for target contact binary systems.
Table 2 presents the results of the light curve analysis. For each system, the BSN application generated a corner plot based on the heat-map produced by the MCMC process (
Figure 1).
Figure 2 displays the observed and theoretical light curves, and
Figure 3 shows three-dimensional representations of the binary systems.
It is worth noting that the BSN application is capable of performing model fitting with a third light component (). The light curves of the target systems were appropriately modeled without including ; there is no indication of contaminating light from a nearby star, and no additional evidence currently supports presence. Nevertheless, these factors alone do not definitively rule out the existence of a third light contribution. A more conclusive evaluation would require a combined analysis with the O-C (Observed–Calculated) diagram, which lies beyond the scope of this work.
We examined the final results from the MCMC process of the BSN application using the Python implementation of PHOEBE version 2.4.9.
Figure 2 presents the TESS observational data alongside the synthetic light curves generated by the BSN application and PHOEBE for the target binary systems. As shown in
Figure 2, the synthetic light curves are nearly identical.
3. Estimation of Absolute Parameters
Several methods are available for estimating the absolute parameters of contact binary systems [
33,
34]. Since the study was based on photometric data from the TESS band, we employed an empirical relationship between the orbital period and semi-major axis (
) to estimate the absolute parameters.
The study by [
35] updated the
empirical relationship using data from 414 contact binary systems between the orbital periods of 0.2 and 0.7 days (Equation (
1)).
We started the estimation of absolute parameters for the target systems by applying Equation (
1), using the orbital period of each system (
Table 1) to calculate the semi-major axis
. Then, we estimated the mass (
M) of each component using the mass ratio derived from the light curve solutions in combination with Kepler’s third law, as expressed in Equations (
2) and (3).
The radius (
R) of each component was determined using the mean fractional radii (
) from
Table 2 and the
relation. The luminosity of each star was calculated using its effective temperature and radius. The absolute bolometric magnitude (
) was determined using the logarithmic relationship between luminosity and bolometric magnitude, as expressed in Equation (
4).
In Equation (
4), the absolute bolometric magnitude of the Sun is assumed to be
, based on the [
36] study. Using the calculated mass and radius values, the surface gravity (
g) of the stars was estimated on a logarithmic scale. The orbital angular momentum (
) was also calculated, using Equation (
5) from [
37],
where
q is the mass ratio,
M is the total mass of the system,
P is the orbital period, and
G is the gravitational constant. The resulting absolute parameters for the four contact binary systems are provided in
Table 3.
4. Discussion and Conclusions
(A) In this work, we introduced the BSN application, designed for modeling the light curves of contact binary stars, and addressed issues related to the speed of the MCMC process. By offering a more user-friendly and practical interface—such as simplified identification of star spot coordinates when needed—the application allows users to focus more effectively on scientific analysis. The application is currently available for the Windows operating system. Its improved MCMC speed is attributed to the engineering structure and integration of updated tools, while the underlying scientific procedures for light curve analysis remain consistent with those used in other programs. In fact, it was the substantial increase in the speed of synthetic light curve generation that led to the improved performance of the MCMC process in the application.
(B) We conducted the first light curve analysis of four contact binary systems using the BSN application. These solutions were derived based on TESS observations. Among the target systems, TIC 423750361 exhibited the highest temperature difference between its two stars at 303 K, while TIC 71743300 showed the lowest, at 22 K. Additionally, the solutions for the TIC 423750361 and TIC 71743300 systems required the inclusion of starspots to account for the asymmetry observed in the maxima of their light curves. To obtain the best-fit solution, the optimization and MCMC modules of the BSN application were utilized.
The spectral types of the stars were determined using the temperature criteria outlined by [
38,
39]. Accordingly, spectral types for
and
(
Table 2) G7-G7, F2-F5, G1-G5, and F3-F3 were attributed to the systems TIC 406453269, TIC 423750361, TIC 434222993, and TIC 71743300, respectively.
We estimated the absolute parameters using the empirical
relationship. Based on the light curve analysis and the estimated absolute parameters of the target systems, three were classified as A-subtype, while TIC 434222993 was identified as W-subtype. This conclusion is based on the classification of contact binaries introduced by [
5]. In the A-subtype, the star with greater mass has a higher effective temperature. Conversely, in the W-subtype, the component with lower mass is the hotter one (
Table 2 and
Table 3).
The fill-out factors of contact binary systems are categorized into three types: deep (
), medium (
), and shallow (
) eclipsing contact binaries [
6]. With the exception of TIC 423750361, which falls into the medium category, all other systems exhibit a deep contact degree.
(C) The positions of the stars are displayed in
Figure 4, with the Zero-Age Main Sequence (ZAMS) and the Terminal-Age Main Sequence (TAMS) lines from the [
40] study, on the Mass–Luminosity (
) and Mass–Radius (
) diagrams. Based on the light curve solutions, the estimated absolute parameters, and the positions of the components in the
and
diagrams, the more massive and hotter stars in the three target systems are located near the ZAMS, while the less massive and cooler components lie above the TAMS. In contrast, for the TIC 434222993 system, the hotter and less massive component is positioned above the TAMS line, indicating that this binary follows a distinct evolutionary path compared to the other three systems. Additionally, we selected a sample of 155 binaries from the total of 818 contact systems presented in the [
8] study. The selected systems satisfy three criteria: (1) a mass ratio less than 0.25, (2) an orbital period shorter than 0.7 days, and (3) the availability of absolute parameters, including mass, radius, and luminosity. This sample was used as a reference population to compare the target systems of our study in the
and
diagrams, following the approach of ZAMS and TAMS evolutionary tracks.
The position of the stars above the TAMS line can be explained by mass transfer processes: initially, the more massive component evolves faster and expands to fill its Roche lobe, initiating mass transfer. Over time, the initially more massive star loses mass and becomes the less massive component, while retaining its more evolved internal structure. Consequently, the currently less massive star appears more evolved, located above the TAMS line [
41]. This reversed mass ratio is a result of binary interaction rather than isolated stellar evolution. The distinct position of TIC 434222993, where the hotter and less massive component lies above the TAMS line, further suggests the influence of non-conservative mass transfer or angular momentum loss affecting the system’s evolutionary path [
42].
Figure 4 also shows the positions of the systems relative to the
theoretical fit from the study by [
43], where
refers to the hotter star in the system and
to the more massive component. The positions of these stars are consistent with the
diagram, based on their light curve solutions and estimated absolute parameters. Furthermore, the target systems’ position is depicted in the
diagram (
Figure 4), indicating that they lie within the contact binary systems region.
(D) We compared the results obtained from the BSN application with those generated by the Python implementation of PHOEBE and found them to be very similar (
Figure 2). To evaluate the degree of similarity between the synthetic light curves produced by the BSN application and the PHOEBE code, we computed the Standard Deviation (STD) of their point-by-point residuals. This statistical measure quantifies how closely the two curves match each other. The STD was calculated using the following equation:
where
represents the residuals between the two synthetic flux values at each time point, and
is the mean of the residuals. A lower value of
indicates a higher level of similarity between the two light curves. As a result, the STD values of 0.0069, 0.0065, 0.0065, and 0.0082 were obtained for the systems TIC 406453269, TIC 423750361, TIC 434222993, and TIC 71743300, respectively, for the 100 computational phases. These low STD values demonstrate that the synthetic light curves generated by the two programs exhibit minimal deviations and are in strong numerical agreement. Since the BSN application and PHOEBE adopt different approaches to modeling the geometric structure of binary systems, slight differences in the resulting synthetic light curves are to be expected. PHOEBE employs a simplified spot model based on the [
11] method to define surface elements, whereas the BSN application calculates the three-dimensional shapes of the stars using the method described by [
21]. In addition, both PHOEBE and the BSN application utilize the
emcee package for performing MCMC computations. However, due to the BSN application’s development and implementation in modern .NET technologies, it achieves fast MCMC [
13].
(E) To compare the execution speed of the MCMC-based light curve modeling in the BSN application with that of the Python-based PHOEBE code (version 2.4.9), we ensured that all experimental conditions and parameters were kept identical across both platforms. The tests were conducted on several typical consumer-grade computers, all of which yielded almost consistent results. To provide a quantitative and reproducible comparison, we present one representative test case in detail. In this setup, the number of parameters was identical for both programs, and the algorithms were executed on the same dataset, targeting the same four systems under study. In the MCMC algorithm, it is necessary to perform theoretical light curve modeling a number of times equal to the product of the number of iterations and the number of walkers. Since both PHOEBE and BSN use a similar algorithm for MCMC sampling, the difference in MCMC speed between the two mainly arises from the faster theoretical light curve modeling in the BSN application. A computational phase of 40 was selected for both implementations, and although the role of reflection in contact-based systems is typically minimal, it was included in both programs to ensure consistency. The computer used featured an Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz, operating at 1498 MHz, with four physical cores and eight logical processors. The results showed that the BSN application executed the light curve modeling in just 0.2 s, whereas PHOEBE required 8 s for the same task, indicating that BSN was over 40 times faster in this test. Notably, in analyses where reflection effects are excluded, the BSN application achieved an approximately 100-fold increase in the speed of synthetic light curve generation compared to PHOEBE. These findings underscore the significant performance advantage of the BSN application in executing MCMC under controlled, equivalent conditions.