From Fuzzy to Mobile Fuzzy
Olga Kosheleva1, Vladik Kreinovich1,*, Victor L. Timchenko2 and Yuriy P. Kondratenko3
1University of Texas at El Paso, USA
2Admiral Makarov National University of Shipbuilding, Ukraine
3Petro Mohyla Black Sea National University and Institute of Artificial Intelligence Problems, Ukraine
E-mail: vladik@utep.edu
*Corresponding Author
Received 29 October 2023; Accepted 26 February 2024
The main limitation of mobile computing in comparison with regular computing is the need to make sure that the battery lasts as long as possible – and thus, the number of computational steps should be as small as possible. In this paper, we analyze how this affects fuzzy computations. We show that the need for the fastest computations leads to triangular membership functions and simplest “and”- and “or”-operations: min and max. It also leads to the need to limit ourselves to a few-bit description of fuzzy degrees – which leads to 3-bit descriptions similar to optical implementation of fuzzy computing.
Keywords: Fuzzy computations, mobile computing, optical computing.
Need for fuzzy techniques. Often, we rely on experts to make good decisions. For example, in medicine, in spite of numerous successes of automatic systems, we still rely on human doctors to make decisions.
In each application area, some experts are very good, others are not that experienced. It would be great if the best experts could serve everyone, but there are usually only a few experts of a kind, and they cannot help many. So, a natural idea is to add top expert’s knowledge into a computer system – that helps other experts.
Usually, experts are eager to share knowledge, but there is problem: they often describe this knowledge by using imprecise (“fuzzy”) natural-language words like “small”, and it is not easy to translate these words into computer-understandable terms.
For example, in the US, most people know how to drive. However, when you ask a person what to do if you are driving on a freeway at a speed of 65 miles per hour and a car 30 feet in front of you slows down to 60 – a typical answer is “brake a little bit”. Computers do not understand what “a little bit” means, they need to with what exactly force and for how many milliseconds to apply the brakes.
Techniques for translating from “fuzzy” natural language into precise terms are called fuzzy techniques; see, e.g., [1, 3, 4, 5, 6, 7, 9, 10, 12, 16]. These techniques have been successfully applied in many areas.
Specifics of mobile computing and the resulting general problem. The main limitation of mobile computing in comparison with regular computing is the need to make sure that the battery lasts as long as possible. So, we should make as few computational steps as possible; see, e.g., [2].
What we do. We analyze how the mobile-computing-related limitation affects fuzzy computations.
Structure of the paper. In Section 2, we remind the readers of the main computational steps related to fuzzy computations. In a short Section 3, we remind the readers that there are two ways to decreases the number of computational steps: to decrease the number of arithmetic operations and to decrease the number of bits in the representation of the corresponding numbers. In Sections 4 and 5, we show how we can do this for fuzzy computations. Conclusions form Section 6.
General idea. How to describe terms like “little” in precise terms? For quantities like “positive”, their meaning is very clear:
• if a number is negative or zero, i.e., if , then this number is positive; but
• if a number is larger than 9, then this number is positive.
As we go from small negative numbers to 0, our opinion about the statement “ is positive” drastically changes from “false” to “true”. In contrast, for fuzzy properties like “ is small”, there is no such abrupt transition:
• values close to 0 are absolutely small,
• values which are much larger than 0 are absolutely not small, and
• intermediate values are small to some extent.
In a computer, “true” is usually represented as 1, and “false”as 0. Thus, it is reasonable to represent degrees of certainty intermediate between “absolutely true” and “absolutely false” by numbers intermediate between 0 and 1.
The notion of a membership function – or, equivalently, a fuzzy set. In line with the above general idea, to describe a natural-language property like “large”, we assign, to each possible value of the corresponding quantity, a degree to which this value has the given property – e.g., the degree to which is large.
Informally, this function describes to what extent the value belongs to the set of all small numbers. Because of this informal description, the function is called a membership function. It is also called a fuzzy set.
Fuzzy logic: general description. In practice, expert-provided rules often use logical connectives: “and”, “or”, and “or”. For example, in the car case, the condition was that the speed is 65, and that the other car is at 30 ft, and this other car slows down to 60. Medical recommendations are also full of such rules.
These logical connectives are easy to apply if we are dealing with precise statements. In this case, the truth values of two statements and uniquely determine the truth values of the corresponding logical combinations , , and .
The situation is different in the fuzzy case. If we know that the statement holds with degree of confidence 0.8, and the statement holds with degree of confidence 0.9, what is the degree of confidence in ?
Fuzzy “and”-operations. In the ideal world, we should ask the same expert – whom we asked to gauge his/her degree of certainty in two statements and – to also gauge his/her degree of certainty in the combined statement . We can do it for one or two combined statements, but for basic statements, there are exponentially many such combined statements, and it is not possible to ask the expert about all of them.
We cannot always get the degree of confidence in a combined statement from the expert. So, we must estimate this degree by using the information we have – i.e., based on our degrees of confidence and in statements and . For this estimation, we need a function that would input the degrees of certainty and in statements and and return the estimate for the expert’s degree of certainty in . Such a function is usually denoted by and is known as an “and”-operation, or, for historical reasons, a t-norm.
“And”-operations need to satisfy several natural conditions.
• First, for the cases when both degrees are 0s and 1s, they must coincide with the “and”-operation in the usual 2-valued (“yes”-“no”) logic.
• Second, since usually, “ and ” means the same as “ and ”, the estimates and for these two statements should coincide, i.e., we should have . In mathematical terms, this means that the operation must be commutative.
• Similarly, since the statements “ and ( and )” and “( and ) and ” mean the same thing, the corresponding estimate and must also be equal. Thus, the operation must be associative.
Fuzzy “or”-operations. Similarly, we need a function that estimates the degree of certainty in a combined statement . This function is known as “or”-operation, or, for historical reason, a t-conorm.
“Or”-operations also need to satisfy several natural conditions.
• First, for the cases when both degrees are 0s and 1s, they must coincide with the “or”-operation in the usual 2-valued (“yes”-“no”) logic.
• Second, since usually, “ or ” means the same as “ or ”, the estimates and for these two statements should coincide, i.e., we should have . In mathematical terms, this means that the operation must be commutative.
• Similarly, since the statements “ or ( or )” and “( or ) or ” mean the same thing, the corresponding estimate and must also be equal. Thus, the operation must be associative.
Fuzzy negation operations. To describe negation, we similarly need a negation operation . A natural condition is that for the cases when the input is 0 or 1, the negation operation must coincide with the negation in the usual 2-valued (“yes”-“no”) logic.
So what is fuzzy logic. The above logical operations with fuzzy degrees – as well as similar operations corresponding to implication and other logical connectives – form what is known as fuzzy logic.
Every computation consists of elementary steps. In a computer, the only directly hardware-supported operations are arithmetic operations: addition, subtraction, and multiplications. Computers also support min and max of two numbers. All other computations, whether we are computing the value of or a solution of a complex partial differential equation, consist of a sequence of arithmetic operations.
For example, computation of is usually done by computing the sum of several first terms in the corresponding Taylor series
Out of all elementary operations:
• the fastest are min and max,
• next fastest are addition and subtraction, and
• multiplication is the slowest: this makes sense since multiplication requires several additions.
Each elementary operation consists of several bit operations. Each arithmetic operation, in its turn, consists of several bit operations. The more bits we use to represent each number, the more bit operations we need to preform a single arithmetic operation.
So how can we decrease energy consumption related to computations? Each bit operation requires some energy. Thus, to decrease energy consumption and to make mobile devices last longer, we need to decrease the overall number of bit operations. In line what we discussed, this means:
• decreasing the number of arithmetic operations – and selecting the fastest operations, and/or
• decreasing the number of bit operations needed for a single arithmetic operation, i.e., decreasing the number of bits used to represent each number.
In the following two sections, we will analyze how each of this ideas will affect fuzzy computations.
How do we minimize energy consumption. To minimize energy consumption, we need to select an algorithm consisting of the smallest possible number of elementary operations, and these operations must be the fastest possible.
The smallest number of arithmetic operations that we can use is one, and the fastest operations are – as we have mentioned – min and max; next in speed are addition and subtraction.
Based on this, which “and”- and “or”-operations should we choose? The fastest possible arithmetic operations are min and max. Interestingly:
• min satisfies all the above-described properties of the “and”-operation, and
• max satisfies all the above-described properties of the “or”-operation.
Thus, in the mobile implementation of fuzzy computations, it is reasonable to use “and”-operation and “or”-operation .
Comment. These operations are indeed successfully used in many applications of fuzzy techniques, where they lead to reasonable results.
Which negation operation should we choose? For negation operation, we cannot use min or max – neither of related operations or for some coincides with the classical negation for both and .
Next in speed are addition and multiplication. Among corresponding operations , , and the only one that coincides with the classical negation for both and is the operation .
So this what we should use in mobile fuzzy computations. This operation is indeed actively and effectively used in fuzzy applications.
What we want. We want to describe a function that assigns a number from the interval to any possible value of the corresponding physical quantity.
What we need to take into account. It is important to take into account that the numerical value of a physical quantity depends on the choice of the measuring unit and on the choice of the starting point.
If we replace the original measuring unit with a new unit which is times smaller, then all numerical value of the corresponding quantity get multiplied by : . For example, if we replace meters with centimeters, all numerical values get multiplied by 100: e.g., 1.7 m becomes 170 cm.
Changing a measuring unit leads to transformation for positive . Sometimes, the change of sign also makes sense: for example, which direction of current shall we call positive and which negative is just a question of convenience. If we change the sign, then all numerical values change sign: .
Similarly, if we replace the original starting point with a new point which is units lower, then this value is added to all numerical value . For example, if instead of the French Revolution calendar – that started in year 1789 – we use the usual calendar that started years earlier, then, e.g., French-calendar Year becomes year .
If we change both the measuring unit and the starting point, then we get a generic linear transformation .
How does this affect membership functions. We want to come up with a general expression for a membership function, an expression that would be useful even if we change the measuring unit and/or the starting point for measuring the corresponding physical quantity. So, with each function this family of functions should also contain all the functions of the type for different values and . We will say that this family is invariant under re-scaling.
Even if we start with the easiest-to-compute function – that does not require any computations at all – we will still need to consider all linear functions .
In general, computing a linear function requires two elementary operations: multiplication and addition. If we only use one arithmetic operation, i.e., use expressions of the type , , , or , we do not get any re-scaling-invariant family. Thus, to get such a family, we need at least two arithmetic operations.
The fastest operations are addition and multiplication. However, if we use two additions or subtractions, we will get either or or or – so again, we do not get any re-scaling-invariant family.
Thus, we need at least one operation of next computation speed – i.e., multiplication. If we use one addition and one multiplication, then we get either – which is not invariant – or .
Thus, locally, the simplest-to-compute membership functions should be linear.
Resulting recommendation. So, we should use piecewise-linear membership functions in fuzzy mobile computing.
Comment. Piecewise-linear membership functions – with triangular and trapezoid shape – are indeed used frequently and effectively in applications of fuzzy techniques.
What numbers are currently used to represent degrees of confidence. As we have mentioned, a usual way to represent a fuzzy degree is by using numbers from the interval . In general, modern computers use 64 bits to represent real numbers.
But do we really need all these bits? Using 64 bit makes sense if we are talking about values of physical quantities – we want to preserve the accuracy with which these values are known. However, for degrees provided by experts this does not make much sense. Probably an expert can meaningfully distinguish between degrees 0.6 and 0.8, but realistically, we cannot expect anyone to meaningfully distinguish, e.g., between degrees 0.80 and 0.81.
How many different degrees of confidence do we actually need? It is known that people can meaningfully divide objects into no more that 7 plus minus two categories (see, e.g., [8, 11]). This means that to adequately capture human opinions, it is sufficient to use between and different degrees of confidence.
In general, absolutely true and absolutely false are also degree of confidence – so they are among these degrees. However, experts are practically never absolutely 100% sure that the statement is true, and practically never absolutely sure that the statement is false. If we exclude these two degrees – absolutely true and absolutely false – we end up with no more than 7 different possible expert’s degrees of certainty.
So how many bits per number do we need? To represent these degrees, we only need 3 bits, since using 3 bits allows us to represent different degrees of confidence.
Thus, to process each fuzzy degree on a mobile device, it is sufficient to use only 3 bits.
Comment. It it worth mentioning that the number of different distinguishable degrees is equal to the number of different basic colors. This is not a coincidence, since both numbers come from the same general seven plus minus two law. It is therefore possible to place different degrees of confidence in 1-to-1 correspondence with colors.
This is not just a purely mathematical possibility: such a correspondence enables us to effectively use optical computing – namely, a special color version of it – to speed up fuzzy computations; see, e.g., [13, 14, 15].
To minimize energy consumption when performing fuzzy computations on a mobile device, we need:
• to use piecewise-linear membership functions (e.g., triangular and trapezoidal),
• to use min as “and”-operation, max as “or”-operation, and as negation operation, and
• to use 3-bit representations of all fuzzy degrees.
Good news is that many effective applications of fuzzy techniques already use these membership functions and these logic operations, so their use should not lead to a drastic decrease in the quality of the results.
This work was supported in part by the National Science Foundation grants 1623190 (A Model of Change for Preparing a New Generation for Professional Practice in Computer Science), HRD-1834620 and HRD-2034030 (CAHSI Includes), EAR-2225395 (Center for Collective Impact in Earthquake Science C-CIES), and by the AT&T Fellowship in Information Technology.
It was also supported by a grant from the Hungarian National Research, Development and Innovation Office (NRDI).
The authors are greatly thankful to the anonymous reviewers for valuable suggestions.
[1] R. Belohlavek, J. W. Dauben, and G. J. Klir, Fuzzy Logic and Mathematics: A Historical Perspective, Oxford University Press, New York, 2017.
[2] B. Debaillie, F. Brunier, D. Morche, E. Isa, and J. Craninckx (eds.), Technologies Enabling Future Mobile Connectivity and Sensing, River Publishers, Aalborg, Nordjylland, Denmark, 2024.
[3] S. Kharola, M. Ram, S. K. Mangla, and Y. Kazancoglu (eds.), Advances in Soft Computing Applications, River Publishers, Aalborg, Nordjylland, Denmark, 2023.
[4] G. Klir and B. Yuan, Fuzzy Sets and Fuzzy Logic, Prentice Hall, Upper Saddle River, New Jersey, 1995.
[5] Y. Kondratenko, O. Gerasin, O. Kozlov, A. Topalov, and B. Kilimanov, “Inspection mobile robot’s control system with remote IoT-based data transmission”, Journal of Mobile Multimedia, 2021, Vol. 17, No. 4. pp. 499–522, DOI: 10.13052/jmm1550-4646.1742.
[6] O. Kozlov, Y. Kondratenko, O. Skakodub, O. Gerasin, and A. Topalov, “Swarm optimization of fuzzy systems for mobile robots with remote control”, Journal of Mobile Multimedia, 2023, Vol. 19, No. 3, pp. 839–876.
[7] J. M. Mendel, Uncertain Rule-Based Fuzzy Systems: Introduction and New Directions, Springer, Cham, Switzerland, 2017.
[8] G. A. Miller, “The magical number seven plus or minus two: some limits on our capacity for processing information”, Psychological Review, 1956, Vol. 63, No. 2, pp. 81–97.
[9] H. T. Nguyen, C. L. Walker, and E. A. Walker, A First Course in Fuzzy Logic, Chapman and Hall/CRC, Boca Raton, Florida, 2019.
[10] V. Novák, I. Perfilieva, and J. Močkoř, Mathematical Principles of Fuzzy Logic, Kluwer, Boston, Dordrecht, 1999.
[11] S. K. Reed, Cognition: Theories and Application, SAGE Publications, Thousand Oaks, California, 2022.
[12] M. Tetyana, Y. Kondratenko, I. Sidenko, and G. Kondratenko, “Computer vision mobile system for education using augmented reality technology”, Journal of Mobile Multimedia, 2021, Vol. 17, No. 4. pp. 555–576, DOI: 10.13052/jmm1550-4646.1744.
[13] V. Timchenko, Y. Kondratenko, and V. Kreinovich, “Efficient optical approach to fuzzy data processing based on colors and light filter”, International Journal of Problems of Control and Informatics, 2022, Vol. 52, No. 4.
[14] V. Timchenko, Y. Kondratenko, and V. Kreinovich, “Decision support system for the safety of ship navigation based on optical color logic gates”, Proceedings of the IX International Conference “Information Technology and Implementation IT&I-2022, Kyiv, Ukraine, November 30 – December 2, 2022.
[15] V. Timchenko, Y. Kondratenko, and V. Kreinovich, “Implementation of optical logic gates based on color filters”, Proceedings of the 6th International Conference on Computer Science, Engineering and Education Applications ICCSEEA 2023, Warsaw, Poland, March 17–19, 2023.
[16] L. A. Zadeh, “Fuzzy sets”, Information and Control, 1965, Vol. 8, pp. 338–353.
Olga Kosheleva is Co-Chair of Department of Teacher Education and Director of STEM Education Division at the University of Texas at El Paso. Her areas of expertise are mathematics education – including teacher preparation and curriculum development, with focus on Science, Technology, Engineering and Mathematics (STEM) integration – and applied mathematics. She has published a book – on the use of interval and fuzzy methods in education, 1 edited book, more than 100 book chapters, more than 300 journal papers, and more than 250 papers in peer-refereed conference proceedings. She has been elected member of Board of Governors of North American Fuzzy Information Processing Society. She is Past President of El Paso Chapter of Sigma Xi, Interdisciplinary Research Society.
Vladik Kreinovich is Professor of Computer Science at the University of Texas at El Paso. His main interests are representation and processing of uncertainty, especially interval computations and intelligent control. He has published 13 books, 44 edited books, and more than 2,000 papers.
Vladik is President-Elect of the International Fuzzy Systems Association (IFSA), Secretary of the IEEE Systems, Man, and Cybernetics Society, Fellow of International Fuzzy Systems Association (IFSA), Fellow of Mexican Society for Artificial Intelligence (SMIA), Fellow of the Russian Association for Fuzzy Systems and Soft Computing.
Victor Timchenko received the master’s degree in Electrical Engineering from Admiral Makarov National University of Shipbuilding in 1982, and the philosophy of doctorate degree in Design of Ships from National University of Shipbuilding named Admiral Makarov in 1988, and of doctor of science degree in Automation Control from Odessa National Polytechnic University in 2013, respectively. He is currently working as an Professor at the Department of Computer Engineering, Automation and Electrical Institute, National University of Shipbuilding. His research areas include robust optimal control systems, optical architecture and computing, and decision support systems.
Yuriy Kondratenko is a Doctor of Science, Professor, Honour Inventor of Ukraine (2008), Corr. Academician of Royal Academy of Doctors (Barcelona, Spain), Head of the Department of Intelligent Information Systems at Petro Mohyla Black Sea National University (PMBSNU), Ukraine. He has received (a) a Ph.D. (1983) and Dr.Sc. (1994) in Elements and Devices of Computer and Control Systems from Odessa National Polytechnic University, (b) several international grants and scholarships for conducting research at Institute of Automation of Chongqing University, P.R.China (1988–1989), Ruhr-University Bochum, Germany (2000, 2010), Nazareth College and Cleveland State University, USA (2003), (c) Fulbright Scholarship for researching in USA (2015/2016) at the Dept. of Electrical Engineering and Computer Science in Cleveland State University. Research interests include robotics, automation, sensors and control systems, intelligent decision support systems, and fuzzy logic.
Journal of Mobile Multimedia, Vol. 20_3, 651–664.
doi: 10.13052/jmm1550-4646.2035
© 2024 River Publishers
2 Fuzzy Techniques: A Brief Reminder
3 How to Decrease the Number of Computational Steps: A General Reminder
4 How to Minimize the Number of Arithmetic Operations in Fuzzy Computations
4.1 Let us Start with Fuzzy Logical Operations
4.2 What About Membership Functions?
5 How to Minimize the Number of Bits Per Number in Fuzzy Computations