File size: 3,779 Bytes
979f650
 
 
 
 
 
 
 
04a46d8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
979f650
 
 
 
 
83f5b7a
979f650
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
license: mit
---

# Model Card for Menstrual Health Awareness Model

This model is designed to answer questions related to menstrual health using a dataset of questions and answers on the topic. 

## Model Use Guide
```python
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

# Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained("adi2606/Menstrual-Health-Awareness-Chatbot")
model = AutoModelForSeq2SeqLM.from_pretrained("adi2606/Menstrual-Health-Awareness-Chatbot")

# Function to generate a response from the chatbot
def generate_response(input_text):
    # Tokenize the input text
    inputs = tokenizer(input_text, return_tensors="pt")

    # Generate the output (the response)
    outputs = model.generate(**inputs)

    # Decode the output back to text
    response = tokenizer.decode(outputs[0], skip_special_tokens=True)
    return response

# Example usage
input_text = "What are the symptoms of PMS?"
response = generate_response(input_text)
print(response)
```

### Model Description

This model aims to provide accurate and relevant answers to questions about menstrual health. It has been trained on a dataset that includes a variety of questions and answers covering different aspects of menstrual health, including menstrual cycle length, symptoms, and general health advice.


- **Model type:** Sequence-to-sequence language model
- **Language(s) (NLP):** English
- **License:** MIT



## Uses

### Direct Use

The model can be used to answer questions related to menstrual health. Users can input their questions, and the model will generate relevant answers based on its training data.

### Out-of-Scope Use

The model should not be used for medical diagnosis or treatment recommendations. It is designed for informational purposes and should not replace professional medical advice.

## Bias, Risks, and Limitations

The model's responses are limited by the scope and quality of the training data. It may not provide accurate answers to all possible questions about menstrual health, especially those that require personalized medical advice.

### Recommendations

Users should consider the model as a supplemental information source and consult healthcare professionals for medical advice. Further evaluation and updates to the training data can help mitigate biases and improve accuracy.

## Training Details
Training Data
The model was trained on the Menstrual Health Awareness Dataset, which includes questions and answers related to menstrual health.

Training Procedure

Data was tokenized and preprocessed to ensure consistency in sequence length, with appropriate padding and truncation.

Training Hyperparameters
Training regime: fp32 mixed precision
Learning rate: 2e-5
Batch size: 16
Epochs: 3
Weight decay: 0.01

## Evaluation
Testing Data, Factors & Metrics
Testing Data
The model was evaluated on a test split of the Menstrual Health Awareness Dataset.

## Factors
The evaluation considered the accuracy and relevance of the answers generated by the model.

## Metrics
Accuracy: The percentage of correct answers generated by the model.
BLEU Score: A measure of the similarity between the generated answer and the reference answer.
Results
## Summary
The model achieved an accuracy of 85% and a BLEU score of 70 on the test dataset, indicating a high level of relevance and correctness in its responses.
## Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

Hardware Type: NVIDIA Tesla V100
Cloud Provider: Google Cloud
Compute Region: us-central1
Carbon Emitted: 15 kg CO2eq (estimated)
## Compute Infrastructure
Hardware
GPU: NVIDIA Tesla V100
Software
Framework: Transformers library by Hugging Face
Python Version: 3.8