Downloads · 30 days
0
Fahim18/health-analysis-biobert
health-analysis-biobert is a machine learning model from Fahim18. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This model is fine-tuned on BioBERT for multi-task health analysis, predicting: BMI, Intestinal health indicators, Comparison with optimal values
Downloads · 30 days
0
Access
Public
Updated Mar 8, 2025
Parameters
113M
601 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors451 MB · 75%
From the Hugging Face model README
This model is fine-tuned on BioBERT for multi-task health analysis, predicting: BMI, Intestinal health indicators, Comparison with optimal values
The model accepts the following health-related inputs:
The model predicts:
from transformers import AutoTokenizer, AutoModel
import torch
import json
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("Fahim18/health-analysis-biobert")
model = AutoModel.from_pretrained("Fahim18/health-analysis-biobert")
# Load preprocessing configs
with open("preprocessor_config.json", "r") as f:
preprocessor_info = json.load(f)
# Example inference function
def predict(text_input):
# Tokenize
inputs = tokenizer(text_input, return_tensors="pt", padding=True, truncation=True, max_length=512)
# Predict
with torch.no_grad():
outputs = model(**inputs)
# Process outputs
# Note: You'll need to implement task-specific output processing
return outputs
This model should be used for research purposes only and not for making actual medical decisions. Always consult healthcare professionals for medical advice.