Link to home
Start Free TrialLog in
Avatar of mohanupadhyay
mohanupadhyayFlag for India

asked on

sample code for determining the blood pressure (hypertension, prehypertension, normal) on the basis of input given 120/83 or 118/82 etc

I need a sample program either in c#, php, vb or c++
Which will ask for blood pressure from user and the system will tell the if it is hypertension, prehypertension, low blood pressure or normal

normal range is 120/80
119/80 , 120/83 etc are close to normal range
My program should be able to determine that the given range is in normal, high or low

solution must follow fuzzy logic..........
ASKER CERTIFIED SOLUTION
Avatar of developmentguru
developmentguru
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of aburr
aburr
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mohanupadhyay

ASKER

Blood pressure also depends on age, gender so now we have 3 inputs, bloodpressure s/d, age and gender
I have to consider all 3 in my fuzzy logic
If you want to add age and gender you have to say just how you want them to affect your results.
Since you mentioned age I did another search, see what you think of the numbers in this link:

http://www.disabled-world.com/artman/publish/bloodpressurechart.shtml

It shows 10 ranges for blood pressure (4 high, 3 normal, and 3 low) divided into 10 age categories.  The categories don't go all that old, so you may need to extrapolate.
I am a user and I know only blood pressure, age and gender
Now can your program give me the result the blood pressure is high, low or normal

I need some fuzzy logic to identify this.
Can you show a link identifying the gender bias?  None I have seen indicate any difference for gender.
I have given you all the inputs. Now if you can give me the logic then good else leave this question you can not do this.
I'm sorry but that is one of the most ignorant statements I have seen on this site.  As a professional programmer it is not my job to tell anyone how to build their program.  They have to come up with what they want.  I am not a doctor, nor do I play one on TV.  I am a programmer.  I'm not sure if you realize this, but it is illegal to attempt to treat an illness if you are not a medical doctor (at least in the US).  I do not know what country you are from, or what the medical laws or beliefs are in your region.

Because of all of that, I need to know what, definitive, blood pressure ranges you want to use.  Some have been offered and you have not identified any that you would want to use.

You mention wanting to include a gender bias of some sort, again, without identifying what it should be.

Age range data has been provided to you and, once again, you have no comment.

If you don't know how you want this program to run then I would suggest you speak to a physician and get a professional opinion and stop expecting programmers to know how to do a doctor's job.
If you can decide what the numbers are that you want to use then I will see what I can come up with.
"I have given you all the inputs"
You have not even come close to giving all the required inputs if you want something other than s and d to determine where two number lie in an unspecified range
I have given you inputs given you outputs now the remaining thing is to build fuzzy logic.
normal range is 120/80 or you can see some standard on site
I f I know that then I should not put this question on this site.
mohanupadhyay,

For someone who is requesting free assistance, you are demonstrating a somewhat less than friendly or cooperative attitude.

The basics of using the s/d figures with "fuzzy logic" is that you need to determine what the acceptable variance from the "Identified norm" is, for instance S +/- 5 and D +/- 5.  If this varies with the persons age, race, sex, sexual preference, or anything else, then you will need to define the acceptable variance for the amatrix defined by those options.  Once you have that defined, then providing the code is a fairly easy task.

So, please define your acceptable variances for the matrix of setting that are defined by the factors you want to consider.  At that time, I will gladly supply you with the psuedo-code for handling that.
Sorry friends for my attitude.

8080 Diver

Please proceed with the variance +/- 5 for both
Please do consider the age and gender factor also
age range if you find that then it is ok or you can divide it into LESS THAN 35 26-50, 50-75 and ABOVE 75
Sorry to but in so late in the conversation, but why fuzzy logic for this? It would seem that a strict classifier would be better here. Fuzzy logic is best suited for highly complex systems with many inputs and lots of data where a straight algorithm will not do and the power of the human brain's heuristics is needed. In my professional opinion, attempting to apply fuzzy logic to a system this simple will be inaccurate and ineffective and also take up way more time than needed.

Why not just use the cutoffs that the medical professionals use? You could adjust them up and down a bit for age etc. All the data you need is out there (most is here in this thread). Unless this is for some sort of academic assignment, then I can't see a good reason to use fuzzy logic for this.
Still I need a professional who can solve this.
Lets wait till the professional reads this.................
fuzzy logic is not everyone's cup of tea..................
not a problem even I doesn't know about it
So I would be grateful if anyone give me the e-tutorial where I can learn to apply fuzzy logic.
I will do this on my own
Tutorials-
-
#
Fuzzy logic tutorial.
Free fuzzy logic tutorial. ... Fuzzy Logic for "Just Plain Folks" (Online Tutorial, Free for your personal use.)
fuzzy-logic.com -
#
Fuzzy Logic Tutorial - An Introduction
Search WWW Search seattlerobotics.org
www.seattlerobotics.org/encoder/mar98/fuz/flindex.html -
If this is for homework, then we can't solve it for you anyway, we can just offer guidance. If this is not for homework, then please explain why you want to use fuzzy logic. Using fuzzy logic to solve this would be like sending a postcard to your next-door neighbor by airmail. It might get there eventually, but you've wasted lots of time and money in the long run. As an expert, I would have to advise against it until I understood why it was necessary.
This is a sample, only the smallest part of whole process, Its a big module
I need a sample so I can put the logic to my entire module.
This will give me idea how fuzzy logic is applied.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.