restructure of discussion

This commit is contained in:
2025-08-27 16:42:04 +02:00
parent ba37b06f00
commit a1b2662b8a
3 changed files with 143 additions and 39 deletions
+134 -38
View File
@@ -4,13 +4,99 @@
\section{Discussion}\label{sec:discussion}
\paragraph{Limitations.}
This study set out to evaluate the predictive value of body temperature for ovulation and fertility,
to assess the performance of different model architectures across use cases,
and to compare machine learning models with rule-based baselines.
Below we discuss the findings in relation to these objectives, their implications, and limitations.
\subsection{Predictive Value of Body Temperature}
Our results confirm that body core temperature carries meaningful predictive value for ovulation and fertility,
particularly in regular cycles with clear pre-ovulatory dips.
In such cases, fertility-probability curves aligned closely with the ground truth,
demonstrating that models can reliably exploit this physiological marker.
However, anomalies in the signal—such as irregular spikes or absent dips—frequently led to erroneous predictions.
This suggests that the models strongly rely on short-term temperature fluctuations without
distinguishing between ovulation-related and unrelated changes.
The irregular-versus-regular cycle analysis reinforces this interpretation:
prediction accuracy was consistently higher in regular cycles, indicating that models leverage cyclical regularity in
addition to absolute thermal changes.
Taken together, these findings highlight both the utility and the limitations of body temperature as a single biomarker.
While it provides a strong signal in favorable cases, its variability across users and cycles limits robustness in real-world applications.
Additional biomarkers or contextual information are likely required to disambiguate genuine ovulatory patterns from noise.
%[continue here: bring in your figure-based examples of temperature drops, anomalies, and unclear cases, with interpretation rather than description.]
\subsection{Model Architectures and Use-Case Performance}
Across architectures, LSTMs consistently outperformed both Transformers and convolutional models in the fertility-probability task.
This was somewhat unexpected given the recent dominance of Transformer-based approaches in sequence modeling.
The advantage of LSTMs likely stems from their strong inductive bias for sequential dependencies
and the relatively small dataset size, which may limit the benefits of more parameter-heavy architectures.
Convolutional models, by contrast, performed competitively on medium-length inputs,
suggesting that localized temporal filters can capture useful features when the history is limited.
However, they struggled with longer input sequences, where recurrent and attention-based models excelled.
Resolution also proved important: medium-resolution inputs produced the strongest results,
suggesting a balance between preserving relevant detail and avoiding noise.
Too fine a resolution may amplify random fluctuations, while too coarse a resolution may obscure important cues.
In practical use-case simulations, thresholding had a decisive effect.
For contraception, a low threshold produced Pearl-Index equivalents in the range of 45,
which is competitive with or better than common contraceptive methods under typical use.
These numbers, however, must be treated as theoretical projections, since real-world outcomes depend on user behavior,
adherence, and additional protective measures.
For pregnancy planning, results were less directly comparable, reflecting the multifactorial nature of conception.
Nonetheless, the analysis illustrates how probabilistic outputs could be adapted to individual risk preferences,
highlighting the flexibility of machine learning approaches over fixed rules.
%[continue here: expand with more detail on threshold effects, how different models fared in contraception vs. pregnancy contexts, and the implications for user-facing tools.]
\subsection{Comparison to Rule-Based Baselines}
Compared with simple heuristic baselines, all machine learning models demonstrated superior predictive performance,
particularly in irregular cycles where rule-based approaches break down.
This highlights the advantage of data-driven methods, which can learn subtle patterns and adapt to user-specific variability
that static rules cannot capture.
Nevertheless, rule-based methods retain value for their simplicity and interpretability,
and could complement machine learning models in hybrid approaches where transparency is essential.
%[continue here: connect this explicitly to natural family planning methods in the literature, and comment on where ML truly adds value.]
\subsection{Limitations}
Several limitations constrain interpretation.
First, results were reported on aggregate test sets without uncertainty quantification;
per-user predictions were not retained, preventing bootstrap confidence intervals or paired statistical testing.
Second, labels were generated by a retrospective algorithm trained on expert annotations.
Any inaccuracies in this algorithm propagate directly into the training data and may bias model learning.
Third, reliance on temperature alone leaves the models vulnerable to anomalies caused by illness, lifestyle, or measurement error.
Finally, resource constraints limited the scope of hyperparameter optimization and the exploration of more advanced architectures.
%[continue here: add dataset-specific limitations such as age range, long-cycle imbalance, and lack of prospective evaluation.]
\subsection{Future Work}
Future extensions of this work should pursue several directions.
Incorporating additional user-entered markers—such as bleeding, stress, illness,
or intercourse—may provide critical context to disambiguate temperature anomalies.
Alternative target formulations, such as predicting the day of ovulation or the time-to-ovulation,
could reduce class imbalance and better reflect clinical needs.
Training separate models for fertility and ovulation-over tasks may also improve performance by reducing task interference.
From a methodological perspective, exploring architectures tailored for time-series forecasting—such as
TimeXer or MAMBA—alongside principled hyperparameter optimization techniques (e.g., Bayesian optimization, NAS) could yield further gains.
Most importantly, future studies should evaluate these approaches prospectively,
with clinically validated ovulation labels and diverse populations,
to establish their real-world utility in natural family planning and contraception.
%[continue here: add your own vision for clinical applications, e.g. integration into fertility apps, medical oversight, or regulatory implications.]
%\section{Discussion}\label{sec:discussion}
The model selection study based on the input window length, input resolution and model complexity parameters has shown,
longer input windows and higher complexity seem to be favourable for the purposes of this study.
The convolutional models show better performance for medium length input windows, which might be a limitation
of the model or its convolutional layers.
It thus seems like, the more historical measurements are available, the better
The LSTM and Transformer models also work better with medium resolution input, which suggests a sweet-spot of information.
Too small a resolution might omit important information, while the opposite might introduce too much noise,
that the models in the current configuration cannot handle.
@@ -27,6 +113,16 @@ on longer input windows.
Additional work might be necessary to investigate, whether the convolutional models need additional complexity
or an optimized convolutional pre-processing to deal with longer input sequences.
Overall, the standard LSTM showed the best performance on the fertility-probability target.
This came to our surprise, as we expected the Transformer based architecture to outperform the LSTM based architectures.
The convolutional Transformer had a lower error rate than the convolutional LSTM, which aligned with our expectations.
But it is hard to interpret the results to thoroughly, as they have been taken on single measurement basis.
For a further evaluation, each model should be evaluated multiple times to get statistically more significant and comparable results.
The resource and time limitations of this study did not permit this.
We will be focusing mainly on the predictive quality of the fertility-probability target,
as most selections and evaluations were based on it and the fertility-probability contains the most relevant information
for potential users of the predictions.
All prediction curve in this section have been generated with the best model selected in section~\ref{subsubsec:results_best_model_config_selection},
i.e., the LSTM model.
@@ -66,13 +162,10 @@ to be able to differentiate between ovulation-related and unrelated temperature
This also points to a potential flaw in our workflow.
We don't yet have clinically accurate labels for the cycles that were used for the training of our models.
In fact, we cannot guarantee an ovulation, not even for the cycles with a clear temperature rise after the apparent ovulation.
It is not uncommon for women to have a clear temperature rise without an ovulation and vice versa,
to have an ovulation but no clear temperature rise.
The identified temperature drop and the fertility that seems to come with it could be a base for further research
with more accurate ovulation labeling.
It might be an indicator for a successful upcoming ovulation.
\begin{figure}[htbp]
\centering
\includegraphics[width=1.0\textwidth]{resources/figures/discussion/temperature_drop_fertility}
@@ -129,42 +222,23 @@ Further research is necessary to find more reliable results.
The pregnancy use case is harder to contextualize, as there are no comparable results for other methods,
and the actual pregnancy probability is subject to many more factors, we could not take into consideration for this study.
ion''
Overall, we conclude, that the body core temperature itself might be a sufficient indicator for pre-ovulation fertility.
However, this marker by itself is prone to anomalies in the data.
When anomalies intercept with the fertile phase and result in unusual temperature shifts,
none of our models were able to avoid erroneous predictions, and we think it will be nearly impossible to do so
just based on the temperature data.
Measuring and correlating other biomarkers or context information could turn out highly effective in detecting such
anomalies and improving the predictive quality of the temperature measurements.
The biological mechanisms that influence body core temperature are highly complex and not yet fully understood.
Many factors can affect it and the resulting temperature curve.
We were not yet able to isolate the ovulation-related temperature fluctuations over time reliably,
but in many cases, they provide highly useful information for NFP or natural contraception.
%
%In general, we expect the transformer based model to outperform the LSTM basd models, as they have proven to be
%a more effective for time-series analysis tasks especially for longer sequences.
%We also expect to find similar performance on irregular cycles compared to regular cycles,
%if the temperature is a reliable predictive indicator for the ovulation.
%If the performance on irregular cycles is significantly worse, and the predicted fertility curves see no upward trend around
%the actual fertility curves, we have no reason to believe that there is any predictive value in the temperature as is.
%
%Results do not show any clear indication that the temperature contains any patterns useful for the prediction of
%fertility or the ovulation.
% regarding the different performance increases on historical contexts: It might have been useful to take a closer look
% at the characteristics / differences for users with many cycles available
% talk about whether bbt / temperature can be used for such a task, discuss bbt doubt papers
% While previous work has argued against the predictive value of BBT~\cite{some_author_2010}, our findings suggest otherwise.
%Using continuous core body temperature data from 40,000 cycles, we demonstrate that temperature-based models can reliably detect ovulatory patterns, even in the presence of physiological noise or mild irregularity.
% explain the need for further medical interpretation of the results of either model
% regular vs irregular cycles: mean baselines perform well on regular cycles as expected, as they get closer to the regularities with every past cycle
% transformer can deal with more data and does also perform better for some cases
% lstm outperforms
%The findings do not show a clear indication, that the temperature can be used as a predictive target.
%The results of irregular cycles should be significantly better to infer, that there are usable patters in the
%temperature readings before the ovulation or the fertile days.
%
%For a practical use case of any model's prediction, a medical interpretation should be performed.
%While the results themselves can give a clear indication of both the fertility probability and whether the ovulation
%of a given cycle is already over for any given day, there a variety of external factors that should be taken into
%consideration for a direct output to the user.
For a practical use case of any model's prediction, a medical interpretation should be performed.
While the results themselves can give a clear indication of both the fertility probability and whether the ovulation
of a given cycle is already over for any given day, there a variety of external factors that should be taken into
consideration for a direct output to the user.
\subsection{Limitations}\label{subsec:limiations}
This analysis reports aggregate test-set metrics without uncertainty quantification.
@@ -191,6 +265,11 @@ which will make it harder for the models to learn useful information.
Alternative target formulations could also be explored to better reflect the structure of the fertile window and ovulation.
For example, instead of predicting a daily fertility probability, models could aim to identify the absolute day of ovulation,
or estimate the time until the next (or since the last) ovulation event.
Additionally, multiple models could be trained individually for each target, to avoid confusing the models
on two different prediction tasks.
While the fertility-probability and the timing of the ovulation have an inherent causal relationship,
there might be anomalies in the data that confuse one or both targets, and independent predictions might perform better.
As noted in Section~\ref{subsubsec:data_labeling}, ovulation labels were assigned using a
retrospective algorithm trained on expert-annotated data.
@@ -208,5 +287,22 @@ Future work may incorporate more advanced hyperparameter optimization techniques
such as Bayesian Optimization, Genetic Algorithms, or Neural Architecture Search (NAS),
to better explore the joint parameter space in a more efficient and principled manner.
% talk about whether bbt / temperature can be used for such a task, discuss bbt doubt papers
% While previous work has argued against the predictive value of BBT~\cite{some_author_2010}, our findings suggest otherwise.
%Using continuous core body temperature data from 40,000 cycles, we demonstrate that temperature-based models can reliably detect ovulatory patterns, even in the presence of physiological noise or mild irregularity.
% explain the need for further medical interpretation of the results of either model
% regular vs irregular cycles: mean baselines perform well on regular cycles as expected, as they get closer to the regularities with every past cycle
% transformer can deal with more data and does also perform better for some cases
% lstm outperforms
%The findings do not show a clear indication, that the temperature can be used as a predictive target.
%The results of irregular cycles should be significantly better to infer, that there are usable patters in the
%temperature readings before the ovulation or the fertile days.
%
% add improvements in experiments / comparison
% add better decision base
+7
View File
@@ -246,6 +246,13 @@ The model outputs represent data-driven estimates and do not constitute medical
All features were normalized based on their empirical distributions.
A \textit{standard scaler} was applied to approximately normal features without outliers,
a \textit{robust scaler} was used for distributions with outliers, and a \textit{MinMax scaler} was used for all others.
Different Scalers were used for the train, validation and test sets to avoid data leakage.
For the final data matrix, all features were stacked per timestep.
The static features were repeated for each timestep.
We are aware of possible inefficiencies here.
A side channel for static features might improve predictive efficiency and potential quality, but
this was left out to keep the interfaces the same for compatibility purposes between all tested models
\subsubsection{Time-Series Input Representation}
\label{subsubsec:time_series_input_representation}
+2 -1
View File
@@ -578,7 +578,8 @@ as indicated by the wider deviations from the trend lines.
We evaluated the use-case scenarios described in Section~\ref{subsubsec:practical_use_cases} using the algorithms
in Section~\ref{subsubsec:use_case_evaluation} across multiple fertility thresholds.
Each evaluation used a test set of 100 users (100 user-years) and was repeated for 200 iterations;
Each evaluation used the same test set of 100 users (100 user-years) and was repeated for 200 iterations
to get statistically more meaningful results.
we report means and 95\% confidence intervals (CIs).
\subsubsection{Contraception Use-Case Results}\label{subsubsec:use_case_contraception_results}