Introduction

Skin cancers, including cutaneous melanoma and keratinocyte carcinomas, such as basal cell carcinoma (BCC) and squamous cell carcinoma (SCC), are considered as the most common cancer in human, especially common among fair-skinned populations (Sung et al. 2021; Perez et al. 2022). Melanoma is the most invasive cutaneous cancer and the most prone to metastasis, and it accounts for only 2% of skin cancer diagnoses but 80% of related deaths (Geller et al. 2007; Bibbins-Domingo et al. 2016; Wang et al. 2023). The rapid increases in BCC and SCC, which respectively affect over 2.8 million and 1.5 million US citizens, are responsible for a high economic burden on the health care system (Perez et al. 2022). Identification of skin cancer risk factors would facilitate an understanding of the pathogenesis and indicate directions for disease prevention and treatment (Lagacé et al. 2023).

Avoiding exposure to ultraviolet radiation (UV) in daily life is considered effective for reducing the risks of malignant melanoma (MM) and non-melanoma skin cancers (NMSCs) (Berwick et al. 2016; Kricker et al. 2017). Sunburn, resulting from overexposure to UV, is widely accepted as one of the most common potential clinical risk factors for melanoma, BCC, and SCC (Dennis et al. 2008; Khalesi et al. 2013). Sunburn, occurring most often in the early stages of life (mostly before the age of 20), is associated with a higher risk of development of melanoma in a lifetime (Dennis et al. 2008; Green et al. 2011). Several polygenic traits have been correlated with skin cancer risk (Soura and Stratigos 2019; Farré et al. 2023), but to date, any causal role of childhood sunburn remains poorly understood.

Recognition of the causal associations of childhood sunburn with MM and NMSCs may facilitate a deeper understanding of its etiology in cutaneous cancers. However, the limited ability of observational designs to explore the causality was caused by the reverse causality and potential confounders (Arsenault 2022). Mendelian randomization (MR), as an epidemiological investigation tool, could offer a new approach to infer causality based on observational designs (Skrivankova et al. 2021). Genetic variants (usually single nucleotide polymorphisms (SNPs)) independent of confounders or reverse causality, which were strongly associated with exposure were used as instrument variables (IVs) and applied to explore a causal association between exposure and outcome (Yavorska and Burgess 2017). Therefore, the purpose of this study is to determine the genetic relationships between childhood sunburn and skin cancers by conducting an MR analysis.

Materials and methods

Data sources and instrumental variables selection

The data deployed in this research were publicly available, summary-level large-scale genome-wide association studies (GWAS) datasets validated by the IEU openGWAS and GWAS catalog databases, thus, negating the need for additional ethical approval.

Exposure to childhood sunburn (including 346,955 participants, released in 2018) was obtained from the UK Biobank (UKB) database (UK-biobank ( n.d.)), as well as the datasets of skin color (456,692 participants), hair color (360,270 participants), facial ageing (423,999 participants), BMI (461,460 participants), and alcohol consumption (462346 participants) while smoking status (249,752 participants, released in 2019) (Liu et al. 2019), and vitamin D levels (496,946 participants, released in 2020) (Revez et al. 2020) were obtained from other two large GWAS studies. According to the UKB database, childhood sunburn is defined as counting data and classified through the questionnaire “Before the age of 15, how many times did you suffer sunburn that was painful for at least 2 days or caused blistering?” Similarly, facial ageing, skin color, and hair color were defined as counting data and collected through questionnaires, while BMI, alcohol consumption smoking status, and smoking status were collected as quantitative data. Variants associated with the genetic risk of ICD9/10-coded malignant melanoma (MM) and NMSC (including BCC and SCC) were obtained from the FinnGen database (FINNGEN ( n.d.)). In addition, the FinnGen GWAS dataset on melanoma in situ (MIS) and MIS stratified by site, including the face, trunk, lower limb, and upper limb were included. Control GWAS data of cancer-free participants were included for MM, NMSC, MIS, and MIS stratified by site. The information of all the outcomes was presented in the Supplementary Table (1).

Only the populations of Europeans were included to minimize confounding by ancestry. An overview flowchart of the schematic design giving details of GWAS data is shown in Supplementary Figure (1).

Summary statistics of childhood sunburn-related SNPs were designated as alternate IVs (genome-wide significance: p < 5 × 10−8; clumping algorithm: r2 = 0.001 and kb = 10000) (Ference et al. 2015). F statistics of ≥10 demonstrated a low risk of weak instrumental bias (Bowden et al. 2016b; Sanderson and Windmeijer 2016).

Statistical analysis

The following six methods were used in the univariable Mendelian randomization (UVMR) analysis. The inverse-variance weighted (IVW) method, combining Wald estimates of causality for each IV with the assumption of invalid genetic instruments, was the primary method of MR analysis, and other methods were used in a complementary manner due to wider confidence intervals (CIs) (Burgess et al. 2019; Slob and Burgess 2020). MR-Egger regression analysis (Bowden et al. 2015) quantifies pleiotropy across IVs using the slope and intercept of MR-Egger regression and offers an adjusted, robust estimate independent of IV validity. MR pleiotropy residual sum and outlier (MR-PRESSO) (Verbanck et al. 2018) method identifies and adjusts for distorted outliers that contribute to significant pleiotropy and heterogeneity, thereby providing a corrected causal effect estimate. Weighted-median (Bowden et al. 2016a) method yields consistent valid inferences, even with over 50% valid instrumental variables. Bayesian weighted Mendelian randomization (BWMR) (Zhao et al. 2020) obtains reliable causal inferences by correcting for pleiotropy violations and polygenic weak effect uncertainties within a Bayesian weighting framework. MR-Robust Adjusted Profile Score (MRAPS) (Zhao et al. 2018) increases statistical power and offers robust estimates when weak instrumental bias and horizontal pleiotropy are significant.

Multivariable MR (MVMR) analysis (Burgess and Thompson 2015; Rees et al. 2017) was used to supplement UVMR and to jointly detect the causal effects of multiple risk factors. Skin color, hair color, facial ageing, vitamin D levels, (Revez et al. 2020) BMI, alcohol consumption, and smoking status (Liu et al. 2019) were all taken into consideration, and the MVMR was used to evaluate the independent effects of childhood sunburn. A two-step mediation MR analysis was used for exposures and mediators significantly associated with outcome risk in the MVMR, where a mediating effect was found, and the proportion was calculated (Carter et al. 2021).

A p-value of statistical significance after Bonferroni correction was 0.0083 (α = 0.05/6), and p-values between 0.05 and 0.0083 were considered to be suggestive of significance for UVMR results. Predicted genetic associations of childhood sunburn with skin cancer risk are reported per one SD unit increase, and the effect size is presented as odds ratios (OR) with their corresponding 95% confidence intervals (CI). All analyses were performed using TwoSampleMR (version 0.5.6) (Hemani et al. 2018), MR-PRESSO (version 1.0) (Verbanck et al. 2018), and Mendelian randomization (version 0.5.0) (Yavorska and Burgess 2017) packages in R software (version 4.1.2, R Foundation for Statistical Computing, Vienna, Austria).

Sensitivity analysis

Heterogeneity due to the invalidity of IVs was measured by Cochran’s Q-statistic. A p-value of the Q-statistic < 0.05 was considered to indicate significant heterogeneity (Bowden et al. 2018), and then a random-effect IVW model was applied. The MR-Egger and MR-PRESSO methods were deployed to test the violation of the second IV assumption, prompted by directional pleiotropy. To identify unstable SNPs that individually exerted a disproportionately large influence on the results under the Bonferroni corrected threshold, a leave-one-out analysis was conducted. These SNPs would be omitted, and the results would be reassessed accordingly (Burgess and Thompson 2017). Additionally, the MR method of Causal Analysis Using Summary Effect (CAUSE) was applied to verify the stability of the results. Those associations not paralleling CAUSE were likely to have a false-positive association due to incoherent pleiotropy (Morrison et al. 2020).

Results

Data regarding SNPs relating to childhood sunburn occasions exposure are given in Supplemental Table (2-9). With all the F statistics >10, there indicated no potential weak IVs. Details of sensitivity analysis and outliers are shown in Tables 1 and 2.

Table 1 Sensitivity analysis
Table 2 Sensitivity analysis (controls excluding all cancers)

Results of univariable Mendelian randomization

A causal relationship showing suggestive of significance with no pleiotropy or heterogeneity was shown between childhood sunburn and MM (IVW-OR = 4.74; 95 % CI: 1.31–17.19; p = 1.79E-02) and MM with all other cancers excluded (IVW-OR = 5.38; 95% CI: 1.47–19.74; p = 1.12E-02). A significant association was also found between genetically determined childhood sunburn and MIS (IVW-OR = 4.02; 95% CI: 2.00–8.08; p = 9.40E-05), MIS with all other cancers excluded (IVW-OR = 4.64; 95% CI: 2.26–9.52; p = 2.87E-05), MIS of face (IVW-OR = 18.28; 95% CI: 5.28–63.35; p = 4.59E-06), MIS of face with all other cancers excluded (IVW-OR = 21.51; 95% CI: 6.19–74.77; p = 1.39E-06), MIS of trunk (IVW-OR = 7.05; 95% CI: 2.06–24.13; p = 1.88E-03), and MIS of trunk with all other cancers excluded (IVW-OR = 8.15; 95% CI: 2.35–28.29; p = 9.46E-04). No genetic association was found between childhood sunburn and MIS of the upper or lower limbs. NMSCs with significant pleiotropy (p = 1.61E-03) and heterogeneity (p = 2.61E-04) showed a significant causal relationship with childhood sunburn (MR-Egger OR = 8.16; 95% CI: 6.07–10.99; p = 1.53E-20), and similar trends were found for NMSC with all other cancers excluded (pfor heterogeneity = 1.62E-03; pfor pleiotropy = 1.27E-02; MR-Egger OR = 5.87; 95% CI:3.86–8.93; p = 1.42E-11). A higher probability of genetically predicted childhood sunburn was associated with a higher risk of SCC (IVW-OR = 7.44; 95% CI: 5.09–10.87; p = 3.07E-25) and BCC (pfor heterogeneity = 4.27E-07; IVW-random effect OR = 3.76; 95% CI: 2.96–4.77; p = 2.19E-08).

The UVMR forest plots of the causal estimates of childhood sunburn on skin carcinoma are presented in Figs. 1 and 2. Overall, the consistency of effect sizes across different methods indicates that confidence may be put in the results of each method. The corresponding scatter plots for the UVMR analysis are shown in Supplementary Figure (2-17). The leave-one-out stability tests (Supplementary Figures 18-33) demonstrate no potentially influential SNPs affecting the causal associations.

Fig. 1
figure 1

Forest plots to visualize causal effects of childhood sunburn on the skin carcinoma risk. Presented odds ratios (ORs) and confidence intervals (CIs) correspond to the effects of childhood sunburn on malignant melanoma and non-malignant skin cancer. The results of univariable Mendelian randomization (MR) analyses using various analysis methods (IVW, MR-RAPS, MR-Egger, weighed-median estimator, BWMR, MRAPS, MR-PRESSO) are presented for comparison. Total single nucleotide polymorphism (SNP) indicates the number of genetic variants used as instruments for MR analysis. IVW, inverse-variance weighted; BWMR, Bayesian weighted Mendelian randomization; MRAPS, MR-Robust Adjusted Profile Score MR, Mendelian randomization; OR, odds ratios; CI; confidence intervals; SNP, single nucleotide polymorphism

Fig. 2
figure 2

Forest plots to visualize causal effects of childhood sunburn on the skin carcinoma (controls excluding all cancers) risk. Presented odds ratios (ORs) and confidence intervals (CIs) correspond to the effects of childhood sunburn on malignant melanoma and non-malignant skin cancer. The results of univariable Mendelian randomization (MR) analyses using various analysis methods (IVW, MR-RAPS, MR-Egger, weighed-median estimator, BWMR, MRAPS, MR-PRESSO) are presented for comparison. Total single nucleotide polymorphism (SNP) indicates the number of genetic variants used as instruments for MR analysis. IVW, inverse-variance weighted; BWMR, Bayesian weighted Mendelian randomization; MRAPS, MR-Robust Adjusted Profile Score MR, Mendelian randomization; OR, odds ratios; CI; confidence intervals; SNP, single nucleotide polymorphism

CAUSE results identified the associations of childhood sunburn with MM (ORCAUSE = 5.16; 95% CI: 3.71–7.17; p = 2.80E-04), MM with all other cancers excluded (ORCAUSE = 5.58; 95% CI: 4.01–7.77; p = 3.90E-04), MIS (ORCAUSE = 4.10; 95% CI: 3.46–4.90; p = 3.70E-04), MIS with all other cancers excluded (ORCAUSE = 4.85; 95% CI: 4.10–5.81; p = 3.50E-04), MIS of face (ORCAUSE =2.75; 95% CI: 2.03-3.71; p =1.10E-02), MIS of face with all other cancers excluded (ORCAUSE =3.06; 95% CI: 2.29–4.10; p =5.90E-04), MIS of trunk (ORCAUSE = 7.54; 95% CI: 5.81–9.78; p = 1.70E-10), and MIS of trunk with all other cancers excluded (ORCAUSE = 8.85; 95% CI: 6.82–11.59; p =4.30E-12). For CAUSE results of NMSCs, similar trends were shown between childhood sunburn and NMSC (ORCAUSE = 1.77; 95% CI: 1.63–1.93; p = 1.20E-04), NMSC with all other cancers excluded (ORCAUSE = 1.86; 95% CI: 1.70–2.05; p =4.60E-03), as well as BCC (ORCAUSE = 2.72; 95% CI: 2.27–3.29; p = 1.30E-02) and SCC (ORCAUSE = 3.46; 95% CI: 2.77–4.35; p = 3.70E-02) (Supplementary Figure 34-35).

Results from multivariable and mediation Mendelian randomization

After adjustment for the skin and hair color, facial ageing, vitamin D levels, BMI, alcohol consumption, and smoking status, a higher probability of genetically predicted childhood sunburn showed an independent association with NMSC (MREgger-ORMVMR = 7.69; 95% CI: 4.64–12.75; p = .000), SCC (MREgger-ORMVMR = 13.49; 95% CI: 5.68–32.02; p = .000), BCC (MREgger-ORMVMR = 6.55; 95% CI: 4.05–10.62; p = .000), NMSC with all other cancers excluded (MREgger-ORMVMR = 6.96; 95% CI: 4.13–11.72; p = .000), and MIS with all other cancers excluded (IVW-ORMVMR = 6.43; 95% CI: 1.59 to 26.01; p = 9.00E-03).

Significant associations were found in childhood sunburn on MIS (IVW-ORMVMR = 5.90; 95% CI: 1.48 to 23.59; p = 1.20E-02), MIS of face (IVW-ORMVMR = 18.28 95% CI: 1.02–328.67; p = 4.90E-02), MIS of trunk (IVW-ORMVMR = 28.11; 95% CI: 1.00–789.91; p = 5.00E-02), MIS of trunk with all other cancers excluded (IVW-ORMVMR = 28.11; 95% CI: 1.00–789.91; p = 5.00E-02) (Figs. 3 and 4). Mediation analysis showed no significant mediation effect (Supplementary Figure 36-37).

Fig. 3
figure 3

Multivariable Mendelian randomization (MVMR) analysis of childhood sunburn with skin carcinoma risk-adjusted for confounding traits (skin color, hair color, facial ageing, serum vitamin D levels, body mass index, smoking, and alcohol intake). Presented odds ratios (ORs) and confidence intervals (CIs) correspond to the effects of childhood sunburn with skin carcinoma risk. MVMR, multivariable mendelian randomization; OR, odds ratios; CI; confidence intervals

Fig. 4
figure 4

Multivariable mendelian randomization (MVMR) analysis of childhood sunburn with skin carcinoma risk (controls excluding all cancers) adjusted for confounding traits (skin color, hair color, facial ageing, serum vitamin D levels, body mass index, smoking, and alcohol intake). Presented odds ratios (ORs) and confidence intervals (CIs) correspond to the effects of childhood sunburn with skin carcinoma risk (controls excluding all cancers). MVMR, multivariable mendelian randomization; OR, odds ratios; CI; confidence intervals

Discussion

A large-scale comprehensive MR analysis was performed to estimate potential causal associations of childhood sunburn with MM and NMSC, and significant causal associations of childhood sunburn with risk of MM, MIS, MIS of face and trunk, as well as NMSC, BCC, and SCC were indicated in univariable analysis. After the adjustment for the skin and hair color, facial ageing, vitamin D levels, BMI, alcohol consumption, and smoking status, there were independent causal associations of childhood sunburn with MIS (overall, trunk, and face), and NMSC (overall, BCC, and SCC).

Some studies investigating childhood sunburns have found increased skin cancer risks with similar effect estimates (range: melanoma, 1.63–3.20; SCC,1.55–2.32) (Kennedy et al. 2003; Gandini et al. 2005; Dennis et al. 2008; de Vries et al. 2012; Savoye et al. 2018). Much heterogeneity has also been observed during previous observational studies, making an investigation of a possible causal association between childhood sunburn and skin cancer necessary (Ghiasvand et al. 2019; Olsen et al. 2020). Sunburn was identified as associated with melanoma risk at all sites with ORs for sunburn in childhood of 1.5 (95% CI: 1.3–1.7) for melanoma of the trunk, 1.5 (95% CI: 1.3–1.7) for the limbs, and 1.4 (95% CI: 1.1–1.7) for the head and neck (Chang et al. 2009). A previous case-control study concluded that sunburn produced a 0.96-fold increase in BCC risk and a 1.02-fold increase in SCC risk (Iannacone et al. 2012). However, Kennedy et al. (2003) found sunburn at ages 0–19 years associated with higher BCC risk but not risk of SCC or melanoma. However, these studies may not have adequately controlled for confounders even when a multivariate regression model was employed. The current findings strengthen the causal genetic association and indicate the possible spectrum of the effects of childhood sunburn, spanning MM, MIS, and NMSCs.

Our results also showed that both skin and non-skin cancers were more commonly seen in severe sunburn patients. Findings in our studies supported that childhood is a susceptible phase for harm from overexposure to the sun and might be a driving factor for MM and NMSC (including BCC and SCC) risk in the present analysis. Besides, the current site-specific analysis of MIS produced an apparent causal association of childhood sunburn with MIS of the face and trunk. The “two pathways to melanoma” hypothesis (Ghiasvand et al. 2019) indicated that more continuous sun exposure might predispose to the development of melanoma on the head and neck, whereas intermittent exposure might predispose to melanoma on the trunk and limbs. Sunburn involves inflammatory reactions, often in response to acute intermittent skin exposure to intense solar radiation (Gandini et al. 2005), which may account for site-specific associations. Further GWAS data relating to specific sites, such as the head and neck, is required to allow a more definite association of childhood sunburn with the risk of site-specific melanoma.

While current evidence supports UV exposure as an important risk factor for cutaneous MM, the exact role of sunburn in the induction of MM has not been fully understood. The development of skin cancer was considered to be directly related to overexposure to UV radiation (Vienneau et al. 2017). Previous evidence showed that epidermal cells might activate phosphoinositide-3-kinase/protein kinase B (PI3K/Akt) and mitogen-activated protein kinase (MAPK) signaling pathways with stimulation of UV, which phosphorylates downstream substrated and could ultimately cause skin carcinoma (Chaiprasongsuk and Panich 2022). The possible etiologic connection of melanoma to solar UV exposure has been contested. It was widely accepted that the mechanisms underlying UV-mediated skin cancer are thought to be most likely related to DNA damage to cutaneous cells. Other biological effects of UV irradiation may contribute to the development of skin cancer through effects on such defenses as pigmentation and the immune response (Wei et al. 2003; Hodis et al. 2012; de Semir et al. 2021). Ultraviolet-radiation-induced inflammation was also identified to promote angiotropism and metastasis in melanoma (Bald et al. 2014). Furthermore, by establishing animal models that mimicked mild sunburn in humans, Viros et al. (2014) found that mutant Trp53, an accepted UVR target in human non-melanoma skin cancer, could accelerate BRAF (V600E)-driven melanomagenesis and that TP53 mutations are linked to evidence of UVR-induced DNA damage in human melanoma, which provided a possible molecular insight into how UVR accelerates melanomagenesis. CD1d, a major histocompatibility complex class 1-like molecule that regulates the function and development of natural killer T (NKT) cells, in promoting UVB-induced cutaneous tissue injury and inflammation was also identified, which suggested that sunburn and NMSC etiologies are immunologically linked (Ryser et al. 2014).

The genetic association of childhood sunburns with skin cancers was identified, and the findings provide supporting evidence that avoiding sunburns, in particular in childhood, is crucial for MM and NMSC prevention. Moreover, taking the potential confounding factors (such as the skin and hair color, facial ageing, vitamin D levels, BMI, alcohol consumption, and smoking status) into consideration, the genetic predisposition to childhood sunburn was still an independent risk for MIS (overall, trunk, and face) and NMSC (overall, BCC, and SCC). These findings appear to have important preventive implications. In light of current results, childhood was found susceptible phase with regard to sunburns and subsequent risk of these skin cancers, supporting evidence that avoiding sunburns throughout childhood, is crucial. Since it seems reasonable that the skin of the unprotected child is more susceptible to UV radiation than the skin of an adult, more attention should be paid to some sun exposure events, such as sunbathing vacations, as well as starting sun protection early in life. Childhood sunburn history could also be taken into consideration for clinical MM and NMSC detection and diagnosis. There were several notable strengths in this study. Firstly, to the best of our knowledge, the current is the first evaluation of causal relationships between childhood sunburn and skin cancer. Secondly, the comprehensive MR approach was less likely to be affected by the potential confounders and reverse causality compared to traditional observational designs, and the findings were confirmed in various sensitivity analyses. Thirdly, the causal relationships between childhood sunburn and specific body sites of MIS were investigated in this analysis, which could contribute to identifying the potential site sensitivity more precisely for MIS prevention guidance. However, we acknowledge some limitations. The only MIS diagnoses divided by body site that are currently available are those from the FinnGen database. Differences between site-specific skin cancers are an essential component of analyses, such as the present one, since distinct mechanisms may be operating at different sites. Besides, further GWAS data relating to specific sites, such as the eyes and ears, is required to allow a more definite association of childhood sunburn with the risk of site-specific MM. Secondly, possible effects of other unmeasured confounders cannot be completely ruled out. For example, since some of the exposure and covariates used in this study were collected through questionnaires, measurement bias may affect the results to some extent. Due to the lack of raw data, we were unable to adjust for possible measurement bias. We will further probe the influence of measure bias on our findings using eligible individual-level data in the future if it is available. Thirdly, GWAS data was limited to patients of European descent, making extrapolation to other populations difficult.

Conclusion

In conclusion, this MR analysis demonstrated a causal relationship between childhood sunburn and the risk of both MM and NMSC, including BCC and SCC. A genetically predicted higher susceptibility to childhood sunburn contributed to MIS risk, especially that of the face and trunk. The current findings emphasize the importance of avoiding childhood sunburn and ensuring sun protection early in life.