SILVA, A. A. V.; SILVA, I. A. F.; TEIXEIRA, M. C. M.; SILVA, M. M. V.; MARQUES, J. C. C. Sistema fuzzy para diagnóstico de hérnias da região inguinal. In: CONGRESSO BRASILEIRO DE SISTEMA FUZZY-CBSF, 2., 2012, Natal. Anais... Natal: SBMAC, 2012. p. 919-931 (autor principal).
SILVA, I. A. F.; SILVA, A. A. V.; TEIXEIRA, M. C. M. Modelagem fuzzy com técnicas de agrupamento fuzzy e estruturas neuro fuzzy. In: CONGRESSO BRASILEIRO DE SISTEMA FUZZY-CBSF, 2., 2012, Natal. Anais... Natal: SBMAC, 2012. p. 968- 979 (coautoria).
REFERÊNCIAS
ABLESON, W. F.; SEN, R.; KING, C.; ORTIZ, C. E. Android em ação. 3. ed. Rio de Janeiro: Elsevier, 2012. 656 p.
ALVAREZ, R. Predicting average regional yield and production of wheat in the Argentine Pampas by an artificial neural network approach. European Journal of Agronomy, Amsterdam, v. 30, n. 2, p. 70 -77, 2009.
ALVES, M. C.; POZZA, E. A.; COSTA, J.C.B.; CARVALHO, L. G.; ALVES, L. S. Adaptive neuro-fuzzy inference systems for epidemiological analysis of soybean rust. Environmental Modelling & Software, Oxford, v. 26, n. 9, p. 1089-1096, 2011.
ANOOJ, P. K. Clinical decision support system: risk level prediction of heart disease using weighted fuzzy rules. King Saud University Journal. Computer and Information
Sciences, Riyadh, v. 24, n. 1, p. 27-40, 2012.
BELLMAN, R.E.; GIERTZ, M. On the analytic formalism of the theory of fuzzy sets. Inf.
Sci., Sweden, v.5, Issue C, p.149 – 156, 1973.
BUCENE, L. C.; RODRIGUES, L. H. A. Utilização de redes neurais artificiais para a avaliação de produtividade do solo, visando classificação de terras para irrigação. Revista
Brasileira de Engenharia Agrícola e Ambiental, Campina Grande, v. 8, n. 2-3, p. 326-329,
2004.
CAMPOS, J. R.; LOTUFO, A. D. P.; MINUSSI, C. R.; LOPES, M. L. M. Implementação de redes neurais artificiais utilizando a linguagem de programação java. In: BRAZILIAN CONFERENCE ON DYNAMICS, CONTROL AND THEIR APPLICATIONS - DINCON, 10., 2010, Serra Negra. Proceedings... Serra Negra: SBMAC, 2010. p. 391-397.
CARVALHO, C. C. N.; ROCHA, W. F.; UCHA, J. M. Mapa digital de solos: uma proposta metodológica usando inferência fuzzy. Revista Brasileira de Engenharia Agrícola e
Ambiental, Campina Grande, v. 13, n. 1, p. 46-55, 2009.
CASTANHO, M. J. P. Sistema neuro-fuzzy para prognóstico de câncer de próstata.
Biomatemática, Campinas, v. 17, n. 2, p.11–20, 2007.
DOMINGUEZ HERNÁNDEZ, K.R.; AGUILAR LASSERRE, A. A.; GÓMEZ, R. P.; PALET GUZMÁN, J. A.; GONZÁLEZ SÁNCHEZ, B. E. Development of an expert system as a diagnostic support of cervical cancer in atypical glandular cells, based on fuzzy logics and image interpretation. Computational and Mathematical Methods in Medicine, New York, v. 2013 , n. 796387, p. 1-17, 2013.
ESOGBUE, A. O.; ELDER, R.C. Measurement and valuation of a fuzzy mathematical model for medical diagnosis. Fuzzy Sets and Systems, New York, v. 10, n. 1, p. 223-242, 1983.
ESOGBUE, A. O. Fuzzy dynamic programming, fuzzy adaptive neuro control, and the general medical diagnosis problem. Computers & Mathematics with Applications, New York, v. 37, n. 11, p. 37-45, 1999.
FERNANDES, F. C. Sistema neuro-fuzzy para classificação de calcificações em
mamogramas. 2007. 94 f. Dissertação (Mestrado em Gestão do Conhecimento e da
Tecnologia da Informação) – Faculdade Tecnologia da Informação, Universidade Católica de Brasília, Brasília, 2007. Disponível em:
<http://www.bdtd.ucb.br/tede/tde_busca/arquivo.php?codArquivo=613>. Acesso em: 12 jul. 2012.
GAINO, R.; TEIXEIRA, M. C. M.; CARVALHO, A. A. DE; ASSUNÇÃO, E.; CARDIM, R.; SANCHES, M. A. A.; COVACIC, M. R. Realimentação derivativa e modelo fuzzy takagi- sugeno para controle da articulação do joelho de pacientes paraplégicos com o uso de
acelerômetros. Revista Brasileira de Engenharia Biomédica, Rio de Janeiro, v. 27, n. 2, p. 67-78, 2011.
GARIBALDI, J. M.; ZHOU, S. M.; WANG, X. Y.; JOHN, R. I.; ELLIS, I. O. Incorporation of expert variability into breast cancer treatment recommendation in designing clinical protocol guided fuzzy rule system models. Journal of Biomedical Informatics, San Diego, v. 45, n. 3, p. 447-459, 2012.
GHOUSH, M. A.; SAMHOURI, M.; AL-HOLY, M.; HERALD, T. Formulation and fuzzy modeling of emulsion stability and viscosity of a gum-protein emulsifier in a model
mayonnaise system. Journal of Food Engineering, Oxford, v. 84, n. 2, p.348-357, 2008. GOMIDE, F.; GUDWIN, R.; TANSCHEIT, R. Conceitos fundamentais da teoria de
conjuntos fuzzy. Lógica fuzzy e aplicações. In: WORLD CONGRESSO TUTORIALS-IFSA, 6., 1995, São Paulo. Proceedings…São Paulo: IFSA, 1995. p.1-38.
HUANG, Y.; LAN, Y.; THOMSON, S. J.; FANG, A.; HOFFMANN, W. C.; LACEY, R. E. Development of soft computing and applications in agricultural and biological engineering.
Computers and Eletronics in Agriculture, Oxford,v. 71, n. 2, p. 107-127, 2010.
ILIAS, E. J.; KASSAB, P. O uso de telas resolveu o problema da recidiva na cirurgia da Hérnia inguinal? Rev. Assoc. Med. Bras., São Paulo, v. 55, n. 3, p. 240-240, 2009.
JANG, J. R. ANFIS: adaptive-network-based fuzzy inference system. IEEE Transactions
on Systems, Man and Cybernetics, New York, v. 23, n. 3, p. 665-685, 1993.
JANG, J.-SR; SUN, CHUEN-TSAI. Neuro-fuzzy modeling and control. Proceedings of the
IEEE, New York, v. 83, n. 3, p. 378-406, 1995.
KASHANINEJAD, M.; DEHGHANI, A.A.; KASHIRI, M. Modeling of wheat soaking using two artificial neural networks (MLP and RBF). Journal of Food Engineering, Oxford, v. 91, n. 4, p. 602-607, 2009.
LAIZO, A.; VASCONCELOS, R. S.; GOLLNER, A. M.; SILVA, A. L. Histologia dos sacos herniários nas hérnias inguinais em adultos e crianças: presença de fibras musculares lisas e sua relação com o vaso sanguíneo. Rev. Col. Bras. Cir., Rio de Janeiro, v. 36, n. 4, p. 323- 326, 2009.
LECHETA, R. R. Google android: aprenda a criar aplicações para dispositivos móveis com o Android SDK. 2 ed. São Paulo: Novatec, 2010. 608 p.
MALANGONI, M. A.; GAGLIARDI, R. J. Hérnias. In: TOWNSEND, C. M; BEAUCHAMP R. D; EVERS, B. M; MATTOX, K. L. (Ed.). Sabiston - tratado de cirurgia: A base
biológica da prática cirúrgica moderna. 17. ed. Rio de Janeiro: Elsevier, 2005. 1248 p. MARTHA, A. S.; SALOMÃO, P. L.; SIGULEM, D.; ROMANI, R.; CAMPOS, C. J. R. de. Clinic Web: PEP e Interação com dispositivos móveis. In: CONGRESSO BRASILEIRO DE INFORMÁTICA EM SAÚDE, 10., 2006, Florianópolis. Anais... Florianópolis: SBIS, 2006. p. 42-47.
MATHWORKS The student edition of MatLab: version 4 user’s guide. Englewood Cliffs: Prentice Hall, 1995. 834 p.
MEDINA, J.; RUIZ-LOSANO, M.; DELGADO, M.; VILA, A. A Fuzzy temporal rule-based system for handling the nursing process on mobile devices. Expert Systems with
Applications, Oxford, v. 39, n. 12, p. 10479–10488, 2012.
MENA, L. J.; FELIX, V. G.; OSTOS, R.; GONZALEZ, J. A.; CERVANTES, A.; OCHOA, A.; RUIZ, C.; RAMOS, R.; MAESTRE, G. E. Mobile personal health system for ambulatory blood pressure monitoring. Computational and Mathematical Methods in Medicine, v. 2013, n. 598196, p. 1-13, 2013.
MENDEL, J. M. Fuzzy logic systems for engineering: a tutorial. Proceedings of The IEEE, New York, v. 83, n. 3, p. 345-377, 1995.
MINISTÉRIO DA SAÚDE. Circular normativa nº 09/DGCG de 14/06/2003: a dor como 5º sinal vital. Registo sistemático da intensidade da dor. Lisboa:[s.n.], 2003. 4 p.
PENA-REYES, C. A.; SIPPER, M. A fuzzy-genetic approach to breast cancer diagnosis.
Artificial Intelligence in Medicine, Amsterdam, v. 17, n. 2, p. 131-155, 1999.
SANDRI, S.; CORREA, C. Lógica nebulosa: V escola de redes neurais-ITA. São José dos Campos, 1999. p. c073-c090.
SANTOS, R. Introdução à programação orientada a objetos usando java. Rio de Janeiro: Elsevier, 2003.
SCHULTZ, A.; WIELAND, R. The use of neural networks in agroecological modelling.
Computers and Eletronics in Agriculture, Amsterdam, v. 18, n. 2-3, p.73-90, 1997.
SHAW, S.; SIMÕES, M. G. Controle e modelagem fuzzy. São Paulo: Edgar Blucher, 1999. 166 p.
SILBERSCHATZ, A.; GALVIN, P. B.; GAGNE, G. Sistemas operacionais com java. 7 ed. Rio de Janeiro: Elsevier, 2008. 673 p.
SILVA, A. A. V.; SILVA, I. A. F.; TEIXEIRA, M. C. M.; SILVA, M. M. V.; MARQUES, J. C. C. Sistema fuzzy para diagnóstico de hérnias da região inguinal. In: CONGRESSO
BRASILEIRO DE SISTEMA FUZZY-CBSF, 2., 2012, Natal. Anais... Natal: SBMAC, 2012. p. 919-931.
SILVA, A. A. V.; SILVA, I. A. F.; TEIXEIRA FILHO, M. C. M.; BUZETTI, S.; TEIXEIRA, M. C. M. Estimativa da produtividade de trigo em função da adubação nitrogenada utilizando modelagem neuro fuzzy. Revista Brasileira de Engenharia Agrícola e Ambiental, Campina Grande, v. 18, n. 2, p. 180–187, 2014. Disponível em:
<http://www.agriambi.com.br/revista/v18n02/v18n02a08.pdf >. Acesso em: 12 jan. 2014. SILVA, G. H. P.; SILVA, J. V. L.; RUPPERT, G. C. S. Desenvolvimento de aplicativos para visualização de imagens médicas em dispositivos móveis. In: CONGRESSO DA
SOCIEDADE BRASILEIRA DE COMPUTAÇÃO-CSBC, 32., 2012, Curitiba. Anais... Curitiba: UFPR, 2012.
SILVA, I. A. F.; SILVA, A. A. V.; TEIXEIRA, M. C. M. Modelagem fuzzy com técnicas de agrupamento fuzzy e estruturas neuro fuzzy. In: CONGRESSO BRASILEIRO DE SISTEMA FUZZY-CBSF, 2., 2012, Natal. Anais... Natal: SBMAC, 2012. p. 968- 979.
SILVA, I.N.; SPATTI, S. H.; FLAUZINO, R. A. Redes neurais artificiais: para engenharia e ciências aplicadas. São Paulo: Artliber, 2010. 399 p.
TANSCHEIT, R.; GOMIDE, F.; TEIXEIRA, M. C. M. Modelagem e controle nebuloso. In: AGUIRRE, L. A. (Ed.) Enciclopédia de automática. São Paulo: Edgard Blucher 2007. v. 3, p. 283-324.
TEIXEIRA, M. C. M.; ASSUNÇÃO, E.; AVELLAR, R. G. On relaxed LMI-based designs for fuzzy: regulators and fuzzy observers. IEEE Transactions on Fuzzy Systems, New York, v. 11, n. 5, p. 613-623, 2003.
TEIXEIRA, M. C. M.; ZAK, S. H. Stabilizing controller design for uncertain nonlinear systems using fuzzy models. IEEE Transactions on Fuzzy Systems, New York, v. 7, n.2, p. 133-142, 1999.
TEIXEIRA FILHO, M. C. M.; BUZETTI, S.; ANDREOTTI, M.; ARF, O.; BENETT, C. G. S. Doses, fontes e épocas de aplicação de nitrogênio em trigo irrigado em plantio direto.
Pesquisa Agropecuária Brasileira, Brasília, v. 45, n. 8, p. 797-804, ago 2010.
UBEYLI, E. Adaptive neuro-fuzzy inference systems for automatic detection of breast câncer.
J Med Syst , New York, v. 33, n. 5, p. 353–358, 2009.
VILLELA, M. F.; SANTOS, P. B.; JAFELICE, R. S. Diagnóstico médico fuzzy de doenças infantis. Revista Cientifica Eletrônica Semestral da Faculdade de Matemática – FAMAT, Uberlândia, v. 9, n. 3, p. 329–346, 2007.
VISVANATHAN, A.; GIBB, A. P.; BRADY, R. R. W. Increasing clinical presence of mobile communication technology: avoiding the pitfalls. Telemedicine and e-Health, New York, v. 17, n. 8, p. 656-661, 2011.
YILMAZ, I.; KAYNAR, O. Multiple regression, ANN (RBF, MLP) and ANFIS models for prediction of swell potential of clayey soils. Expert systems with applications, Oxford, v. 38, n. 5, p. 5958-5966, 2011.
ZADEH, L.A. Fuzzy sets. Information and Control. New York, v. 8, n. 3, p. 338-353, 1965. ZADEH, L. A. Fuzzy algorithms. Information and Control. New York, v. 12, n. 2, p. 94- 102, 1968.
ZAMUDIO, M. A.; PÉREZ, A.;LÓPEZ, F., GARCÍA, J. C.; FERIA, M. J.; ALFARO, A.
Neural fuzzy model applied to autohydrolysis of Paulownia trihybrid. Journal of the Taiwan
ANEXO 1 – TCLE
MODELO
TERMO DE CONSENTIMENTO LIVRE E ESCLARECIDO - TCLE
Título da Pesquisa: “DIAGNÓSTICO DA HÉRNIA INGUINAL UTILIZANDO A
LÓGICA FUZZY.”
Nome do Pesquisador: ALDO ANTONIO VIEIRA DA SILVA
Nome do Orientador: PROF. DR. MARCELO CARVALHO MINHOTO TEIXEIRA 1. Natureza da pesquisa: o sra (sr.) está sendo convidada (o) a participar desta pesquisa que
tem como finalidade ...
2. Participantes da pesquisa: (colocar o número de participantes, especificando qual será a população alvo da pesquisa).
3. Envolvimento na pesquisa: ao participar deste estudo a sra (sr) permitirá que o (a) pesquisador (a) (...). A sra (sr.) tem liberdade de se recusar a participar e ainda se recusar a continuar participando em qualquer fase da pesquisa, sem qualquer prejuízo para a sra (sr.) (...). Sempre que quiser poderá pedir mais informações sobre a pesquisa através do telefone do (a) pesquisador (a) do projeto e, se necessário através do telefone do Comitê de Ética em Pesquisa.
4. Sobre as entrevistas: (se houver, especificar como serão realizadas).
5. Riscos e desconforto: a participação nesta pesquisa não infringe as normas legais e éticas (especificar aqui possíveis riscos e desconfortos gerados durante a pesquisa). Os procedimentos adotados nesta pesquisa obedecem aos Critérios da Ética em Pesquisa com Seres Humanos conforme Resolução no. 196/96 do Conselho Nacional de Saúde. Nenhum dos procedimentos usados oferece riscos à sua dignidade.
6. Confidencialidade: todas as informações coletadas neste estudo são estritamente
confidenciais. Somente o (a) pesquisador (a) e seu (sua) orientador (a) (e/ou equipe de pesquisa) terão conhecimento de sua identidade e nos comprometemos a mantê-la em sigilo ao publicar os resultados dessa pesquisa.
7. Benefícios: ao participar desta pesquisa a sra (sr.) não terá nenhum benefício direto.
que o conhecimento que será construído a partir desta pesquisa possa (...), onde pesquisador se compromete a divulgar os resultados obtidos, respeitando-se o sigilo das informações coletadas, conforme previsto no item anterior.
8. Pagamento: a sra (sr.) não terá nenhum tipo de despesa para participar desta pesquisa, bem como nada será pago por sua participação.
Após estes esclarecimentos, solicitamos o seu consentimento de forma livre para participar desta pesquisa. Portanto preencha, por favor, os itens que se seguem: Confiro que recebi cópia deste termo de consentimento, e autorizo a execução do trabalho de pesquisa e a divulgação dos dados obtidos neste estudo.
Obs: Não assine esse termo se ainda tiver dúvida a respeito.
Consentimento Livre e Esclarecido
Tendo em vista os itens acima apresentados, eu, de forma livre e esclarecida, manifesto meu consentimento em participar da pesquisa
___________________________ Nome do Participante da Pesquisa ______________________________ Assinatura do Participante da Pesquisa __________________________________
Assinatura do Pesquisador
___________________________________ Assinatura do Orientador
Pesquisador: ALDO ANTONIO VIEIRA DA SILVA
Orientador: PROF. DR. MARCELO CARVALHO MINHOTO TEIXEIRA
Coordenadora do Comitê de Ética em Pesquisa: Profa. Dra. Edna Maria do Carmo Vice-Coordenadora: Profa. Dra. Regina Coeli Vasques de Miranda
Telefone do Comitê: 3229-5315 ou 3229-5526 E-mail [email protected]
APÊNDICE A – QUESTIONÁRIO AVALIATIVO
Pesquisa: “Diagnóstico de hérnia inguinal utilizando lógica fuzzy”
Unesp – Univ Estadual Paulista – Campus Ilha SolteiraPesquisador: Aldo Antônio Vieira da Silva
Orientador: Prof. Dr. Marcelo Carvalho Minhoto Teixeira
Paciente::
Sexo: [ ] Masculino [ ] Feminino Idade: 1. Febre?
[ ] Sim [ ] Não
2. Possui distensão abdominal? [ ] Sim [ ] Não
3. Intensidade da dor
[ ] Leve [ ] Moderada [ ] Intensa 4. Presença de abaulamento redutível? [ ] Sim [ ] Não
5. Manobra de valsalva [ ] Sim [ ] Não 6. Manobra de landiva [ ] Sim [ ] Não
7. Acima do ligamento inguinal? [ ] Sim [ ] Não
8. Vomito?
[ ] Sim [ ] Não
Diagnóstico médico
[ ] Hérnia Inguinal Direta [ ] Hérnia Inguinal Indireta [ ] Hérnia Femoral
[ ] Hérnia Encarcerada [ ] Hérnia Estrangulada
APÊNDICE B – DIAGNÓSTICO MÉDICO X DIAGNÓSTICO DO APLICATIVO MÓVEL
Tabela 6 - Relação paciente, sintomas e diagnóstico.
Pacientes Sintomas Diagnóstico
s1 s2 s3 s4 s5 s6 s7 s8 Médico Dispositivo móvel
1 N N Moderada S S S S N HID HID
2 N N Leve S N N N N HF HF
3 N N Moderada S N N N N HF HF
4 N N Moderada S N N N N HF HF
5 N N Moderada S S N S N HII HII
6 N N Moderada S S S S N HID HID
7 N N Moderada S S S S N HID HID
8 N N Leve S S N S N HII HII
9 N N Moderada S S N S N HII HII
10 N N Moderada S S N S N HII HII
11 N N Moderada S S N S N HII HII
12 N N Moderada S S N S N HII HII
13 N N Moderada S S N S N HII HII
14 N N Moderada S S S S N HID HID
15 N N Moderada S S S S N HID HID
16 N N Leve S S N S N HII HII
17 N N Leve S S N S N HII HII
18 N N Leve S S S S N HID HID
19 N N Leve S S N S N HII HII
20 N N Moderada S S S S N HID HID
21 N N Leve S S N S N HII HII
22 N S Moderada N N N S N HEncar HEncar
23 N S Moderada N N N S N HEncar HEncar
24 N N Moderada S S S S N HID HID
25 N N Moderada S S S S N HID HID
26 N N Leve S S N S N HII HII
27 N N Leve S S S S N HID HID
28 N N Leve S S S S N HID HID
29 N N Moderada S S N S N HII HII
30 N N Leve S S N S N HII HII
Fonte: Elaboração do próprio autor.
Considerando as entradas, os sintomas s1 (febre), s2 (distensão abdominal), s3 (dor), s4 (abaulamento redutível), s5 (manobra de valsalva), s6 (manobra de landiva), s7 (acima do ligamento inguinal) e s8 (vômito). E as saídas, os diagnósticos HID (hérnia inguinal direta), HII (hérnia inguinal indireta), HF (hérnia femoral), HIEncarc (hérnia inguinal encarcerada) e HIEstrang (hérnia inguinal estrangulada).
APÊNDICE C – Código Fonte dos Arquivos
FCL (Fuzzy Control Language)
FUNCTION_BLOCK hernia
//Declaração das variáveis de entrada VAR_INPUT febre : REAL; distensaoAbdominal : REAL; dor : REAL; sensacaoPeso : REAL; abaulamentoRedutivel : REAL; manobraValsalva : REAL; manobraLandiva : REAL; acimaLigamentoInguinal : REAL; vomito: REAL; END_VAR
//Declaração das variáveis de saída VAR_OUTPUT hid : REAL; hii : REAL; hf : REAL; hiencar : REAL; hiestrag : REAL; END_VAR //Fuzifica as variáveis FUZZIFY febre
TERM nao := trian -1 0 1; TERM sim := trian 0 1 2; END_FUZZIFY
FUZZIFY distensaoAbdominal TERM nao := trian -1 0 1; TERM sim := trian 0 1 2; END_FUZZIFY
FUZZIFY dor
TERM leve := trian -0.5 0 0.5; TERM moderada := trian 0 0.5 1; TERM intensa := trian 0.5 1 1.5; END_FUZZIFY
FUZZIFY sensacaoPeso
TERM nao := trian -1 0 1; TERM sim := trian 0 1 2;
END_FUZZIFY
FUZZIFY abaulamentoRedutivel TERM nao := trian -1 0 1; TERM sim := trian 0 1 2; END_FUZZIFY
FUZZIFY manobraValsalva TERM nao := trian -1 0 1; TERM sim := trian 0 1 2; END_FUZZIFY
FUZZIFY manobraLandiva TERM nao := trian -1 0 1; TERM sim := trian 0 1 2; END_FUZZIFY
FUZZIFY acimaLigamentoInguinal TERM nao := trian -1 0 1; TERM sim := trian 0 1 2; END_FUZZIFY
FUZZIFY vomito
TERM nao := trian -1 0 1; TERM sim := trian 0 1 2; END_FUZZIFY
// Desfuzifica as variáveis DEFUZZIFY hid
TERM nao := trian -1 0 1; TERM sim := trian 0 1 2; METHOD : COG; RANGE := (0 .. 1); END_DEFUZZIFY DEFUZZIFY hii
TERM nao := trian -1 0 1; TERM sim := trian 0 1 2; METHOD : COG; RANGE := (0 .. 1); END_DEFUZZIFY DEFUZZIFY hf
TERM nao := trian -1 0 1; TERM sim := trian 0 1 2; METHOD : COG; RANGE := (0 .. 1); END_DEFUZZIFY
DEFUZZIFY hiencar
TERM nao := trian -1 0 1; TERM sim := trian 0 1 2; METHOD : COG; RANGE := (0 .. 1); END_DEFUZZIFY DEFUZZIFY hiestrag TERM nao := trian -1 0 1; TERM sim := trian 0 1 2; METHOD : COG; RANGE := (0 .. 1); END_DEFUZZIFY RULEBLOCK No1 AND : MIN; OR : MAX; ACT : MIN; ACCU : MAX;
RULE 1 : IF febre IS nao AND distensaoAbdominal IS nao AND dor IS leve AND abaulamentoRedutivel IS sim AND manobraValsalva IS sim AND
manobraLandiva IS sim AND acimaLigamentoInguinal IS sim AND vomito IS nao THEN hid IS sim;
RULE 2 : IF febre IS nao AND distensaoAbdominal IS nao AND dor IS leve AND abaulamentoRedutivel IS nao AND manobraValsalva IS sim AND
manobraLandiva IS sim AND acimaLigamentoInguinal IS sim AND vomito IS nao THEN hid IS sim;
RULE 3 : IF febre IS nao AND distensaoAbdominal IS nao AND dor IS leve AND abaulamentoRedutivel IS sim AND manobraValsalva IS sim AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS sim AND vomito IS nao THEN hii IS sim;
RULE 4 : IF febre IS nao AND distensaoAbdominal IS nao AND dor IS leve AND abaulamentoRedutivel IS sim AND manobraValsalva IS sim AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS sim AND vomito IS nao THEN hii IS sim;
RULE 5 : IF febre IS nao AND distensaoAbdominal IS nao AND dor IS leve AND abaulamentoRedutivel IS sim AND manobraValsalva IS nao AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS nao AND vomito IS nao
THEN hf IS sim;
RULE 6 : IF febre IS nao AND distensaoAbdominal IS nao AND dor IS leve AND abaulamentoRedutivel IS nao AND manobraValsalva IS nao AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS nao AND vomito IS nao
THEN hf IS sim;
RULE 7 : IF febre IS sim AND distensaoAbdominal IS sim AND dor IS intensa AND abaulamentoRedutivel IS nao AND manobraValsalva IS nao AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS sim AND vomito IS sim
THEN hiestrag IS sim;
RULE 8 : IF febre IS sim AND distensaoAbdominal IS sim AND dor IS intensa AND abaulamentoRedutivel IS nao AND manobraValsalva IS nao AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS nao AND vomito IS sim
THEN hiestrag IS sim;
RULE 9 : IF febre IS nao AND distensaoAbdominal IS sim AND dor IS intensa AND abaulamentoRedutivel IS nao AND manobraValsalva IS nao AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS sim AND vomito IS sim
THEN hiestrag IS sim;
RULE 10 : IF febre IS nao AND distensaoAbdominal IS sim AND dor IS intensa AND abaulamentoRedutivel IS nao AND manobraValsalva IS nao AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS nao AND vomito IS sim
THEN hiestrag IS sim;
RULE 11 : IF febre IS nao AND distensaoAbdominal IS sim AND dor IS moderada AND abaulamentoRedutivel IS nao AND manobraValsalva IS nao AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS sim AND vomito IS sim
THEN hiencar IS sim;
RULE 12 : IF febre IS nao AND distensaoAbdominal IS sim AND dor IS moderada AND abaulamentoRedutivel IS nao AND manobraValsalva IS nao AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS sim AND vomito IS nao
THEN hiencar IS sim;
RULE 13 : IF febre IS nao AND distensaoAbdominal IS sim AND dor IS moderada AND abaulamentoRedutivel IS nao AND manobraValsalva IS nao AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS nao AND vomito IS sim
THEN hiencar IS sim;
RULE 14 : IF febre IS nao AND distensaoAbdominal IS sim AND dor IS moderada AND abaulamentoRedutivel IS nao AND manobraValsalva IS nao AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS nao AND vomito IS nao
THEN hiencar IS sim;
RULE 15 : IF febre IS nao AND distensaoAbdominal IS nao AND dor IS moderada AND abaulamentoRedutivel IS nao AND manobraValsalva IS nao AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS sim AND vomito IS sim
THEN hiencar IS sim;
RULE 16 : IF febre IS nao AND distensaoAbdominal IS nao AND dor IS moderada AND abaulamentoRedutivel IS nao AND manobraValsalva IS nao AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS sim AND vomito IS nao
THEN hiencar IS sim;
RULE 17 : IF febre IS nao AND distensaoAbdominal IS nao AND dor IS moderada AND abaulamentoRedutivel IS nao AND manobraValsalva IS nao AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS nao AND vomito IS sim
THEN hiencar IS sim;
RULE 18 : IF febre IS nao AND distensaoAbdominal IS nao AND dor IS moderada AND abaulamentoRedutivel IS nao AND manobraValsalva IS nao AND
manobraLandiva IS nao AND acimaLigamentoInguinal IS nao AND vomito IS nao
THEN hiencar IS sim;
END_RULEBLOCK END_FUNCTION_BLOCK
Código Fonte de programação Classe DiagnosticoBuider.java
public Diagnostico buildDiagnostico() {
FIS fis; try {
fis = FIS.createFromString(loadFile(), false); }catch (Exception ex){
System.err.println("Can't load file: 'hernia.fcl'"); return null;
} fis.setVariable("febre", this.febre); fis.setVariable("distensaoAbdominal", this.distensaoAbdominal); fis.setVariable("dor", this.dor); fis.setVariable("abaulamentoRedutivel", this.abaulamentoRedutivel); fis.setVariable("manobraValsalva", this.manobraValsalva); fis.setVariable("manobraLandiva", this.manobraLandiva); fis.setVariable("acimaLigamentoInguinal", this.acimaLigamentoInguinal); fis.setVariable("vomito", this.vomito); fis.evaluate();
double hid = fis.getVariable("hid").getLatestDefuzzifiedValue(); double hii = fis.getVariable("hii").getLatestDefuzzifiedValue(); double hf = fis.getVariable("hf").getLatestDefuzzifiedValue();
double hiencar = fis.getVariable("hiencar").getLatestDefuzzifiedValue(); double hiestrag = fis.getVariable("hiestrag").getLatestDefuzzifiedValue(); Diagnostico diagnostico = new Diagnostico(hid, hii, hf, hiencar, hiestrag);
return diagnostico; }
Classe Diagnostico.java
public class ResultadoActivity extends Activity implements OnClickListener{ private Button buttonVoltar;
private TextView textResultado; @Override
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.resultado);
buttonVoltar.setOnClickListener(this);
textResultado = (TextView) findViewById(R.id.textResultado); Intent intent = getIntent();
String resultado = intent.getExtras().getString("resultado");
textResultado.setText(String.format(getText(R.string.textResultado).toString(), resultado));
}
public void onClick(View v) { if(v == buttonVoltar){
Intent intent = new Intent(this,
QuestionarioActivity.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent); } } } QuestionarioActivity.java
public class QuestionarioActivity extends Activity implements OnSeekBarChangeListener, OnClickListener {
private Button btnDiagnosticar; private SeekBar seekDor; private TextView textDor; private CheckBox chFebre;
private CheckBox chDistencaoAbdominal; private CheckBox chAbaulamentoRedutivel; private CheckBox chManobraValsalva; private CheckBox chManobraLandiva; private CheckBox chAcimaLigamentoIngnal; private CheckBox chVomito;
@Override
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.questionario);
btnDiagnosticar = (Button) findViewById(R.id.buttonDiagnosticar); btnDiagnosticar.setOnClickListener(this);
seekDor = (SeekBar) findViewById(R.id.seekDor); seekDor.setOnSeekBarChangeListener(this); textDor = (TextView) findViewById(R.id.textDor); chFebre = (CheckBox) findViewById(R.id.checkFebre);
chDistencaoAbdominal = (CheckBox) findViewById(R.id.checkDistencaoAbdominal); chAbaulamentoRedutivel = (CheckBox)
findViewById(R.id.checkAbaulamentoRedutivel);
chManobraValsalva = (CheckBox) findViewById(R.id.checkManobraValsalva); chManobraLandiva = (CheckBox) findViewById(R.id.checkManobraLandiva); chAcimaLigamentoIngnal = (CheckBox)
findViewById(R.id.checkAcimaLigamentoIngnal);
chVomito = (CheckBox) findViewById(R.id.checkVomito); }
public void onClick(View v) { if(v == btnDiagnosticar){
ProgressDialog dialog = ProgressDialog.show(this, "Aguarde", "Realizando diagnóstico...");
DiagnosticoBuilder builder = new DiagnosticoBuilder();
Intent intent = new Intent(this, ResultadoActivity.class).putExtra("resultado", diagnostico);
intent.addFlags(Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP);
dialog.dismiss();
} }
ResultadoActivity.java
public class ResultadoActivity extends Activity implements OnClickListener{ private Button buttonVoltar;
private TextView textResultado; @Override
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.resultado);
buttonVoltar = (Button) findViewById(R.id.buttonVoltar); buttonVoltar.setOnClickListener(this);
textResultado = (TextView) findViewById(R.id.textResultado); Intent intent = getIntent();
String resultado = intent.getExtras().getString("resultado");
textResultado.setText(String.format(getText(R.string.textResultado).toString(), resultado));
}
public void onClick(View v) { if(v == buttonVoltar){
Intent intent = new Intent(this,
QuestionarioActivity.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent);
} }
APÊNDICE D – MANUAL DE USO DO DISPOSITIVO MÓVEL PARA DIAGNÓSTICO DE HÉRNIA DA REGIÃO INGUINAL
Para iniciar o uso do aplicativo, deve-se fazer primeiro download do arquivo da aplicação em um dispositivo móvel, smartphone ou tablet. Lembrando que a versão do aplicativo está disponível somente para o sistema operacional Android.